Clarify Spec
vdd_clarifyVDD Phase 4b: Clarify an existing spec — scans vdd/specs//spec.md and returns the items to resolve: every [NEEDS CLARIFICATION] marker, [e.g.] placeholder, and happy-path acceptance criterion (AC) still needing an edge-case counterpart (AC-E*). Read-only; returns the list without editing the file (the host agent then applies the resolutions). Pass feature (spec directory name). Run after vdd_specify when a spec has unresolved markers; to author a brand-new spec use vdd_specify instead. Parameter relationships: feature must be the exact spec directory name created by vdd_specify. On the hosted (stateless) endpoint, pass artifactFiles ({"vdd/specs//spec.md": "..."}) so the tool can scan the spec and return the real markers; without it the tool returns a delegation envelope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feature | Yes | Feature name: the vdd/specs/<feature>/ directory, kebab-case (e.g., "user-auth"); must reference a directory created earlier by vdd_specify | |
| projectRoot | No | Project root: directory that constitution.md and the vdd/ folder are written to and resolved against. Relative paths resolve from the current working directory; keep the same value across every phase (default ".") | . |
| artifactFiles | No | Map of vdd/-relative artifact path → full file text, for the hosted (stateless) endpoint, which cannot read the caller filesystem; without it the tool returns a delegation envelope |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message when the phase fails | |
| _phase | No | VDD phase that produced this result | |
| output | No | Additional structured phase output | |
| success | Yes | Whether the phase completed successfully | |
| artifact | No | Primary artifact produced or returned | |
| gateResult | No | Quality-gate result, when the phase runs a gate |