Proposal Status — Lifecycle Transitions
Transition a proposal through its lifecycle states with validation and side-effects.
Command
/proposal-status <number-or-path> <new-status> [--module <path>] [--root]
Arguments
| Argument | Required | Description |
|---|---|---|
<number-or-path> | Yes | Proposal number (e.g., 001) or full file path |
<new-status> | Yes | Target status: in-review, accepted, rejected, superseded |
--module <path> | No | Module containing the proposal |
--root | No | Proposal is at repo root level |
Workflow
- •
Parse arguments. Extract the proposal identifier and target status from
$ARGUMENTS. - •
Locate the proposal. If a number is given, search for
NNN-*.mdin the appropriatedocs/proposals/directory. If a path is given, use it directly. - •
Read current status. Parse the proposal's frontmatter to get the current
statusfield. - •
Validate the transition. Check against the state machine defined in
reference/valid-transitions.md:codedraft ──→ in-review ──→ accepted ──→ rejected ──→ superseded- •If the transition is invalid, report an error with the legal transitions from the current state. Example: "Cannot transition proposal 001 from 'draft' to 'accepted'. Valid transitions from 'draft': in-review."
- •If the current status is terminal (
accepted,rejected,superseded), report: "Proposal 001 has reached terminal status '<status>' and cannot be transitioned."
- •
Update the proposal. If valid:
- •Update the
statusfield in frontmatter - •Update the
updatedfield to today's date
- •Update the
- •
Handle side-effects:
On
accepted:- •Prompt the user: "Proposal NNN has been accepted. Create an implementation plan? Use
/new-plan <title> --from-proposal NNN."
On
superseded:- •Prompt for the superseding proposal number
- •Update the
superseded_byfield in frontmatter with the superseding proposal's number
- •Prompt the user: "Proposal NNN has been accepted. Create an implementation plan? Use
- •
Confirm the transition. Report the updated status and any next steps.
State Machine
Read reference/valid-transitions.md for the complete state machine definition, including conditions and side-effects for each transition.
Reference
- •
reference/valid-transitions.md— State machine definition with legal transitions, conditions, and side-effects