Advance a spec-loop feature
phaseAdvance a spec-loop feature to the next schema stage only after completion, owner-edit, and hook checks pass; move it back to an earlier stage on owner request with a reason.
Instructions
Move a spec-loop feature to the next phase of the schema, only when the current phase is complete (entry rules of the next phase included), no owner edit is pending and every beforeLeave project hook of spec/spec-loop.json exits 0; or, with to, back to an earlier phase on the owner's decision with a reason. Runs the onEnter project hooks of the phase entered, records the history entry and every hook run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | Who decided the move: owner when the owner asked for it; a backward move requires owner | |
| to | No | An earlier phase to move back to; omit to advance to the next phase | |
| root | Yes | Absolute path of the project that holds spec/; required, since project hooks run there | |
| reason | No | Why the owner moves the feature back; required with to | |
| feature | Yes | spec-loop feature: its id (FEAT-001), its name (maket-http-connector) or its folder |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| to | Yes | ||
| from | Yes | ||
| next | Yes | What the agent does next: every result about a feature carries it; follow it | |
| hooks | Yes | Project hooks run by this call: beforeLeave hooks of the phase left, then onEnter hooks of the phase entered | |
| patch | Yes | ||
| feature | Yes | ||
| missing | Yes | ||
| reasons | Yes |