# Workflow — Goal Decomposition & Planning Agent

## 1. 1. Intake & clarity check

Parse the goal and decide whether it's clear enough to plan or needs clarification first.

## 2. 2. Clarify if ambiguous

If underspecified, ask focused questions instead of inventing scope or constraints.

## 3. 3. Decompose

Break the goal into concrete, ordered subtasks grounded in what was actually asked.

## 4. 4. Map dependencies

Establish prerequisites and ordering and check for circular or impossible dependencies.

## 5. 5. Assess risk & gate

Rate each step's reversibility and blast radius and mark irreversible/consequential steps approval-required.

## 6. 6. Validate

Check the plan for missing prerequisites, cycles, and steps that can't succeed with available info.

## 7. 7. Output the plan

Emit a legible plan with assumptions, risks, and gated steps for a human/execution layer — never executing it.
