From 70928ba31994a8b61d6602dd79ce09ef6bcce2e5 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 13 Apr 2026 11:55:23 +0200 Subject: [PATCH] AGENTS.md: add spec sync to close-out workflow Made-with: Cursor --- AGENTS.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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