forgeplan_decompose
Takes a validated PRD and produces a breakdown into 3–7 RFCs, each with title, scope, FR mapping, and dependencies. The agent calls this when a PRD is too big to implement in one sprint and needs to be split — decompose returns a draft RFC DAG the agent can then materialize via forgeplan_new + forgeplan_update + forgeplan_link.
Category: Reasoning & AI
When an agent calls this
Section titled “When an agent calls this”- After a Standard/Deep PRD passes validation and it’s time to plan implementation.
- Sprint planning: user asks “how should we split PRD-042 across the next 3 sprints?”.
- After
forgeplan_reasonsettles on a direction — decompose translates it into shippable RFCs.
Input parameters
Section titled “Input parameters”| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | PRD artifact ID to decompose into RFC tasks. |
Schema source: crates/forgeplan-mcp/src/server.rs::DecomposeParams
Returns
Section titled “Returns”A list of proposed RFCs with titles, scope summaries, covered FR IDs, and a dependency DAG expressed as depends_on arrays. The response is a draft — nothing is persisted until the agent explicitly creates artifacts via forgeplan_new.
Example response shape:
{ "source": "PRD-042", "rfcs": [ { "title": "Token issuer service", "scope": "Signs JWTs, rotates keys, exposes /token endpoint.", "covers": ["FR-001", "FR-002"], "depends_on": [] }, { "title": "Session blacklist store", "scope": "Redis-backed revocation list with TTL.", "covers": ["FR-003"], "depends_on": ["Token issuer service"] } ]}Example invocation
Section titled “Example invocation”{ "id": "PRD-001" }With typical agent context:
PRD-042 is too big for one sprint. Agent asks decompose for a breakdown, then creates the resulting RFC stubs.
{ "id": "PRD-042" }Typical sequence
Section titled “Typical sequence”forgeplan_validate PASS → forgeplan_reason → forgeplan_decompose → loop: forgeplan_new rfc + forgeplan_update + forgeplan_link relation=based_on target=PRD-042 for each suggested RFC → sprint planning.
CLI equivalent
Section titled “CLI equivalent”forgeplan decompose— same operation
See also
Section titled “See also”- MCP overview
forgeplan_reason— upstream reasoning stepforgeplan_new— materialize the decompositionforgeplan_link— connect children to parent PRD