Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 40 additions & 2 deletions docs/specs/AST-017/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ affects_consumer_docs: [release-process, templates]
"FR25",
"FR26",
"FR27",
"FR27a",
"FR28",
"FR29",
"FR29a",
Expand Down Expand Up @@ -113,7 +114,8 @@ affects_consumer_docs: [release-process, templates]
"FR61",
"DEC-32",
"DEC-33",
"DEC-34"
"DEC-34",
"DEC-35"
]
}
}
Expand Down Expand Up @@ -546,6 +548,15 @@ one removal merged ahead of the decision to allow it.
`experimental export`, only when the project's installed CLI has it and only
for a request to share a page as one file; that exception ends when export
graduates or is removed.
- **FR27a — A Lab-to-Core promotion removes the Lab copy with no alias.** When a
component promotes from Lab to Core, Lab removes it and its exports, with no alias
or re-export; the promotion's `[feat]` Changeset names the Core import path. This
holds whether the component keeps its name in Core or takes a new one. The removal
MAY be its own change, apart from the promotion; that change removes the Lab copy
and changes nothing in Core. FR22's optional compatibility alias and FR23's
Comment thread
astracat-bot[bot] marked this conversation as resolved.
Resolved
transition alias do not apply to a Lab component. Lab is the private, canary-only
incubation package (FR27), so the removal carries no stable-compatibility
obligation, and one component keeps one import path (`spec:AST-017/DEC-35`).
- **FR28 — A planned minor needs no prior deprecation; a patch does.** A change
landing in a declared minor needs no deprecation path: its `[breaking]` Changeset
describing the change, with the replacement and migration where they help the
Expand Down Expand Up @@ -1031,7 +1042,18 @@ Public lifecycle classification remains in force with these operational effects:
decision (FR59);
- no file path or subpath marks a surface experimental and Core's behavior and
utility modules without a public contract stay unexported, except through
the reserved `./internal/*` subpaths (FR21).
the reserved `./internal/*` subpaths (FR21);
- a component that promotes from Lab to Core leaves Lab with no alias or re-export
(FR27a).

FR27a gap: Lab exports `InfoTip`, `InfoTipProps`, and `InfoTipSize` as deprecated
re-exports of Core's `InfoTip`.
Comment thread
astracat-bot[bot] marked this conversation as resolved.
Resolved
Comment thread
astracat-bot[bot] marked this conversation as resolved.
Resolved

FR27a gap: Lab exports `tokenize`, `tokenizeAsync`, `SYNC_TOKENIZE_THRESHOLD`, and
`SyntaxToken` as re-exports of Core's `CodeBlock` entry.

FR27a gap: no automated check compares Lab's exports with Core's, so review applies
FR27a to each promotion and removal change.

Main declares the next planned version, and Changeset admission uses that declaration
to refuse `[breaking]` work on a patch plan. Pull-request lint does not compare the
Expand Down Expand Up @@ -1070,6 +1092,7 @@ lands, maintainers apply its requirement in review and release approval.
| FR19–FR20 | Proposal evidence with a regression fixture for the detection failure, plus composition and provenance tests | convention covers the case, detection fails, app plus two integrations, refusal, failing contribution, repeated load | A key ships without a reproduced detection failure, a contribution displaces the app or applies twice, a part of the effective value has no inspectable source, or a failure silently weakens protection |
| FR21–FR24 | Published-surface comparison, declaration/doc metadata checks, import-boundary checks, and Changeset classification review | experimental prop object, experimental subpath, patch evolution, promotion, unpublished adjacent field, stable warning behavior, integration theme; a component or module `/experimental` subpath; an `_experimental` export; a behavior module; an `./internal/*` subpath imported from Core, Lab, Charts, and any other package; a swizzled copy's import of an exported `./internal/*.stylex` module | A prose-only marker excludes a stable API, adjacency falsely publishes a new field, an experimental export leaks through a stable path, a patch changes stable behavior, or a promoted API remains unprotected, a file path or subpath alone marks a surface experimental, a behavior, utility, or internal module without a public contract is exported other than through `./internal/*`, an `./internal/*` subpath is documented or imported outside packages FR21 names other than a swizzled copy's exported StyleX module, or an experimental public API in Core does not show its status at the call site in the name the caller writes |
| FR25–FR27 | Stable-surface inventory and experimental-boundary matrix | package/API, CSS/token, CLI/config, persistence, build tooling, docs, whole Lab component | An unmarked experiment changes stable defaults or a stable surface bypasses compatibility review |
| FR27a | Promotion and removal review: the `[feat]` Changeset names the Core import path, and Lab's entry exports no name that the promoted component exports from Core | a same-name promotion; a renamed promotion; a removal in its own change; a Lab re-export of a Core component | Lab keeps an alias or re-export of a promoted component, Lab and Core both export the promoted name, or the `[feat]` Changeset omits the Core import path |
| FR28–FR31 | Declared-tier check: on a minor, the `[breaking]` Changeset describes the change (old usage, replacement, migration); on a patch, a breaking Changeset is refused and the deprecation ships instead; declaration/doc/build/CLI warning projections; old/new fixtures; dry-run/idempotence/migration tests; maintained-source and latest-stable upgrade evidence | whole component, prop/value, theme field/helper/token/target/source, CLI command, CLI option; old-only, new-only, both, static/dynamic/uncertain migration, text/JSON, development/production | A warning has no usable modernization route, production runtime changes for deprecation, maintained guidance teaches the old surface, a migration guesses, old behavior degrades early, cadence invents a wait, or one cleanup id covers multiple incompatible deltas |
| FR32–FR35 | Latest-stable victim fixture, pre-existing authority named in the Changeset or pull request, owner review, declared-tier check, and emergency attestation | victim-free `[fix]`, `[fix]` plus incompatible-fix metadata, coexistence, cleanup transition, critical-harm emergency | A released victim uses bare `[fix]`, a new Changeset tag replaces metadata, a correction record disagrees with its public-surface state, or urgency bypasses migration |
| FR36–FR40 | Owner-declared target, locked final-patch receipt, three-way delta classification against the merged `[breaking]` Changesets, and separated release notes | ordinary cadence, immediate pair, cleanup, release metadata, pre/post-lock compatible fix | Cadence becomes eligibility, the final patch is recut for bookkeeping, a feature or incompatible fix enters the incidental-fix lane, or release notes merge cleanup with fixes |
Expand Down Expand Up @@ -1694,6 +1717,21 @@ with any publication effect.
Rejected: skipping the missed version, silently retargeting the old tag, deleting
it before the replacement is fully gated, or reusing any published version.

### DEC-35 — A Lab-to-Core promotion removes the Lab copy with no alias

**Reference:** `spec:AST-017/DEC-35`
**Decider:** `cixzhang`, `2026-12-03`, choosing "Remove the Lab copy": "when lab
promotes it gets removed with no alias from lab"

A component that promotes from Lab to Core leaves Lab, under the same name or a new
one. Lab keeps no alias or re-export of it, and canary users switch the import to the
Core path that the promotion's `[feat]` Changeset names (FR27a). Lab is private and
canary-only (FR27), so the removal breaks no stable-release promise, and one
component keeps one import path.

Rejected: a Lab alias that re-exports the Core component for one release, because it
gives one component two import paths.

## Open questions

None.