Worktree initialization only copied DECISIONS.md, REQUIREMENTS.md, PROJECT.md, and QUEUE.md. The missing STATE.md caused the pre-dispatch health check in doctor-proactive.ts to block dispatch with 'STATE.md missing'. Add STATE.md, KNOWLEDGE.md, and OVERRIDES.md to the copy list so worktrees start with complete planning state.
This commit is contained in:
parent
c6d1bdd1cc
commit
776a8800d8
1 changed files with 3 additions and 2 deletions
|
|
@ -312,7 +312,8 @@ export function createAutoWorktree(basePath: string, milestoneId: string): strin
|
|||
|
||||
/**
|
||||
* Copy .gsd/ planning artifacts from source repo to a new worktree.
|
||||
* Copies milestones/, DECISIONS.md, REQUIREMENTS.md, PROJECT.md, QUEUE.md.
|
||||
* Copies milestones/, DECISIONS.md, REQUIREMENTS.md, PROJECT.md, QUEUE.md,
|
||||
* STATE.md, KNOWLEDGE.md, and OVERRIDES.md.
|
||||
* Skips runtime files (auto.lock, metrics.json, etc.) and the worktrees/ dir.
|
||||
* Best-effort — failures are non-fatal since auto-mode can recreate artifacts.
|
||||
*/
|
||||
|
|
@ -330,7 +331,7 @@ function copyPlanningArtifacts(srcBase: string, wtPath: string): void {
|
|||
}
|
||||
|
||||
// Copy top-level planning files
|
||||
for (const file of ["DECISIONS.md", "REQUIREMENTS.md", "PROJECT.md", "QUEUE.md"]) {
|
||||
for (const file of ["DECISIONS.md", "REQUIREMENTS.md", "PROJECT.md", "QUEUE.md", "STATE.md", "KNOWLEDGE.md", "OVERRIDES.md"]) {
|
||||
const src = join(srcGsd, file);
|
||||
if (existsSync(src)) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue