AGENTS.md: add spec sync to close-out workflow

Made-with: Cursor
This commit is contained in:
2026-04-13 11:55:23 +02:00
parent 80128e2031
commit 70928ba319
+4 -3
View File
@@ -44,14 +44,15 @@ When archiving a change (`openspec-archive`), always perform the complete close-
1. **Commit** any uncommitted implementation work in the agent worktree. 1. **Commit** any uncommitted implementation work in the agent worktree.
2. **Merge** the agent branch into the integration branch from the main checkout. 2. **Merge** the agent branch into the integration branch from the main checkout.
3. **Push** the integration branch to origin. 3. **Push** the integration branch to origin.
4. **Archive** the change artifacts (`mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>`). 4. **Sync delta specs** to main specs (`openspec/specs/`) before archiving. If the change introduced or modified capabilities, ensure the main specs reflect the final implemented state — not the original proposal, but what was actually built.
5. **Remove the worktree and branch:** 5. **Archive** the change artifacts (`mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>`).
6. **Remove the worktree and branch:**
```bash ```bash
git worktree remove .worktree/<topic> --force git worktree remove .worktree/<topic> --force
git branch -d agent/<topic> git branch -d agent/<topic>
``` ```
"Done" means done — no orphan worktrees, no unmerged branches, no unpushed commits. "Done" means done — no orphan worktrees, no unmerged branches, no unpushed commits, no stale specs.
## Tech Stack ## Tech Stack