Skip to content

spec(NavigationStack): a draft record for the stack's opt-in behaviors - #12005

Draft
vjeux wants to merge 11 commits into
meta:mainfrom
vjeux:spec/navigation-stack-record
Draft

vjeux wants to merge 11 commits into
meta:mainfrom
vjeux:spec/navigation-stack-record

Conversation

@vjeux

@vjeux vjeux commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

The parts to rule on, each yes or no:

  1. A cut (FR1, FR15). push, pop and popToRoot take transition: 'cut': the change lands in its commit with no motion. A path change that replaces the top entry moves as one push over the old screen. With the stack's pathTransition at 'cut', it cuts instead. The old screen is retained like a popped one. Recommended: yes.

  2. Retained screens (FR2–FR5). retainPopped keeps up to 4 popped screens, least recently popped leaving first; evict(entry); a re-push reuses with no remount. Hidden screens never paint, take no input whatever their DOM order, and are absent from the accessibility tree. useNavigationScreen() reads top, covered, hidden or prepared from the first render. On a physical iPhone, retention keeps a screen's state and scroll but buys no speed. A retained re-push started later after its commit than a fresh mount. So OQ1, the default bound for an app that opts in without a number, rests on state and scroll alone. Recommended: yes, default 0.

  3. Prepared screens (FR6–FR8). prepare(entry), drop() and useNavigationLink(entry): a press renders ahead, a scroll drops it. A prepared screen stays laid out while hidden, so its push does no layout (DEC-14). Its iOS timing is unmeasured for the built press path; the prototype take is diagnosis only. Recommended: yes.

  4. Content that owns its scroller (FR10, FR19). scroll: 'content' and useNavigationScroller(); a clear bar takes no taps where it paints nothing. The content's scroller takes keyboard access as a Core scroll area does (spec:AST-025 FR12), and the stack adds no tab stop beside it (AR3). Recommended: yes.

  5. The bar (FR11, FR12, FR18, FR20, AR5). isBarHidden, and titleFocusRef for what takes the title's focus. Rich titleContent; safe-area insets in a home-screen app; content never paints over the bar, which main already ships. Recommended: yes.

  6. Focus (FR13). A change names its focus target or keeps focus. By default a push focuses the new title, and a pop returns focus to the control that pushed the screen, as today. Focus a person moved into the new screen stays there, which main already ships. A push that focuses a control instead of the title still announces the screen's name once (FR13, AR5). Inside an open modal, the modal's own containers carry it (spec:AST-086 FR14). Recommended: yes.

  7. Server render (FR14). The record adopts spec:AST-013 FR9; a deep first mount lands at rest. Recommended: yes.

  8. Reported phases (FR16). onTransition reports start, settle and a swipe's begin, cancel and commit, with the cause. Recommended: yes.

  9. Input after a pop (FR17). The revealed screen takes input once the pop looks done. Recommended: yes.

  10. First load (PR2, PR3). Each option costs at most 0.3 KB gzip unused, and the first load carries only the touch code its first render uses. Recommended: yes.

  11. Isolation (FR21, DEC-13). A screen not on view has no pointer, focus, key or assistive-technology access at any moment. It is inert from a change's first commit: one mechanism that also takes it out of the accessibility tree. Focus leaves a covered screen in the change's first commit. A push moves it to the new top; a pop rests it on the stack's region until the revealed screen takes input. Recommended: yes.

  12. A change from rest starts at its first frame (FR23, DEC-15). A heavy commit delays a push or pop from rest and never erases its start. A physical iPhone was filmed at 60 fps. A push or pop from rest often presented its first frame well into its curve, even with no other work. A pop whose tap ran 300 ms of other work first could show only its end state. The record states both as a gap. Recommended: yes.

Current records already decide three parts. A press ends when a scroll takes the touch (spec:AST-094 FR20). Intent starts a load, and an unused option has a budget (architecture:component-import-boundaries INV2, INV10).

Existing authority searched

Decision

Area Contract
Public contract transition: 'cut' on a change, and pathTransition; retainPopped; evict, prepare, drop; useNavigationScreen, useNavigationLink, useNavigationScroller; scroll and isBarHidden on NavigationScreen.
Behavior A cut has no motion. Popped screens can stay mounted. A pressed row can render ahead. Content can own its scroller. A screen can hide the bar. Hidden screens take no input.
End-user impact A screen opening with the keyboard moves once. A reopened chat keeps its scroll and draft. A push starts at once.
Builder impact Each option is opt-in. Retention and preparation key screens by getKey.
Compatibility The API is additive. With no option set, FR15, FR17–FR19, FR21 and FR23 change released behavior.
Review checks Reject a hidden screen that takes input, a re-push that remounts, or an unused option over INV10.
Governing rules spec:AST-094 FR11, FR20, FR36; architecture:component-import-boundaries INV2, INV10; architecture:react-component-runtime INV13.

Before:

<NavigationStack
  root={<NavigationScreen title="Chats"><ChatList /></NavigationScreen>}
  path={path}
  onPathChange={setPath}
  getKey={id => id}
  renderScreen={id => (
    <NavigationScreen title={titleOf(id)}><Chat id={id} /></NavigationScreen>
  )}
/>

After:

<NavigationStack
  retainPopped={2}
  root={
    <NavigationScreen title="Chats" isBarHidden>
      <ScopeHeader />
      <ChatList />
    </NavigationScreen>
  }
  path={path}
  onPathChange={setPath}
  getKey={id => id}
  renderScreen={id => (
    <NavigationScreen title={titleOf(id)} scroll="content">
      <Chat id={id} />
    </NavigationScreen>
  )}
/>
// A row: const link = useNavigationLink(id);
// New chat: flushSync(() => stack.push(id, {transition: 'cut'})); composer.focus();
// In Chat: const {state} = useNavigationScreen(); const scroller = useNavigationScroller();

New caller decisions: which change to cut, how many screens to retain, which rows prepare, and which screens own their scroller or hide the bar.

To try the options in one app, open Current and Proposed, #12002 at dd76ddc2a3. A switch at its top changes between today's stack and the proposed options.

Demos, from the preview pull request, #12002, in its Vercel deployment of b0ca12ad30. Open them on a phone, or in a browser's phone emulation.

Rejected alternatives

  • Keeping every popped screen: memory grows with each one.
  • Hiding a screen with content-visibility: hidden alone: its box still takes pointer and wheel events.
  • Each app wiring the press itself: a scroll's cancel and a release off the row are easy to miss.
  • A content scroller that hard-codes the bar's height.
  • A guard of pointer-events: none, aria-hidden and focus containment during a change: on a phone it costs as much per toggle as inert.
  • Keeping retained screens laid out while hidden: on a phone, a kept retained screen showed later after its commit than a fresh mount.

Claim scope and non-goals

