mindforge-cc 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/.agent/bin/lib/commands.cjs +959 -0
  2. package/.agent/bin/lib/config.cjs +421 -0
  3. package/.agent/bin/lib/core.cjs +1166 -0
  4. package/.agent/bin/lib/frontmatter.cjs +307 -0
  5. package/.agent/bin/lib/init.cjs +1336 -0
  6. package/.agent/bin/lib/milestone.cjs +252 -0
  7. package/.agent/bin/lib/model-profiles.cjs +68 -0
  8. package/.agent/bin/lib/phase.cjs +888 -0
  9. package/.agent/bin/lib/profile-output.cjs +952 -0
  10. package/.agent/bin/lib/profile-pipeline.cjs +539 -0
  11. package/.agent/bin/lib/roadmap.cjs +329 -0
  12. package/.agent/bin/lib/security.cjs +356 -0
  13. package/.agent/bin/lib/state.cjs +969 -0
  14. package/.agent/bin/lib/template.cjs +222 -0
  15. package/.agent/bin/lib/uat.cjs +189 -0
  16. package/.agent/bin/lib/verify.cjs +851 -0
  17. package/.agent/bin/lib/workstream.cjs +491 -0
  18. package/.agent/bin/mindforge-tools.cjs +897 -0
  19. package/.agent/file-manifest.json +219 -0
  20. package/.agent/hooks/mindforge-check-update.js +114 -0
  21. package/.agent/hooks/mindforge-context-monitor.js +156 -0
  22. package/.agent/hooks/mindforge-prompt-guard.js +96 -0
  23. package/.agent/hooks/mindforge-statusline.js +119 -0
  24. package/.agent/hooks/mindforge-workflow-guard.js +94 -0
  25. package/.agent/mindforge/discuss-phase.md +1 -1
  26. package/.agent/mindforge/help.md +1 -1
  27. package/.agent/mindforge/learn.md +3 -2
  28. package/.agent/mindforge/research.md +3 -2
  29. package/.agent/mindforge/steer.md +1 -1
  30. package/.agent/settings.json +38 -0
  31. package/.agent/skills/mindforge-add-backlog/SKILL.md +72 -0
  32. package/.agent/skills/mindforge-add-phase/SKILL.md +39 -0
  33. package/.agent/skills/mindforge-add-tests/SKILL.md +28 -0
  34. package/.agent/skills/mindforge-add-todo/SKILL.md +42 -0
  35. package/.agent/skills/mindforge-audit-milestone/SKILL.md +29 -0
  36. package/.agent/skills/mindforge-audit-uat/SKILL.md +20 -0
  37. package/.agent/skills/mindforge-autonomous/SKILL.md +33 -0
  38. package/.agent/skills/mindforge-check-todos/SKILL.md +40 -0
  39. package/.agent/skills/mindforge-cleanup/SKILL.md +19 -0
  40. package/.agent/skills/mindforge-complete-milestone/SKILL.md +131 -0
  41. package/.agent/skills/mindforge-debug/SKILL.md +163 -0
  42. package/.agent/skills/mindforge-discuss-phase/SKILL.md +54 -0
  43. package/.agent/skills/mindforge-do/SKILL.md +26 -0
  44. package/.agent/skills/mindforge-execute-phase/SKILL.md +49 -0
  45. package/.agent/skills/mindforge-fast/SKILL.md +23 -0
  46. package/.agent/skills/mindforge-forensics/SKILL.md +49 -0
  47. package/.agent/skills/mindforge-health/SKILL.md +17 -0
  48. package/.agent/skills/mindforge-help/SKILL.md +23 -0
  49. package/.agent/skills/mindforge-insert-phase/SKILL.md +28 -0
  50. package/.agent/skills/mindforge-join-discord/SKILL.md +19 -0
  51. package/.agent/skills/mindforge-list-phase-assumptions/SKILL.md +41 -0
  52. package/.agent/skills/mindforge-list-workspaces/SKILL.md +17 -0
  53. package/.agent/skills/mindforge-manager/SKILL.md +32 -0
  54. package/.agent/skills/mindforge-map-codebase/SKILL.md +64 -0
  55. package/.agent/skills/mindforge-milestone-summary/SKILL.md +44 -0
  56. package/.agent/skills/mindforge-new-milestone/SKILL.md +38 -0
  57. package/.agent/skills/mindforge-new-project/SKILL.md +36 -0
  58. package/.agent/skills/mindforge-new-workspace/SKILL.md +39 -0
  59. package/.agent/skills/mindforge-next/SKILL.md +19 -0
  60. package/.agent/skills/mindforge-note/SKILL.md +29 -0
  61. package/.agent/skills/mindforge-pause-work/SKILL.md +35 -0
  62. package/.agent/skills/mindforge-plan-milestone-gaps/SKILL.md +28 -0
  63. package/.agent/skills/mindforge-plan-phase/SKILL.md +37 -0
  64. package/.agent/skills/mindforge-plant-seed/SKILL.md +22 -0
  65. package/.agent/skills/mindforge-pr-branch/SKILL.md +21 -0
  66. package/.agent/skills/mindforge-profile-user/SKILL.md +38 -0
  67. package/.agent/skills/mindforge-progress/SKILL.md +19 -0
  68. package/.agent/skills/mindforge-quick/SKILL.md +38 -0
  69. package/.agent/skills/mindforge-reapply-patches/SKILL.md +124 -0
  70. package/.agent/skills/mindforge-remove-phase/SKILL.md +26 -0
  71. package/.agent/skills/mindforge-remove-workspace/SKILL.md +22 -0
  72. package/.agent/skills/mindforge-research-phase/SKILL.md +186 -0
  73. package/.agent/skills/mindforge-resume-work/SKILL.md +35 -0
  74. package/.agent/skills/mindforge-review/SKILL.md +31 -0
  75. package/.agent/skills/mindforge-review-backlog/SKILL.md +58 -0
  76. package/.agent/skills/mindforge-session-report/SKILL.md +16 -0
  77. package/.agent/skills/mindforge-set-profile/SKILL.md +9 -0
  78. package/.agent/skills/mindforge-settings/SKILL.md +32 -0
  79. package/.agent/skills/mindforge-ship/SKILL.md +16 -0
  80. package/.agent/skills/mindforge-stats/SKILL.md +16 -0
  81. package/.agent/skills/mindforge-thread/SKILL.md +123 -0
  82. package/.agent/skills/mindforge-ui-phase/SKILL.md +24 -0
  83. package/.agent/skills/mindforge-ui-review/SKILL.md +24 -0
  84. package/.agent/skills/mindforge-update/SKILL.md +35 -0
  85. package/.agent/skills/mindforge-validate-phase/SKILL.md +26 -0
  86. package/.agent/skills/mindforge-verify-work/SKILL.md +30 -0
  87. package/.agent/skills/mindforge-workstreams/SKILL.md +65 -0
  88. package/.agent/workflows/mindforge-add-phase.md +112 -0
  89. package/.agent/workflows/mindforge-add-tests.md +351 -0
  90. package/.agent/workflows/mindforge-add-todo.md +158 -0
  91. package/.agent/workflows/mindforge-audit-milestone.md +332 -0
  92. package/.agent/workflows/mindforge-audit-uat.md +109 -0
  93. package/.agent/workflows/mindforge-autonomous.md +815 -0
  94. package/.agent/workflows/mindforge-check-todos.md +177 -0
  95. package/.agent/workflows/mindforge-cleanup.md +152 -0
  96. package/.agent/workflows/mindforge-complete-milestone.md +766 -0
  97. package/.agent/workflows/mindforge-diagnose-issues.md +220 -0
  98. package/.agent/workflows/mindforge-discovery-phase.md +289 -0
  99. package/.agent/workflows/mindforge-discuss-phase-assumptions.md +645 -0
  100. package/.agent/workflows/mindforge-discuss-phase.md +1047 -0
  101. package/.agent/workflows/mindforge-do.md +104 -0
  102. package/.agent/workflows/mindforge-execute-phase.md +838 -0
  103. package/.agent/workflows/mindforge-execute-plan.md +509 -0
  104. package/.agent/workflows/mindforge-fast.md +105 -0
  105. package/.agent/workflows/mindforge-forensics.md +265 -0
  106. package/.agent/workflows/mindforge-health.md +181 -0
  107. package/.agent/workflows/mindforge-help.md +606 -0
  108. package/.agent/workflows/mindforge-insert-phase.md +130 -0
  109. package/.agent/workflows/mindforge-list-phase-assumptions.md +178 -0
  110. package/.agent/workflows/mindforge-list-workspaces.md +56 -0
  111. package/.agent/workflows/mindforge-manager.md +360 -0
  112. package/.agent/workflows/mindforge-map-codebase.md +370 -0
  113. package/.agent/workflows/mindforge-milestone-summary.md +223 -0
  114. package/.agent/workflows/mindforge-new-milestone.md +469 -0
  115. package/.agent/workflows/mindforge-new-project.md +1226 -0
  116. package/.agent/workflows/mindforge-new-workspace.md +237 -0
  117. package/.agent/workflows/mindforge-next.md +97 -0
  118. package/.agent/workflows/mindforge-node-repair.md +92 -0
  119. package/.agent/workflows/mindforge-note.md +156 -0
  120. package/.agent/workflows/mindforge-pause-work.md +176 -0
  121. package/.agent/workflows/mindforge-plan-milestone-gaps.md +273 -0
  122. package/.agent/workflows/mindforge-plan-phase.md +848 -0
  123. package/.agent/workflows/mindforge-plant-seed.md +169 -0
  124. package/.agent/workflows/mindforge-pr-branch.md +129 -0
  125. package/.agent/workflows/mindforge-profile-user.md +450 -0
  126. package/.agent/workflows/mindforge-progress.md +507 -0
  127. package/.agent/workflows/mindforge-quick.md +732 -0
  128. package/.agent/workflows/mindforge-remove-phase.md +155 -0
  129. package/.agent/workflows/mindforge-remove-workspace.md +90 -0
  130. package/.agent/workflows/mindforge-research-phase.md +74 -0
  131. package/.agent/workflows/mindforge-resume-project.md +325 -0
  132. package/.agent/workflows/mindforge-review.md +228 -0
  133. package/.agent/workflows/mindforge-session-report.md +146 -0
  134. package/.agent/workflows/mindforge-settings.md +283 -0
  135. package/.agent/workflows/mindforge-ship.md +228 -0
  136. package/.agent/workflows/mindforge-stats.md +60 -0
  137. package/.agent/workflows/mindforge-transition.md +671 -0
  138. package/.agent/workflows/mindforge-ui-phase.md +290 -0
  139. package/.agent/workflows/mindforge-ui-review.md +157 -0
  140. package/.agent/workflows/mindforge-update.md +323 -0
  141. package/.agent/workflows/mindforge-validate-phase.md +167 -0
  142. package/.agent/workflows/mindforge-verify-phase.md +254 -0
  143. package/.agent/workflows/mindforge-verify-work.md +623 -0
  144. package/.mindforge/personas/advisor-researcher.md +3 -3
  145. package/.mindforge/personas/debug-specialist.md +1 -1
  146. package/.mindforge/personas/debugger.md +1 -1
  147. package/.mindforge/personas/developer.md +1 -1
  148. package/.mindforge/personas/phase-researcher.md +4 -4
  149. package/.mindforge/personas/project-researcher.md +3 -3
  150. package/.mindforge/personas/research-agent.md +4 -3
  151. package/.mindforge/personas/tech-writer.md +1 -1
  152. package/.mindforge/personas/ui-researcher.md +1 -1
  153. package/.planning/ROADMAP.md +10 -0
  154. package/CHANGELOG.md +34 -0
  155. package/README.md +70 -45
  156. package/RELEASENOTES.md +26 -26
  157. package/bin/install.js +41 -41
  158. package/bin/installer-core.js +67 -26
  159. package/bin/wizard/setup-wizard.js +11 -24
  160. package/bin/wizard/theme.js +141 -0
  161. package/docs/PERSONAS.md +119 -87
  162. package/docs/References/checkpoints.md +778 -0
  163. package/docs/References/config-reference.md +81 -0
  164. package/docs/References/continuation-format.md +249 -0
  165. package/docs/References/decimal-phase-calculation.md +64 -0
  166. package/docs/References/git-integration.md +295 -0
  167. package/docs/References/git-planning-commit.md +38 -0
  168. package/docs/References/model-profile-resolution.md +36 -0
  169. package/docs/References/model-profiles.md +139 -0
  170. package/docs/References/phase-argument-parsing.md +61 -0
  171. package/docs/References/planning-config.md +202 -0
  172. package/docs/References/questioning.md +162 -0
  173. package/docs/References/tdd.md +263 -0
  174. package/docs/References/ui-brand.md +160 -0
  175. package/docs/References/user-profiling.md +681 -0
  176. package/docs/References/verification-patterns.md +612 -0
  177. package/docs/References/workstream-flag.md +58 -0
  178. package/docs/Templates/Agents/CLAUDE-MD.md +122 -0
  179. package/docs/Templates/Agents/COPILOT-INSTRUCTIONS.md +7 -0
  180. package/docs/Templates/Agents/DEBUGGER-PROMPT.md +91 -0
  181. package/docs/Templates/Agents/PLANNER-PROMPT.md +117 -0
  182. package/docs/Templates/Codebase/architecture.md +255 -0
  183. package/docs/Templates/Codebase/concerns.md +310 -0
  184. package/docs/Templates/Codebase/conventions.md +307 -0
  185. package/docs/Templates/Codebase/integrations.md +280 -0
  186. package/docs/Templates/Codebase/stack.md +186 -0
  187. package/docs/Templates/Codebase/structure.md +285 -0
  188. package/docs/Templates/Codebase/testing.md +480 -0
  189. package/docs/Templates/Execution/CONTINUE-HERE.md +78 -0
  190. package/docs/Templates/Execution/DISCUSSION-LOG.md +63 -0
  191. package/docs/Templates/Execution/PHASE-PROMPT.md +610 -0
  192. package/docs/Templates/Execution/STATE.md +176 -0
  193. package/docs/Templates/Execution/SUMMARY-COMPLEX.md +59 -0
  194. package/docs/Templates/Execution/SUMMARY-MINIMAL.md +41 -0
  195. package/docs/Templates/Execution/SUMMARY-STANDARD.md +48 -0
  196. package/docs/Templates/Execution/SUMMARY.md +248 -0
  197. package/docs/Templates/Profile/DEV-PREFERENCES.md +21 -0
  198. package/docs/Templates/Profile/USER-PROFILE.md +146 -0
  199. package/docs/Templates/Profile/USER-SETUP.md +311 -0
  200. package/docs/Templates/Project/DISCOVERY.md +146 -0
  201. package/docs/Templates/Project/MILESTONE-ARCHIVE.md +123 -0
  202. package/docs/Templates/Project/MILESTONE.md +115 -0
  203. package/docs/Templates/Project/PROJECT.md +206 -0
  204. package/docs/Templates/Project/REQUIREMENTS.md +231 -0
  205. package/docs/Templates/Project/RETROSPECTIVE.md +54 -0
  206. package/docs/Templates/Project/ROADMAP.md +202 -0
  207. package/docs/Templates/Quality/DEBUG.md +164 -0
  208. package/docs/Templates/Quality/UAT.md +280 -0
  209. package/docs/Templates/Quality/UI-SPEC.md +100 -0
  210. package/docs/Templates/Quality/VALIDATION.md +76 -0
  211. package/docs/Templates/Quality/VERIFICATION-REPORT.md +322 -0
  212. package/docs/Templates/Research/ARCHITECTURE.md +204 -0
  213. package/docs/Templates/Research/FEATURES.md +147 -0
  214. package/docs/Templates/Research/PITFALLS.md +200 -0
  215. package/docs/Templates/Research/STACK.md +120 -0
  216. package/docs/Templates/Research/SUMMARY.md +170 -0
  217. package/docs/Templates/System/CONFIG.json +43 -0
  218. package/docs/Templates/System/CONTEXT.md +352 -0
  219. package/docs/architecture/README.md +54 -42
  220. package/docs/commands-reference.md +62 -14
  221. package/docs/getting-started.md +26 -18
  222. package/docs/skills-authoring-guide.md +40 -12
  223. package/docs/tutorial.md +83 -116
  224. package/docs/user-guide.md +72 -198
  225. package/package.json +7 -2
  226. package/.mindforge/memory/knowledge-base.jsonl +0 -7
  227. package/.mindforge/memory/pattern-library.jsonl +0 -1
  228. package/.mindforge/memory/team-preferences.jsonl +0 -4
  229. package/.planning/browser-daemon.log +0 -32
  230. package/docs/mindforge-md-reference.md +0 -57
  231. package/docs/reference/config-reference.md +0 -64
  232. /package/{.mindforge/memory/decision-library.jsonl → .planning/phases/01-migrate-gsd-to-mindforge/.gitkeep} +0 -0
  233. /package/docs/{reference → References}/audit-events.md +0 -0
  234. /package/docs/{reference → References}/commands.md +0 -0
  235. /package/docs/{reference → References}/sdk-api.md +0 -0
  236. /package/docs/{reference → References}/skills-api.md +0 -0
@@ -0,0 +1,54 @@
1
+ # Project Retrospective
2
+
3
+ *A living document updated after each milestone. Lessons feed forward into future planning.*
4
+
5
+ ## Milestone: v{version} — {name}
6
+
7
+ **Shipped:** {date}
8
+ **Phases:** {count} | **Plans:** {count} | **Sessions:** {count}
9
+
10
+ ### What Was Built
11
+ - {Key deliverable 1}
12
+ - {Key deliverable 2}
13
+ - {Key deliverable 3}
14
+
15
+ ### What Worked
16
+ - {Efficiency win or successful pattern}
17
+ - {What went smoothly}
18
+
19
+ ### What Was Inefficient
20
+ - {Missed opportunity}
21
+ - {What took longer than expected}
22
+
23
+ ### Patterns Established
24
+ - {New pattern or convention that should persist}
25
+
26
+ ### Key Lessons
27
+ 1. {Specific, actionable lesson}
28
+ 2. {Another lesson}
29
+
30
+ ### Cost Observations
31
+ - Model mix: {X}% opus, {Y}% sonnet, {Z}% haiku
32
+ - Sessions: {count}
33
+ - Notable: {efficiency observation}
34
+
35
+ ---
36
+
37
+ ## Cross-Milestone Trends
38
+
39
+ ### Process Evolution
40
+
41
+ | Milestone | Sessions | Phases | Key Change |
42
+ |-----------|----------|--------|------------|
43
+ | v{X} | {N} | {M} | {What changed in process} |
44
+
45
+ ### Cumulative Quality
46
+
47
+ | Milestone | Tests | Coverage | Zero-Dep Additions |
48
+ |-----------|-------|----------|-------------------|
49
+ | v{X} | {N} | {Y}% | {count} |
50
+
51
+ ### Top Lessons (Verified Across Milestones)
52
+
53
+ 1. {Lesson verified by multiple milestones}
54
+ 2. {Another cross-validated lesson}
@@ -0,0 +1,202 @@
1
+ # Roadmap Template
2
+
3
+ Template for `.planning/ROADMAP.md`.
4
+
5
+ ## Initial Roadmap (v1.0 Greenfield)
6
+
7
+ ```markdown
8
+ # Roadmap: [Project Name]
9
+
10
+ ## Overview
11
+
12
+ [One paragraph describing the journey from start to finish]
13
+
14
+ ## Phases
15
+
16
+ **Phase Numbering:**
17
+ - Integer phases (1, 2, 3): Planned milestone work
18
+ - Decimal phases (2.1, 2.2): Urgent insertions (marked with INSERTED)
19
+
20
+ Decimal phases appear between their surrounding integers in numeric order.
21
+
22
+ - [ ] **Phase 1: [Name]** - [One-line description]
23
+ - [ ] **Phase 2: [Name]** - [One-line description]
24
+ - [ ] **Phase 3: [Name]** - [One-line description]
25
+ - [ ] **Phase 4: [Name]** - [One-line description]
26
+
27
+ ## Phase Details
28
+
29
+ ### Phase 1: [Name]
30
+ **Goal**: [What this phase delivers]
31
+ **Depends on**: Nothing (first phase)
32
+ **Requirements**: [REQ-01, REQ-02, REQ-03] <!-- brackets optional, parser handles both formats -->
33
+ **Success Criteria** (what must be TRUE):
34
+ 1. [Observable behavior from user perspective]
35
+ 2. [Observable behavior from user perspective]
36
+ 3. [Observable behavior from user perspective]
37
+ **Plans**: [Number of plans, e.g., "3 plans" or "TBD"]
38
+
39
+ Plans:
40
+ - [ ] 01-01: [Brief description of first plan]
41
+ - [ ] 01-02: [Brief description of second plan]
42
+ - [ ] 01-03: [Brief description of third plan]
43
+
44
+ ### Phase 2: [Name]
45
+ **Goal**: [What this phase delivers]
46
+ **Depends on**: Phase 1
47
+ **Requirements**: [REQ-04, REQ-05]
48
+ **Success Criteria** (what must be TRUE):
49
+ 1. [Observable behavior from user perspective]
50
+ 2. [Observable behavior from user perspective]
51
+ **Plans**: [Number of plans]
52
+
53
+ Plans:
54
+ - [ ] 02-01: [Brief description]
55
+ - [ ] 02-02: [Brief description]
56
+
57
+ ### Phase 2.1: Critical Fix (INSERTED)
58
+ **Goal**: [Urgent work inserted between phases]
59
+ **Depends on**: Phase 2
60
+ **Success Criteria** (what must be TRUE):
61
+ 1. [What the fix achieves]
62
+ **Plans**: 1 plan
63
+
64
+ Plans:
65
+ - [ ] 02.1-01: [Description]
66
+
67
+ ### Phase 3: [Name]
68
+ **Goal**: [What this phase delivers]
69
+ **Depends on**: Phase 2
70
+ **Requirements**: [REQ-06, REQ-07, REQ-08]
71
+ **Success Criteria** (what must be TRUE):
72
+ 1. [Observable behavior from user perspective]
73
+ 2. [Observable behavior from user perspective]
74
+ 3. [Observable behavior from user perspective]
75
+ **Plans**: [Number of plans]
76
+
77
+ Plans:
78
+ - [ ] 03-01: [Brief description]
79
+ - [ ] 03-02: [Brief description]
80
+
81
+ ### Phase 4: [Name]
82
+ **Goal**: [What this phase delivers]
83
+ **Depends on**: Phase 3
84
+ **Requirements**: [REQ-09, REQ-10]
85
+ **Success Criteria** (what must be TRUE):
86
+ 1. [Observable behavior from user perspective]
87
+ 2. [Observable behavior from user perspective]
88
+ **Plans**: [Number of plans]
89
+
90
+ Plans:
91
+ - [ ] 04-01: [Brief description]
92
+
93
+ ## Progress
94
+
95
+ **Execution Order:**
96
+ Phases execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
97
+
98
+ | Phase | Plans Complete | Status | Completed |
99
+ |-------|----------------|--------|-----------|
100
+ | 1. [Name] | 0/3 | Not started | - |
101
+ | 2. [Name] | 0/2 | Not started | - |
102
+ | 3. [Name] | 0/2 | Not started | - |
103
+ | 4. [Name] | 0/1 | Not started | - |
104
+ ```
105
+
106
+ <guidelines>
107
+ **Initial planning (v1.0):**
108
+ - Phase count depends on granularity setting (coarse: 3-5, standard: 5-8, fine: 8-12)
109
+ - Each phase delivers something coherent
110
+ - Phases can have 1+ plans (split if >3 tasks or multiple subsystems)
111
+ - Plans use naming: {phase}-{plan}-PLAN.md (e.g., 01-02-PLAN.md)
112
+ - No time estimates (this isn't enterprise PM)
113
+ - Progress table updated by execute workflow
114
+ - Plan count can be "TBD" initially, refined during planning
115
+
116
+ **Success criteria:**
117
+ - 2-5 observable behaviors per phase (from user's perspective)
118
+ - Cross-checked against requirements during roadmap creation
119
+ - Flow downstream to `must_haves` in plan-phase
120
+ - Verified by verify-phase after execution
121
+ - Format: "User can [action]" or "[Thing] works/exists"
122
+
123
+ **After milestones ship:**
124
+ - Collapse completed milestones in `<details>` tags
125
+ - Add new milestone sections for upcoming work
126
+ - Keep continuous phase numbering (never restart at 01)
127
+ </guidelines>
128
+
129
+ <status_values>
130
+ - `Not started` - Haven't begun
131
+ - `In progress` - Currently working
132
+ - `Complete` - Done (add completion date)
133
+ - `Deferred` - Pushed to later (with reason)
134
+ </status_values>
135
+
136
+ ## Milestone-Grouped Roadmap (After v1.0 Ships)
137
+
138
+ After completing first milestone, reorganize with milestone groupings:
139
+
140
+ ```markdown
141
+ # Roadmap: [Project Name]
142
+
143
+ ## Milestones
144
+
145
+ - ✅ **v1.0 MVP** - Phases 1-4 (shipped YYYY-MM-DD)
146
+ - 🚧 **v1.1 [Name]** - Phases 5-6 (in progress)
147
+ - 📋 **v2.0 [Name]** - Phases 7-10 (planned)
148
+
149
+ ## Phases
150
+
151
+ <details>
152
+ <summary>✅ v1.0 MVP (Phases 1-4) - SHIPPED YYYY-MM-DD</summary>
153
+
154
+ ### Phase 1: [Name]
155
+ **Goal**: [What this phase delivers]
156
+ **Plans**: 3 plans
157
+
158
+ Plans:
159
+ - [x] 01-01: [Brief description]
160
+ - [x] 01-02: [Brief description]
161
+ - [x] 01-03: [Brief description]
162
+
163
+ [... remaining v1.0 phases ...]
164
+
165
+ </details>
166
+
167
+ ### 🚧 v1.1 [Name] (In Progress)
168
+
169
+ **Milestone Goal:** [What v1.1 delivers]
170
+
171
+ #### Phase 5: [Name]
172
+ **Goal**: [What this phase delivers]
173
+ **Depends on**: Phase 4
174
+ **Plans**: 2 plans
175
+
176
+ Plans:
177
+ - [ ] 05-01: [Brief description]
178
+ - [ ] 05-02: [Brief description]
179
+
180
+ [... remaining v1.1 phases ...]
181
+
182
+ ### 📋 v2.0 [Name] (Planned)
183
+
184
+ **Milestone Goal:** [What v2.0 delivers]
185
+
186
+ [... v2.0 phases ...]
187
+
188
+ ## Progress
189
+
190
+ | Phase | Milestone | Plans Complete | Status | Completed |
191
+ |-------|-----------|----------------|--------|-----------|
192
+ | 1. Foundation | v1.0 | 3/3 | Complete | YYYY-MM-DD |
193
+ | 2. Features | v1.0 | 2/2 | Complete | YYYY-MM-DD |
194
+ | 5. Security | v1.1 | 0/2 | Not started | - |
195
+ ```
196
+
197
+ **Notes:**
198
+ - Milestone emoji: ✅ shipped, 🚧 in progress, 📋 planned
199
+ - Completed milestones collapsed in `<details>` for readability
200
+ - Current/future milestones expanded
201
+ - Continuous phase numbering (01-99)
202
+ - Progress table includes milestone column
@@ -0,0 +1,164 @@
1
+ # Debug Template
2
+
3
+ Template for `.planning/debug/[slug].md` — active debug session tracking.
4
+
5
+ ---
6
+
7
+ ## File Template
8
+
9
+ ```markdown
10
+ ---
11
+ status: gathering | investigating | fixing | verifying | awaiting_human_verify | resolved
12
+ trigger: "[verbatim user input]"
13
+ created: [ISO timestamp]
14
+ updated: [ISO timestamp]
15
+ ---
16
+
17
+ ## Current Focus
18
+ <!-- OVERWRITE on each update - always reflects NOW -->
19
+
20
+ hypothesis: [current theory being tested]
21
+ test: [how testing it]
22
+ expecting: [what result means if true/false]
23
+ next_action: [immediate next step]
24
+
25
+ ## Symptoms
26
+ <!-- Written during gathering, then immutable -->
27
+
28
+ expected: [what should happen]
29
+ actual: [what actually happens]
30
+ errors: [error messages if any]
31
+ reproduction: [how to trigger]
32
+ started: [when it broke / always broken]
33
+
34
+ ## Eliminated
35
+ <!-- APPEND only - prevents re-investigating after /clear -->
36
+
37
+ - hypothesis: [theory that was wrong]
38
+ evidence: [what disproved it]
39
+ timestamp: [when eliminated]
40
+
41
+ ## Evidence
42
+ <!-- APPEND only - facts discovered during investigation -->
43
+
44
+ - timestamp: [when found]
45
+ checked: [what was examined]
46
+ found: [what was observed]
47
+ implication: [what this means]
48
+
49
+ ## Resolution
50
+ <!-- OVERWRITE as understanding evolves -->
51
+
52
+ root_cause: [empty until found]
53
+ fix: [empty until applied]
54
+ verification: [empty until verified]
55
+ files_changed: []
56
+ ```
57
+
58
+ ---
59
+
60
+ <section_rules>
61
+
62
+ **Frontmatter (status, trigger, timestamps):**
63
+ - `status`: OVERWRITE - reflects current phase
64
+ - `trigger`: IMMUTABLE - verbatim user input, never changes
65
+ - `created`: IMMUTABLE - set once
66
+ - `updated`: OVERWRITE - update on every change
67
+
68
+ **Current Focus:**
69
+ - OVERWRITE entirely on each update
70
+ - Always reflects what the agent is doing RIGHT NOW
71
+ - If the agent reads this after /clear, it knows exactly where to resume
72
+ - Fields: hypothesis, test, expecting, next_action
73
+
74
+ **Symptoms:**
75
+ - Written during initial gathering phase
76
+ - IMMUTABLE after gathering complete
77
+ - Reference point for what we're trying to fix
78
+ - Fields: expected, actual, errors, reproduction, started
79
+
80
+ **Eliminated:**
81
+ - APPEND only - never remove entries
82
+ - Prevents re-investigating dead ends after context reset
83
+ - Each entry: hypothesis, evidence that disproved it, timestamp
84
+ - Critical for efficiency across /clear boundaries
85
+
86
+ **Evidence:**
87
+ - APPEND only - never remove entries
88
+ - Facts discovered during investigation
89
+ - Each entry: timestamp, what checked, what found, implication
90
+ - Builds the case for root cause
91
+
92
+ **Resolution:**
93
+ - OVERWRITE as understanding evolves
94
+ - May update multiple times as fixes are tried
95
+ - Final state shows confirmed root cause and verified fix
96
+ - Fields: root_cause, fix, verification, files_changed
97
+
98
+ </section_rules>
99
+
100
+ <lifecycle>
101
+
102
+ **Creation:** Immediately when /mindforge-debug is called
103
+ - Create file with trigger from user input
104
+ - Set status to "gathering"
105
+ - Current Focus: next_action = "gather symptoms"
106
+ - Symptoms: empty, to be filled
107
+
108
+ **During symptom gathering:**
109
+ - Update Symptoms section as user answers questions
110
+ - Update Current Focus with each question
111
+ - When complete: status → "investigating"
112
+
113
+ **During investigation:**
114
+ - OVERWRITE Current Focus with each hypothesis
115
+ - APPEND to Evidence with each finding
116
+ - APPEND to Eliminated when hypothesis disproved
117
+ - Update timestamp in frontmatter
118
+
119
+ **During fixing:**
120
+ - status → "fixing"
121
+ - Update Resolution.root_cause when confirmed
122
+ - Update Resolution.fix when applied
123
+ - Update Resolution.files_changed
124
+
125
+ **During verification:**
126
+ - status → "verifying"
127
+ - Update Resolution.verification with results
128
+ - If verification fails: status → "investigating", try again
129
+
130
+ **After self-verification passes:**
131
+ - status -> "awaiting_human_verify"
132
+ - Request explicit user confirmation in a checkpoint
133
+ - Do NOT move file to resolved yet
134
+
135
+ **On resolution:**
136
+ - status → "resolved"
137
+ - Move file to .planning/debug/resolved/ (only after user confirms fix)
138
+
139
+ </lifecycle>
140
+
141
+ <resume_behavior>
142
+
143
+ When the agent reads this file after /clear:
144
+
145
+ 1. Parse frontmatter → know status
146
+ 2. Read Current Focus → know exactly what was happening
147
+ 3. Read Eliminated → know what NOT to retry
148
+ 4. Read Evidence → know what's been learned
149
+ 5. Continue from next_action
150
+
151
+ The file IS the debugging brain. the agent should be able to resume perfectly from any interruption point.
152
+
153
+ </resume_behavior>
154
+
155
+ <size_constraint>
156
+
157
+ Keep debug files focused:
158
+ - Evidence entries: 1-2 lines each, just the facts
159
+ - Eliminated: brief - hypothesis + why it failed
160
+ - No narrative prose - structured data only
161
+
162
+ If evidence grows very large (10+ entries), consider whether you're going in circles. Check Eliminated to ensure you're not re-treading.
163
+
164
+ </size_constraint>
@@ -0,0 +1,280 @@
1
+ # UAT Template
2
+
3
+ Template for `.planning/phases/XX-name/{phase_num}-UAT.md` — persistent UAT session tracking.
4
+
5
+ ---
6
+
7
+ ## File Template
8
+
9
+ ```markdown
10
+ ---
11
+ status: testing | partial | complete | diagnosed
12
+ phase: XX-name
13
+ source: [list of SUMMARY.md files tested]
14
+ started: [ISO timestamp]
15
+ updated: [ISO timestamp]
16
+ ---
17
+
18
+ ## Environment Matrix
19
+ <!-- Where this testing was performed -->
20
+
21
+ | Device/OS | Browser | Status | Notes |
22
+ | :----------- | :------- | :-------- | :---- |
23
+ | [e.g. macOS] | [Chrome] | [Pending] | [] |
24
+ | [e.g. iOS] | [Safari] | [Pending] | [] |
25
+
26
+ ## Compliance & Security Check
27
+ <!-- Enterprise-level verification -->
28
+
29
+ - [ ] [ ] **Accessibility (WCAG 2.1)**: [Status: Pass/Fail/NA]
30
+ - [ ] [ ] **Data Privacy (GDPR/CCPA)**: [Status: Pass/Fail/NA]
31
+ - [ ] [ ] **Security (OWASP Top 10)**: [Status: Pass/Fail/NA]
32
+
33
+ ## Current Test
34
+ <!-- OVERWRITE each test - shows where we are -->
35
+
36
+ number: [N]
37
+ name: [test name]
38
+ expected: |
39
+ [what user should observe]
40
+ awaiting: user response
41
+
42
+ ## Tests
43
+
44
+ ### 1. [Test Name]
45
+ expected: [observable behavior - what user should see]
46
+ result: [pending]
47
+
48
+ ### 2. [Test Name]
49
+ expected: [observable behavior]
50
+ result: pass
51
+
52
+ ### 3. [Test Name]
53
+ expected: [observable behavior]
54
+ result: issue
55
+ reported: "[verbatim user response]"
56
+ severity: major
57
+
58
+ ### 4. [Test Name]
59
+ expected: [observable behavior]
60
+ result: skipped
61
+ reason: [why skipped]
62
+
63
+ ### 5. [Test Name]
64
+ expected: [observable behavior]
65
+ result: blocked
66
+ blocked_by: server | physical-device | release-build | third-party | prior-phase
67
+ reason: [why blocked]
68
+
69
+ ...
70
+
71
+ ## Summary
72
+
73
+ total: [N]
74
+ passed: [N]
75
+ issues: [N]
76
+ pending: [N]
77
+ skipped: [N]
78
+ blocked: [N]
79
+
80
+ ## Gaps
81
+
82
+ <!-- YAML format for plan-phase --gaps consumption -->
83
+ - truth: "[expected behavior from test]"
84
+ status: failed
85
+ reason: "User reported: [verbatim response]"
86
+ severity: blocker | major | minor | cosmetic
87
+ test: [N]
88
+ root_cause: "" # Filled by diagnosis
89
+ artifacts: [] # Filled by diagnosis
90
+ missing: [] # Filled by diagnosis
91
+ debug_session: "" # Filled by diagnosis
92
+ ```
93
+
94
+ ---
95
+
96
+ <section_rules>
97
+
98
+ **Frontmatter:**
99
+ - `status`: OVERWRITE - "testing", "partial", or "complete"
100
+ - `phase`: IMMUTABLE - set on creation
101
+ - `source`: IMMUTABLE - SUMMARY files being tested
102
+ - `started`: IMMUTABLE - set on creation
103
+ - `updated`: OVERWRITE - update on every change
104
+
105
+ **Current Test:**
106
+ - OVERWRITE entirely on each test transition
107
+ - Shows which test is active and what's awaited
108
+ - On completion: "[testing complete]"
109
+
110
+ **Tests:**
111
+ - Each test: OVERWRITE result field when user responds
112
+ - `result` values: [pending], pass, issue, skipped, blocked
113
+ - If issue: add `reported` (verbatim) and `severity` (inferred)
114
+ - If skipped: add `reason` if provided
115
+ - If blocked: add `blocked_by` (tag) and `reason` (if provided)
116
+
117
+ **Summary:**
118
+ - OVERWRITE counts after each response
119
+ - Tracks: total, passed, issues, pending, skipped
120
+
121
+ **Gaps:**
122
+ - APPEND only when issue found (YAML format)
123
+ - After diagnosis: fill `root_cause`, `artifacts`, `missing`, `debug_session`
124
+ - This section feeds directly into /mindforge-plan-phase --gaps
125
+
126
+ </section_rules>
127
+
128
+ <diagnosis_lifecycle>
129
+
130
+ **After testing complete (status: complete), if gaps exist:**
131
+
132
+ 1. User runs diagnosis (from verify-work offer or manually)
133
+ 2. diagnose-issues workflow spawns parallel debug agents
134
+ 3. Each agent investigates one gap, returns root cause
135
+ 4. UAT.md Gaps section updated with diagnosis:
136
+ - Each gap gets `root_cause`, `artifacts`, `missing`, `debug_session` filled
137
+ 5. status → "diagnosed"
138
+ 6. Ready for /mindforge-plan-phase --gaps with root causes
139
+
140
+ **After diagnosis:**
141
+ ```yaml
142
+ ## Gaps
143
+
144
+ - truth: "Comment appears immediately after submission"
145
+ status: failed
146
+ reason: "User reported: works but doesn't show until I refresh the page"
147
+ severity: major
148
+ test: 2
149
+ root_cause: "useEffect in CommentList.tsx missing commentCount dependency"
150
+ artifacts:
151
+ - path: "src/components/CommentList.tsx"
152
+ issue: "useEffect missing dependency"
153
+ missing:
154
+ - "Add commentCount to useEffect dependency array"
155
+ debug_session: ".planning/debug/comment-not-refreshing.md"
156
+ ```
157
+
158
+ </diagnosis_lifecycle>
159
+
160
+ <lifecycle>
161
+
162
+ **Creation:** When /mindforge-verify-work starts new session
163
+ - Extract tests from SUMMARY.md files
164
+ - Set status to "testing"
165
+ - Current Test points to test 1
166
+ - All tests have result: [pending]
167
+
168
+ **During testing:**
169
+ - Present test from Current Test section
170
+ - User responds with pass confirmation or issue description
171
+ - Update test result (pass/issue/skipped)
172
+ - Update Summary counts
173
+ - If issue: append to Gaps section (YAML format), infer severity
174
+ - Move Current Test to next pending test
175
+
176
+ **On completion:**
177
+ - status → "complete"
178
+ - Current Test → "[testing complete]"
179
+ - Commit file
180
+ - Present summary with next steps
181
+
182
+ **Partial completion:**
183
+ - status → "partial" (if pending, blocked, or unresolved skipped tests remain)
184
+ - Current Test → "[testing paused — {N} items outstanding]"
185
+ - Commit file
186
+ - Present summary with outstanding items highlighted
187
+
188
+ **Resuming partial session:**
189
+ - `/mindforge-verify-work {phase}` picks up from first pending/blocked test
190
+ - When all items resolved, status advances to "complete"
191
+
192
+ **Resume after /clear:**
193
+ 1. Read frontmatter → know phase and status
194
+ 2. Read Current Test → know where we are
195
+ 3. Find first [pending] result → continue from there
196
+ 4. Summary shows progress so far
197
+
198
+ </lifecycle>
199
+
200
+ <severity_guide>
201
+
202
+ Severity is INFERRED from user's natural language, never asked.
203
+
204
+ | User describes | Infer |
205
+ | :---------------------------------------------- | :-------- |
206
+ | Crash, error, exception, fails completely, unusable | blocker |
207
+ | Doesn't work, nothing happens, wrong behavior, missing | major |
208
+ | Works but..., slow, weird, minor, small issue | minor |
209
+ | Color, font, spacing, alignment, visual, looks off | cosmetic |
210
+
211
+ Default: **major** (safe default, user can clarify if wrong)
212
+
213
+ </severity_guide>
214
+
215
+ <good_example>
216
+ ```markdown
217
+ ---
218
+ status: diagnosed
219
+ phase: 04-comments
220
+ source: 04-01-SUMMARY.md, 04-02-SUMMARY.md
221
+ started: 2025-01-15T10:30:00Z
222
+ updated: 2025-01-15T10:45:00Z
223
+ ---
224
+
225
+ ## Current Test
226
+
227
+ [testing complete]
228
+
229
+ ## Tests
230
+
231
+ ### 1. View Comments on Post
232
+ expected: Comments section expands, shows count and comment list
233
+ result: pass
234
+
235
+ ### 2. Create Top-Level Comment
236
+ expected: Submit comment via rich text editor, appears in list with author info
237
+ result: issue
238
+ reported: "works but doesn't show until I refresh the page"
239
+ severity: major
240
+
241
+ ### 3. Reply to a Comment
242
+ expected: Click Reply, inline composer appears, submit shows nested reply
243
+ result: pass
244
+
245
+ ### 4. Visual Nesting
246
+ expected: 3+ level thread shows indentation, left borders, caps at reasonable depth
247
+ result: pass
248
+
249
+ ### 5. Delete Own Comment
250
+ expected: Click delete on own comment, removed or shows [deleted] if has replies
251
+ result: pass
252
+
253
+ ### 6. Comment Count
254
+ expected: Post shows accurate count, increments when adding comment
255
+ result: pass
256
+
257
+ ## Summary
258
+
259
+ total: 6
260
+ passed: 5
261
+ issues: 1
262
+ pending: 0
263
+ skipped: 0
264
+
265
+ ## Gaps
266
+
267
+ - truth: "Comment appears immediately after submission in list"
268
+ status: failed
269
+ reason: "User reported: works but doesn't show until I refresh the page"
270
+ severity: major
271
+ test: 2
272
+ root_cause: "useEffect in CommentList.tsx missing commentCount dependency"
273
+ artifacts:
274
+ - path: "src/components/CommentList.tsx"
275
+ issue: "useEffect missing dependency"
276
+ missing:
277
+ - "Add commentCount to useEffect dependency array"
278
+ debug_session: ".planning/debug/comment-not-refreshing.md"
279
+ ```
280
+ </good_example>