Break a raw task into an ordered, executable, dependency-aware step list with acceptance criteria and explicit open questions.
raw_task_description (required, string): the user request as-is.constraints (optional, string[]): non-negotiables (security, time, language, tooling).repo_context (optional, string): relevant paths, conventions, or prior decisions.risk_level_hint (optional, enum: low|medium|high): if the user already signaled risk.done_when)risk (low|medium|high)validation (what will be checked)Structured plan (example schema):
summary: "<what will be delivered>"
open_questions:
- "<question>"
assumptions:
- "<assumption (only if low risk)>"
steps:
- id: 1
action: "<verb phrase>"
targets: ["<path/system>"]
risk: low
validation: "<check to run>"
done_when: "<observable condition>"
Input:
raw_task_description: “Add a CLI command to export reports.â€constraints: ["No breaking changes", "Must include tests"]Output (excerpt):
summary: "Add `report export` command and tests"
open_questions:
- "What output formats are required (json/csv/pdf)?"
steps:
- id: 1
action: "Locate existing CLI entrypoints and command router"
targets: ["src/cli/*"]
risk: low
validation: "CLI help shows existing commands unchanged"
done_when: "Command dispatch mechanism is identified"
共 1 个版本