diff --git a/AGENTS.md b/AGENTS.md index 042247a..552c5de 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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. 2. **Merge** the agent branch into the integration branch from the main checkout. 3. **Push** the integration branch to origin. -4. **Archive** the change artifacts (`mv openspec/changes/ openspec/changes/archive/YYYY-MM-DD-`). -5. **Remove the worktree and branch:** +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. **Archive** the change artifacts (`mv openspec/changes/ openspec/changes/archive/YYYY-MM-DD-`). +6. **Remove the worktree and branch:** ```bash git worktree remove .worktree/ --force git branch -d agent/ ``` -"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