From 14f963753856362df0816e143e20de89c80b75d9 Mon Sep 17 00:00:00 2001 From: Anshul Vishwakarma Date: Fri, 13 Mar 2026 00:36:37 +0700 Subject: [PATCH] fix: use roadmap_complete checkbox to override disk_status (#978) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When ROADMAP.md marks a phase as [x] complete, trust that over the disk file structure. Phases completed before GSD tracking started (or via external tools) may lack PLAN/SUMMARY pairs but are still done — the roadmap checkbox is the higher-authority signal. Without this fix, completed phases show as "discussed" or "planned" in /gsd:progress, causing incorrect routing and progress percentages. Fixes #977 Co-authored-by: Claude Opus 4.6 --- get-shit-done/bin/lib/roadmap.cjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/get-shit-done/bin/lib/roadmap.cjs b/get-shit-done/bin/lib/roadmap.cjs index 9717b9aae..59dbb5836 100644 --- a/get-shit-done/bin/lib/roadmap.cjs +++ b/get-shit-done/bin/lib/roadmap.cjs @@ -157,6 +157,13 @@ function cmdRoadmapAnalyze(cwd, raw) { const checkboxMatch = content.match(checkboxPattern); const roadmapComplete = checkboxMatch ? checkboxMatch[1] === 'x' : false; + // If roadmap marks phase complete, trust that over disk file structure. + // Phases completed before GSD tracking (or via external tools) may lack + // the standard PLAN/SUMMARY pairs but are still done. + if (roadmapComplete && diskStatus !== 'complete') { + diskStatus = 'complete'; + } + phases.push({ number: phaseNum, name: phaseName,