Close Increment
Closure = verify → optional review → specweave complete. The only hard
gate is reports/verify.json with ok: true. Grill / judge / rubric reports
are optional evidence and never block.
Usage
sw:done <increment-id> # normal closure
sw:done <increment-id> --reason "<why>" # close without a green verify (recorded as metadata.closeReason)
Steps
- Ledger check:
specweave task list <id>. Every task must be done or skipped. Open/claimed tasks → go back to sw:do (or task skip … --reason "<why>"). Release your own claims: specweave task release --all-mine.
- Verify:
specweave verify <id>. Runs testing.commands from config (else npm run test|lint|build, cargo test, pytest, go test ./...), writes reports/verify.md + reports/verify.json. Non-zero exit → fix, re-run. Do not proceed on red without a --reason from the user.
- Review (recommended for anything user-facing, optional otherwise): invoke
Skill({ skill: "sw:review" }) — fresh context, adversarial, findings cite path:line, written to reports/review.md. Fix critical/high findings, re-run step 2 if code changed.
- Docs touched? If the increment changed commands, config, or user-facing behaviour, update README/CHANGELOG/CLAUDE.md
## Commands in the same commit. Living docs sync only if livingDocs is enabled in config (specweave docs sync <id>).
- Complete:
Bash({ command: "specweave complete <id> --yes" }). The CLI refuses when verify.json is missing or not ok unless --reason "<text>" is given; it prints a notice when reports/review.md is absent; it sets status: completed and syncs GitHub/Jira/ADO when configured. Never edit metadata.json status by hand.
- Handoff: if work continues elsewhere (follow-ups, another increment),
sw:handoff.
Report in one paragraph: verify result, review verdict (or "skipped"), commit sha(s), anything deferred.
Rules
- Never ask "should I close?" — closure follows automatically when tasks are done; the user can re-open.
--skip-validation exists for emergencies only; prefer --reason so the reason is recorded.
- Multi-agent sessions (
sw:team): only the lead runs sw:done, after every agent has released and handed off.
- Failed sync after completion:
specweave sync push <id> retries; closure itself already succeeded.
Resources
1---2name: done3description: Close Increment4---56# Close Increment78Closure = **verify → optional review → `specweave complete`**. The only hard9gate is `reports/verify.json` with `ok: true`. Grill / judge / rubric reports10are optional evidence and never block.1112## Usage1314```15sw:done <increment-id> # normal closure16sw:done <increment-id> --reason "<why>" # close without a green verify (recorded as metadata.closeReason)17```1819## Steps20211. **Ledger check**: `specweave task list <id>`. Every task must be `done` or `skipped`. Open/claimed tasks → go back to `sw:do` (or `task skip … --reason "<why>"`). Release your own claims: `specweave task release --all-mine`.222. **Verify**: `specweave verify <id>`. Runs `testing.commands` from config (else `npm run test|lint|build`, `cargo test`, `pytest`, `go test ./...`), writes `reports/verify.md` + `reports/verify.json`. Non-zero exit → fix, re-run. Do not proceed on red without a `--reason` from the user.233. **Review (recommended for anything user-facing, optional otherwise)**: invoke `Skill({ skill: "sw:review" })` — fresh context, adversarial, findings cite `path:line`, written to `reports/review.md`. Fix critical/high findings, re-run step 2 if code changed.244. **Docs touched?** If the increment changed commands, config, or user-facing behaviour, update README/CHANGELOG/CLAUDE.md `## Commands` in the same commit. Living docs sync only if `livingDocs` is enabled in config (`specweave docs sync <id>`).255. **Complete**: `Bash({ command: "specweave complete <id> --yes" })`. The CLI refuses when `verify.json` is missing or not ok unless `--reason "<text>"` is given; it prints a notice when `reports/review.md` is absent; it sets `status: completed` and syncs GitHub/Jira/ADO when configured. **Never edit `metadata.json` status by hand.**266. **Handoff**: if work continues elsewhere (follow-ups, another increment), `sw:handoff`.2728Report in one paragraph: verify result, review verdict (or "skipped"), commit sha(s), anything deferred.2930## Rules3132- Never ask "should I close?" — closure follows automatically when tasks are done; the user can re-open.33- `--skip-validation` exists for emergencies only; prefer `--reason` so the reason is recorded.34- Multi-agent sessions (`sw:team`): only the lead runs `sw:done`, after every agent has released and handed off.35- Failed sync after completion: `specweave sync push <id>` retries; closure itself already succeeded.3637## Resources3839- [Official Documentation](https://verified-skill.com/docs/reference/skills#done)