Skip to content
FRGEPLAN

forgeplan phase

forgeplan phase shows where an artifact stands in the methodology pipeline - Shape, Validate, Adi, Code, Test, Audit, Evidence, or Done - and prints the full history of how it got there (timestamps, reasons). The data lives in .forgeplan/state/<id>.yaml and is append-only: every transition is preserved.

The phase is advisory, meaning it is a hint for humans and agents, not a lock. No other Forgeplan command refuses to run because the phase looks “wrong”. If an artifact has no state file yet (created before phase tracking existed, or with phase.enabled: false in config), the command prints current_phase: unknown with an empty history - that is normal, not an error.

This is the CLI version of forgeplan_phase on the MCP side.

  • Starting work on an artifact that is already in flight - “where did I leave off?”
  • Before running an expensive tool, confirm the artifact is past the relevant phase (e.g. do not run forgeplan score on something still in shape).
  • Reviewing an old artifact - read the transition history to understand the path it took.
  • Audit or debugging - every transition has a timestamp and optional reason, so you can reconstruct decisions.
forgeplan phase [OPTIONS] <ID>
<ID> Artifact ID whose phase state to read
--json Output as JSON for machine consumption
-h, --help Print help
-V, --version Print version
Terminal window
forgeplan phase PRD-057

Prints the current phase, workflow type, and the last three transitions in text mode (full history in --json). Typical text output:

PRD-057 - current_phase: code (greenfield)
advanced_at: 2026-04-26T09:30:00Z
history (last 3):
shape 2026-04-25T14:00:00Z
validate 2026-04-25T15:20:00Z
code 2026-04-26T09:30:00Z reason: FRs implemented
Terminal window
forgeplan phase PRD-057 --json | jq '.history'

Returns every transition the artifact has ever recorded. Useful for audits or for building a timeline view in a downstream tool.

Terminal window
forgeplan phase PRD-001

If the artifact has no state file (created before phase tracking, or with tracking disabled), the output shows current_phase: unknown and an empty history. This is intentional - not an error. Start tracking with forgeplan phase-advance.

Phase tracking is an observability layer over the methodology pipeline (Shape → Validate → Code → Evidence → Activate). Read with phase, write with forgeplan phase-advance. Out-of-order jumps are allowed today (e.g. straight to Done for a typo fix); strict enforcement is planned for a later PRD under EPIC-005.