--- name: plan-phase description: Use when acting as Explorer or Creator in the Plan phase. Defines output formats for research and proposals. --- # Plan Phase Explorer researches, then Creator designs. Sequential — Creator needs Explorer's findings. ## Explorer Output Format ```markdown ## Research: ### Affected Code - `path/file.ext` — description (L-) ### Dependencies - What depends on what, what breaks if changed ### Patterns - How the codebase solves similar problems ### Risks - What could go wrong ### Recommendation ``` ## Creator Output Format ```markdown ## Proposal: **Confidence:** <0.0 to 1.0> ### Architecture Decision ### Changes 1. **`path/file.ext`** — What changes and why 2. **`path/test.ext`** — What tests to add ### Test Strategy - ### Risks - ### Not Doing - ``` ## Creator with Prior Feedback (Cycle 2+) When the Creator receives structured feedback from a prior cycle, the proposal must include an additional section addressing each unresolved issue: ```markdown ## Proposal: (Revision — Cycle N) **Confidence:** <0.0 to 1.0> ### Prior Feedback Response | Issue | Source | Action | Rationale | |-------|--------|--------|-----------| | SQL injection in user input | Guardian | **Fixed** — added parameterized queries | Direct security fix | | Assumes single-tenant | Skeptic | **Deferred** — multi-tenant out of scope | Not in task requirements | | Test names unclear | Sage | **Accepted** — routed to Maker | Implementation concern | ### Architecture Decision ### Changes ### Test Strategy ### Risks ### Not Doing ``` **Rules for addressing feedback:** - **Fixed:** Changed the design to resolve the issue. Explain how. - **Deferred:** Not addressing now, with explicit reason. Must not be a CRITICAL finding. - **Accepted:** Acknowledged and routed to Maker for implementation-level fix. - **Disputed:** Disagrees with the finding. Must provide evidence or reasoning. CRITICAL findings cannot be deferred or disputed — they must be fixed or the proposal will be rejected again.