Reviewer · Documentation
Unstable feature documentation lifecycle
Document unstable or evolving features following a consistent lifecycle so that docs stay accurate and easy to maintain as features mature: - Write documentation for a new unstable feature only in `unstable.md`. Do not add unstable-only content (e.g. new experimental output fields/formats) to stable reference docs; port the relevant text from `unstable.md`...
Document unstable or evolving features following a consistent lifecycle so that docs stay accurate and easy to maintain as features mature:
- Write documentation for a new unstable feature only in
unstable.md. Do not add unstable-only content (e.g. new experimental output fields/formats) to stable reference docs; port the relevant text fromunstable.mdinto the stable doc once the feature is actually stabilized. - Nest sub-feature documentation under the correct heading level that reflects its relationship to the parent feature (e.g. a sub-feature of
feature-metadatashould be a subsection under that heading, not a separate top-level##entry), so the structure communicates the real hierarchy. - Where practical, write the unstable doc text/snippets so they can be copied nearly verbatim into the stable docs at stabilization time (see existing unstable entries like
min-publish-ageas a model). If the feature isn’t purely additive, it’s fine to defer the stable-doc update to the stabilization PR instead of forcing it prematurely. - Even when trying to avoid duplicating docs owned elsewhere (e.g. rustc’s
--remap-path-scope), still include minimal, explicit per-option documentation when the options have meaningfully different behavior (e.g. distinguish"object"from"all"), rather than cutting all detail for brevity. - Call out known caveats or breaking side effects relevant to downstream tooling (e.g. “with
all, diagnostics may no longer point to valid files”) directly in the docs, and make sure to notify affected tool authors when the feature stabilizes. - When a feature is removed, keep its entry in
unstable.mdbut convert it to a “removed feature” note (following the pattern used for previously removed features likebuild-plan) instead of deleting the section outright, so history and rationale remain discoverable.