Multi-State Generation Plan
This plan defines how TraderX evolves through numbered states with explicit convergence checkpoints.
Objectives​
- keep each transition reproducible from specs,
- keep generated branches compareable and publishable,
- isolate FR/NFR deltas per state,
- preserve a clear set of recommended jump-off points (
C0-C3).
Transition Mechanics​
- Update target state pack (
spec.md,plan.md,tasks.md,system/**). - Generate parent state.
- Apply ordered patch set (
specs/<state>/generation/patches/*.patch) for derived changes. - Regenerate architecture docs.
- Run state smoke tests + global gates.
- Publish code snapshot branch.
Current Convergence-First Model​
Publish Model​
- Canonical authoring stays in this branch (
specs/**,.specify/**, pipeline/docs). - Generated code snapshots are published to
code/generated-state-*branches. - Publish ancestry follows
previousonly. - Dotted-line parents are docs lineage only.
Required Governance for Convergence States​
catalog/state-catalog.jsonmust carry convergence metadata.system/convergence-rationale.mdmust exist and be updated when convergence state content/metadata changes.- CI gates must pass before publish.
Reference Commands​
bash pipeline/refresh-state-docs.sh
bash pipeline/verify-spec-coverage.sh
bash pipeline/publish-generated-state-branch.sh <state-id> --push