Skip to content

spec(AST-017): each non-component surface defines what breaks; AST-017 owns the release process - #7608

Merged
cixzhang merged 2 commits into
mainfrom
spec/ast-017-surface-compat-delegation
Oct 15, 2026
Merged

cixzhang merged 2 commits into
mainfrom
spec/ast-017-surface-compat-delegation

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

Who decides what counts as breaking for a published surface that is not a component, such as the CLI?

Today spec:AST-017 holds every surface's breaking rules, so a CLI owner who wants to say "this CLI correction is a [fix], not breaking" has to change AST-017. This PR makes each non-component surface define its own compatibility contract in its own current record, and keeps AST-017 as the owner of the release process that applies the result. Components keep their rules in AST-017.

Existing authority searched

  • spec:AST-017 (current, owners cixzhang, josephfarina): FR1–FR6 define breaking for every surface; FR3, FR9–FR13 and FR45 carry CLI-specific classification; FR32–FR34 classify corrections with a released victim; the Authority relationships section says architecture:cli-surface and spec:AST-042 own CLI structure, admission and parity, while AST-017 owns "compatibility and release transition". Nothing lets a surface record decide its own breaking rules.
  • architecture:cli-surface (current, owner josephfarina, approved by cixzhang): INV3 (error codes are append-only) and INV10 (every write is confined) already state CLI contract facts, but the record does not say how a correction to them is classified, because AST-017 claims that.
  • Open work on the same record: #7545 (draft) adds a CLI write-confinement rule as FR54 and DEC-21. DEC-21 is already used on main (successor plan, merged in #7445). This PR takes the next free IDs on main, FR54 and DEC-22, so #7545 collides on FR54. Under this PR its content belongs in architecture:cli-surface (next to INV10) instead of AST-017; if it stays in AST-017 it must renumber.

Decision

spec:AST-017/DEC-22, decider cixzhang.

  • FR54 (new): each published surface other than a component takes its compatibility contract from its own current record. For the CLI that record is architecture:cli-surface. The contract states which consumer scenarios are valid and supported, what counts as a released victim, and which corrections are [fix] vs [breaking]. The surface record's owners decide it through that record's normal approval.
    • Where the surface record states a rule for a case, that rule decides it. Where it is silent, FR1–FR6 and AST-017's existing rules for that surface apply, so nothing is left unclassified.
    • A surface rule turns on the change and its contract, never on risk or adoption (FR6), and covers only released, published surfaces (FR2).
    • AST-017's release process applies to the result unchanged: Changeset categories and bump tiers, migration evidence, experimental isolation, patch/minor/emergency paths, deprecation and coexistence, release gates.
    • A surface record defines only whether a change is breaking, never how it ships. Anything any surface record classifies as [breaking] lands only in a declared minor (FR31) or through the emergency path (FR35), never in a patch release; no surface record can make it patch-eligible by redefining a release rule.
    • Components keep AST-017's rules, including FR3 and FR53.
  • Pointers: Intent, FR1, FR32, Authority relationships, and Current-state impact point to FR54. FR54 and DEC-22 join the compatibility review trigger. The verification table gains an FR54 row.
  • Not in this PR: any CLI breaking rule itself, including write confinement. That is the CLI record owner's to add in architecture:cli-surface.

Rejected alternatives

  • Keep every surface's breaking rules in AST-017. This makes AST-017's owners decide contracts for surfaces they do not own, and every CLI classification change waits on a global record.
  • Move AST-017's existing CLI rules (FR9–FR13, FR45) into architecture:cli-surface in the same PR. That is a larger, separate change for the CLI owner; FR54's "silent means AST-017 applies" keeps them working until the CLI record replaces them.

Claim scope and non-goals

  • Governs only who defines the compatibility contract for non-component surfaces, and that AST-017's process applies to the result.
  • Does not change any classification today: no surface record states its own rule yet, so every current outcome is unchanged.
  • Does not change component classification, accessibility fixes (FR53), the tier gate, or release mechanics.

Evidence and implementation relationship

No implementation. pnpm check:changesets and release tooling are unaffected: they check categories and tiers, which stay in AST-017.

Writing rubric results

  • R1 narration: none; FR54 and DEC-22 are present tense. The DEC-22 rationale states the ownership fact, not the history of the change.
  • R2 research in the record: none.
  • R3 evidence naming a change: none; the FR54 verification row names the review and representative cases.
  • R4 rejected alternatives over one line or outside a decision: one, inside DEC-22, one line.
  • R5 pull request or issue references remaining: none added (searched the diff for # followed by digits, /pull/, /issues/).
  • R6 ruled open questions still listing options: none; Open questions stays "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
  • Prettier
  • git diff --check

@vercel

vercel Bot commented Oct 15, 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 15, 2026 10:38pm UTC

Request Review

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

astracat-bot Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 15, 2026, 11:04 PM UTC

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

github-actions Bot commented Oct 15, 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

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 0464990

@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 15, 2026

@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.

Looks good to merge: moving each non-component surface's compatibility contract into that surface's own record has owner approval on this head, and the existing rules keep deciding until a surface record states its own. Consider two small follow-ups to keep the records consistent:

  • The theme-tokens and template-replacement bullets in AST-017's Authority relationships still say AST-017 owns those surfaces' compatibility, and AST-042's non-goal still names AST-017 as the owner of CLI classification.
  • FR54 names a deciding record only for the CLI, so the first rule written for any other surface should also say which record is that surface's own.

[Automated review]

CLI's compatibility contract under FR54; this spec owns the release process that
applies it.
- [`architecture:theme-tokens` — Theme token architecture](../../architecture/theme-tokens.md)
owns token semantics; this spec owns compatibility and experimental isolation.

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: next to the new section intro (“This spec owns compatibility classification for components”) and FR54, this bullet, and the AST-035 bullet below it, still read as this record owning those surfaces' compatibility. Consider giving the surface record its compatibility contract under FR54 here, and keeping experimental isolation and the fallback rules in this record.

classified under FR1.
- **FR54 — A surface other than a component defines its own compatibility contract.**
Each published surface other than a component takes its compatibility contract from
its own current record. For the CLI, that record is `architecture:cli-surface`. 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.

Non-blocking: FR54 names the deciding record only for the CLI. For other non-component surfaces, some of which are described by several current records (themes, for example), consider requiring the first surface rule to name which record is that surface's own, so two records never both decide one case.

@cixzhang
cixzhang merged commit 2e0f31c into main Oct 15, 2026
48 checks passed
@github-actions
github-actions Bot deleted the spec/ast-017-surface-compat-delegation branch October 16, 2026 06:22

This branch was successfully deployed

1 active deployment
Preview — 04649901 Deployed Oct 15, 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.

1 participant