openspec/changes/add-change-stacking-awareness/proposal.md
Parallel changes often touch the same capabilities and cli-init/cli-update behavior, but today there is no machine-readable way to express sequencing, dependencies, or expected merge order.
This creates three recurring problems:
We need lightweight planning metadata and CLI guidance so contributors can safely stack plans on top of each other.
Extend change metadata to support sequencing and decomposition context, for example:
dependsOn: changes that must land firstprovides: capability markers exposed by this changerequires: capability markers needed by this changetouches: capability/spec areas likely affected (advisory only; warning signal, not a hard dependency)parent: optional parent change for split workMetadata is optional and backward compatible for existing changes.
Ordering semantics:
dependsOn is the source of truth for execution/archive orderingprovides/requires are capability contracts for validation and planning visibilityprovides/requires do not create implicit dependency edges; authors must still declare required ordering via dependsOnEnhance change validation to detect planning issues early:
dependsOn predecessors are archived)requires marker with no provider in active history emits non-blocking warning)Validation should fail only for deterministic blockers (for example cycles or missing required dependencies), and keep overlap checks as actionable warnings.
Add lightweight CLI support to inspect and execute plan order:
openspec change graph to show dependency DAG/orderopenspec change graph validates for cycles first; when cycles are present it fails with the same deterministic cycle error as stack-aware validationopenspec change next to suggest unblocked changes ready to implement/archiveAdd helper workflow to decompose large proposals into stackable slices:
openspec change split <change-id> scaffolds child changes with parent + dependsOn--overwrite (alias --force) is passed--overwrite / --force fully regenerates managed child scaffold stubs and metadata links for the split, replacing prior scaffold contentUpdate docs to describe:
openspec/changes/IMPLEMENTATION_ORDER.md:
IMPLEMENTATION_ORDER.md remains optional narrative context during transitionchange-stacking-workflow: Dependency-aware sequencing and split scaffolding for change planningcli-change: Adds graph/next/split planning commands and stack-aware validation messagingchange-creation: Supports parent/dependency metadata when creating or splitting changesopenspec-conventions: Defines optional stack metadata conventions for change proposalssrc/core/project-config.ts and related parsing/validation utilities for change metadata loadingsrc/core/config-schema.ts (or dedicated change schema) for stack metadata validationsrc/commands/change.ts and/or src/core/list.ts for graph/next/split command behaviorsrc/core/validation/* for dependency cycle and overlap checksdocs/cli.md, docs/concepts.md, and contributor guidance for stack-aware workflows