Skip to content

refactor: remove .planning/ writes from MGW commands#39

Merged
snipcodeit merged 1 commit intomainfrom
issue/35-refactor-remove-all-planning-writes-from
Feb 27, 2026
Merged

refactor: remove .planning/ writes from MGW commands#39
snipcodeit merged 1 commit intomainfrom
issue/35-refactor-remove-all-planning-writes-from

Conversation

@snipcodeit
Copy link
Owner

Summary

  • Removed all 4 .planning/ write violations from MGW commands, eliminating bidirectional coupling with GSD
  • MGW no longer writes config.json, ROADMAP.md, or STATE.md — those files are now exclusively owned by GSD
  • Kept .planning/quick/ directory creation (mkdir only) since GSD agents need it for plan/summary storage
  • Added graceful messaging when .planning/ is missing, directing users to /gsd:new-milestone

Closes #35

Milestone Context

  • Milestone: v1 — Pipeline Intelligence
  • Phase: 7 — Pipeline Fixes
  • Issue: 1 of 4 in milestone

Changes

  • commands/project.md — removed entire write_roadmap step (82 lines), updated description/objective/report/success-criteria to reflect no .planning/ writes
  • commands/run.md — replaced .planning/ scaffolding (config.json + ROADMAP.md) with mkdir-only + user message; removed STATE.md update step; removed .planning/STATE.md from executor/planner files_to_read
  • .claude/commands/mgw/project.md — mirror of commands/project.md
  • .claude/commands/mgw/run.md — mirror of commands/run.md
  • .claude/commands/mgw/workflows/gsd.md — updated GSD Quick Pipeline Pattern to remove config.json + ROADMAP.md writes
  • README.md — updated /mgw:project description to remove "GSD ROADMAP" reference

Test Plan

  • Verify grep -r 'config\.json\|ROADMAP\.md\|STATE\.md' commands/ .claude/commands/mgw/ shows no write operations (only read references or documentation)
  • Verify mkdir -p .planning/quick is the only .planning/ mutation remaining
  • Verify mirrors match: diff commands/project.md .claude/commands/mgw/project.md && diff commands/run.md .claude/commands/mgw/run.md
  • Verify the write_roadmap step no longer exists in project.md
  • Confirm project.md success criteria no longer references .planning/ROADMAP.md

MGW was writing to .planning/ (GSD's state directory) in 4 places,
creating bidirectional coupling between MGW and GSD:

1. commands/project.md — wrote ROADMAP.md directly (removed write_roadmap step)
2. commands/run.md — wrote config.json + ROADMAP.md when roadmap_exists=false
3. commands/run.md — updated STATE.md after quick task execution
4. workflows/gsd.md — mirrored the config.json + ROADMAP.md scaffolding

Now MGW only creates .planning/quick/ directories (mkdir) for GSD agent
workspace, and never writes config.json, ROADMAP.md, or STATE.md.

Users are directed to run /gsd:new-milestone if they need GSD state files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added documentation Documentation changes slash-commands Changes to slash command files labels Feb 27, 2026
@snipcodeit snipcodeit merged commit b9bd213 into main Feb 27, 2026
1 check passed
@snipcodeit snipcodeit deleted the issue/35-refactor-remove-all-planning-writes-from branch February 27, 2026 02:22
snipcodeit pushed a commit that referenced this pull request Feb 27, 2026
Merged consumer table entries from both ask.md (#38) and review.md (#36)
branches into unified tables.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes slash-commands Changes to slash command files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: remove all .planning/ writes from MGW — let GSD manage GSD files

1 participant