Component stability policy
Every component manifest declares a status: experimental, beta, stable, or deprecated. The status tells consumers how much change to expect, and tells contributors what evidence a promotion needs. Docs reference pages show it as a badge, and the manifest and published manifest collections (@ghostvue/vue/manifest.json) carry the same value for tools, including the future @ghostvue/mcp server.
Stability is evidence-backed, not inferred. A status changes only when a maintainer approves the change in a reviewed pull request that edits the manifest. A green CI run, a passing automated keyboard record, a package version, or the age of a component never promotes it. pnpm manifests (part of pnpm verify) rejects a declared status whose evidence is missing; it never sets one.
Levels
| Status | Meaning | Breaking changes |
|---|---|---|
experimental | Default for new components. The API may still change. | Allowed in any release when documented in a Changeset. |
beta | API and spec approved, documented, and checked in CI. | Allowed only with a Changeset and migration notes; prefer deprecation. |
stable | Beta, plus manual and assistive-technology review, frozen. | Only through the deprecation process. |
deprecated | Still shipped, with a documented replacement. | Removed after the deprecation window. |
Promotion requirements
Each level includes every requirement of the level before it.
Experimental
- Passes the component gate: approved spec, tests, docs, a valid manifest, and a Changeset when publishable behavior changes.
- Breaking changes are permitted but never silent: the Changeset says what broke and how to migrate.
Beta
Enforced by pnpm manifests:
- The manifest has an approved
spec(from spec frontmatter withspecStatus: approvedandapproval.evidence). - The spec's usage page exists (
docs/components/<name>.mdnext todocs/components/<name>-spec.md). exampleslists at least one executable example.- The component and every prop, model, event, slot, slot prop, and exposed member has a written description, not the generated placeholder text.
accessibility.verification.automatedKeyboardispassedwhen the component declares keyboard interaction, and is neverfailed.
Required by review:
- All automated checks pass (
pnpm verifyand the browser suite). - The public API has been reviewed against the public API standard.
Stable
Enforced by pnpm manifests:
accessibility.verification.manualispassed, with dated evidence of a manual interaction review.accessibility.verification.assistiveTechnologyispassed, with dated evidence of a screen reader or other assistive-technology review.
The schema already requires at least one evidence entry for a passed review, and the verification contract requires that entry to name this component and package. The review process itself is defined in GHO-44.
Required by review:
- API freeze. Promotion to
stablefreezes the public contract recorded in the manifest: props, models, events, slots, exposed members, documented styling hooks (data-part,data-state, otherdata-*attributes, classes, and--ghost-*custom properties), keyboard behavior, focus movement, and ARIA semantics. Additive, backwards-compatible changes remain allowed. Any other change follows the deprecation process. - The review evidence covers the revision being promoted, or a later review confirms no behavior changed since.
Breaking changes before 1.0
Zero-major versions do not permit surprise breakage.
- Experimental: a breaking change ships in any release with a Changeset that explains the change and the migration.
- Beta: a breaking change ships in a minor release with a Changeset and migration notes. Deprecate first when a compatible path exists.
- Stable: the deprecation process applies before 1.0 too.
Deprecation
For a stable API (a component, prop, event, slot, styling hook, or behavior):
- Announce. Ship the deprecation in a release with a Changeset that names the replacement and the migration. Mark the prop with a
@deprecatedJSDoc tag (the manifest recordsdeprecated: true), or set a whole component's manifeststatustodeprecatedand name the replacement in itsdescriptionand usage page. - Warn. Report use of the deprecated API in development with
warnGhostDeprecation()frompackages/vue/src/dev-codes.ts. It emitsGHOST005once per API, wrapped inprocess.env.NODE_ENV !== 'production'like every otherGHOST0xxdiagnostic. Do not add ad-hocconsole.warndeprecation messages. - Wait. Keep the deprecated API working for at least one minor release and at least 30 days after the release that deprecated it. Both conditions must hold.
- Remove. Before 1.0, removal ships in a minor release. From 1.0 onward, removal ships in a major release. The Changeset for the removal links the deprecation.
Experimental and beta APIs should use the same warning when a deprecation window is practical, but they are not bound by the minimum window.
Exceptions
Any exception to this policy, such as a shortened deprecation window for a security or accessibility defect, requires explicit maintainer approval recorded in the pull request. The Changeset states the exception and the reason.
Demotion
A component may move back from stable or beta when its evidence no longer holds, for example after a failed review. Demotion does not by itself permit a breaking change; the deprecation rules for the previous status still apply to releases that shipped it.