Repository navigation
spec(AST-017): each non-component surface defines what breaks; AST-017 owns the release process - #7608
Conversation
…7 owns the release process
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis ReportView Storybook for this PR · View Sandbox for this PR
Generated by PR Enrichment workflow | View current CI run |
|
/approve-spec 0464990 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
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-017holds 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, ownerscixzhang,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 saysarchitecture:cli-surfaceandspec:AST-042own 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, ownerjosephfarina, approved bycixzhang): 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.#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#7545collides on FR54. Under this PR its content belongs inarchitecture:cli-surface(next to INV10) instead of AST-017; if it stays in AST-017 it must renumber.Decision
spec:AST-017/DEC-22, decidercixzhang.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.[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.compatibilityreview trigger. The verification table gains an FR54 row.architecture:cli-surface.Rejected alternatives
architecture:cli-surfacein 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
Evidence and implementation relationship
No implementation.
pnpm check:changesetsand release tooling are unaffected: they check categories and tiers, which stay in AST-017.Writing rubric results
#followed by digits,/pull/,/issues/).Scope
Validation
pnpm check:knowledgegit diff --check