* prompt(001): map dependencies for new-project command * fix(#326): enforce context fidelity in planning pipeline Root cause: User decisions from CONTEXT.md were available but not enforced throughout the RESEARCH → PLAN → VERIFY chain. Changes: - gsd-planner: Add <context_fidelity> section requiring agents to parse and honor user decisions BEFORE creating tasks. Includes self-check checklist and conflict handling guidance. - gsd-phase-researcher: Add User Constraints as FIRST section in downstream consumer table. Require researcher to copy CONTEXT.md decisions verbatim to RESEARCH.md so planner sees them even if it only skims. - research.md template: Add <user_constraints> section that must be populated first. Locked decisions, Claude's discretion, and deferred ideas copied verbatim from CONTEXT.md. The command file (commands/gsd/plan-phase.md) already passes CONTEXT_CONTENT to all agents. These changes add the enforcement layer in the agent instructions. Fixes #326, #216, #206 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,29 @@ Template for `.planning/phases/XX-name/{phase}-RESEARCH.md` - comprehensive ecos
|
||||
**Domain:** [primary technology/problem domain]
|
||||
**Confidence:** [HIGH/MEDIUM/LOW]
|
||||
|
||||
<user_constraints>
|
||||
## User Constraints (from CONTEXT.md)
|
||||
|
||||
**CRITICAL:** If CONTEXT.md exists from /gsd:discuss-phase, copy locked decisions here verbatim. These MUST be honored by the planner.
|
||||
|
||||
### Locked Decisions
|
||||
[Copy from CONTEXT.md `## Decisions` section - these are NON-NEGOTIABLE]
|
||||
- [Decision 1]
|
||||
- [Decision 2]
|
||||
|
||||
### Claude's Discretion
|
||||
[Copy from CONTEXT.md - areas where researcher/planner can choose]
|
||||
- [Area 1]
|
||||
- [Area 2]
|
||||
|
||||
### Deferred Ideas (OUT OF SCOPE)
|
||||
[Copy from CONTEXT.md - do NOT research or plan these]
|
||||
- [Deferred 1]
|
||||
- [Deferred 2]
|
||||
|
||||
**If no CONTEXT.md exists:** Write "No user constraints - all decisions at Claude's discretion"
|
||||
</user_constraints>
|
||||
|
||||
<research_summary>
|
||||
## Summary
|
||||
|
||||
|
||||
Reference in New Issue
Block a user