forgeplan order
Sort all artifacts into topological execution order using dependency edges
(blocks, depends_on, parent/child). The output is a linearized walk
suitable for sprint planning: “do PRD-002 before PRD-007, because PRD-007
depends on it.”
When to use
Section titled “When to use”- Sprint planning — sequence multiple PRDs correctly
- Dependency auditing — spot missing edges that should exist
- CI gate — fail the build on dependency cycles
Not to use when
Section titled “Not to use when”- You want to see only blocked items → use
forgeplan blocked - You want hierarchy → use
forgeplan tree - You want all edges → use
forgeplan graph
forgeplan order [OPTIONS]Options
Section titled “Options” --json Output as JSON for machine consumption -h, --help Print help -V, --version Print versionExamples
Section titled “Examples”Print the full topological order:
forgeplan orderPipe into a sprint doc template:
forgeplan order --json | jq -r '.[] | "- [ ] \(.id) \(.title)"'Output interpretation
Section titled “Output interpretation”One artifact per line, earliest-first (breadth-first tiebreaker):
1. ADR-003 Files as source of truth [active]2. PRD-039 BM25 production search [active]3. RFC-004 Layered search architecture [active]4. EVID-018 Benchmark results [active]5. PRD-040 Scoring intelligence [draft]| Column | Meaning |
|---|---|
| Index | Position in the topological walk |
| ID | Artifact ID |
| Title | Short title |
| Status | [active], [draft], etc. — lets you skip terminal |
If a cycle is detected, the command exits with status 1 and prints the cycle
path — fix the offending blocks / depends_on edge and re-run.
How it fits
Section titled “How it fits”order is the “execute in this sequence” view. Pair with blocked:
order → ideal sequence (ignores status)blocked → what is stuck right nowA healthy workspace: everything in order[0:k] is [active] or [done],
and blocked is empty.
See also
Section titled “See also”forgeplan blocked— unresolved blockersforgeplan tree— hierarchy viewforgeplan graph— full edge graph