Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

fix(verify): suppress W006 for not-yet-started phases - #2027

Merged
trek-e merged 1 commit into
mainfrom
fix/issue-2009-w006-false-positives
Apr 10, 2026
Merged

trek-e merged 1 commit into
mainfrom
fix/issue-2009-w006-false-positives

Conversation

@trek-e

@trek-e trek-e commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

What

W006 (Phase in ROADMAP.md but no directory on disk) was firing for every phase listed in ROADMAP.md, including future phases that have never been started. Projects with multiple planned phases were getting a false DEGRADED health status.

Why

The W006 check iterated all ### Phase N: headings in ROADMAP.md and warned about any that lacked a disk directory. It had no concept of "not yet started" — a phase in the summary list with - [ ] (unchecked) is intentionally absent from disk.

How

Before emitting W006, check the ROADMAP summary list for - [ ] **Phase N:** (unchecked checkbox). Phases explicitly marked as not yet started are expected to have no directory — skip W006 for them.

  • Phases with - [x] (completed) that have no directory still trigger W006 (genuine inconsistency)
  • Phases with a heading but no summary checkbox entry still trigger W006
  • Adds two regression tests covering both the suppressed and preserved cases

Closes #2009

…checkbox (#2009)

W006 (Phase in ROADMAP.md but no directory on disk) fired for every phase
listed in ROADMAP.md that lacked a phase directory, including future phases
that haven't been started yet. This produced false DEGRADED health status
on any project with more than one phase planned.

Fix: before emitting W006, check the ROADMAP summary list for a
'- [ ] **Phase N:**' unchecked checkbox. Phases explicitly marked as not
yet started are intentionally absent from disk -- skip W006 for them.
Phases with a checked checkbox ([x]) or with no summary entry still
trigger W006 as before.

Adds two regression tests: one verifying W006 is suppressed for unchecked
phases, and one verifying W006 still fires for checked phases with no disk
directory.
@trek-e
trek-e requested a review from glittercowboy as a code owner April 10, 2026 15:00
@trek-e
trek-e merged commit 14b8add into main Apr 10, 2026
8 checks passed
@trek-e
trek-e deleted the fix/issue-2009-w006-false-positives branch April 10, 2026 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Health check reports DEGRADED for not-yet-started phases (W006/W002 false positives)

1 participant