enh(plan-phase): `--reviews` should replan only the plans with actionable findings
Pre-submission checklist
- I have confirmed this improves existing behavior — it does not add a new command, workflow, or concept
- I have searched existing issues and this enhancement has not already been proposed
- I have read CONTRIBUTING.md and understand I must wait for
approved-enhancementbefore writing any code - I can clearly describe the concrete benefit — not just "it would be nicer"
What existing feature or behavior does this improve?
/gsd-plan-phase --reviews: which plans a replan may rewrite.
Current behavior
The workflow does not say which plans a replan may touch. Step 7 goes "straight to replanning", and the planner prompt asks that actionable findings be "incorporated or explicitly deferred/rejected in PLAN.md". Nothing limits the rewrite to the plans those findings name, so the scope is whatever the orchestrator decides that run.
On gsd-core 1.15.0, the same 30-plan phase (chunked, one planner per plan) produced two different scopes:
- Cycle 2: the review had 2 actionable findings. The replan rewrote 2 plans.
- Cycle 3: the review had 4 actionable findings, in 02-10, 02-13, 02-25 and 02-30. The replan went through all 30 plans in order, about 3 minutes each. Plans with no finding were rewritten too: 02-03 +19 lines, 02-04 +38/−7, 02-06 +48/−14, 02-07 +34/−7.
Proposed behavior
- Before spawning planners, derive the set of plans that
REVIEWS.mdgives actionable findings. Add the plans whosedepends_onorfiles_modifieda change there would affect. - Spawn planners only for that set. Pass every other plan to them read-only as context.
- Run the checker over the full phase as today, since cross-plan dimensions need it. Revisions it triggers stay scoped the same way.
--replan-allrestores today's unbounded behaviour for when a finding really spans the phase.
Reason and benefit
- Time. 30 × about 3 minutes against 4 findings, plus a checker pass over all 30.
- It works against convergence. Every line rewritten in a plan nobody asked to change is new text for the next review. "New findings in untouched text" then reads as a deeper review and buys another cycle, so the loop feeds itself.
- Budget. On an agent runtime with a per-run subagent cap, one planner per plan plus checker iterations spent the whole cap (40) once, mid-cycle.
Scope of changes
workflows/plan-phase.md, the --reviews path: the planner-spawn step (the chunked per-plan loop and the single-planner prompt), and the revision loop after the checker. The checker itself is unchanged.
Pairs with scoped review (#5124 asks for /gsd-review --plans / --changed): a replan that touches 4 plans can then be re-reviewed as 4 plans.
Breaking changes
A --reviews run that relied on the planner rewriting untouched plans would need --replan-all. Nothing else changes: the checker still covers the full phase.
Source: open-gsd/gsd-core