-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
BLUF
When /mgw:run routes an issue to gsd:new-milestone, it should ensure GSD creates the full .planning/phases/ directory structure matching the ROADMAP phases. Currently, work executes but GSD phase state is never instantiated, causing /gsd:progress to show stale data and route incorrectly.
What's Wrong
After completing all 4 MGW milestones (28 issues, all merged), running /gsd:progress routes to "discuss phase 1" because:
- Stale phase directories from the tool-building milestone remain in
.planning/phases/(01-shared-workflow-hardening,02-template-engine, etc.) - No new phase directories were created for the open-source release ROADMAP phases (Community Files, GitHub Config, Package Prep, etc.)
- ROADMAP.md progress table shows all phases "Not started" despite all work being complete
- GSD has no visibility into MGW's pipeline state — it only reads
.planning/phases/
Root Cause
MGW's /mgw:run delegates to GSD agents (planner, executor, verifier) but doesn't ensure the full GSD lifecycle runs:
gsd:new-milestoneshould createROADMAP.mdwith phases → this happensgsd:plan-phase Nshould create.planning/phases/NN-slug/with PLAN.md → this is skippedgsd:execute-phase Nshould create SUMMARY.md and advance STATE.md → this is skippedgsd:complete-milestoneshould archive old phase dirs → never called
The result: MGW completes work via GitHub issues/PRs, but GSD's state (.planning/) is never updated to reflect it.
What's Needed
-
When
mgw:runroutes togsd:new-milestone, it must orchestrate the full GSD lifecycle:- Create milestone → plan each phase → execute each phase → verify → complete milestone
- Each phase should produce proper
.planning/phases/artifacts (PLAN.md, SUMMARY.md)
-
When
mgw:runroutes togsd:quickorgsd:quick --full, it must create proper.planning/quick/artifacts -
After all issues in an MGW milestone complete,
gsd:complete-milestoneshould be triggered to archive phase directories and advance state -
Old
.planning/phases/from previous milestones must be cleaned up (either duringcomplete-milestoneor viagsd:cleanup)
What's Involved
commands/run.md— theexecute_gsd_milestonestep needs to orchestrateplan-phaseandexecute-phasefor each ROADMAP phase, not just spawn a single executorcommands/milestone.md— needs a completion hook that callsgsd:complete-milestone.planning/state — needs cleanup of stale dirs from tool-building milestoneworkflows/gsd.md— GSD Milestone Pipeline Pattern section needs to match actual GSD lifecycle
Additional Context
GSD research confirms the expected lifecycle:
- Phases are created by
gsd:plan-phase N→.planning/phases/NN-slug/with RESEARCH.md, PLAN.md - Execution by
gsd:execute-phase N→ adds SUMMARY.md, VERIFICATION.md, updates ROADMAP progress - Milestone completion by
gsd:complete-milestone→ archives to.planning/milestones/, resets STATE.md - MGW should orchestrate this sequence, not bypass it