Validate a spec-loop feature
validateChecks a feature specification or candidate object against its phase schema, coverage rules, Mermaid artifacts, and stored SVG safety/existence checks, reporting every error with a JSON pointer.
Instructions
Validate a spec-loop feature.json, or a candidate object, against the schema and the coverage checks of its phase, and parse every Mermaid artifact; for a stored feature, also check that every svg artifact file exists and is a safe svg. Every error has a JSON pointer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | Candidate feature object, validated instead of the stored file | |
| root | No | Absolute path of the project holding spec/. Pass it on every call; otherwise SPEC_LOOP_ROOT, then CLAUDE_PROJECT_DIR, then the server working directory. | |
| feature | No | spec-loop feature: its id (FEAT-001), its name (maket-http-connector) or its folder |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phase | Yes | ||
| valid | Yes | No invalid error: the JSON may be written | |
| errors | Yes | ||
| complete | Yes | No error at all: the current phase is complete |