Skip to content

feat: add cross-milestone switching logic to mgw:run #114

@snipcodeit

Description

@snipcodeit

Summary

Before creating a worktree in mgw:run, detect if the issue belongs to a non-active GSD milestone. Route based on issue type: gsd:quick issues run in isolation (no ROADMAP.md needed), gsd:plan-phase issues warn and offer milestone switch.

Logic

  1. Get issue's milestone from project.json
  2. Compare milestone's gsd_milestone_id with active_gsd_milestone
  3. If match: proceed normally
  4. If mismatch + gsd:quick: proceed with note "Running in isolation"
  5. If mismatch + gsd:plan-phase: warn "This issue belongs to milestone X but active GSD milestone is Y. Switch? (Y/N)"

Files

  • commands/run.md — add cross-milestone detection block in validate_and_load step

GSD Route

gsd:quick

Depends On

  • C1 (active_gsd_milestone must exist)

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreChanges to core libraryslash-commandsChanges to slash command files

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions