From 104030dd6cb88518da22022ff773ccf86a3bed2d Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Thu, 3 Dec 2026 18:18:34 -0800 Subject: [PATCH 01/11] spec(AST-017): a Lab-to-Core promotion removes the Lab copy with no alias Adds FR27a, its verification row, two FR27a gaps, and DEC-35: when a component promotes from Lab to Core, Lab removes it and its exports with no alias or re-export, and the promotion's [feat] Changeset names the Core import path. --- docs/specs/AST-017/spec.md | 39 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/docs/specs/AST-017/spec.md b/docs/specs/AST-017/spec.md index 6a41dc69f59db..676bbb54fff55 100644 --- a/docs/specs/AST-017/spec.md +++ b/docs/specs/AST-017/spec.md @@ -69,6 +69,7 @@ affects_consumer_docs: [release-process, templates] "FR25", "FR26", "FR27", + "FR27a", "FR28", "FR29", "FR29a", @@ -113,7 +114,8 @@ affects_consumer_docs: [release-process, templates] "FR61", "DEC-32", "DEC-33", - "DEC-34" + "DEC-34", + "DEC-35" ] } } @@ -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 + 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 @@ -1031,7 +1042,15 @@ 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`. + +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 @@ -1070,6 +1089,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 | @@ -1694,6 +1714,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. From 900276e657af5b1fd9693af57e97703524ccecce Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Thu, 3 Dec 2026 19:16:03 -0800 Subject: [PATCH 02/11] spec(AST-017): book Lab's CodeBlock tokenizer re-exports as an FR27a gap --- docs/specs/AST-017/spec.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/specs/AST-017/spec.md b/docs/specs/AST-017/spec.md index 676bbb54fff55..3634edd14f937 100644 --- a/docs/specs/AST-017/spec.md +++ b/docs/specs/AST-017/spec.md @@ -1049,6 +1049,9 @@ Public lifecycle classification remains in force with these operational effects: FR27a gap: Lab exports `InfoTip`, `InfoTipProps`, and `InfoTipSize` as deprecated re-exports of Core's `InfoTip`. +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. From ef0da316a1e4b01e9bc573967f2badda989b2395 Mon Sep 17 00:00:00 2001 From: Cindy Zhang Date: Thu, 3 Dec 2026 18:15:02 -0800 Subject: [PATCH 03/11] refactor(lab): Lab keeps no InfoTip alias; Core is its one import path Co-authored-by: David Petersen --- .changeset/lab-infotip-alias-removed.md | 7 ++++ docs/specs/components/InfoTip/InfoTip.spec.md | 25 ++++++++----- packages/lab/src/InfoTip/InfoTip.test.tsx | 33 ----------------- packages/lab/src/InfoTip/index.ts | 35 ------------------- packages/lab/src/index.ts | 3 -- packages/lab/src/promotedComponents.test.ts | 18 ++++++++++ 6 files changed, 42 insertions(+), 79 deletions(-) create mode 100644 .changeset/lab-infotip-alias-removed.md delete mode 100644 packages/lab/src/InfoTip/InfoTip.test.tsx delete mode 100644 packages/lab/src/InfoTip/index.ts create mode 100644 packages/lab/src/promotedComponents.test.ts diff --git a/.changeset/lab-infotip-alias-removed.md b/.changeset/lab-infotip-alias-removed.md new file mode 100644 index 0000000000000..03abf1510d013 --- /dev/null +++ b/.changeset/lab-infotip-alias-removed.md @@ -0,0 +1,7 @@ +--- +'@astryxdesign/core': patch +--- + +[chore] `@astryxdesign/lab` no longer re-exports `InfoTip`, which moved to Core in 0.7.7. An app that still imports it from Lab imports it from Core instead: `import {InfoTip} from '@astryxdesign/core'`. No change to InfoTip itself. + +@thedjpetersen diff --git a/docs/specs/components/InfoTip/InfoTip.spec.md b/docs/specs/components/InfoTip/InfoTip.spec.md index d4a0543a3fb65..e2def35634d5c 100644 --- a/docs/specs/components/InfoTip/InfoTip.spec.md +++ b/docs/specs/components/InfoTip/InfoTip.spec.md @@ -17,7 +17,7 @@ verified_by: packages/core/src/InfoTip/__tests__/InfoTipTouch.a11y.chromium.spec.ts, packages/core/src/InfoTip/__tests__/InfoTipAudit.a11y.chromium.spec.ts, packages/core/src/Layer/__tests__/TouchTrigger.a11y.chromium.spec.ts, - packages/lab/src/InfoTip/InfoTip.test.tsx, + packages/lab/src/promotedComponents.test.ts, packages/core/src/Tooltip/Tooltip.test.tsx, scripts/check-knowledge.mjs, ] @@ -40,7 +40,7 @@ system_specs: [spec:AST-017, spec:AST-094] ```json { - "paths": ["packages/lab/src/InfoTip/index.ts"] + "paths": ["packages/lab/src/promotedComponents.test.ts"] } ``` @@ -48,11 +48,11 @@ system_specs: [spec:AST-017, spec:AST-094] | Area | Contract | | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Public contract | `InfoTip` from `@astryxdesign/core` with `content`, `label` (a localized "More information"), `size` (`sm`), a `ref` forwarded to the button, and BaseProps' `xstyle`, `className`, and `style`. The `@astryxdesign/lab` export is a deprecated re-export for one release. | +| Public contract | `InfoTip` from `@astryxdesign/core` with `content`, `label` (a localized "More information"), `size` (`sm`), a `ref` forwarded to the button, and BaseProps' `xstyle`, `className`, and `style`. `@astryxdesign/lab` exports no `InfoTip`. | | Behavior | A named native info-icon button that pins its help through `useTooltip`'s `show()` and `hide()`: hover and focus preview the help, a click, tap, Enter, or Space pins it open until Escape, a second press, a press outside, or focus leaving, and a mouse or pen press on a tip shown by hover holds it in place, without hiding and showing again. | | End-user impact | People on a mouse, touch, keyboard, or screen reader can open, keep open, and close the help behind an "i", and hear it once when it pins. | | Builder impact | Use InfoTip for help next to a label, value, or metric instead of composing an icon inside Tooltip. Lab callers change the import. | -| Compatibility/readiness | Released in Core 0.7.7; the `@astryxdesign/lab` export is a deprecated re-export of it for one release (FR4). | +| Compatibility/readiness | Released in Core 0.7.7; `@astryxdesign/lab` exports no `InfoTip`, so Lab callers import it from `@astryxdesign/core` (FR4). | | Review checks | Reject a layer, document listener, timer, or dismissal rule of InfoTip's own, a wrapper element around the button, a trigger that is not a named native button, a pinning press that reaches a row, card, or label around it, a preview that blinks on a mouse or pen press, an untranslated default name, or a prop beyond those FR3 lists. | | Governing rules | `component:Tooltip` FR9, FR10, FR12, AR6; `architecture:public-component-api` INV21; `spec:AST-094` FR42; `spec:AST-017` (lifecycle). | @@ -75,8 +75,8 @@ Consumer usage lives in `InfoTip.doc.mjs`. with the same props and pins through `useTooltip`'s `show()` and `hide()` instead of opening through `touchTrigger="tap"` - Controlled/uncontrolled behavior: uncontrolled only; open state is Tooltip's -- Migration decision: DEC-1; the `@astryxdesign/lab` `InfoTip` export stays one - release as a deprecated re-export of the Core component, then is removed +- Migration decision: DEC-1; `@astryxdesign/lab` exports no `InfoTip`, and a + Lab caller imports it from `@astryxdesign/core` (FR4) Consumer migration instructions belong in consumer docs and release notes. @@ -119,7 +119,7 @@ Consumer migration instructions belong in consumer docs and release notes. | FR1 | InfoTip renders one `