Reconcile owner edits of a spec-loop feature
reconcileClose owner-edit reconciliation for a spec-loop feature by applying coherent JSON Patch edits, turning reported edits into open questions, restoring the projection, and recording verification.
Instructions
Close a reconciliation of the owner edits of a spec-loop feature: apply the JSON Patch for the coherent owner edits, turn each reported one into an open question, restore the projection exactly (owner files kept in .spec-loop/overwritten//) and record lastVerify. applied + reported must equal the pending count from diff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | JSON Patch for the coherent edits; may be empty | |
| 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. | |
| applied | Yes | Number of pending items brought into the JSON or accepted | |
| feature | Yes | spec-loop feature: its id (FEAT-001), its name (maket-http-connector) or its folder | |
| reported | Yes | Pending items reported to the owner instead of applied; each becomes an open question in framing.questions | |
| featureChange | No | Required when feature.json was changed outside the MCP: accept it (recorded in lifecycle.acceptedChanges) or restore the last known good copy |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| next | Yes | What the agent does next: every result about a feature carries it; follow it | |
| patch | Yes | ||
| errors | Yes | ||
| applied | Yes | ||
| feature | Yes | ||
| pending | Yes | ||
| reported | Yes | ||
| questions | Yes | Ids of the open questions created for the reported items |