The record governs FR1–FR21, FR23, AR1–AR5 and PR1–PR3. FR13, FR15, FR17–FR21 and FR23 contract parts of the existing push, pop and bar; the rest stays uncontracted here.

Evidence and implementation relationship

  • The preview pull request, chore(NavigationStack): preview the draft record (not for merge) #12002, not for merge, prototypes FR1–FR13, FR15's cut and FR20, and keeps retained screens laid out. It has 15 unit tests, and browser specs in Chromium and WebKit. Its hidden-screen spec covers two failures: a hidden screen took input, and after a re-push a screen's controls acted on another screen's state. Its heavy-commit spec checks a change's start after a heavy commit. The existing NavigationStack suites pass on it.
  • First load of a page with only NavigationStack, by the size report's esbuild build, main against the prototype: gzip 83,102 → 84,316 B. It stays 1 chunk at depth 10, with 284 → 285 static modules. The prototype keeps every option in the stack's module, so unused options cost 1,214 B together. PR2 needs each under 307 B, so the build moves them behind their own imports.
  • Main falls short of PR3 today, and a separate repair is in flight.
  • PR3 depends on perf(core): SegmentedControl, Switch and BottomSheet load the touch animator after first paint #11450. When its runtime-loader amendment lands, the back swipe loads with the shared touch runtime after first paint. That load is deferred, not lazy (spec:AST-080 DEC-5), and PR3 updates with it.
  • On a physical iPhone 14 (iOS 26.2, Safari), on chore(NavigationStack): preview the draft record (not for merge) #12002's sandbox pages at dd76ddc2a3. Every number is test data.
    • Isolation: a toggle benchmark, with style and layout forced around each toggle. Each figure is the upper median of 6 rounds of 20 on/off pairs. On a covered list of 483 elements, inert took 27.0–27.6 ms per toggle and pointer-events: none 26.9–27.9 ms. On 358 elements both took about 19.5 ms, and on a 205-element transcript about 15 ms. aria-hidden took 0 ms. The iOS simulator's split, 35–41 ms against 0.4 ms, does not reproduce on the phone, so DEC-13 rests on what inert covers.
    • Retention, on chats of 300 rows: a retained re-push took 217–228 ms from its commit to its first moved frame in 7 of 9 takes. In the other 2 it took 2–10 ms. A fresh mount took 119–132 ms in 7 of 10, and 3–5 ms in 3. A Chromium trace of the same page shows no mount work run again on a re-show; the re-show restyles about the whole retained screen. Retention buys no speed on the phone, so retainedLayout leaves the record, and a retained screen skips its layout while hidden.
    • FR23, filmed with the phone's own screen recording at 16.7 ms per frame, 5 pushes and 5 pops per arm. The rule's bound is the spring's first 60 Hz step, 15.2% of the travel, or 30.1% with one frame of margin.
      • With no other work, 7 of 10 changes failed. In 5 of them, the first changed frame came one display frame after rest and showed 32.6–51.4% of the travel.
      • A pop whose tap ran 300 ms of work in its own task showed its end state in its first changed frame. That held in 2 of 5 takes. The other 3 started at 18.9–24.6%. An earlier take through the screen stream, at about 27.5 ms per frame, showed the end state in 5 of 5.
      • The page clock read 1–10% at its own first moved frame for most of these changes. A change's first frame on the page clock is not the first frame the screen presents, so FR23's verification films the screen.
      • The pages run chore(NavigationStack): preview the draft record (not for merge) #12002's merge of main, whose start for a change from rest is main's own. No take ran on main itself.
    • The prepared push (FR6–FR8) ran on the prototype's press path, so it is diagnosis only. From the lift to the first moved frame, it took 79–103 ms with the row preparing and 161–178 ms without. With no mount work it took 62–74 ms. That gain came from the prepared screen being laid out, so a prepared screen stays laid out while hidden.

Writing rubric results

  • R1 narration: none; present tense throughout, including AR3's and FR13's new sentences.
  • R2 research in the record: none. DEC-13 states what inert covers, and DEC-14 states its reason without the phone's numbers. The measurements stay in this description.
  • R3 evidence naming a change: none. AR3's verification row names its tests and states, and FR13's row adds a stack inside a modal Dialog.
  • R4 rejected alternatives over one line or outside a decision: none; DEC-2, DEC-9, DEC-13 and DEC-14 each hold one, of one line.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none. The isolation question became FR21 and DEC-13; OQ1 stays open.
  • R7 project status: the gap lines state observable mismatches against main only. AR3 and AR5 join the list of requirement gaps. FR20 and FR13's kept focus leave it, since main ships them. FR23 returns, with the pop a phone shows with no motion.

Scope

Components: NavigationStack

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge
  • Prettier
  • git diff --check

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 22, 2026 12:06pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 16, 2026
@astracat-bot

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 22, 2026, 12:15 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision: this draft record adds requirements no current record states (FR1–FR21, AR1–AR5, PR1–PR3 and DEC-1–DEC-13, with new transition, retainPopped, evict, prepare, drop, replace, focus, onTransition, useNavigationScreen, useNavigationLink, useNavigationScroller, scroll, isBarHidden, titleFocusRef and titleContent API). An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. These need fixing either way:

  • FR13 and the focus default ('title' on every change) make a pop focus the revealed screen's title instead of returning focus to the control that pushed it, as the stack ships, documents and tests today, so keep that return as the pop default (the record says the released default is preserved) and scope FR9 to focus that was in the stack or detached so it agrees with FR13.
  • FR4 defines "not on view" as screens deeper than the one under the top, retained or prepared, so the painted screen directly under the top escapes FR4's inert rule, FR21's isolation and AR1's absence from the accessibility tree; define "on view" as the top screen and keep the no-paint rule for the deeper ones.
  • Three description claims need correcting: #12001 and #12004 (and now #12009) are open and change NavigationStack, the R7 result misses "FR14 gap: not verified", which states no observable mismatch, and PR2 caps only the cut, retention and preparation while the option budget covers every option the record adds.

