fix: prevent discuss-phase from ignoring workflow instructions (#1292)
The discuss-phase command file contained a 93-line detailed <process> block that competed with the actual workflow file. The agent treated this summary as complete instructions and never read the execution_context files (discuss-phase.md, discuss-phase-assumptions.md, context.md template). Root cause: Unlike execute-phase and plan-phase commands (which have short 2-line process blocks deferring to the workflow file), discuss-phase had inline step-by-step instructions detailed enough to act on without reading the referenced workflow files. Changes: - Replace discuss-phase command's <process> block with a short directive that forces reading the workflow file, matching execute-phase/plan-phase pattern - Add MANDATORY instruction that execution_context files ARE the instructions, not optional reading - Register workflow.research_before_questions and workflow.discuss_mode as valid config keys (were missing from VALID_CONFIG_KEYS) - Fix config key mismatch: workflows referenced "research_questions" but documented key is "workflow.research_before_questions" - Move research_before_questions from hooks section to workflow section in settings workflow - Add research_before_questions default to config template and builder - Add suggestion mapping for deprecated hooks.research_questions key - Add 6 regression tests covering config keys and process block guard Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -46,50 +46,11 @@ Context files are resolved in-workflow using `init phase-op` and roadmap/state t
|
||||
DISCUSS_MODE=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" config-get workflow.discuss_mode 2>/dev/null || echo "discuss")
|
||||
```
|
||||
|
||||
If `DISCUSS_MODE` is `"assumptions"`: **Follow the discuss-phase-assumptions.md workflow instead of the steps below.** Skip all remaining steps in this process section.
|
||||
If `DISCUSS_MODE` is `"assumptions"`: Read and execute @~/.claude/get-shit-done/workflows/discuss-phase-assumptions.md end-to-end.
|
||||
|
||||
If `DISCUSS_MODE` is `"discuss"` (or unset, or any other value): Continue with the steps below (current behavior).
|
||||
If `DISCUSS_MODE` is `"discuss"` (or unset, or any other value): Read and execute @~/.claude/get-shit-done/workflows/discuss-phase.md end-to-end.
|
||||
|
||||
---
|
||||
|
||||
1. Validate phase number (error if missing or not in roadmap)
|
||||
2. Check if CONTEXT.md exists (offer update/view/skip if yes)
|
||||
3. **Load prior context** — Read PROJECT.md, REQUIREMENTS.md, STATE.md, and all prior CONTEXT.md files
|
||||
4. **Scout codebase** — Find reusable assets, patterns, and integration points
|
||||
5. **Analyze phase** — Check prior decisions, skip already-decided areas, generate remaining gray areas
|
||||
6. **Present gray areas** — Multi-select: which to discuss? Annotate with prior decisions + code context
|
||||
7. **Deep-dive each area** — 4 questions per area, code-informed options, Context7 for library choices
|
||||
8. **Write CONTEXT.md** — Sections match areas discussed + code_context section
|
||||
9. Offer next steps (research or plan)
|
||||
|
||||
**CRITICAL: Scope guardrail**
|
||||
- Phase boundary from ROADMAP.md is FIXED
|
||||
- Discussion clarifies HOW to implement, not WHETHER to add more
|
||||
- If user suggests new capabilities: "That's its own phase. I'll note it for later."
|
||||
- Capture deferred ideas — don't lose them, don't act on them
|
||||
|
||||
**Domain-aware gray areas:**
|
||||
Gray areas depend on what's being built. Analyze the phase goal:
|
||||
- Something users SEE → layout, density, interactions, states
|
||||
- Something users CALL → responses, errors, auth, versioning
|
||||
- Something users RUN → output format, flags, modes, error handling
|
||||
- Something users READ → structure, tone, depth, flow
|
||||
- Something being ORGANIZED → criteria, grouping, naming, exceptions
|
||||
|
||||
Generate 3-4 **phase-specific** gray areas, not generic categories.
|
||||
|
||||
**Probing depth:**
|
||||
- Ask 4 questions per area before checking
|
||||
- "More questions about [area], or move to next? (Remaining: [list unvisited areas])"
|
||||
- Show remaining unvisited areas so user knows what's still ahead
|
||||
- If more → ask 4 more, check again
|
||||
- After all areas → "Ready to create context?"
|
||||
|
||||
**Do NOT ask about (Claude handles these):**
|
||||
- Technical implementation
|
||||
- Architecture choices
|
||||
- Performance concerns
|
||||
- Scope expansion
|
||||
**MANDATORY:** The execution_context files listed above ARE the instructions. Read the workflow file BEFORE taking any action. The objective and success_criteria sections in this command file are summaries — the workflow file contains the complete step-by-step process with all required behaviors, config checks, and interaction patterns. Do not improvise from the summary.
|
||||
</process>
|
||||
|
||||
<success_criteria>
|
||||
|
||||
Reference in New Issue
Block a user