fix(#1472,#1454): workstream-aware health paths; exclude active worktree from W017 (#1483)
* fix(#1472,#1454): validate health workstream-aware paths; exclude active worktree from W017 #1472: cmdValidateHealth now uses planningRoot(cwd) for shared-root files (PROJECT.md, config.json, MILESTONES.md) and planningDir(cwd) for workstream-scoped files (ROADMAP.md, STATE.md, phases/). Previously a single planningDir() call was used for all paths, causing false E002/E003/E004/W003 when GSD_WORKSTREAM is set. #1454: W017 no longer fires for a stale worktree whose path equals or is an ancestor of process.cwd(), preventing advice to remove the active session's own worktree. Regression tests added for both bugs; all 40 existing health tests pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix: correct changeset format Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
10
.changeset/297bb145.md
Normal file
10
.changeset/297bb145.md
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
type: Fixed
|
||||
pr: 1483
|
||||
---
|
||||
|
||||
fix(#1472): validate health is now workstream-aware — PROJECT.md and config.json are resolved from .planning/ root, while ROADMAP.md, STATE.md, and phases/ follow the workstream-scoped path; previously both sets were routed through planningDir() causing false E002/E003/E004/W003 when GSD_WORKSTREAM is set.
|
||||
|
||||
fix(#1454): validate health W017 no longer suggests removing the active session's worktree — stale-worktree findings are now skipped when the worktree path matches or is an ancestor of process.cwd().
|
||||
|
||||
<!-- docs-exempt: internal verify.cts fix — no public user-facing API or CLI change; behavior correction for workstream-scoped health validation -->
|
||||
Reference in New Issue
Block a user