Skip to content

spec: React Server Components render presentational paths on the server - #11050

Draft
cixzhang wants to merge 7 commits into
mainfrom
specs/rsc-architecture
Draft

cixzhang wants to merge 7 commits into
mainfrom
specs/rsc-architecture

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

How Astryx components render inside React Server Components: which parts render on the server, which load on the client, how a build is selected, and what stays the same for callers. No current record owns React Server Component boundaries; architecture:component-style-authoring leaves them to a separate owner.

Design source: #8443 by @rhagigi. His review is invited.

Existing authority searched

  • Records: architecture:component-style-authoring (delegates "React module boundaries" and audit row T30 to a future owner), architecture:public-component-api (INV1, INV9, INV12), architecture:internationalization (INV13: translation stays client context), architecture:theme-application (themes with functions are passed from client code), spec:AST-080 (package stylesheets and source builds), family:buttons, family:navigation-destinations.
  • Paths and symbols: packages/core/package.json exports, scripts/sync-exports.js, scripts/check-use-client.mjs, packages/core/src/serverSafeComponents.test.ts, Text, Heading, Kbd, Button, IconButton, TopNav, TopNavItem.
  • Terms: react-server, 'use client', 'use server', server component, RSC, server-safe, client island.
  • Open pull requests: perf(core): render Text, Heading, Kbd, Button, IconButton and TopNav in React Server Components #8443 (the implementation this spec is based on). No other open pull request claims RSC boundaries or the AST-113 id.

Decision

Owner decision, 2026-11-10 (Cindy). The draft record is spec:AST-113 at docs/specs/AST-113-server-components/spec.md, with an implementation plan beside it.

  • Server builds with small client parts (DEC-1). Presentational paths render on the server; client parts read context or handle interaction and load only when the props or client providers that need them are present. No prop or behavior changes. A family gains its server build in one change of its own; Text and Heading go first (plan, phase 1), then Kbd once OQ3 is answered and the next family (phase 2).
  • No new public API (DEC-2, FR3, FR4). No new props, exports or import paths. A react-server condition in the package's exports, listed first, selects the server build; the default condition keeps today's client build. The same import {Button} from '@astryxdesign/core' resolves the server build inside React Server Components.
  • Directives, styles, React, DOM (DEC-3, FR5 to FR8). Client parts start with 'use client'; Astryx never ships 'use server'. CSS imported by server modules renders with them. The package works when bundled with react as a peer dependency. Server and client builds render identical initial DOM, so hydration never mismatches.
  • The first paint is final (FR6, aligned with spec:AST-013 FR9). Nothing a person sees changes after hydration: no layout shift and no swap of content, presentation or behavior between the server HTML and the first client frame, on a touch phone and a desktop with a mouse. A component that can't meet this has no server build.
  • Server HTML behaves before hydration (FR12). Links navigate as the client build's do, a disabled control doesn't submit or navigate, grouped styling is present; otherwise the render routes to the client build. Named cases: a link under a LinkProvider; Button and IconButton inside ButtonGroup, InputGroup, Toolbar or SideNav; a disabled ButtonGroup; TopNav in AppShell's drawer. FR12 gap: a disabled ButtonGroup's submit Button submits its form before hydration today, in the client build too.
  • Built theme stylesheet (FR13). A server page loads the built theme stylesheet; a runtime theme injects CSS after JavaScript loads and breaks the first paint.
  • React's own limits (DEC-4, FR9). A Server Component cannot receive functions or read context, so components given handlers, render props, refs or a component as, and every provider, stay client.
  • Evidence (FR10, Verification). Server render tests, the import-graph walk in serverSafeComponents.test.ts, a DOM-parity check, a hydration test (renderToString then hydrateRoot with onRecoverableError), a first-frame visual check on a touch phone and a mouse desktop, a pre-hydration behavior test with JavaScript off, and a bundle check that a server page ships zero Astryx client JavaScript for Text and Heading. Kbd is out of that set: its labels are translated and Apple modifier glyphs change after load (OQ3). Supported: frameworks and bundlers that honor the react-server condition (verified in a Next.js App Router app and a second RSC bundler).

The record carries the per-component client-part table (Text and Heading, then Button, IconButton, TopNav and TopNavItem), a table of the props and contexts that defeat the saving (Button, IconButton, TopNav and TopNavItem are gated in apps with a LinkProvider: links save nothing), and states today's mismatches as FR4, FR5 and FR12 gaps.

Who benefits

The saving applies when a page's tree is mostly Server Components. There, an Astryx server build is real HTML with no client code, and only the client parts a page actually needs download, pre-bundled and sent early. In a client-heavy tree, a component rendered under a client ancestor is part of that ancestor's client code and waits for it to hydrate, so the saving shrinks or disappears. Any per-component number is a best case (server-component-heavy page).

Rejected alternatives

  • Every component stays a client module (today's rule made official): a server page keeps shipping the whole client implementation of each component it renders.
  • Server-only builds with no client parts: they lose the provider size cascade, ButtonGroup membership, and LinkProvider resolution.

Claim scope and non-goals

The record governs how a component splits into a server build and client parts, how the build is selected, and the parity, style, directive and dependency rules both builds meet. It does not govern server-side translation, data fetching or Server Actions, or which family is next (OQ1). Every component keeps its own contract.

Open questions:

  • OQ1: which family gains a server build next.
  • OQ2: how CI runs the two-bundler verification.
  • OQ3: how Kbd renders on the server (server-side translation, or English-only labels).
  • OQ4: whether AppShell renders one markup tree with CSS-only breakpoints and drawer state; the answer belongs to AppShell's own record.

Evidence and implementation relationship

#8443 implements this design for Text, Heading, Kbd, Button, IconButton and TopNav: react-server server shells, shared server-safe style and markup modules so both renderers emit identical DOM, client parts loaded only when props or client providers need them, and an extended serverSafeComponents.test.ts that holds each server entry to its declared client parts. The record stays valid without it.

architecture:component-style-authoring gains one appended sentence that routes React module boundaries to this record.

Writing rubric results

  • R1 narration: none. Intent and requirements are present tense, including FR6, FR12 and FR13 and the saving-defeat table; today's mismatches are FR4, FR5 and FR12 gap lines.
  • R2 research in the record: none. Bundle sizes, test counts and the hydration measurements stay out of the record; it keeps their conclusions as requirements (FR6, FR10, FR12, FR13) and OQ3 and OQ4.
  • R3 evidence naming a change: none. Verification cites the test, check, or browser evidence.
  • R4 rejected alternatives over one line or outside a decision: two, both one Rejected: line inside DEC-1.
  • R5 pull request or issue references remaining: none in the record or the plan.
  • R6 ruled open questions still listing options: none. OQ1 to OQ4 are unanswered and keep their candidates.
  • R7 project status (build status or work order): none in the record. Work order (Text and Heading in phase 1; Kbd and the next family in phase 2) and the inventory of twelve client-only components live in plan.md; DEC-1 keeps only the rule that a family gains its server build in one change of its own.

Scope

Components: Text, Heading, Kbd, Button, IconButton, TopNav, TopNavItem (Kbd: renders through its client build)

  • 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. The react-server export condition is the one named mechanism; RSC bundlers select builds by it.
  • 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
  • pnpm specs:for --diff origin/main
  • Prettier
  • git diff --check

Co-authored-by: rhagigi [email protected]

Add the draft system spec spec:AST-113 and its implementation plan.
Presentational paths render on the server, and small client parts read
context or handle interaction. A react-server export condition selects
the build, so callers see no new public API. Server and client builds
render identical initial DOM. Route React module boundaries from
architecture:component-style-authoring to the new record.

Co-authored-by: rhagigi <[email protected]>
@vercel

vercel Bot commented Nov 10, 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 18, 2026 10:25pm UTC

Request Review

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

astracat-bot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 18, 2026, 10:32 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 10, 2026
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@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 new draft record spec:AST-113, and three defects in the record need fixing either way.

spec:AST-113 adds requirements that no current record states (FR1–FR10, the Client parts table and DEC-1–DEC-4). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.

Blocking

  • The Kbd row, FR1 and FR10 give Kbd a client part only for mod, but current component:Kbd FR3 also switches ctrl, alt, shift and meta to Apple glyphs after hydration and FR4 takes each named key's spoken name and the joiner from the translator, which architecture:internationalization INV13 keeps in client context, so the row has to cover any modifier and catalog text.
  • FR1 and the Text row give a Text with maxLines and hasTruncateTooltip={false} no client part, but Text passes its clamp to a nested Link through a client context, so component:Link FR6 ("A Link inside a Text with maxLines MUST truncate with that text") breaks unless any maxLines above 0 gets a clamp part.
  • The FR1/FR2 verification row fails "a presentational render that references a client part" while the table gives every Button, IconButton, TopNav and TopNavItem an unconditional client part, so FR1 and that failure expectation should exclude the unconditional parts the table declares.

Also worth a look: the record should not carry project status, so drop "(verified in a Next.js App Router app and a second RSC bundler)" and keep the next-family choice (OQ1) in plan.md.

[Automated review]


| Component | Client part references when | Why it needs the client |
| ------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| Text, Heading | an explicit `maxLines` with the truncation tooltip on | measures overflow and shows the full-text tooltip; at `maxLines={0}` it measures nothing and keeps the element mounted |

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.

With hasTruncateTooltip={false} and maxLines above 0 this row (and FR1) gives Text no client part, but Text gives its clamp to a nested Link through a client context (component:Text owns the clamp; component:Link FR6: "A Link inside a Text with maxLines MUST truncate with that text"). A server Text with no client module cannot provide it. Suggest a clamp-scope part for any maxLines above 0, tooltip on or off.

### Platform support

- Supported environments: frameworks and bundlers that honor the
react-server condition (verified in a Next.js App Router app and a second

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.

Non-blocking: "(verified in a Next.js App Router app and a second RSC bundler)" reports what has been verified so far rather than a requirement, and OQ2 still leaves that check open. Suggest dropping the parenthetical and keeping the supported-environment rule.

@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 new draft record spec:AST-113, and five defects in the record need fixing either way.

spec:AST-113 adds requirements that no current record states (FR1–FR11, the Client parts table and DEC-1–DEC-4). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.

Blocking

  • The Kbd row, FR1 and FR10 give Kbd a client part only for mod, but current component:Kbd FR3 also switches ctrl, alt, shift and meta to Apple glyphs after hydration and FR4 takes spoken names and the joiner from the translator, which architecture:internationalization INV13 keeps in client context, so the row has to cover any modifier, catalog-backed key or multi-key shortcut.
  • FR11 says a client part only adds behavior after hydration and its check fails a component that changes the server HTML when its client part loads, which fails the record's own Kbd row and current component:Kbd FR3/FR4 (on a Mac, "Ctrl K" named "Control + K" becomes "⌘ K" named "Command + K" after hydration, as spec:AST-013 FR9 allows), so FR11 should follow FR6's window and forbid only suspended or fallback HTML.
  • FR11's "no Astryx component, provider, or layout wraps an application subtree in one" also covers Markdown, which wraps each plugin renderer's output in a Suspense fallback as current spec:AST-064 FR8 and component:Markdown require, so scope that sentence to server builds and their client parts or name the Markdown plugin fallback as allowed.
  • FR1 and the Text row give a Text with maxLines and hasTruncateTooltip={false} no client part, but Text passes its clamp to a nested Link through a client context, so component:Link FR6 ("A Link inside a Text with maxLines MUST truncate with that text") breaks unless any maxLines above 0 gets a clamp part.
  • The FR1/FR2 verification row fails "a presentational render that references a client part" while the table gives every Button, IconButton, TopNav and TopNavItem an unconditional client part, so FR1 and that failure expectation should exclude the unconditional parts the table declares.

Also worth a look: the record should not carry project status, so drop "(verified in a Next.js App Router app and a second RSC bundler)", and the description's decision list does not mention FR11 yet.

[Automated review]

Comment on lines +137 to +138
MUST NOT add a Suspense boundary, and no Astryx component, provider, or
layout wraps an application subtree in one. A client part MUST NOT suspend

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.

"No Astryx component, provider, or layout wraps an application subtree in one" also covers Markdown, which wraps each plugin renderer's output in <Suspense fallback={fallback}> (Markdown.tsx, MarkdownPluginNodeRenderer.tsx) as current spec:AST-064 FR8 ("inside core's error boundary and suspense fallback") and component:Markdown require. Suggest scoping this sentence to server builds and their client parts, or naming the Markdown plugin fallback as an allowed boundary.

cixzhang and others added 2 commits November 10, 2026 13:40
…e hydration

FR6 also forbids any visible change after hydration (spec:AST-013 FR9); FR12
holds pre-hydration behavior to the client build's and names the cases that
route to it; FR13 requires the built theme stylesheet. Kbd leaves the
zero-client-JavaScript set (OQ3). The client-part section lists the props and
contexts that defeat the saving, with LinkProvider gating. The plan puts Text
and Heading in phase 1 and Kbd with the next family in phase 2.

Co-authored-by: rhagigi <[email protected]>

@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 new draft record spec:AST-113, and six defects in the record need fixing either way.

spec:AST-113 adds requirements that no current record states (FR1–FR13, the Client parts table, the table of props and contexts that defeat the saving, and DEC-1–DEC-4). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.

Blocking

  • Miss: the TopNav rows give a TopNav in AppShell's mobile bar a server build whose only client part "adds no DOM", but current component:TopNav FR5 renders a different mobile-bar markup (heading, end content and drawer toggle, no start or center items) and the record's own OQ4 says TopNav inside AppShell renders through its client build, so route TopNav inside AppShell to the client TopNav in the table, FR12 and the defeat table.
  • The Text row, FR1 and FR10 give a Text with maxLines and hasTruncateTooltip={false} no client part, but Text passes its clamp to a nested Link through a client context, so component:Link FR6 ("A Link inside a Text with maxLines MUST truncate with that text") breaks unless any maxLines above 0 gets a clamp part.
  • FR12's gap names only a disabled ButtonGroup, but current component:Button FR10 gives every disabled Button, isDisabled included, aria-disabled and no disabled attribute, so any disabled submit Button submits its form before hydration in either build; widen the gap and drop or explain the disabled-ButtonGroup routing case.
  • FR11's "no Astryx component, provider, or layout wraps an application subtree in one" also covers Markdown's plugin Suspense fallback, which current spec:AST-064 FR8 requires, so scope that sentence to server builds and their client parts.
  • FR12 routes every Button and IconButton inside a Toolbar or SideNav to the client build, while the defeat table does so only with no explicit size and FR2 limits client references to the tables' conditions, so narrow FR12 to match.
  • The FR1/FR2 verification row fails "a presentational render that references a client part" while the table gives every Button, IconButton, TopNav and TopNavItem an unconditional client part, so exclude the unconditional parts the table declares there and in FR1.

Also worth a look: drop "(verified in a Next.js App Router app and a second RSC bundler)" from Platform support, since a record does not carry project status.

[Automated review]

Comment on lines +183 to +185
| TopNav | every server-rendered TopNav: a frame, and a slot scope per slot section | reads the AppShell render mode (desktop bar, mobile bar, drawer) and sets the slot context menus read; adds no DOM |
| TopNav | no `label` | translates the default landmark label |
| TopNav | the AppShell drawer, a `ref`, or a function prop | the client TopNav |

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.

These rows give a TopNav in AppShell's mobile bar a server build whose frame "adds no DOM", and route only the drawer copy to the client TopNav. Current component:TopNav FR5 makes mobile-bar mode render the heading, end content and drawer toggle with no start or center content, which a server build cannot produce, and OQ4 in this record says TopNav inside AppShell renders through its client build. Suggest routing TopNav inside AppShell (at least its mobile bar) to the client TopNav here, in FR12 and in the defeat table.

Comment on lines +158 to +159
build: a link under a LinkProvider; Button and IconButton inside ButtonGroup,
InputGroup, Toolbar, or SideNav; a disabled ButtonGroup; and TopNav inside

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.

This routes every Button and IconButton inside a Toolbar or SideNav to the client build, but the defeat table loads the full client Button there only "with no explicit size", and FR2 limits client references to the tables' conditions. Toolbar and SideNav only provide a size, so suggest "inside Toolbar or SideNav with no explicit size" here.


| Contract | Verification | Representative states | Mutation or failure expectation |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| FR1, FR2 | Server render tests that load React's `react-server` build and swap each `'use client'` module for a client reference | Text and Heading with and without `maxLines` and the truncation tooltip; presentational and interactive Button and TopNav props | A hook in a server module throws; a presentational render that references a client part fails |

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.

This failure expectation ("a presentational render that references a client part fails") fires on every conforming Button, IconButton, TopNav and TopNavItem, because the Client parts table gives each an unconditional client part (context gate, frame, gate). Suggest "references no client part beyond the unconditional ones the table declares" here and in FR1's first sentence.

@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 new draft record spec:AST-113, and six defects in the record need fixing either way.

spec:AST-113 adds requirements that no current record states (FR1–FR13, the Client parts table, the table of props and contexts that defeat the saving, and DEC-1–DEC-4). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.

Blocking

  • The TopNav rows give a TopNav in AppShell's mobile bar a server build whose only client part "adds no DOM", but current component:TopNav FR5 renders a different mobile-bar markup (heading, end content and drawer toggle, no start or center items) and the record's own OQ4 says TopNav inside AppShell renders through its client build, so route TopNav inside AppShell to the client TopNav in the table, FR12 and the defeat table.
  • The Text row, FR1 and FR10 give a Text with maxLines and hasTruncateTooltip={false} no client part, but Text passes its clamp to a nested Link through a client context, so component:Link FR6 ("A Link inside a Text with maxLines MUST truncate with that text") breaks unless any maxLines above 0 gets a clamp part.
  • FR12's gap names only a disabled ButtonGroup, but current component:Button FR10 requires every disabled Button, isDisabled included, to stay focusable with aria-disabled, and Button renders no disabled attribute, so any disabled submit Button submits its form before hydration in either build; widen the gap and drop or explain the disabled-ButtonGroup routing case.
  • FR11's "no Astryx component, provider, or layout wraps an application subtree in one" also covers Markdown's plugin Suspense fallback, which current spec:AST-064 FR8 requires, so scope that sentence to server builds and their client parts.
  • FR12 routes every Button and IconButton inside a Toolbar or SideNav to the client build, while the defeat table does so only with no explicit size and FR2 limits client references to the tables' conditions, so narrow FR12 to match.
  • The FR1/FR2 verification row fails "a presentational render that references a client part" while the Client parts table gives every Button, IconButton, TopNav and TopNavItem an unconditional client part, so exclude the unconditional parts the table declares there and in FR1.

Also worth a look: drop "(verified in a Next.js App Router app and a second RSC bundler)" from Platform support, and say in OQ5 that its separate-condition candidate would change FR4's "client build everywhere else".

[Automated review]

rendering faster?** (`checkable`) A client build carries effect, gesture,
and animation code that never runs while a server renders it to HTML.
Candidates: the `react-server` condition alone (which serves only React
Server Components); or a separate condition for server rendering of client

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.

Non-blocking: this candidate resolves a separate build when a server renders client components, while FR4 requires the client build "everywhere else" than React Server Components. Suggest naming that FR4 consequence in the candidate, so the owner sees the amendment it implies.

component-style-authoring.md keeps this branch's AST-113 sentence and
main's component-import-boundaries sentence.

@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 new draft record spec:AST-113, and nine defects need fixing either way.

spec:AST-113 adds requirements that no current record states (FR1–FR13, the Client parts table, the table of props and contexts that defeat the saving, and DEC-1–DEC-4). An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner.

Blocking

  • The TopNav rows give a TopNav in AppShell's mobile bar a server build whose only client part "adds no DOM", but current component:TopNav FR5 renders a different mobile-bar markup (heading, end content and drawer toggle, no start or center items) and the record's own OQ4 says TopNav inside AppShell renders through its client build, so route TopNav inside AppShell to the client TopNav in the table, FR12 and the defeat table.
  • Regression: current component:Button FR18 shows a cut label in full in a tooltip on keyboard focus, but the Button rows give that behavior no client part (the gate only reads contexts and installs the press controller), so name the part that carries it for every labelled Button with no caller tooltip.
  • The Text row, FR1 and FR10 give a Text with maxLines and hasTruncateTooltip={false} no client part, but Text passes its clamp to a nested Link through a client context, so component:Link FR6 ("A Link inside a Text with maxLines MUST truncate with that text") breaks unless any maxLines above 0 gets a clamp part.
  • Regression: the FR12 gap (and the description) says a disabled ButtonGroup's submit Button submits its form on a click before hydration, but current component:Button FR10 renders a disabled submit or reset Button type="button" until hydration, so replace the gap with what stays open (Enter in a single-field form) and say which part gives a server-build disabled submit Button the caller's type after hydration.
  • FR11's "no Astryx component, provider, or layout wraps an application subtree in one" also covers Markdown's plugin Suspense fallback, which current spec:AST-064 FR8 requires, so scope that sentence to server builds and their client parts.
  • FR12 routes every Button and IconButton inside a Toolbar or SideNav to the client build, while the defeat table does so only with no explicit size and FR2 limits client references to the tables' conditions, so narrow FR12 to match.
  • The FR1/FR2 verification row fails "a presentational render that references a client part" while the Client parts table gives every Button, IconButton, TopNav and TopNavItem an unconditional client part, so exclude the unconditional parts the table declares there and in FR1.
  • Newly live check: the description says no other open pull request claims this work, but #11105 is open, implements spec:AST-113 for Text and Heading and cites it, so name it under Existing authority searched.
  • Newly live check: the writing rubric results report no project status in the record, but Platform support keeps "(verified in a Next.js App Router app and a second RSC bundler)", so drop the parenthetical or report it under R7.

Also worth a look: name architecture:component-import-boundaries in affects_architecture and Current-state impact, say in OQ5 that its separate-condition candidate would change FR4's "client build everywhere else", and narrow the component-style-authoring pointer, which says the draft states boundaries it does not cover (barrels, built output).

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • No current record owns React Server Component boundaries, and the style-authoring record delegates them and audit row T30 to a future owner: verified (component-style-authoring.md:233-236, :263).
  • The authority searched includes the public API, internationalization (translation is client context), theme application (function themes come from client code) and package stylesheet records: verified against the current records.
  • No other open pull request claims this work or the record id: false (#11105 is open and cites it).
  • Server builds with small client parts, Text and Heading first and Kbd after OQ3: verified (DEC-1; plan phases 1 and 2).
  • No new props, exports or import paths; a react-server condition listed first selects the server build: verified (FR3, FR4, DEC-2).
  • Client parts carry 'use client', no 'use server' ships, and both builds render identical first DOM: verified (FR5–FR8, DEC-3).
  • Nothing a person sees changes after hydration: verified as record text (FR6, consistent with spec:AST-013 FR9).
  • Server HTML behaves like the client build's before hydration, with named routing cases: verified as record text (FR12).
  • A disabled ButtonGroup's submit Button submits its form before hydration today, in the client build too: false (component:Button FR10; Button renders type="button" while hydrating).
  • Server pages load the built theme stylesheet: verified (FR13).
  • Functions, refs, a component as and providers stay on the client build: verified (FR9, DEC-4).
  • The evidence list (server render, import-graph walk, DOM parity, hydration, first frame, pre-hydration, bundle check, Kbd outside the zero-JavaScript set): verified (Verification table).
  • Supported environments honor the react-server condition: verified, apart from the "verified in" parenthetical (finding above).
  • The record carries both tables and states today's mismatches as FR4, FR5 and FR12 gaps: verified; the FR4 and FR5 gaps hold on the base branch (no react-server condition; 'use client' in the root entry, Text and Heading); the FR12 gap is the finding above.
  • Two rejected alternatives, each one line inside DEC-1: verified.
  • The style-authoring record gains one appended sentence: verified (component-style-authoring.md:236-237).
  • No pull request or issue references in the record or plan: verified.
  • No project status in the record: false (Platform support parenthetical).
  • No internal context in public text: verified (added lines, title, body, branch and commit messages).
  • The knowledge check passes: verified (pnpm check:knowledge passes at this head with no warning for these records).
  • #8443 is the implementation this design is based on: verified that it is open with that scope; its code is not reviewed here.

Files:

  • docs/specs/AST-113-server-components/spec.md: the seven record findings above, plus the OQ5 and import-boundaries notes.
  • docs/specs/AST-113-server-components/plan.md: clear.
  • docs/architecture/component-style-authoring.md: non-blocking pointer note; the merge kept the base branch's import-boundaries sentence beside it.

Automated review (maintainer link)

Comment on lines +179 to +181
| Button | every server-rendered Button: a context gate | reads the size, ButtonGroup, InputGroup, and LinkProvider contexts and installs the shared touch press controller |
| Button | `icon` is set: an icon size scope | the icon slot's default size is a context provider; it adds no DOM |
| Button | `clickAction`, `isLoading`, `tooltip`, a `ref`, a function prop, a component `as`, or a provider that changes its output | the client Button: fire-once actions, the loading spinner and live region, tooltip triggers, refs and handlers |

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.

Regression: current component:Button FR18 shows the full label in a tooltip when keyboard focus reaches a Button whose label is cut short and no caller tooltip describes it, measured on focus. None of these rows carries that: the context gate only reads contexts and installs the press controller, and the client Button loads only for tooltip, clickAction, isLoading, refs, functions or as. Suggest naming the part that does it for every labelled Button with no caller tooltip (the gate, or a cut-label part), here and in the defeat table.

Comment on lines +161 to +163
- FR12 gap: in a disabled ButtonGroup, a submit Button renders with
`aria-disabled` and no `disabled` attribute, so a click before hydration
submits its form, in the client build too.

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.

Regression: current component:Button FR10 now reads "Before hydration, a disabled submit or reset Button renders type="button", so its server markup cannot submit or reset its form", so a click no longer submits in the client build. What stays open is Button's own implicit-submission gap (Enter in a single-field form). Suggest stating that instead, and saying which part gives a server-build disabled submit Button the caller's type after hydration, as FR10 requires.

This branch was successfully deployed

1 active deployment
Preview — 903b6375 Deployed Nov 18, 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. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant