Prevent scope creep in discuss-phase command

Add explicit guardrails to ensure context gathering questions clarify
HOW to implement roadmap scope rather than suggesting WHAT to add.
Questions must never expand scope - if user adds scope, direct them
to update ROADMAP first instead.

Changes:
- Template: Replace "Secondary goals" with "Clarifications" (HOW, not WHAT ELSE)
- Workflow: Add CRITICAL block forbidding scope-expanding questions
- Workflow: Update decision gate to emphasize clarification over expansion
- Command: Add NO SCOPE CREEP rules

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2025-12-15 17:49:28 -06:00
parent 72349e6415
commit bcc58add6a
4 changed files with 35 additions and 18 deletions

View File

@@ -20,10 +20,10 @@ Template for `.planning/phases/XX-name/{phase}-CONTEXT.md` - phase context docum
[Clear, specific description of what this phase delivers]
**Primary goal:**
[Main objective - what ships at the end]
[Main objective from roadmap - what ships at the end]
**Secondary goals:**
[Supporting objectives or nice-to-haves]
**Clarifications:**
[Any clarified details about HOW the primary goal works - not additional features]
**Out of scope:**
[What this phase explicitly does NOT include - prevents scope creep]
@@ -178,10 +178,10 @@ Implement JWT-based authentication with secure session management.
**Primary goal:**
Users can register, login, logout with JWT tokens stored in httpOnly cookies. Protected routes verify authentication.
**Secondary goals:**
- Password reset flow via email
- Remember me functionality
- Session expiry and refresh
**Clarifications:**
- Tokens stored as httpOnly cookies (not localStorage) per security requirements
- "Protected routes" means API routes + page-level middleware redirects
- Password reset included per roadmap scope
**Out of scope:**
- OAuth providers (Google, GitHub) - deferred to Phase 4