Skip to content

docs(spec): layout props only where Astryx coordinates; one responsive value form - #10127

Draft
cixzhang wants to merge 6 commits into
mainfrom
spec/layout-props-delta
Draft

cixzhang wants to merge 6 commits into
mainfrom
spec/layout-props-delta

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Template builders keep asking for sticky, overflow, grow, and hide props on layout primitives, and they hand-write media queries for responsive headlines. This draft adds one test for when a layout behavior earns a prop, and one shared shape for values that change with screen width, keyed by the theme's width points.

Spec explainer (human view): kept internally with the owner review.

Owner decisions (draft until decided; parked, not yet queued)

  1. Which layout behaviors get a prop (architecture:public-component-api INV26, DEC-12). Recommended A: a prop only when Astryx coordinates the behavior (scroll ownership, region geometry, region gaps, the page shell, width points). Single CSS declarations stay in xstyle, with documented recipes. Alternatives: B, a prop for each common need; C, case by case.
  2. Responsive values (INV27, DEC-13). Recommended A: one shared form for visual props, keyed by the theme's width points (spec:AST-012/DEC-1) and resolved in CSS. Alternatives: B, caller CSS; C, a shape per component.

Current-state impact

  • architecture:public-component-api: INV26, INV27, two verification rows, DEC-12, and DEC-13. Main holds DEC-1 to DEC-10, and DEC-11 is left to draft docs(spec): the interactive element owns a composite's accessible name #10102.
  • If DEC-13 is accepted, family:layout-primitives FR7 ("no shared breakpoint") is updated in this PR before merge.
  • No code changes and no API changes in this PR. No open pull request claims these lines.

@vercel

vercel Bot commented Nov 5, 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 23, 2026 7:36pm UTC

Request Review

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

astracat-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 23, 2026, 7:40 PM UTC

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

github-actions Bot commented Nov 5, 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.

This pull request needs a maintainer check before review continues.

[Automated review]

# Conflicts:
#	docs/architecture/public-component-api.md

@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 is on hold for an owner decision: INV26 (with DEC-4) and INV27 (with DEC-5) add requirements to architecture:public-component-api that no current record states yet, and INV27 changes what family:layout-primitives FR7 currently says. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, on a head that carries the fixes below; the author may do so if they are an engineering owner.

To settle with the decision:

  • Miss: Grid's columns already accepts a responsive object, {minWidth, max?, repeat?}, and INV27 does not say whether a width-keyed object joins it, replaces it, or stays out of columns.
  • INV27's object form has no key for widths below sm (640 px), so which value applies on phones is not stated.

Required changes:

  • Amend family:layout-primitives FR7, AV5 and its responsiveness row in this pull request, because they still say responsiveness has no shared breakpoint and is component-specific, which INV27 contradicts.
  • State in INV27 that the object carries a base value below sm and that each key applies from its point up, inclusive.
  • Add a ## Writing rubric results section to the description, which architecture:knowledge-contracts requires for a record change.
  • Add INV26 and INV27 entries to Known verification gaps, because the sticky and grow recipes, the responsive type tests and the browser checks the new rows name do not exist yet.
  • Cite family:layout-primitives FR6 beside AV4 for StackItem's size="fill", because AV4 covers only scroll behavior.

[Automated review]

# Conflicts:
#	docs/architecture/public-component-api.md

@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 is on hold for an owner decision: INV26 (with DEC-4) and INV27 (with DEC-5) add requirements to architecture:public-component-api that no current record states yet, and INV27 changes what family:layout-primitives FR7 currently says. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, on a head that carries the fixes below; the author may do so if they are an engineering owner.

To settle with the decision:

  • Miss: Grid's columns already accepts a responsive object, {minWidth, max?, repeat?}, and INV27 does not say whether a width-keyed object joins it, replaces it, or stays out of columns.
  • INV27's object form has no key for widths below sm (640 px), so which value applies on phones is not stated.

Required changes:

  • Amend family:layout-primitives FR7, AV5 and its responsiveness row in this pull request, because they still say responsiveness has no shared breakpoint and is component-specific, which INV27 contradicts.
  • State in INV27 that the object carries a base value below sm and that each key applies from its point up, inclusive.
  • Add a ## Writing rubric results section to the description, which architecture:knowledge-contracts requires for a record change.
  • Add INV26 and INV27 entries to Known verification gaps, because the sticky and grow recipes, the responsive type tests and the browser checks the new rows name do not exist yet.
  • Cite family:layout-primitives FR6 beside AV4 for StackItem's size="fill", because AV4 covers only scroll behavior.

[Automated review]

@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 is on hold for an owner decision: INV26 (with DEC-4) and INV27 (with DEC-5) add requirements to architecture:public-component-api that no current record states yet. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, on a head that carries the fixes below; the author may do so as an engineering owner. The decision should also settle whether Grid's existing {minWidth, max?, repeat?} form for columns sits beside a width-keyed object or gives way to it, and which value applies below sm (640 px).

Required changes:

  • Amend family:layout-primitives FR7, AV5 and its responsiveness row in this pull request, because they still say responsiveness has no shared breakpoint and is component-specific, which INV27 contradicts.
  • State in INV27 that the object form carries a base value below sm and that each key applies from its point up, inclusive.
  • Add a ## Writing rubric results section to the description, which architecture:knowledge-contracts requires for a record change.
  • Add INV26 and INV27 entries to Known verification gaps, because the sticky and grow recipes, the responsive type tests and the browser checks the new rows name do not exist yet.
  • Cite family:layout-primitives FR6 beside AV4 for StackItem's size="fill", because AV4 covers only scroll behavior.
  • Miss: Name Stack's shipped isScrollable (overflow: auto) and wrap beside StackItem in INV26, or list them under Known verification gaps, because INV26 otherwise marks them as violations.
  • Newly live check: Correct "No open pull request claims these lines", because #10102 rewrites the same 24 Verification rows, or shorten the two new Evidence cells to 120 characters so those rows stay untouched.
Claims and files checked
  • Claim: the change adds one test for when a layout behavior earns a prop and one shared width-keyed value form: verified (INV26, INV27).
  • Claim: the decisions are INV26 with DEC-4 and INV27 with DEC-5, with DEC-3 left to #10102: verified (#10102 adds DEC-3).
  • Claim: the record changes INV26, INV27, two verification rows, DEC-4 and DEC-5: verified; the rest of the Verification table is re-padded with unchanged text.
  • Claim: the layout-primitives family's FR7 is updated here if DEC-5 is accepted: not done at this head, and AV5 and the responsiveness row also need it.
  • Claim: no code or API changes: verified (one record file).
  • Claim: no open pull request claims these lines: false for the Verification table (#10102).
  • Claim: template builders hand-write media queries: the repository's page templates do, for grid columns and panel hiding, not for headlines.
  • Claim: an explainer is kept with the owner review: not checkable in the repository.
  • File docs/architecture/public-component-api.md: the findings above.

Automated review (maintainer link)

with something it owns: scroll ownership, region geometry, a gap between
regions, the page shell, or the theme's width points. A behavior that is one
CSS declaration on the component's own box, such as `position: sticky`,
`overflow`, or `flex-grow`, stays in `xstyle`, and the component's docs show

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.

Miss: Stack, HStack and VStack ship isScrollable, which is exactly overflow: auto, and wrap, which is flex-wrap; family:layout-primitives AV4 gives them their scroll behavior alongside StackItem. As written, this sentence marks those shipped props as violations while only StackItem is carved out. Consider naming them beside StackItem, or listing them under Known verification gaps as shipped props INV21a keeps.

the recipe. StackItem keeps its existing `size="fill"` and `isScrollable`
(`family:layout-primitives` AV4) (DEC-4).
- **INV27 — Responsive values use one form.** A visual prop that varies by
width, such as Heading's `type`, Text's `size`, Grid's `columns`, or a

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.

family:layout-primitives still says the opposite for Grid columns and gaps: FR7 "The family does not promise a shared breakpoint", AV5 "consumer-authored responsive styles remain component-specific", and the responsiveness row is "component-owned". Please amend all three in this pull request so the two current records agree once INV27 is approved.

main reworded the public-component-api INV18 verification row (catalog message rewords) and reflowed the table. Take main's table and keep this branch's INV26/DEC-4 and INV27/DEC-5 rows.

@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 is on hold for an owner decision: INV26 (with DEC-4) and INV27 (with DEC-5) add requirements to architecture:public-component-api that no current record states yet. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, on a head that carries the fixes below; the author may do so as an engineering owner. The decision should also settle whether Grid's existing {minWidth, max?, repeat?} form for columns sits beside a width-keyed object or gives way to it, and which value applies below sm (640 px).

Required changes:

  • Amend family:layout-primitives FR7, AV5 and its responsiveness row in this pull request, because they still say responsiveness has no shared breakpoint and is component-specific, which INV27 contradicts.
  • Miss: Amend component:Grid DEC-1 and its non-goal with INV27, or drop columns from INV27's examples, because DEC-1 makes {minWidth, max?, repeat?} Grid's responsive contract and keeps numeric columns fixed.
  • State in INV27 that the object form carries a base value below sm and that each key applies from its point up, inclusive.
  • Add a ## Writing rubric results section to the description, which architecture:knowledge-contracts requires for a record change.
  • Add INV26 and INV27 entries to Known verification gaps, because the sticky and grow recipes, the responsive type tests and the browser checks the new rows name do not exist yet.
  • Miss: Name Stack's shipped isScrollable (overflow: auto) and wrap beside StackItem in INV26, or list them under Known verification gaps, because INV26 otherwise marks them as violations.
  • Cite family:layout-primitives FR6 beside AV4 for StackItem's size="fill", because AV4 covers only scroll behavior.
  • Newly live check: Correct "No open pull request claims these lines", because #10102 rewrites the same Verification rows and inserts DEC-3 at the same point, and shorten the two new Evidence cells to 120 characters so those rows stay untouched.
Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • Claim: template builders ask for layout props and hand-write media queries for responsive headlines: the page templates hand-write width queries for grid columns and panel hiding, none for headlines.
  • Claim: an explainer is kept with the owner review: not checkable in the repository.
  • Claim: two owner decisions, each with a recommended option and two alternatives: verified (DEC-4 and DEC-5 and their rejected options).
  • Claim: the record changes INV26, INV27, two verification rows, DEC-4 and DEC-5, with DEC-3 left to #10102 and DEC-2 already on main: verified; the rest of the Verification table is re-padded with unchanged text.
  • Claim: the layout-primitives family's FR7 is updated here if DEC-5 is accepted: not done at this head, and AV5, the responsiveness row and Grid's DEC-1 also need it.
  • Claim: no code or API changes: verified (one record file).
  • Claim: no open pull request claims these lines: false (#10102).
  • File docs/architecture/public-component-api.md: the findings above.

Automated review (maintainer link)

the recipe. StackItem keeps its existing `size="fill"` and `isScrollable`
(`family:layout-primitives` AV4) (DEC-4).
- **INV27 — Responsive values use one form.** A visual prop that varies by
width, such as Heading's `type`, Text's `size`, Grid's `columns`, or a

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.

Miss: component:Grid DEC-1 (current) makes {minWidth, max?, repeat?} Grid's responsive contract and keeps numeric columns fixed, and its non-goals exclude a shared breakpoint. Naming columns here for an object keyed by width points contradicts that decision. Please amend component:Grid DEC-1 and its non-goal together with this invariant, or drop columns from these examples.

Main now carries DEC-1 to DEC-10 in public-component-api, and DEC-11 is
reserved for the composite-naming record, so this record's decisions move
from DEC-4 and DEC-5 to DEC-12 and DEC-13, with their INV26 and INV27
citations and verification rows. INV26 and INV27 keep their numbers. The
verification table takes main's rows plus this record's two rows.

@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 is on hold for an owner decision: INV26 (with DEC-12) and INV27 (with DEC-13) add requirements to architecture:public-component-api that no current record states yet. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, on a head that carries the fixes below; the author may do so as an engineering owner. The decision should also settle whether Grid's existing {minWidth, max?, repeat?} form for columns sits beside a width-keyed object or gives way to it, and which value applies below sm (640 px).

Required changes:

  • Amend family:layout-primitives FR7, AV5 and its responsiveness row in this pull request, because they still say responsiveness has no shared breakpoint and is component-specific, which INV27 contradicts.
  • Miss: Amend component:Grid DEC-1 and its non-goal with INV27, or drop columns from INV27's examples, because DEC-1 makes {minWidth, max?, repeat?} Grid's responsive contract and keeps numeric columns fixed.
  • State in INV27 that the object form carries a base value below sm and that each key applies from its point up, inclusive.
  • Add a ## Writing rubric results section to the description, which architecture:knowledge-contracts requires for a record change.
  • Add INV26 and INV27 entries to Known verification gaps, because the sticky and grow recipes, the responsive type tests and the browser checks the new rows name do not exist yet.
  • Miss: Name Stack's shipped isScrollable (overflow: auto) and wrap beside StackItem in INV26, or list them under Known verification gaps, because INV26 otherwise marks them as violations.
  • Cite family:layout-primitives FR6 beside AV4 for StackItem's size="fill", because AV4 covers only scroll behavior.
  • Newly live check: Correct Current-state impact, because #10102 rewrites the same Verification rows and inserts DEC-11 at the same point and main holds DEC-1, DEC-2, DEC-6 and DEC-10 rather than DEC-1 to DEC-10, and shorten the two new Evidence cells to 120 characters so the existing rows stay untouched.
Claims and files checked

Review mode: full; reason: spec-record

  • Claim: template builders ask for layout props and hand-write media queries for responsive headlines: the page templates hand-write width queries for grid columns and panel hiding, none for headlines.
  • Claim: an explainer is kept with the owner review: not checkable in the repository.
  • Claim: two owner decisions, each with a recommended option and two alternatives: verified (DEC-12 and DEC-13 and their rejected options).
  • Claim: the record adds INV26, INV27, two verification rows, DEC-12 and DEC-13: verified; the rest of the Verification table is re-padded with unchanged text.
  • Claim: main holds DEC-1 to DEC-10 and DEC-11 is left to #10102: partly false; main holds DEC-1, DEC-2, DEC-6 and DEC-10, and #10102 does add DEC-11.
  • Claim: the layout-primitives family's FR7 is updated here if DEC-13 is accepted: not done at this head, and AV5, the responsiveness row and Grid's DEC-1 also need it.
  • Claim: no code or API changes: verified (one record file).
  • Claim: no open pull request claims these lines: false (#10102).
  • File docs/architecture/public-component-api.md: the findings above.

Automated review (maintainer link)

CSS declaration on the component's own box, such as `position: sticky`,
`overflow`, or `flex-grow`, stays in `xstyle`, and the component's docs show
the recipe. StackItem keeps its existing `size="fill"` and `isScrollable`
(`family:layout-primitives` AV4) (DEC-12).

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.

family:layout-primitives AV4 covers StackItem's scroll behavior only; size="fill" is FR6's modifier contract. Suggest citing FR6 and AV4.

(`family:layout-primitives` AV4) (DEC-12).
- **INV27 — Responsive values use one form.** A visual prop that varies by
width, such as Heading's `type`, Text's `size`, Grid's `columns`, or a
layout gap, accepts one shared form: a value, or an object keyed by the

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.

The object form has no key for widths below sm: spec:AST-012 FR1 makes root values the implicit base below sm with no xs point, so DEC-13's phone case has no stated spelling. Consider stating that the object carries a base value that applies below sm, and that each key applies from its point up, inclusive.

Comment on lines +553 to +554
| INV26, DEC-12 | Public-API review of new layout props against the coordination test, plus docs checks for the sticky, overflow, and grow recipes | A one-declaration layout prop, or a missing recipe |
| INV27, DEC-13 | Type tests for the shared responsive form plus real-browser checks of Heading `type` and Grid `columns` across the theme's width points | A responsive value that renders per breakpoint in JavaScript, a structural prop that accepts the form, or a breakpoint not taken from the theme |

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 name docs checks for sticky, overflow and grow recipes, type tests for a shared responsive form, and browser checks that do not exist yet. Please add INV26 and INV27 entries to Known verification gaps so the record does not read as verified.

This branch was successfully deployed

1 active deployment
Preview — 09746fb3 Deployed Nov 23, 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