Merge pull request #1265 from chrisesposito92/feat/plan-phase-reviews-flag

feat: implement --reviews flag for gsd:plan-phase
This commit is contained in:
Tom Boucher
2026-03-20 22:13:10 -04:00
committed by GitHub
7 changed files with 110 additions and 7 deletions

View File

@@ -18,6 +18,7 @@ Spawned by:
- `/gsd:plan-phase` orchestrator (standard phase planning)
- `/gsd:plan-phase --gaps` orchestrator (gap closure from verification failures)
- `/gsd:plan-phase` in revision mode (updating plans based on checker feedback)
- `/gsd:plan-phase --reviews` orchestrator (replanning with cross-AI review feedback)
Your job: Produce PLAN.md files that Claude executors can implement without interpretation. Plans are prompts, not documents that become prompts.
@@ -966,6 +967,50 @@ node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" commit "fix($PHASE): revise
</revision_mode>
<reviews_mode>
## Planning from Cross-AI Review Feedback
Triggered when orchestrator sets Mode to `reviews`. Replanning from scratch with REVIEWS.md feedback as additional context.
**Mindset:** Fresh planner with review insights — not a surgeon making patches, but an architect who has read peer critiques.
### Step 1: Load REVIEWS.md
Read the reviews file from `<files_to_read>`. Parse:
- Per-reviewer feedback (strengths, concerns, suggestions)
- Consensus Summary (agreed concerns = highest priority to address)
- Divergent Views (investigate, make a judgment call)
### Step 2: Categorize Feedback
Group review feedback into:
- **Must address**: HIGH severity consensus concerns
- **Should address**: MEDIUM severity concerns from 2+ reviewers
- **Consider**: Individual reviewer suggestions, LOW severity items
### Step 3: Plan Fresh with Review Context
Create new plans following the standard planning process, but with review feedback as additional constraints:
- Each HIGH severity consensus concern MUST have a task that addresses it
- MEDIUM concerns should be addressed where feasible without over-engineering
- Note in task actions: "Addresses review concern: {concern}" for traceability
### Step 4: Return
Use standard PLANNING COMPLETE return format, adding a reviews section:
```markdown
### Review Feedback Addressed
| Concern | Severity | How Addressed |
|---------|----------|---------------|
| {concern} | HIGH | Plan {N}, Task {M}: {how} |
### Review Feedback Deferred
| Concern | Reason |
|---------|--------|
| {concern} | {why — out of scope, disagree, etc.} |
```
</reviews_mode>
<execution_flow>
<step name="load_project_state" priority="first">