Skip to content

fix: prevent false milestone-complete when unscaffolded phases remain#797

Open
ethan-hurst wants to merge 16 commits intogsd-build:mainfrom
ethan-hurst:fix/689-progress-milestone-complete
Open

fix: prevent false milestone-complete when unscaffolded phases remain#797
ethan-hurst wants to merge 16 commits intogsd-build:mainfrom
ethan-hurst:fix/689-progress-milestone-complete

Conversation

@ethan-hurst
Copy link
Contributor

What

Prevent progress and phase-complete from reporting milestone as complete when ROADMAP.md defines phases that have no disk directories yet.

Why

When all scaffolded phases were complete but ROADMAP still had unscaffolded phases, cmdInitProgress reported completed_count == phase_count and cmdPhaseComplete set isLastPhase = true — both incorrectly triggering milestone-complete routing.

Fixes #689, #754, #757, #709

Testing

  • Tested on macOS
  • Tested on Windows
  • Tested on Linux

Automated: All 168 existing tests pass (node --test tests/core.test.cjs tests/init.test.cjs tests/phase.test.cjs)

Manual: gsd-tools init progress now returns roadmap_phase_count: 4 vs phase_count: 1 / completed_count: 1, correctly showing 3 unscaffolded phases remain.

Checklist

  • Follows GSD style (no enterprise patterns, no filler)
  • Updates CHANGELOG.md for user-facing changes
  • No unnecessary dependencies added
  • Works on Windows (backslash paths tested)

Breaking Changes

None — roadmap_phase_count is a new additive field; no existing fields changed.

Ethan Hurst added 15 commits February 28, 2026 12:52
Adds /gsd:autopilot — one command to run the full pipeline (discuss →
plan → execute → verify) for remaining phases automatically.

New workflows:
- auto-discuss.md: synthetic multi-agent discuss spawns 3/5/7/9 expert
  agents that debate gray areas and converge via majority consensus,
  producing CONTEXT.md without human Q&A
- autopilot.md: thin loop orchestrator that ensures context exists then
  chains the existing auto-advance pipeline per phase

New execution engine option:
- Agent Teams mode (Claude Code only) as alternative to subagents
- Graceful degradation to subagents when unavailable
- Configurable teammate model (sonnet/opus/haiku)

Config additions:
- execution.engine: "subagents" (default) or "agent-teams"
- execution.teammate_model: model for teammates
- autopilot.discuss_agents: odd number 3-9 for consensus
- autopilot.discuss_model: model for discuss agents
- Validation enforces odd numbers and valid engine/model values

Also updates settings.md (3 new questions), progress.md (autopilot in
next-action suggestions), and execute-phase.md (engine routing + auto-
chain verification).
Agent Teams can't set per-teammate models (teammates inherit lead's
model), defeating GSD's profile-based model differentiation. Since
wave-based plans are independent (no inter-agent communication needed),
Agent Teams adds complexity with no benefit.

- Remove execution.engine config key and validation
- Rename teammate_model → agent_model across config, templates, workflows
- Strip Agent Teams sections from execute-phase, auto-discuss, settings
- Drop engine question from settings (9 → 8 settings)
execution.agent_model was configured and validated but never consumed
by any workflow. Remove the entire execution config section — discuss
model lives under autopilot.discuss_model where it's actually read.
Progress and phase-complete relied solely on disk directories to
determine phase counts. When ROADMAP.md defined phases that had no
directories yet, both code paths incorrectly reported the milestone
as complete.

Add getRoadmapPhaseNumbersInternal() to parse all phase numbers from
ROADMAP.md. Use it in cmdInitProgress (new roadmap_phase_count field)
and cmdPhaseComplete (ROADMAP fallback for next-phase detection).

Fixes gsd-build#689, gsd-build#754, gsd-build#757, gsd-build#709
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: /gsd:progress routes to Milestone Complete when unscaffolded phases remain

1 participant