Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
2.8 KiB
2.8 KiB
id, title, group
| id | title | group |
|---|---|---|
| 4 | Phase Planning | Core Features |
Command: /msd-plan-phase [N] [--auto] [--skip-research] [--skip-verify]
Purpose: Research the implementation domain and produce verified, atomic execution plans.
Requirements:
- REQ-PLAN-01: System MUST spawn a phase researcher to investigate implementation approaches
- REQ-PLAN-02: System MUST produce plans with 2-3 tasks each, sized for a single context window
- REQ-PLAN-03: System MUST structure plans as XML with
<task>elements containingname,files,action,verify, anddonefields - REQ-PLAN-04: System MUST include
read_firstandacceptance_criteriasections in every plan - REQ-PLAN-05: System MUST run plan checker verification loop (up to 3 iterations) unless
--skip-verifyis set - REQ-PLAN-06: System MUST support
--skip-researchflag to bypass research phase - REQ-PLAN-07: System MUST prompt user to run
/msd-ui-phaseif frontend phase detected and no UI-SPEC.md exists (UI safety gate) - REQ-PLAN-08: System MUST include Nyquist validation mapping when
workflow.nyquist_validationis enabled - REQ-PLAN-09: System MUST verify all phase requirements are covered by at least one plan before planning completes (requirements coverage gate)
- REQ-PLAN-10: System MUST support an optional
<reversibility rating="reversible|costly|one-way">element recording how costly a decision would be to undo, and MUST insert acheckpoint:decisionbefore the task implementing aone-waydecision unless--no-reversibility-gatesis set (costlyis flagged without blocking;reversibleand unrated flow normally)
Produces:
| Artifact | Description |
|---|---|
{phase}-RESEARCH.md |
Ecosystem research findings |
{phase}-{N}-PLAN.md |
Atomic execution plans (2-3 tasks each) |
{phase}-VALIDATION.md |
Test coverage mapping (Nyquist layer) |
Plan Structure (XML):
<task type="auto">
<name>Create login endpoint</name>
<files>src/app/api/auth/login/route.ts</files>
<action>
Use jose for JWT. Validate credentials against users table.
Return httpOnly cookie on success.
</action>
<verify>curl -X POST localhost:3000/api/auth/login returns 200 + Set-Cookie</verify>
<done>Valid credentials return cookie, invalid return 401</done>
</task>
Plan Checker Verification (8 Dimensions):
- Requirement coverage — Plans address all phase requirements
- Task atomicity — Each task is independently committable
- Dependency ordering — Tasks sequence correctly
- File scope — No excessive file overlap between plans
- Verification commands — Each task has testable done criteria
- Context fit — Tasks fit within a single context window
- Gap detection — No missing implementation steps
- Nyquist compliance — Tasks have automated verify commands (when enabled)