AGENTS.md: add spec sync to close-out workflow
CI / docker (push) Has been cancelled
CI / build-and-test (push) Has been cancelled

Made-with: Cursor
This commit is contained in:
2026-04-13 11:54:04 +02:00
parent 286633fc92
commit 3a04b175a1
+6 -5
View File
@@ -35,11 +35,12 @@ Untracked files in the main checkout can vanish between agent sessions. To preve
When archiving a change, always perform the complete close-out sequence:
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/<name> openspec/changes/archive/YYYY-MM-DD-<name>`).
5. **Remove the worktree and branch:**
1. **Sync specs.** Ensure OpenSpec artifacts (proposal, design, specs, tasks) reflect what was actually built — not just what was originally planned. Implementation always teaches things the spec didn't anticipate.
2. **Commit** any uncommitted implementation work in the agent worktree.
3. **Merge** the agent branch into the integration branch from the main checkout.
4. **Push** the integration branch to origin.
5. **Archive** the change artifacts (`mv openspec/changes/<name> openspec/changes/archive/YYYY-MM-DD-<name>`).
6. **Remove the worktree and branch:**
```bash
git worktree remove .worktree/<topic> --force
git branch -d agent/<topic>