Non-blocking: under reduced motion, FR11's bar spring and FR17's position-based "visually done" test are undefined, and one line tying them to the change's cross-fade would close that.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: no NavigationStack record exists today: verified.
  • Claim: the cited current rules (the touch press and back swipe, consistent hydration, the WCAG 2.2 baseline, public gesture hooks without the machinery, intent-started loading and the unused-option budget, the shared touch runtime) say what the record relies on: verified.
  • Claim: the record governs FR1–FR21, AR1–AR5 and PR1–PR3: verified.
  • Claim: rubric results R1–R6: verified; R7: false (the FR14 gap line).
  • Claim: no open pull request changes NavigationStack: false.
  • Claim: each option costs at most 0.3 KB gzip when unused (PR2): false as PR2 is written (three options only).
  • Claim: with no option set, the stack behaves as released: false (FR13's pop focus).
  • Claims about the preview's tests and bundle sizes: not checked; they describe a separate pull request.
  • File: docs/specs/components/NavigationStack/NavigationStack.spec.md: findings above; its structure passes the knowledge check.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision: this draft record adds requirements no current record states (FR1–FR22, AR1–AR5, PR1–PR3 and DEC-1–DEC-14, with new opt-in API on the Lab stack), so an engineering owner records approval, partial approval or rejection by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The earlier findings on FR13's pop focus, FR4's "on view" scope, the FR14 status line, PR2's scope and FR17's reduced-motion test are fixed. These need fixing either way:

  • The compatibility lines (record lines 48, 49 and 67–68) and the description's Compatibility row call the record additive with the released default preserved, but FR15 now makes a same-depth path replacement move as a pop then a push with no option set, where the stack lands it in place today, so name that default change or put FR15 behind pathTransition.
  • Miss: those same lines also hide that FR13 (focus moved into the new screen stays), FR17 (input before the pop settles) and FR18–FR20 (the bar's insets, clear area and stacking) change what the stack does by default, so list those changes too.
  • FR11's "the bar cross-fades with the change" under reduced motion contradicts design:reduced-motion DR3, which requires a fine-pointer change to complete at once, so say the bar cross-fades under a coarse pointer or after a touch release and changes at once under a fine pointer.
  • The description's list of open work that changes NavigationStack misses #12010, whose push-and-pop timing repair is the rule the record's family relationships line states, so add it.

Non-blocking:

  • The family relationships line credits spec:AST-094 FR6 with a late-commit rule for a push or pop from rest that FR6 does not state; an FR with a gap line would let the owner decide it directly.
Claims and files checked

Review mode: full; reason: history

  • Claim: no NavigationStack record exists today: verified.
  • Claim: current records already decide the press a scroll takes, intent-started loading and the unused-option budget: verified.
  • Claim: the cited current rules (the WCAG 2.2 baseline, the touch press and back swipe, consistent hydration, public gesture hooks without machinery, the shared touch runtime) say what the record relies on: verified.
  • Claim: three open drafts change the stack's code, and the record states the behavior each repairs: false (a fourth open draft, #12010, also changes it).
  • Claim: by default a push focuses the new title and a pop returns focus to the control that pushed the screen, as today: verified.
  • Claim: additive; with no option set, the stack behaves as released: false (FR15; also FR13 and FR17–FR20).
  • Claim: the existing push, pop, back swipe and bars stay uncontracted: false (FR13, FR15 and FR17–FR21 contract them).
  • Claim: each option costs at most 0.3 KB gzip when unused: verified (PR2).
  • Claim: the record governs FR1–FR22, AR1–AR5 and PR1–PR3: verified.
  • Claim: writing rubric results R1–R7: verified.
  • Claim: the knowledge check, Prettier and the whitespace check pass: verified.
  • Claims about the preview's tests, bundle sizes and the isolation benchmark: not checked; they describe a separate pull request and measurements this head does not carry.
  • File: docs/specs/components/NavigationStack/NavigationStack.spec.md: findings above.

Automated review (maintainer link)

@vjeux
vjeux force-pushed the spec/navigation-stack-record branch 2 times, most recently from 2ada31b to ae17999 Compare November 16, 2026 07:52

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision: this draft record adds requirements no current record states (FR1–FR23, AR1–AR5, PR1–PR3 and DEC-1–DEC-14), including new opt-in API on the Lab stack and default changes in FR13, FR15, FR17–FR20 and FR23. An engineering owner records approval, partial approval or rejection by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.

Blocking, to fix whatever the decision:

  • FR15's compatibility line (lines 71–72) says a same-depth replacement retains the old screen with no option set, and its verification row (line 280, whose wording the previous review missed) expects retention "with and without retention", but FR15 and FR2 retain it only when retainPopped is above its default of 0, so the line should drop "retains the old screen" and the row should expect an unmount at 0.

Every blocking finding from the previous review is fixed at this head. Non-blocking notes on FR13, FR17, FR21 and FR23 (two of them missed by the previous review) are in the inline comments.

Claims and files checked

Review mode: full; reason: history

  • Claim: the record governs FR1–FR23, AR1–AR5 and PR1–PR3. Verified against the record's rows and gap lines.
  • Claim: with no option set, FR13, FR15, FR17, FR18–FR20 and FR23 change released behavior. Verified against the shipped stack; FR21's inert timing also changes (non-blocking).
  • Claim: a pop returns focus to the control that pushed the screen, as today. Verified in the stack's focus return.
  • Claim: today a same-depth path change lands in place, and a push or pop takes its start from its call. Verified in the stack's path diff and transition driver.
  • Claim: no NavigationStack record exists, and the cited current records say what the description says. Verified on the main branch.
  • Claim: four open drafts change NavigationStack's code (#12001, #12004, #12009, #12010). Verified.
  • Claim: the preview's tests, bundle sizes and the Safari isolation benchmark. Not verified here, since they describe the preview pull request; the size arithmetic is consistent.
  • Claim: the writing rubric R1–R7 is clean. Partly false: two compatibility clauses use the past tense, and R4 omits DEC-9's rejected line (non-blocking).
  • Claim: knowledge validation, Prettier and the whitespace check pass. Verified at this head.
  • Claim: the pull request holds specification records only and no internal context. Verified.
  • File: docs/specs/components/NavigationStack/NavigationStack.spec.md. One blocking finding (FR15 retention by default) and non-blocking notes.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision: this draft record adds requirements no current record states (FR1–FR23, AR1–AR5, PR1–PR3 and DEC-1–DEC-15), including new opt-in API on the Lab stack and default changes in FR13, FR15, FR17–FR21 and FR23. An engineering owner records approval, partial approval or rejection by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Whatever the decision, these must be fixed before the record can be approved:

  • Miss: PR3 and its verification row require the back swipe to load off the stack's static graph through a "shared touch runtime", but architecture:react-component-runtime INV13 has components import the shared touch modules statically and defines no such runtime, and spec:AST-080 DEC-5 says a component does not lazy-load its own touch code, so PR3 should require only static use of INV13's shared touch modules unless an owner amends those records first.
  • PR1's verification row still excepts only a kept retained screen's layout, so a build that keeps a prepared screen laid out, as FR22 now requires under the default retainedLayout: 'kept', fails the row; it should except a kept retained or prepared screen.

Smaller points: FR8's cost line no longer covers a prepared screen's layout under FR22's default, FR22's basis carries profiling numbers that the rubric's R2 line reports as absent, and the FR13 gap line names only the missing focus option.

Claims and files checked

Review mode: full; reason: history

  • Claim: the pull request contains specification records only — verified (one new record under the component specs).
  • Claim: the API is additive, and with no option set FR13, FR15, FR17–FR21 and FR23 change released behavior — verified (the record's compatibility list).
  • Claim: a same-depth path replacement moves as one push, cuts with pathTransition at 'cut', and the old screen is retained like a popped one — verified (FR15).
  • Claim: by default a push focuses the new title and a pop returns focus to the control that pushed the screen — verified (FR13 and the focus default).
  • Claim: retained and prepared screens stay laid out by default, and 'skipped' skips their layout — verified (FR22 and the retainedLayout row).
  • Claim: each option costs at most 0.3 KB gzip when unused — verified (PR2).
  • Claim: the back swipes load with the shared touch runtime, as the touch-runtime architecture record says — false (that record defines no such runtime and requires static imports; first finding above).
  • Claim: current records already decide when a press ends, when a load starts and the unused-option budget — verified (the touch-presentation and import-boundary records).
  • Claim: the writing rubric finds no research in the record — false (FR22's basis carries profiling numbers; non-blocking).
  • Claim: the rubric's narration, rejected-alternative and reference checks pass — verified.
  • Claim: knowledge validation, Prettier and the whitespace check pass — verified (all three run at this head).
  • File: docs/specs/components/NavigationStack/NavigationStack.spec.md — the two findings and three smaller points above.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision. This draft record adds requirements no current record states (FR1–FR23, AR1–AR5, PR1–PR3 and DEC-1–DEC-15), including new opt-in API on the Lab stack and default changes in FR13, FR15, FR17–FR21 and FR23. An engineering owner records approval, partial approval or rejection by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The two earlier blocking points are fixed: PR3 now fits the shared touch-module rule, and PR1's verification row excepts kept prepared screens.

  • Non-blocking: FR1 says a cut has "no fade", while the cut's representative state allows a bar cross-fade, so say which one holds.
  • Non-blocking: FR22's basis still carries profiling numbers that the writing rubric's R2 would move to the description, unless the owner wants them kept.
Claims and files checked

Review mode: full; reason: history

  • Claim: the pull request contains only specification records. Verified: one new record.
  • Claim: the API is additive, and with no option set FR13, FR15, FR17–FR21 and FR23 change released behavior. Verified: the compatibility list.
  • Claim: a cut lands with no motion; a same-depth replacement moves as one push, or cuts under pathTransition; the old screen is retained like a popped one. Verified: FR1, FR15.
  • Claim: up to four popped screens stay mounted and the least recently popped leaves first, with evict and no remount on a re-push; hidden screens never paint, take no input and leave the accessibility tree; a screen reads its state from its first render. Verified: FR2–FR5, FR21, AR1.
  • Claim: a pressed row can render its screen ahead, and a scroll drops it. Verified: FR6–FR8.
  • Claim: content can own its scroller, and a clear bar takes no taps where it paints nothing. Verified: FR10, FR19.
  • Claim: a screen can hide the bar and name its focus target, with rich title content, safe-area insets, and content that never paints over the bar. Verified: FR11, FR12, FR18, FR20, AR5.
  • Claim: by default a push focuses the new title, and a pop returns focus to the control that pushed the screen, as today. Verified: FR13 and the shipped stack's focus return.
  • Claim: the stack adopts the hydration rule, and a deep first mount lands at rest. Verified: FR14.
  • Claim: a callback reports a change's start and settle and a swipe's phases, each with its cause. Verified: FR16.
  • Claim: the revealed screen takes input once the pop looks done. Verified: FR17.
  • Claim: each unused option costs at most 0.3 KB gzip, and the first load carries only the touch code its first render uses. Verified: PR2, PR3.
  • Claim: a screen not on view is inert at rest and isolated by a three-part guard during a change. Verified: FR21.
  • Claim: retained and prepared screens stay laid out by default, with a setting that skips their layout. Verified: FR22.
  • Claim: a change from rest starts at its first frame. Verified: FR23.
  • Claim: current records already decide when a press ends, when a load starts, and the unused-option budget. Verified: the touch-presentation and import-boundary records.
  • Claim: no NavigationStack record exists today. Verified.
  • Claim: the React runtime record covers the stack's touch code. Verified in substance: it governs the shared touch modules, though it names no "touch runtime".
  • Claim: four open drafts repair content under the bar, a platform-animated back, focus kept on a push, and start timing. Verified: all four are open drafts with those subjects.
  • Claim: the preview pull request prototypes the record, with 15 unit tests and Chromium and WebKit specs. Verified for the test count and the WebKit heavy-commit spec in its description.
  • Claim: in the prototype, unused options cost 1,214 B together, above the 307 B each may cost. The arithmetic is verified; the measurement was not reproduced.
  • Claim: main falls short of FR20 and of PR3, with a repair in flight for each. Verified against the gap lines and the two drafts.
  • Claim: the isolation and layout costs measured in a simulator. These are stated measurements and were not reproduced.
  • Claim: the writing rubric's R1 and R3–R7 find nothing. Verified by a scan of the record.
  • Claim: R2 finds one measurement, in FR22's basis, kept at the owners' request. The measurement is there; the request does not appear on this pull request.
  • Claim: knowledge validation, Prettier and the whitespace check pass. Verified: all three ran at this head.
  • File: docs/specs/components/NavigationStack/NavigationStack.spec.md. No blocking finding; the two non-blocking points are above.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision. This draft record adds requirements no current record states (FR1–FR23, AR1–AR5, PR1–PR3 and DEC-1–DEC-15), including new opt-in API on the Lab stack and default changes in FR13, FR15, FR17–FR21 and FR23. An engineering owner records approval, partial approval or rejection by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. Whatever the decision, the record needs one fix before approval:

  • Miss: FR21's guard hides a leaving screen with aria-hidden and pointer-events: none until inert lands after the first frame but moves no focus, so a keyboard push leaves focus and Enter on the pressed row inside a hidden screen, which FR21's own first sentence forbids; move focus out in the change's first commit, or keep the screen exposed while focus stays in it with no key but Tab reaching it.

  • Non-blocking, Miss: FR9 keeps focus on the screen on view, while FR13 returns a pop's focus to the control that pushed it, which the released push source option can place outside the stack; FR9 can add "or on the control FR13 returns it to".

  • Non-blocking: FR22's basis still carries profiling numbers that the writing rubric's R2 would move to the description, unless the owner wants them kept.

Claims and files checked

Review mode: full; reason: history

  • Claim: the pull request contains only specification records. Verified: one new record.
  • Claim: the API is additive, and with no option set FR13, FR15, FR17–FR21 and FR23 change released behavior. Verified: the compatibility list.
  • Claim: a cut lands with no motion; a same-depth replacement moves as one push, or cuts under pathTransition; the old screen is retained like a popped one. Verified: FR1, FR15, FR2.
  • Claim: up to four popped screens stay mounted, least recently popped leaving first, with evict and no remount on a re-push; hidden screens never paint, take no input and leave the accessibility tree; a screen reads its state from its first render. Verified: FR2–FR5, AR1.
  • Claim: a pressed row can render its screen ahead, and a scroll drops it. Verified: FR6–FR8.
  • Claim: content can own its scroller, and a clear bar takes no taps where it paints nothing. Verified: FR10, FR19.
  • Claim: a screen can hide the bar and name its focus target, with rich title content, safe-area insets, and content that never paints over the bar. Verified: FR11, FR12, FR18, FR20, AR5.
  • Claim: by default a push focuses the new title, and a pop returns focus to the control that pushed the screen, as today. Verified: FR13 and the shipped stack's focus return.
  • Claim: the stack adopts the hydration rule, and a deep first mount lands at rest. Verified: FR14.
  • Claim: a callback reports a change's start, settle and a swipe's phases, each with its cause. Verified: FR16.
  • Claim: the revealed screen takes input once the pop looks done. Verified: FR17.
  • Claim: each unused option costs at most 0.3 KB gzip, and the first load carries only the touch code its first render uses. Verified: PR2, PR3.
  • Claim: a screen not on view has no pointer, focus, key or assistive-technology access at any moment, with a three-part guard that isolates it as fully as inert. False: the guard leaves focus already in the screen in place (the blocking point above).
  • Claim: retained and prepared screens stay laid out by default, with a setting that skips their layout. Verified: FR22.
  • Claim: a change from rest starts at its first frame. Verified: FR23.
  • Claim: current records already decide when a press ends, when a load starts, and the unused-option budget. Verified: the touch-presentation and import-boundary records.
  • Claim: no NavigationStack record exists today. Verified.
  • Claim: four open drafts repair content under the bar, a platform-animated back, focus kept on a push, and start timing. Verified: all four are open drafts with those subjects.
  • Claim: the preview pull request prototypes the record, with unit tests and Chromium and WebKit specs. Stated evidence, not reproduced.
  • Claim: unused options in the prototype cost 1,214 B together, above the 307 B each may cost. The arithmetic is verified; the measurement was not reproduced.
  • Claim: main falls short of FR20 and of PR3, with a repair in flight for each. Verified against the gap lines and the open drafts.
  • Claim: the isolation and layout costs measured in a simulator. Stated measurements, not reproduced.
  • Claim: the writing rubric's R1 and R3–R7 find nothing. Verified by a read of the record.
  • Claim: R2 finds one measurement, in FR22's basis, kept at the owners' request. The measurement is there; the request does not appear on this pull request.
  • Claim: knowledge validation, Prettier and the whitespace check pass. Verified at this head.
  • File: docs/specs/components/NavigationStack/NavigationStack.spec.md. One blocking point (FR21) and two non-blocking points, above.

Automated review (maintainer link)

@vjeux
vjeux force-pushed the spec/navigation-stack-record branch from 62383a8 to 8981433 Compare November 16, 2026 10:56

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the draft component:NavigationStack record. It adds requirements no current record states (FR1–FR23, AR1–AR5, PR1–PR3, ORD1–ORD2, AV1–AV2 and DEC-1–DEC-15), new Lab API (transition: 'cut', pathTransition, retainPopped, retainedLayout, evict, prepare, drop, focus, onTransition, useNavigationScreen, useNavigationLink, useNavigationScroller, and scroll, isBarHidden, titleFocusRef and titleContent on NavigationScreen), and default changes with no option set in FR13, FR15, FR17–FR21 and FR23. An engineering owner records the decision (approve, approve only some parts, or reject) by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The two earlier notes (focus on the bar's Back in FR13 and FR21, and the FR21 gap line) are fixed, and one description fix is needed whatever the decision:

  • Miss: the description says this record states the behavior #12004 repairs, but its own out-of-scope line and the record's ownership boundary (lines 119–120) leave a platform-animated back out, so it should say the record states the behavior of #12001 (FR20), #12009 (FR13) and #12010 (FR23) only.
Claims and files checked

Review mode: full; reason: history

  • Claim: the record is a draft and every decision is pending. Verified: authority: draft, approved_by: null, and every DEC's Decider is pending.
  • Claim: the API is additive, and with no option set FR13, FR15, FR17–FR21 and FR23 change released behavior. Verified: the compatibility list (lines 69–89) and the glance rows name exactly those, and every new prop, option, method and hook is optional.
  • Claim: by default a push focuses the new title and a pop returns focus to the control that pushed the screen, as today. Verified against FR13 (line 161) and the shipped stack's focus return.
  • Claim: focus leaves a covered screen in the change's first commit, to the new top on a push and to the stack's region on a pop. Verified in FR21 (line 169), which now also covers the bar's controls for that screen.
  • Claim: no NavigationStack record existed before. Verified: the main branch has no component record for it.
  • Claim: the cited current rules cover the press a scroll takes, the back swipe, hydration, public gesture APIs, the WCAG 2.2 baseline, intent loading, the unused-option budget and the shared touch modules. Verified against each record's text on the main branch.
  • Claim: four open drafts (#12001, #12004, #12009, #12010) change the stack's code, #12002 is a preview not for merge, and #11450 is the related touch-loading change. Verified: each is an open draft whose title matches the description.
  • Claim: the record states the behavior each of those four drafts repairs. False for #12004, whose behavior the record and the description's out-of-scope line exclude; true for #12001 (FR20), #12009 (FR13) and #12010 (FR23).
  • Claim: the preview's tests, browser specs, size numbers and benchmarks. Not checked: they describe another pull request, and a draft record needs none of them.
  • Claim: writing rubric results (present tense, no research, no change references, one-line rejected alternatives in DEC-2, DEC-9 and DEC-13, OQ1 open, gap lines that state mismatches). Verified in the record.
  • Claim: the knowledge check, Prettier and the whitespace check pass. Verified by rerunning them on this head.
  • File docs/specs/components/NavigationStack/NavigationStack.spec.md: clear, and consistent with itself; the one finding is in the description.

Automated review (maintainer link)

AR3: with `scroll: 'content'`, the scroller the content names stays
reachable by keyboard. When it holds no focusable element, the stack
makes it focusable and names it by the screen's title. The stack adds
no tab stop beside it.

FR13, AR5 and DEC-7: a push that focuses an element other than the
title, through `focus` or `titleFocusRef`, still announces the screen's
title once, on the shared channel.

The verification map gets an AR3 row, and FR13's row covers the
announcement.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the draft component:NavigationStack record, and three record fixes are needed either way.

The record adds requirements no current record states (FR1–FR23, AR1–AR5, PR1–PR3, ORD1–ORD2, AV1–AV2 and DEC-1–DEC-15), including this revision's AR3 tab stop for a content scroller and FR13's title announcement when a push focuses a field. An engineering owner records the decision, whole or in part, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.

Blocking:

  • Regression: since the last review, main landed the repairs for FR13's kept focus, FR20's stacking and FR23's first-frame start, so the gap lines at lines 181–188 and the default-change entries at lines 53 and 71–91 should drop them (leaving FR15, FR17–FR19 and FR21 as the default changes), and the description's open-conflict list and "main falls short of FR20" line need the same update.
  • AR3 (lines 240–246) contradicts spec:AST-025 FR12, which adds a scroller to the tab order only while it scrolls, as a named group, and keeps that stop when its first child is a text field or a composite widget, so the content scroller should take FR12's contentOrViewport access instead of a stop whenever it holds nothing focusable and none otherwise.
  • FR13 (line 163) and AR5 announce the title "on the shared channel", but spec:AST-086 FR14 routes a message through an open modal's own containers, so the announcement should be delivered as AST-086 FR2 and FR14 say.
Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The thirteen decision parts match the record's FR, AR, PR and DEC text: verified.
  • Current records already decide the press that a scroll takes, intent loading and the unused-option budget: verified (spec:AST-094 FR20; architecture:component-import-boundaries INV2, INV10).
  • No NavigationStack record exists on main: verified.
  • Four open drafts change NavigationStack's code: false, all four changes are now on main.
  • The record states the behavior three of those repairs restore and leaves the platform-animated back out of scope: verified (FR20, FR13, FR23; ownership boundary), though those repairs now ship.
  • main falls short of FR20 and PR3, each with a repair in flight: false for FR20 (cards are stacking contexts on main); true for PR3.
  • With no option set, FR13, FR15, FR17–FR21 and FR23 change released behavior: false for FR13, FR20 and FR23.
  • The API is additive and each option is opt-in: verified (Public concepts defaults).
  • The first-load delta of 1,214 B exceeds PR2's per-option allowance: arithmetic verified; the measurement describes the preview pull request.
  • The preview pull request's prototypes, tests, demos and benchmarks: not checked; they describe another pull request, not this record.
  • Writing rubric results R1–R6: verified; R7: three gap lines no longer match main.
  • Knowledge validation, Prettier and the whitespace check pass: verified.
  • The public text carries no internal context: verified.

Files:

  • docs/specs/components/NavigationStack/NavigationStack.spec.md: three blocking findings above.

Automated review (maintainer link)

AR3 now takes a screen scroller's keyboard access from AST-025 FR12, the
rule Core's scroll areas follow. FR13's title announcement is delivered
as AST-086 FR2 and FR14 say, so a stack inside a modal is heard.

FR13's kept focus, FR20 and FR23 hold on main, so they leave the gap
lines and the list of changed defaults.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the draft component:NavigationStack record; no record fix is required before that decision.

The record adds requirements no current record states (FR1–FR23, AR1–AR5, PR1–PR3, ORD1–ORD2, AV1–AV2 and DEC-1–DEC-15), including new Lab API and default changes in FR15, FR17–FR19 and FR21. An engineering owner records the decision, whole or in part, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The three record fixes asked for in the last review are in.

  • Non-blocking: the glance row (line 55) lists AR3 and AR5 as requirement gaps, but the body's gap list (lines 173–183) states neither, so add a gap line for them or drop them from the row.
Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The thirteen decision parts match the record's FR, AR, PR and DEC text: verified.
  • Current records already decide the press a scroll takes, intent loading and the unused-option budget: verified (spec:AST-094 FR20; architecture:component-import-boundaries INV2, INV10).
  • No NavigationStack record exists on main: verified.
  • The four pull requests that changed the stack's code are on main, and no open pull request conflicts: verified; two open drafts overlap the record without contradicting it (#12596, a React Native platform record of the same component, and #12793, which renames push's source option) and are not named.
  • The record states the behavior #12001, #12009 and #12010 ship and leaves the platform-animated back out of scope: verified (FR20, FR13, FR23; ownership boundary).
  • main already ships FR20, FR23 and FR13's kept focus: verified (cards are stacking contexts, a change from rest takes its start from the animator, and a push's settle keeps focus moved into the new screen).
  • With no option set, FR15, FR17–FR19 and FR21 change released behavior: verified against main's stack.
  • The API is additive and each option is opt-in: verified (Public concepts defaults).
  • main falls short of PR3: verified (the stack imports Core's internal touch entry); the in-flight repair and #11450's deferred load describe pending work and were not checked, and spec:AST-080 DEC-5 on main draws no deferred-or-lazy distinction.
  • The unused options cost 1,214 B together, and PR2 needs each under 307 B: arithmetic verified; the measurement describes the preview pull request.
  • The preview pull request's prototypes, tests, demos and benchmarks: not checked; they describe another pull request.
  • Writing rubric results R1–R7: verified; under R7, AR3 and AR5 appear in the glance row without gap lines (note above).
  • Knowledge validation and Prettier pass: verified.
  • The public text carries no internal context: verified.

Files:

  • docs/specs/components/NavigationStack/NavigationStack.spec.md: no blocking finding; one non-blocking note above.

Automated review (maintainer link)

The glance row lists AR3 and AR5 as gaps; the accessibility contract now
says what main lacks for each.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the draft component:NavigationStack record; no record fix is required before that decision.

The record adds requirements no current record states (FR1–FR23, AR1–AR5, PR1–PR3, ORD1–ORD2, AV1–AV2 and DEC-1–DEC-15), including new Lab API and default changes in FR15, FR17–FR19 and FR21. An engineering owner records the decision, whole or in part, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The new AR3 and AR5 gap line resolves the last review's only note.

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The thirteen decision parts match the record's FR, AR, PR and DEC text: verified.
  • Current records already decide the press a scroll takes, intent loading and the unused-option budget: verified (spec:AST-094 FR20; architecture:component-import-boundaries INV2, INV10).
  • No NavigationStack record exists on main: verified.
  • The four pull requests that changed the stack's code are on main, and no open pull request conflicts: verified; two open drafts overlap the record without contradicting it (#12596, a React Native platform record of the same component, and #12793, which renames push's source option) and are not named.
  • The record states the behavior #12001, #12009 and #12010 ship and leaves the platform-animated back out of scope: verified (FR20, FR13, FR23; ownership boundary).
  • main already ships FR20, FR23 and FR13's kept focus: verified (cards are stacking contexts, a change from rest takes its start from the animator, and a push's settle keeps focus moved into the new screen).
  • With no option set, FR15, FR17–FR19 and FR21 change released behavior: verified against main's stack.
  • The API is additive and each option is opt-in: verified (Public concepts defaults).
  • AR3 and AR5 join the requirement gaps: verified (the new gap line matches main, where the screen scroller already has scroll-area keyboard access and no content scroller or hidden bar exists).
  • main falls short of PR3: verified (the stack imports Core's internal touch entry); the in-flight repair and #11450's deferred load describe pending work and were not checked.
  • The unused options cost 1,214 B together, and PR2 needs each under 307 B: arithmetic verified; the measurement describes the preview pull request.
  • The preview pull request's prototypes, tests, demos and benchmarks: not checked; they describe another pull request.
  • Writing rubric results R1–R7: verified.
  • Knowledge validation, Prettier and the whitespace check pass: verified.
  • The public text carries no internal context: verified.

Files:

  • docs/specs/components/NavigationStack/NavigationStack.spec.md: clear.

Automated review (maintainer link)

The prepared push's verification row adds a physical iPhone's film of
the built press path: the touch to the pressed row's paint, and the lift
to the push's first moved frame.
inert is the isolation of a screen not on view, chosen on what it
covers, with no guard during a change. FR22 and retainedLayout leave
the record with their speed claim; a prepared screen alone stays laid
out while hidden. FR23 states the pop a phone shows with no motion as
a gap, and its verification row adds a 60 fps film.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the draft component:NavigationStack record, and two fixes are needed either way.

  • The "Released default preserved: no" list (NavigationStack.spec.md:73-84) names FR15, FR17, FR18–FR19 and FR21 and then says "Every other behavior needs an option.", while the glance row, the compatibility class and the new gap line make FR23 a default change too; add FR23 to that list with what it changes against the released stack.
  • The description's writing-rubric results no longer match the record: R7 says PR1 states an unmeasured prepared-screen exception, which PR1 does not; R4 lists rejected alternatives in DEC-2, DEC-9 and DEC-13, while DEC-14 now has one; and that line reports a phone result in the past tense, against R1 and R2.

The record adds requirements no current record states (FR1–FR21, FR23, AR1–AR5, PR1–PR3, ORD1–ORD2, AV1–AV2 and DEC-1–DEC-15), including new Lab API and the default changes above. An engineering owner records the decision, whole or in part, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The twelve decision parts match the record's FR, AR, PR and DEC text, with retainedLayout and FR22 now withdrawn: verified.
  • Current records already decide the press a scroll takes, intent loading and the unused-option budget: verified (spec:AST-094 FR20; architecture:component-import-boundaries INV2, INV10).
  • No NavigationStack record exists on main: verified.
  • The four pull requests that changed the stack's code are on main, and no open pull request conflicts: verified; two open drafts overlap the record without contradicting it (a React Native platform record of the same component, and a rename of push's source option) and are not named.
  • The record states the behavior the three landed repairs ship and leaves the platform-animated back out of scope: verified.
  • With no option set, FR15, FR17–FR19, FR21 and FR23 change released behavior: verified against main's stack; FR21's inert timing for a push now matches main, and only its focus moves differ.
  • The "Released default preserved" list names every default change: false; FR23 is missing (reported above).
  • The writing rubric results R1, R2, R4 and R7: false for DEC-14's rejected line and PR1 (reported above).
  • The API is additive and each option is opt-in: verified.
  • AR3 and AR5 join the requirement gaps: verified against main.
  • main falls short of PR3: verified (the stack imports Core's internal touch entry); the in-flight repair and the deferred-load work describe pending work and were not checked.
  • The unused options cost 1,214 B together, and PR2 needs each under 307 B: arithmetic verified; the measurement describes the preview pull request.
  • The preview pull request's prototypes, tests, demos and device benchmarks: not checked; they describe another pull request, and its device results are read from this description's text.
  • Knowledge validation, Prettier and the whitespace check pass: verified.
  • The public text carries no internal context: verified.

Files:

  • docs/specs/components/NavigationStack/NavigationStack.spec.md: two findings above; otherwise clear.

Automated review (maintainer link)

The released-default list adds FR23, as the glance row and the
compatibility class have it. DEC-14's rejected alternative states its
reason in the present tense.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the draft component:NavigationStack record; no record fix is required before that decision, and the two fixes asked for at the last revision are in.

The record adds requirements no current record states (FR1–FR21, FR23, AR1–AR5, PR1–PR3, ORD1–ORD2, AV1–AV2 and DEC-1–DEC-15), including new Lab API and default changes with no option set in FR15, FR17–FR19, FR21 and FR23. An engineering owner records the decision, whole or in part, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.

  • Non-blocking: FR5 gives every mounted screen top, covered, hidden or prepared, but a pop's leaving screen, painted over the revealed screen until the pop settles, is none of them; saying which state the leaving and revealed screens read from a pop's first commit would close it (inline note).
Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The twelve decision parts match the record's FR, AR, PR and DEC text: verified.
  • Current records already decide the press a scroll takes, intent loading and the unused-option budget: verified (the touch record's FR20; the import-boundaries record's INV2 and INV10).
  • No NavigationStack record exists on main: verified.
  • The four pull requests that changed the stack's code are on main, and no open pull request conflicts: verified; two open drafts overlap the record without contradicting it (a React Native platform record of the same component, and a rename of push's source option) and are not named.
  • The record states the behavior the three landed repairs ship and leaves the platform-animated back out of scope: verified.
  • With no option set, FR15, FR17–FR19, FR21 and FR23 change released behavior: verified against main's stack, FR23 from the description's phone statement.
  • The default-change list, the glance rows and the compatibility class name the same changes, FR23 included: verified.
  • The API is additive and each option is opt-in: verified.
  • AR3 and AR5 join the requirement gaps, and FR20 and FR13's kept focus leave them: verified against main.
  • main falls short of PR3: verified (the stack imports Core's internal touch entry); the in-flight repair and the deferred-load work describe pending work and were not checked.
  • The unused options cost 1,214 B together, and PR2 needs each under 307 B: arithmetic verified; the measurement describes the preview pull request.
  • The preview pull request's prototypes, tests, demos and phone readings: not checked; they describe another pull request, and its phone results are read from this description's text.
  • The writing rubric results R1–R7: verified, including DEC-14's one-line rejection and the gap lines against main.
  • Knowledge validation, Prettier and the whitespace check pass: verified.
  • The public text carries no internal context: verified.

Files:

  • docs/specs/components/NavigationStack/NavigationStack.spec.md: one non-blocking note (FR5); otherwise clear.

Automated review (maintainer link)

FR5 says what the revealed and the leaving screen read from a pop's
first commit to its settle, and its verification row tests that pop.
On a physical iPhone a push or pop from rest often presents its first
frame well into its curve, with no other work. The gap line, the
released-default list and FR23's verification row now say so, and the
row names the screen film as the only evidence on iOS.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the draft component:NavigationStack record, and one description fix is needed either way.

The record adds requirements no current record states (FR1–FR21, FR23, AR1–AR5, PR1–PR3, ORD1–ORD2, AV1–AV2 and DEC-1–DEC-15), including new Lab API and default changes with no option set in FR15, FR17–FR19, FR21 and FR23, and at this revision FR23's default change covers every push or pop from rest. An engineering owner records the decision, whole or in part, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.

  • Miss: the description says "The record states the behavior #12001, #12009 and #12010 ship", but the record lists the start #12010 ships as FR23's default change and gap on a phone (lines 83–85 and 183), so that line should say the record states what #12001 and #12009 ship and that FR23 holds #12010's start to the first presented frame.

  • Non-blocking: FR5's rule that a back swipe changes no state until its release has no case in FR5's verification row (inline note).

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The twelve decision parts match the record's FR, AR, PR and DEC text: verified.
  • Current records already decide the press a scroll takes, intent loading and the unused-option budget: verified (the touch record's FR20; the import-boundaries record's INV2 and INV10).
  • No NavigationStack record exists on main: verified.
  • The four pull requests that changed the stack's code are on main, and no open pull request conflicts: verified; two open drafts overlap the record without contradicting it (a React Native platform record of the same component, and a rename of push's source option) and are not named.
  • The record states the behavior the landed repairs for content under the bar and kept focus ship: verified; that it states the behavior the start-from-rest repair ships: false (FR23 lists that start as a gap); the platform-animated back stays out of scope: verified.
  • With no option set, FR15, FR17–FR19, FR21 and FR23 change released behavior: verified against main's stack, FR23 from the description's phone statement.
  • The default-change list, the glance rows and the compatibility class name the same changes: verified.
  • The API is additive and each option is opt-in: verified.
  • main falls short of PR3: verified (the stack imports Core's internal touch entry); the in-flight repair and the deferred-load work describe pending work and were not checked.
  • The unused options cost 1,214 B together, and PR2 needs each under 307 B: arithmetic verified; the measurement describes the preview pull request.
  • The preview pull request's prototypes, tests, demos and phone readings: not checked; they describe another pull request, and its phone results are read from this description's text.
  • The writing rubric results R1–R7: verified; R7's FR23 line names only the tapped pop, while the gap now covers every change from rest.
  • Knowledge validation, Prettier and the whitespace check pass: verified.
  • The public text carries no internal context: verified.

Files:

  • docs/specs/components/NavigationStack/NavigationStack.spec.md: one non-blocking note (FR5's verification row); otherwise clear.

Automated review (maintainer link)

FR5's verification row adds a back swipe the finger reverses, in which
no screen changes state.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the draft component:NavigationStack record; no blocking fix is needed.

The record adds requirements no current record states (FR1–FR21, FR23, AR1–AR5, PR1–PR3, ORD1–ORD2, AV1–AV2 and DEC-1–DEC-15), including new Lab API and default changes with no option set in FR15, FR17–FR19, FR21 and FR23. An engineering owner records the decision, whole or in part, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The description's line about the start-from-rest repair and FR5's back-swipe verification, both flagged last time, are fixed.

  • Non-blocking (missed in earlier reviews): FR16 does not say which cause onTransition reports for a change made through the stack's API (push, pop, popToRoot or a useNavigationLink activation), and its verification row tests only Back, swipes and a path change (inline note).
Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The twelve decision parts match the record's FR, AR, PR and DEC text: verified.
  • Current records already decide the press a scroll takes, intent loading and the unused-option budget: verified (the touch record's FR20; the import-boundaries record's INV2 and INV10).
  • No NavigationStack record exists on main: verified.
  • The four pull requests that changed the stack's code are on main, and no open pull request conflicts: verified; two open drafts overlap the record without contradicting it (a React Native platform record of the same component, and a rename of push's source option).
  • The record states what the landed repairs for content under the bar and kept focus ship, and FR23 holds the start-from-rest repair's start to the first presented frame: verified; the platform-animated back stays out of scope: verified.
  • With no option set, FR15, FR17–FR19, FR21 and FR23 change released behavior: verified against main's stack, FR23 from the description's phone statement.
  • The API is additive and each option is opt-in: verified.
  • main falls short of PR3: verified (the stack imports Core's whole internal touch entry); the in-flight repair and the deferred-load work describe pending work and were not checked.
  • The unused options cost 1,214 B together, and PR2 needs each under 307 B: arithmetic verified; the measurement describes the preview pull request.
  • The preview pull request's prototypes, tests, demos and phone readings: not checked; they describe another pull request, and its phone results are read from this description's text.
  • The writing rubric results R1–R7: verified; R7's FR23 line names only the pop a phone shows with no motion, while the gap also covers changes with no other work.
  • Knowledge validation, Prettier and the whitespace check pass: verified.
  • The public text carries no internal context: verified.

Files:

  • docs/specs/components/NavigationStack/NavigationStack.spec.md: one non-blocking note (FR16's causes); otherwise clear.

Automated review (maintainer link)

FR16's path-change cause covers a change through the stack's API as
well as the app setting the path directly, and its verification row
tests each.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision on the draft component:NavigationStack record; no fix is needed.

The record adds requirements no current record states (FR1–FR21, FR23, AR1–AR5, PR1–PR3, ORD1–ORD2, AV1–AV2 and DEC-1–DEC-15), including new Lab API and, with no option set, default changes in FR15, FR17–FR19, FR21 and FR23. An engineering owner records the decision, whole or in part, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. The earlier note on FR16 is fixed: it now names a change made through the stack's API as a path-change cause, and its verification row tests each source.

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • The twelve decision parts match the record's requirement and decision text: verified.
  • Current records already decide the press a scroll takes, intent loading and the unused-option budget: verified (the touch record's FR20; the import-boundaries record's INV2 and INV10).
  • No NavigationStack record exists on main: verified.
  • The four pull requests that changed the stack's code are on main, and no open pull request conflicts: verified; two open drafts overlap the record without contradicting it (a React Native platform record of the same component, and a rename of push's source option).
  • The record states what the landed repairs for content under the bar and kept focus ship, FR23 holds the landed start-from-rest repair to the first presented frame, and the platform-animated back stays out of scope: verified.
  • With no option set, FR15, FR17–FR19, FR21 and FR23 change released behavior: verified against main's stack, FR23 from the description's stated phone results.
  • The API is additive and each new option is opt-in: verified.
  • main falls short of PR3: verified (the stack imports Core's whole internal touch entry); the in-flight repair and the deferred-load work describe pending work and were not checked.
  • The unused options cost 1,214 B together, and PR2 needs each under 307 B: arithmetic verified; the measurement describes the preview pull request.
  • The preview pull request's prototypes, tests, demos and phone readings: not checked; they describe another pull request, and its phone results are read from this description's text.
  • The writing rubric results R1–R7: verified; R7's FR23 line names only the tapped pop, while the gap also covers changes with no other work.
  • Knowledge validation, Prettier and the whitespace check pass: verified.
  • The public text carries no internal context: verified.

Files:

  • docs/specs/components/NavigationStack/NavigationStack.spec.md: clear.

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — 89eab235 Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant