Skip to content

spec(AST-094): touch motion roles stay internal until the public set is decided (DEC-11) - #8488

Merged
cixzhang merged 2 commits into
mainfrom
spec/ast094-motion-roles-internal
Oct 26, 2026
Merged

cixzhang merged 2 commits into
mainfrom
spec/ast094-motion-roles-internal

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Exact decision needed

None new: this applies Cindy's 2026-10-25 decision that motion values stay internal for now, so the record matches code that keeps touch motion roles internal.

Existing authority searched

Decision

spec:AST-094 DEC-11 (cixzhang, 2026-10-25): FR4's roles are internal until the public motion-token set is decided, so a theme cannot override them yet. FR1's theme sentence and FR4's theme-application sentences apply once roles are public. DEC-3's theme override is deferred, not reversed. The role table, values, and sources are unchanged.

Lands before #8257 so the record and code agree.

Writing rubric results

  • R1 narration: none.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives over one line or outside a decision: none; one line inside DEC-11.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none.

Scope

  • 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 (CI lint)
  • Prettier
  • git diff --check

@vercel

vercel Bot commented Oct 26, 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 Oct 26, 2026 4:57am UTC

Request Review

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 26, 2026
@astracat-bot

astracat-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 26, 2026, 7:02 AM UTC

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

View Storybook for this PR · View Sandbox for this PR

Current run: The current change has no visual or preview-producing scope. Visual checks are not applicable; preview links are not shown.


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 spec change needs an engineering owner's decision before it can be approved. DEC-11 and the reworded FR1 and FR4 withdraw the current spec:AST-094 rule that a theme MAY override touch motion roles through motion, until the public motion-token set is decided. 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. Please make these fixes on the head that receives the approval:

  • Update the FR4 verification row, which still tests a themed spring and fails "a role that ignores the theme", the behaviour FR4 now requires.
  • Update the Current-state impact bullet, which still says the touch motion roles join the theme configuration of architecture:theme-tokens and architecture:theme-authoring-contract.
  • Have DEC-11 also defer DEC-1's "a theme may retune any motion role", and drop "theme" from the motion-role wording in FR4, FR31 and FR34.

[Automated review]

and MUST NOT play a literal. A theme value MUST reach the motion at its
generated motion role table (DEC-5). The role's value is its
measured value (FR1, FR2). The roles are internal until the public
motion-token set is decided, so a theme cannot override them yet (DEC-11). A component MUST read touch motion through these roles

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 this sentence, the FR4 verification row (line 507) fails a conforming implementation. It still tests "a theme writing a spring, a duration and a curve" and fails "a role that ignores the theme". The Current-state impact bullet (lines 459-461) also still says the roles join the theme's motion configuration. Both need to say what FR4 now states.

Motion values stay internal for now: a public, theme-settable set is decided
separately, so no component-specific role becomes a public token first.

This defers DEC-3's theme override until that set exists.

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.

DEC-1 (line 542) also decides that "a theme may retune any motion role (FR4)", so defer it here as well. FR31 (line 327) and FR34 (line 357) still say "theme motion roles".

@cixzhang
cixzhang force-pushed the spec/ast094-motion-roles-internal branch from cab7a74 to 9003439 Compare October 26, 2026 04:46
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 9003439

@github-actions github-actions Bot added spec-auto-merge Auto-merge was enabled by the spec owner gate and removed needs:spec-owner-review Current knowledge records await owner approval labels Oct 26, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 26, 2026
@vjeux

vjeux commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Since this was opened, 3f29b03 on #8257 removed the theme surface outright, so three sentences here still describe code that no longer exists. Suggested edits so the record matches it, one sentence each:

  1. FR4, after "so a theme cannot override them yet (DEC-11).", add: "defineTheme({motion}) takes only the duration scale (fast, medium and ratio, with optional slow and easing), and nothing writes a role's CSS variable."
  2. FR4's "further roles a component's own record measures join through the generated motion role table (DEC-5)": the generated table and its generator are gone, and registration lists only the roles this record names. Suggested: "The roles are the ones this record names; a value a component's own record measures is an internal constant of that component, not a role (DEC-11)."
  3. DEC-11, after "This defers DEC-1's and DEC-3's theme retuning until that set exists.", add: "Making a role public needs a theme authoring surface, a defineTheme key for it and the CSS variable that key writes; none exists while the roles are internal."

Take or leave any of them.

@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 spec change is ready to merge: an engineering owner approved this exact head with /approve-spec, and the FR4 verification row and Current-state impact now match DEC-11's deferral. One optional wording fix: FR4's keyboard exemption still says that motion "is not a theme role", while the requirement it exempts from now says "motion role". FR4 and DEC-5 still route component-measured values through a generated motion role table, which the open motion-role work removed, so one of them will need to change; any edit here, including the suggested sentences, needs a fresh /approve-spec on the new head.

[Automated review]

motion-token set is decided, so a theme cannot override them yet (DEC-11). A component MUST read touch motion through these roles
and MUST NOT play a literal. Once a role is public, a theme value MUST reach the motion at its
start, without changing how the motion runs (FR5, FR6). Motion that
must stay in step with the on-screen keyboard is not a theme role: it rides

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: the requirement this exempts from now reads "MUST be a motion role" (line 99), and the record no longer defines a theme role. Saying "is not a motion role" here would make the exemption match it.

@cixzhang
cixzhang merged commit 822e364 into main Oct 26, 2026
57 checks passed
cixzhang added a commit to vjeux/astryx that referenced this pull request Oct 26, 2026
… AST-094 DEC-11) into the motion clock and Reduce Motion plan

scroll.ts takes main's note.
cixzhang added a commit to vjeux/astryx that referenced this pull request Oct 26, 2026
…the animator

# Conflicts:
#	packages/core/src/motion/uikit/scroll.ts
@github-actions
github-actions Bot deleted the spec/ast094-motion-roles-internal branch October 27, 2026 06:22
vjeux pushed a commit to vjeux/astryx that referenced this pull request Nov 3, 2026
… AST-094 DEC-11) into the motion clock and Reduce Motion plan

scroll.ts takes main's note.
vjeux pushed a commit to vjeux/astryx that referenced this pull request Nov 3, 2026
…the animator

# Conflicts:
#	packages/core/src/motion/uikit/scroll.ts

This branch was successfully deployed

1 active deployment
Preview — 90034397 Deployed Oct 26, 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. spec-auto-merge Auto-merge was enabled by the spec owner gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants