mindsystem-cc 3.16.2 → 3.17.1

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.
package/README.md CHANGED
@@ -269,8 +269,8 @@ Replace `<N>` with the phase number you're working on.
269
269
 
270
270
  **What you'll get:**
271
271
 
272
- - `.planning/milestones/v1.0-DECISIONS.md`consolidated decisions for future reference
273
- - `.planning/milestones/v1.0-ROADMAP.md` / `v1.0-REQUIREMENTS.md` archived detail to keep active docs lean
272
+ - `.planning/milestones/v1.0/`archived milestone (ROADMAP, REQUIREMENTS, DECISIONS, research)
273
+ - Active docs stay lean; full detail lives in the version folder
274
274
 
275
275
  **Tip:** Milestone review can be **report-only** (e.g., Flutter structural review) so you stay in control. Create a quality phase, or accept tech debt explicitly — your call.
276
276
 
@@ -214,25 +214,12 @@ For each phase, analyze whether pre-work would reduce risk before planning. Thre
214
214
 
215
215
  | Pre-Work | Question It Answers | Command |
216
216
  |----------|---------------------|---------|
217
- | **Research** | "Do I know HOW to build this?" | `/ms:research-phase` |
218
217
  | **Discussion** | "Do I understand WHAT the user wants?" | `/ms:discuss-phase` |
219
218
  | **Design** | "Do I know what this should LOOK like?" | `/ms:design-phase` |
219
+ | **Research** | "Do I know HOW to build this?" | `/ms:research-phase` |
220
220
 
221
221
  All use binary Likely/Unlikely with parenthetical reason. These are hints to users, not mandates.
222
222
 
223
- ### Research Indicators
224
-
225
- **Likely when ANY of:**
226
- - External APIs or services involved
227
- - New libraries/frameworks to learn
228
- - Architectural decisions not yet made
229
- - Technical approach unclear
230
-
231
- **Unlikely when ALL of:**
232
- - Using established internal patterns
233
- - CRUD operations with known stack
234
- - Well-documented conventions exist
235
-
236
223
  ### Discussion Indicators
237
224
 
238
225
  **Problem it solves:** User's mental model isn't documented. Planning happens without understanding what's essential vs nice-to-have.
@@ -266,6 +253,19 @@ All use binary Likely/Unlikely with parenthetical reason. These are hints to use
266
253
  - Infrastructure, testing, deployment phases
267
254
  - Uses established UI patterns exclusively
268
255
 
256
+ ### Research Indicators
257
+
258
+ **Likely when ANY of:**
259
+ - External APIs or services involved
260
+ - New libraries/frameworks to learn
261
+ - Architectural decisions not yet made
262
+ - Technical approach unclear
263
+
264
+ **Unlikely when ALL of:**
265
+ - Using established internal patterns
266
+ - CRUD operations with known stack
267
+ - Well-documented conventions exist
268
+
269
269
  **Note:** Discussion and Design often overlap for UI-facing phases. This is intentional — they serve different purposes (vision vs specification) and a phase may benefit from both.
270
270
 
271
271
  ### Output Format
@@ -273,12 +273,12 @@ All use binary Likely/Unlikely with parenthetical reason. These are hints to use
273
273
  For each phase in ROADMAP.md:
274
274
 
275
275
  ```markdown
276
- **Research**: Likely (external API) | Unlikely (established patterns)
277
- **Research topics**: [What needs investigating] (only if Likely)
278
276
  **Discuss**: Likely (ambiguous user flow) | Unlikely (clear requirements)
279
277
  **Discuss topics**: [What to clarify] (only if Likely)
280
278
  **Design**: Likely (significant new UI) | Unlikely (backend only)
281
279
  **Design focus**: [What to design] (only if Likely)
280
+ **Research**: Likely (external API) | Unlikely (established patterns)
281
+ **Research topics**: [What needs investigating] (only if Likely)
282
282
  ```
283
283
 
284
284
  </pre_work_analysis>
@@ -461,11 +461,11 @@ When presenting to user for approval:
461
461
 
462
462
  ### Pre-Work Recommendations
463
463
 
464
- | Phase | Research | Discuss | Design |
465
- |-------|----------|---------|--------|
464
+ | Phase | Discuss | Design | Research |
465
+ |-------|---------|--------|----------|
466
466
  | 1 - Setup | Unlikely | Unlikely | Unlikely |
467
- | 2 - Auth | Likely | Likely | Unlikely |
468
- | 3 - Content | Unlikely | Likely | Likely |
467
+ | 2 - Auth | Likely | Unlikely | Likely |
468
+ | 3 - Content | Likely | Likely | Unlikely |
469
469
 
470
470
  **Phase 2 topics:**
471
471
  - Research: [external auth providers]
@@ -601,8 +601,8 @@ When files are written and returning to orchestrator:
601
601
 
602
602
  ### Pre-Work Recommendations
603
603
 
604
- | Phase | Research | Discuss | Design |
605
- |-------|----------|---------|--------|
604
+ | Phase | Discuss | Design | Research |
605
+ |-------|---------|--------|----------|
606
606
  | 1 - {name} | {Likely/Unlikely} | {Likely/Unlikely} | {Likely/Unlikely} |
607
607
  | 2 - {name} | {Likely/Unlikely} | {Likely/Unlikely} | {Likely/Unlikely} |
608
608
 
@@ -306,34 +306,29 @@ Use AskUserQuestion with options A and B.
306
306
 
307
307
  1. Determine next phase number (append at end of current phases)
308
308
  2. Create phase directory: `.planning/phases/{NN}-code-quality/`
309
- 3. Create `PHASE-FINDINGS.md` with full review findings
310
- 4. Update ROADMAP.md with new phase:
309
+ 3. Update ROADMAP.md with new phase:
311
310
 
312
311
  ```markdown
313
312
  ### Phase {N}: Code Quality (Generated)
314
313
  **Goal:** Address structural improvements from milestone code review
315
-
316
- **Findings to address:**
317
- [High impact items from review]
314
+ **Scope:** High and Medium items from .planning/TECH-DEBT.md
318
315
 
319
316
  Plans:
320
317
  - [ ] {N}-01: High impact structural fixes
321
318
  ```
322
319
 
323
- 5. Report:
320
+ 4. Report:
324
321
  ```markdown
325
322
  ## Quality Phase Created
326
323
 
327
324
  **Phase {N}:** `.planning/phases/{NN}-code-quality/`
328
- **Findings documented:** `PHASE-FINDINGS.md`
325
+ **Scope source:** `.planning/TECH-DEBT.md`
329
326
 
330
327
  ---
331
328
 
332
329
  ## ▶ Next Up
333
330
 
334
- **Plan the quality phase**
335
-
336
- `/ms:plan-phase {N}`
331
+ `/ms:plan-phase {N}` — plan the quality phase
337
332
 
338
333
  <sub>`/clear` first → fresh context window</sub>
339
334
  ```
@@ -394,13 +389,15 @@ After code review (all sources now available), generate or update `.planning/TEC
394
389
 
395
390
  1. **Read existing** `.planning/TECH-DEBT.md` (if exists) — parse active items and dismissed list, note highest `TD-{N}` ID
396
391
  2. **Read template** from `@~/.claude/mindsystem/templates/tech-debt.md`
397
- 3. **Collect tech debt** from all sources:
398
- - Phase VERIFICATION.md anti-patterns (severity: warning or info — blockers go to `gaps`)
399
- - Non-critical gaps from phase verifications
400
- - Code review findings (if analyze-only reviewer was used in Step 8)
392
+ 3. **Collect tech debt** from all sources with severity mapping:
393
+ - Integration checker bugs **Critical**
394
+ - Unfixed UAT issues (result: `issue`, fix_status ≠ `verified`) → **Critical** (blocker) / **High** (major) / **Medium** (minor) / **Low** (cosmetic)
395
+ - Code review findings pass through reviewer severity (**High** / **Medium** / **Low**)
396
+ - Phase VERIFICATION.md anti-patterns → **Medium** or **Low** (blockers go to `gaps`, not tech debt)
397
+ - Non-critical gaps from phase verifications → **Medium**
401
398
  4. **De-duplicate** against existing active items AND dismissed items (match by location + description similarity)
402
399
  5. **Assign `TD-{N}` IDs** continuing from highest existing ID
403
- 6. **Write/update** `.planning/TECH-DEBT.md` following the template format
400
+ 6. **Write/update** `.planning/TECH-DEBT.md` group items under `## Critical`, `## High`, `## Medium`, `## Low` sections per template. Omit empty sections.
404
401
 
405
402
  ## 9. Commit Audit Report
406
403
 
@@ -432,7 +429,7 @@ Read `~/.claude/mindsystem/references/routing/audit-result-routing.md` and follo
432
429
  - [ ] Code review completed (or skipped if config says "skip")
433
430
  - [ ] If analyze-only reviewer: YAML findings parsed and added to report
434
431
  - [ ] If analyze-only reviewer: Binary decision presented (quality phase vs tech debt)
435
- - [ ] If quality phase chosen: Phase directory created with PHASE-FINDINGS.md
432
+ - [ ] If quality phase chosen: Phase directory created, ROADMAP updated with TECH-DEBT.md scope
436
433
  - [ ] MILESTONE-AUDIT.md committed to git
437
434
  - [ ] Results presented with actionable next steps
438
435
  </success_criteria>
@@ -91,18 +91,24 @@ Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tag
91
91
 
92
92
  4. **Archive milestone:**
93
93
 
94
- - Create `.planning/milestones/v{{version}}-ROADMAP.md`
94
+ - Create `.planning/milestones/v{{version}}/` directory
95
+ - Create `.planning/milestones/v{{version}}/ROADMAP.md`
95
96
  - Extract full phase details from ROADMAP.md
96
97
  - Fill milestone-archive.md template
97
98
  - Update ROADMAP.md to one-line summary with link
98
99
 
99
100
  5. **Archive requirements:**
100
101
 
101
- - Create `.planning/milestones/v{{version}}-REQUIREMENTS.md`
102
+ - Create `.planning/milestones/v{{version}}/REQUIREMENTS.md`
102
103
  - Mark all v1 requirements as complete (checkboxes checked)
103
104
  - Note requirement outcomes (validated, adjusted, dropped)
104
105
  - Delete `.planning/REQUIREMENTS.md` (fresh one created for next milestone)
105
106
 
107
+ 5.5. **Archive research:**
108
+
109
+ - If `.planning/research/` exists, move to `.planning/milestones/v{{version}}/research/`
110
+ - Skip silently if no research directory exists
111
+
106
112
  6. **Update PROJECT.md:**
107
113
 
108
114
  - Add "Current State" section with shipped version
@@ -128,8 +134,9 @@ Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tag
128
134
  <success_criteria>
129
135
 
130
136
  - Raw artifacts cleaned from phase directories (CONTEXT, DESIGN, RESEARCH, SUMMARY, UAT, VERIFICATION, EXECUTION-ORDER)
131
- - Milestone archived to `.planning/milestones/v{{version}}-ROADMAP.md`
132
- - Requirements archived to `.planning/milestones/v{{version}}-REQUIREMENTS.md`
137
+ - Milestone archived to `.planning/milestones/v{{version}}/ROADMAP.md`
138
+ - Requirements archived to `.planning/milestones/v{{version}}/REQUIREMENTS.md`
139
+ - Research archived to `.planning/milestones/v{{version}}/research/` (if existed)
133
140
  - `.planning/REQUIREMENTS.md` deleted (fresh for next milestone)
134
141
  - ROADMAP.md collapsed to one-line entry
135
142
  - PROJECT.md updated with current state
@@ -64,7 +64,7 @@ Milestone name: $ARGUMENTS (optional — will emerge during discovery if not pro
64
64
  3. **Strategic assessment (silent — do not output this step):**
65
65
  - Check for previous milestone artifacts using calculated version:
66
66
  - `.planning/knowledge/*.md` (subsystem knowledge files — persist across milestones)
67
- - `.planning/milestones/v{VERSION}-MILESTONE-AUDIT.md` (if exists)
67
+ - `.planning/milestones/v{VERSION}/MILESTONE-AUDIT.md` (if exists)
68
68
  - `.planning/TECH-DEBT.md` (if exists)
69
69
  - Identify: outstanding tech debt, untested assumptions, high-impact gaps, unaddressed requirements
70
70
  - This is background analysis — synthesize silently, surface through suggestions in step 4
@@ -266,15 +266,13 @@ Milestone name: $ARGUMENTS (optional — will emerge during discovery if not pro
266
266
 
267
267
  ## ▶ Next Up
268
268
 
269
- **[Recommended command]** — [one-line reason from conversation]
270
-
271
- `/ms:[recommended-command]`
269
+ `/ms:[recommended-command]` — [one-line reason from conversation]
272
270
 
273
271
  <sub>`/clear` first → fresh context window</sub>
274
272
 
275
273
  ---
276
274
 
277
- **Also available:** `/ms:[alternative-command]`
275
+ **Also available:** `/ms:[alternative-command]` — [brief reason]
278
276
 
279
277
  ---
280
278
  ```
@@ -176,9 +176,7 @@ git commit -m "docs(roadmap): add gap closure phases {N}-{M}"
176
176
 
177
177
  ## ▶ Next Up
178
178
 
179
- **Plan first gap closure phase**
180
-
181
- `/ms:plan-phase {N}`
179
+ `/ms:plan-phase {N}` — plan first gap closure phase
182
180
 
183
181
  <sub>`/clear` first → fresh context window</sub>
184
182
 
@@ -67,6 +67,10 @@ Check for and read `.planning/phases/XX-name/{phase}-CONTEXT.md` - contains rese
67
67
  **Load design specs if exists (created by /ms:design-phase):**
68
68
  Check for and read `.planning/phases/XX-name/{phase}-DESIGN.md` - contains visual/UX specifications including layouts, components, flows, and verification criteria.
69
69
 
70
+ **Load tech debt if quality/cleanup phase:**
71
+ If phase name or roadmap goal contains "quality", "cleanup", "refactor", or "tech debt":
72
+ Check for and read `.planning/TECH-DEBT.md` — prioritized issues for scope selection during task breakdown.
73
+
70
74
  **Load codebase context if exists:**
71
75
  Check for `.planning/codebase/` and load relevant documents based on phase type.
72
76
 
@@ -335,9 +335,9 @@ Key findings:
335
335
  - Critical pitfall: [one-liner]
336
336
 
337
337
  ---
338
- ## > Next Up
339
- **Define requirements and create roadmap** - `/ms:create-roadmap`
340
- <sub>`/clear` first</sub>
338
+ ## Next Up
339
+ `/ms:create-roadmap` — define requirements and create roadmap
340
+ <sub>`/clear` first → fresh context window</sub>
341
341
  ---
342
342
  ```
343
343
 
@@ -9,9 +9,7 @@ Standard format for presenting next steps after completing a command or workflow
9
9
 
10
10
  ## ▶ Next Up
11
11
 
12
- **{identifier}: {name}** — {one-line description}
13
-
14
- `{command to copy-paste}`
12
+ `{command to copy-paste}` — {one-line description}
15
13
 
16
14
  <sub>`/clear` first → fresh context window</sub>
17
15
 
@@ -24,14 +22,23 @@ Standard format for presenting next steps after completing a command or workflow
24
22
  ---
25
23
  ```
26
24
 
25
+ When there's meaningful additional context (like a phase identifier), add it as a header line:
26
+
27
+ ```
28
+ **Phase {N}: {Name}** — {Goal}
29
+
30
+ `/ms:plan-phase {N}`
31
+ ```
32
+
27
33
  ## Format Rules
28
34
 
29
- 1. **Always show what it is** — name + description, never just a command path
30
- 2. **Pull context from source** — ROADMAP.md for phases, PLAN.md `<objective>` for plans
31
- 3. **Command in inline code** — backticks, easy to copy-paste, renders as clickable link
32
- 4. **`/clear` explanation** — always include, keeps it concise but explains why
33
- 5. **"Also available" not "Other options"** sounds more app-like
34
- 6. **Visual separators** `---` above and below to make it stand out
35
+ 1. **Command is the anchor** — backtick command + description on one line, no separate bold label restating the command name
36
+ 2. **Phase identifiers are additive context** — `**Phase 2: Auth**` carries info the command doesn't; bold labels like `**Plan gap closure**` just restate `/ms:plan-phase --gaps` and should be omitted
37
+ 3. **Pull context from source** — ROADMAP.md for phases, PLAN.md `<objective>` for plans
38
+ 4. **Command in inline code** — backticks, easy to copy-paste, renders as clickable link
39
+ 5. **`/clear` explanation** always include, keeps it concise but explains why
40
+ 6. **"Also available" not "Other options"** sounds more app-like
41
+ 7. **Visual separators** — `---` above and below to make it stand out
35
42
 
36
43
  ## Variants
37
44
 
@@ -167,9 +174,7 @@ All 4 phases shipped
167
174
 
168
175
  ## ▶ Next Up
169
176
 
170
- **Start v1.1** — discover what to build next
171
-
172
- `/ms:new-milestone`
177
+ `/ms:new-milestone` — discover what to build next
173
178
 
174
179
  <sub>`/clear` first → fresh context window</sub>
175
180
 
@@ -38,9 +38,7 @@ See full list in MILESTONE-AUDIT.md. Consider addressing in next milestone.
38
38
 
39
39
  ## ▶ Next Up
40
40
 
41
- **Complete milestone** — archive and tag
42
-
43
- `/ms:complete-milestone {version}`
41
+ `/ms:complete-milestone {version}` — archive and tag
44
42
 
45
43
  <sub>`/clear` first → fresh context window</sub>
46
44
  ```
@@ -73,9 +71,7 @@ See full list in MILESTONE-AUDIT.md. Consider addressing in next milestone.
73
71
 
74
72
  ## ▶ Next Up
75
73
 
76
- **Plan gap closure** — create phases to complete milestone
77
-
78
- `/ms:plan-milestone-gaps`
74
+ `/ms:plan-milestone-gaps` — create phases to complete milestone
79
75
 
80
76
  <sub>`/clear` first → fresh context window</sub>
81
77
 
@@ -112,13 +108,8 @@ See full list in MILESTONE-AUDIT.md. Consider addressing in next milestone.
112
108
 
113
109
  ## ▶ Options
114
110
 
115
- **A. Complete milestone** — accept debt, track in backlog
116
-
117
- `/ms:complete-milestone {version}`
118
-
119
- **B. Plan cleanup phase** — address debt before completing
120
-
121
- `/ms:plan-milestone-gaps`
111
+ - `/ms:complete-milestone {version}` — accept debt, track in backlog
112
+ - `/ms:plan-milestone-gaps` — address debt before completing
122
113
 
123
114
  <sub>`/clear` first → fresh context window</sub>
124
115
  ```
@@ -28,9 +28,7 @@ Ready to plan the next milestone.
28
28
 
29
29
  ## ▶ Next Up
30
30
 
31
- **Start Next Milestone** — discover what to build, update PROJECT.md
32
-
33
- `/ms:new-milestone`
31
+ `/ms:new-milestone` — discover what to build, update PROJECT.md
34
32
 
35
33
  <sub>`/clear` first → fresh context window</sub>
36
34
 
@@ -46,9 +46,7 @@ Extract:
46
46
 
47
47
  ## ▶ Next Up
48
48
 
49
- **Plan gap closure** — create additional plans to complete the phase
50
-
51
- `/ms:plan-phase {Z} --gaps`
49
+ `/ms:plan-phase {Z} --gaps` — create additional plans to complete the phase
52
50
 
53
51
  <sub>`/clear` first → fresh context window</sub>
54
52
 
@@ -23,9 +23,7 @@ All {N} phases finished!
23
23
 
24
24
  ## ▶ Next Up
25
25
 
26
- **Audit milestone** — verify requirements, cross-phase integration, E2E flows
27
-
28
- `/ms:audit-milestone`
26
+ `/ms:audit-milestone` — verify requirements, cross-phase integration, E2E flows
29
27
 
30
28
  <sub>`/clear` first → fresh context window</sub>
31
29
 
@@ -112,8 +112,8 @@ _For current project status, see .planning/ROADMAP.md_
112
112
 
113
113
  **Archive location:**
114
114
 
115
- - Save to `.planning/milestones/v{VERSION}-{NAME}.md`
116
- - Example: `.planning/milestones/v1.0-mvp.md`
115
+ - Save to `.planning/milestones/v{VERSION}/ROADMAP.md`
116
+ - Example: `.planning/milestones/v1.0/ROADMAP.md`
117
117
 
118
118
  **After archiving:**
119
119
 
@@ -34,9 +34,9 @@ Decimal phases appear between their surrounding integers in numeric order.
34
34
  1. [Observable behavior from user perspective]
35
35
  2. [Observable behavior from user perspective]
36
36
  3. [Observable behavior from user perspective]
37
- **Research**: Unlikely (established patterns)
38
37
  **Discuss**: Unlikely (clear requirements)
39
38
  **Design**: Unlikely (backend only)
39
+ **Research**: Unlikely (established patterns)
40
40
  **Plans**: [Number of plans, e.g., "3 plans" or "TBD"]
41
41
 
42
42
  Plans:
@@ -51,12 +51,12 @@ Plans:
51
51
  **Success Criteria** (what must be TRUE):
52
52
  1. [Observable behavior from user perspective]
53
53
  2. [Observable behavior from user perspective]
54
- **Research**: Likely (new integration)
55
- **Research topics**: [What needs investigating]
56
54
  **Discuss**: Likely (ambiguous user flow)
57
55
  **Discuss topics**: [What to clarify]
58
56
  **Design**: Likely (significant new UI)
59
57
  **Design focus**: [What to design]
58
+ **Research**: Likely (new integration)
59
+ **Research topics**: [What needs investigating]
60
60
  **Plans**: [Number of plans]
61
61
 
62
62
  Plans:
@@ -81,10 +81,10 @@ Plans:
81
81
  1. [Observable behavior from user perspective]
82
82
  2. [Observable behavior from user perspective]
83
83
  3. [Observable behavior from user perspective]
84
- **Research**: Likely (external API)
85
- **Research topics**: [What needs investigating]
86
84
  **Discuss**: Unlikely (established patterns)
87
85
  **Design**: Unlikely (API only)
86
+ **Research**: Likely (external API)
87
+ **Research topics**: [What needs investigating]
88
88
  **Plans**: [Number of plans]
89
89
 
90
90
  Plans:
@@ -98,9 +98,9 @@ Plans:
98
98
  **Success Criteria** (what must be TRUE):
99
99
  1. [Observable behavior from user perspective]
100
100
  2. [Observable behavior from user perspective]
101
- **Research**: Unlikely (internal patterns)
102
101
  **Discuss**: Unlikely (clear requirements)
103
102
  **Design**: Unlikely (backend only)
103
+ **Research**: Unlikely (internal patterns)
104
104
  **Plans**: [Number of plans]
105
105
 
106
106
  Plans:
@@ -137,9 +137,9 @@ Phases execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
137
137
  - Format: "User can [action]" or "[Thing] works/exists"
138
138
 
139
139
  **Pre-work indicators** (all use Likely/Unlikely with parenthetical reason):
140
- - `Research` - Technical unknowns: external APIs, new libraries, architectural decisions
141
140
  - `Discuss` - Vision unknowns: ambiguous requirements, UX decisions, novel features
142
141
  - `Design` - Visual unknowns: significant new UI, novel interactions, multi-screen flows
142
+ - `Research` - Technical unknowns: external APIs, new libraries, architectural decisions
143
143
  - Include topic/focus fields only when Likely
144
144
  - Indicators are hints, not mandates - validate at planning time
145
145
  - UI-facing phases often need both Discuss and Design (this is intentional)
@@ -6,11 +6,11 @@ Template for `.planning/TECH-DEBT.md` — single source of truth for all tech de
6
6
 
7
7
  ## Usage
8
8
 
9
- Created and updated by `/ms:audit-milestone`. Items persist across milestones. Users reference items manually via `/ms:adhoc` (small fixes) or `/ms:insert-phase` (larger remediation).
9
+ Created and updated by `/ms:audit-milestone`. Items persist across milestones. Users reference items manually via `/ms:adhoc` (small fixes) or `/ms:insert-phase` (larger remediation). Loaded automatically by `/ms:plan-phase` for quality/cleanup phases.
10
10
 
11
11
  **Item IDs** use `TD-{N}` format — monotonically increasing, never reused. New items continue from highest existing ID.
12
12
 
13
- **Sources:** Phase verifications (anti-patterns, non-critical gaps), code review findings.
13
+ **Sources:** Phase verifications (anti-patterns, non-critical gaps), code review findings, integration checker bugs, unfixed UAT issues.
14
14
 
15
15
  ---
16
16
 
@@ -23,17 +23,14 @@ Created and updated by `/ms:audit-milestone`. Items persist across milestones. U
23
23
  > Single source of truth for tech debt. Updated by `/ms:audit-milestone`.
24
24
  > Address items via `/ms:adhoc` (1-2 tasks) or `/ms:insert-phase` (larger work).
25
25
 
26
- ## Active Items
26
+ ## {Severity}
27
+ <!-- Sections in order: Critical, High, Medium, Low. Omit empty sections. -->
27
28
 
28
29
  ### TD-{N}: {Title}
29
- - **Phase:** {source phase, e.g. 03-chat}
30
- - **Source:** {verification | code-review | anti-pattern}
31
- - **Severity:** {blocker | warning | info}
32
30
  - **Location:** {file:line or component}
33
- - **Impact:** {what this causes}
34
- - **Suggested fix:** {how to address}
35
- - **Related files:** {other affected files}
36
- - **Identified:** v{milestone} | {YYYY-MM-DD}
31
+ - **Impact:** {what this causes and why it matters}
32
+ - **Fix:** {how to address}
33
+ - <sub>Phase {source phase} | {verification | integration-check | code-review} | v{milestone}</sub>
37
34
 
38
35
  ---
39
36
 
@@ -50,9 +47,19 @@ Created and updated by `/ms:audit-milestone`. Items persist across milestones. U
50
47
  ## Guidelines
51
48
 
52
49
  **Severity levels:**
53
- - `blocker` — Prevents future work or degrades reliability. Rare in tech debt (blockers usually go to `gaps`).
54
- - `warning` — Indicates incomplete or fragile code. Common for TODOs, missing validation, stubs.
55
- - `info` — Notable but low impact. Style issues, minor inconsistencies, improvement opportunities.
50
+ - `Critical` — Breaks behavior or risks data loss. Integration checker bugs (broken cross-phase wiring, failed E2E flows) always map here.
51
+ - `High` — Causes cascading changes if left unaddressed. Fragile patterns that spread to new code, missing abstractions forcing workarounds.
52
+ - `Medium` — Contained friction. TODOs, missing validation, incomplete error handling. Impact stays local.
53
+ - `Low` — Won't compound. Style inconsistencies, minor naming issues, improvement opportunities.
54
+
55
+ **Severity mapping from sources:**
56
+ - Integration checker bugs → Critical
57
+ - Unfixed UAT issues → Critical (blocker) / High (major) / Medium (minor) / Low (cosmetic)
58
+ - Code review findings → pass through reviewer severity (High/Medium/Low)
59
+ - Phase verification anti-patterns → Medium or Low (blockers go to `gaps`, not tech debt)
60
+ - Non-critical verification gaps → Medium
61
+
62
+ **Empty sections:** Omit severity sections with no items. Keep only sections that contain entries.
56
63
 
57
64
  **De-duplication:** Match by location + description similarity. An item in Dismissed is never re-added as Active — if the same issue recurs, note it as a new item referencing the original.
58
65
 
@@ -23,13 +23,15 @@ This is the ritual that separates "development" from "shipped."
23
23
  When a milestone completes, this workflow:
24
24
 
25
25
  1. Cleans up raw phase artifacts (CONTEXT, DESIGN, RESEARCH, SUMMARY, UAT, VERIFICATION, EXECUTION-ORDER deleted)
26
- 2. Extracts full milestone details to `.planning/milestones/v[X.Y]-ROADMAP.md`
27
- 3. Archives requirements to `.planning/milestones/v[X.Y]-REQUIREMENTS.md`
28
- 4. Archives milestone context to `.planning/milestones/v[X.Y]-CONTEXT.md`
29
- 5. Updates ROADMAP.md to replace milestone details with one-line summary
30
- 6. Deletes REQUIREMENTS.md (fresh one created for next milestone)
31
- 7. Performs full PROJECT.md evolution review
32
- 8. Routes to `/ms:new-milestone` for next milestone
26
+ 2. Creates `.planning/milestones/v[X.Y]/` directory for all archive files
27
+ 3. Extracts full milestone details to `.planning/milestones/v[X.Y]/ROADMAP.md`
28
+ 4. Archives requirements to `.planning/milestones/v[X.Y]/REQUIREMENTS.md`
29
+ 5. Archives milestone context to `.planning/milestones/v[X.Y]/CONTEXT.md`
30
+ 6. Archives research files to `.planning/milestones/v[X.Y]/research/` (if exists)
31
+ 7. Updates ROADMAP.md to replace milestone details with one-line summary
32
+ 8. Deletes REQUIREMENTS.md (fresh one created for next milestone)
33
+ 9. Performs full PROJECT.md evolution review
34
+ 10. Routes to `/ms:new-milestone` for next milestone
33
35
 
34
36
  Knowledge files in `.planning/knowledge/` persist across milestones (maintained by phase-level consolidation in execute-phase).
35
37
 
@@ -428,7 +430,11 @@ Extract completed milestone details and create archive file.
428
430
 
429
431
  **Process:**
430
432
 
431
- 1. Create archive file path: `.planning/milestones/v[X.Y]-ROADMAP.md`
433
+ 1. Create milestone directory and archive file:
434
+ ```bash
435
+ mkdir -p .planning/milestones/v[X.Y]
436
+ ```
437
+ Archive file path: `.planning/milestones/v[X.Y]/ROADMAP.md`
432
438
 
433
439
  2. Read `~/.claude/mindsystem/templates/milestone-archive.md` template
434
440
 
@@ -453,7 +459,7 @@ Extract completed milestone details and create archive file.
453
459
  - {{DECISIONS_FROM_PROJECT}} — Key decisions from PROJECT.md
454
460
  - {{ISSUES_RESOLVED_DURING_MILESTONE}} — From summaries
455
461
 
456
- 6. Write filled template to `.planning/milestones/v[X.Y]-ROADMAP.md`
462
+ 6. Write filled template to `.planning/milestones/v[X.Y]/ROADMAP.md`
457
463
 
458
464
  7. Delete ROADMAP.md (fresh one created for next milestone):
459
465
  ```bash
@@ -462,13 +468,13 @@ Extract completed milestone details and create archive file.
462
468
 
463
469
  8. Verify archive exists:
464
470
  ```bash
465
- ls .planning/milestones/v[X.Y]-ROADMAP.md
471
+ ls .planning/milestones/v[X.Y]/ROADMAP.md
466
472
  ```
467
473
 
468
474
  9. Confirm roadmap archive complete:
469
475
 
470
476
  ```
471
- ✅ v[X.Y] roadmap archived to milestones/v[X.Y]-ROADMAP.md
477
+ ✅ v[X.Y] roadmap archived to milestones/v[X.Y]/ROADMAP.md
472
478
  ✅ ROADMAP.md deleted (fresh one for next milestone)
473
479
  ```
474
480
 
@@ -487,7 +493,7 @@ Archive requirements and prepare for fresh requirements in next milestone.
487
493
  cat .planning/REQUIREMENTS.md
488
494
  ```
489
495
 
490
- 2. Create archive file: `.planning/milestones/v[X.Y]-REQUIREMENTS.md`
496
+ 2. Create archive file: `.planning/milestones/v[X.Y]/REQUIREMENTS.md`
491
497
 
492
498
  3. Transform requirements for archive:
493
499
  - Mark all v1 requirements as `[x]` complete
@@ -531,7 +537,7 @@ Archive requirements and prepare for fresh requirements in next milestone.
531
537
 
532
538
  6. Confirm:
533
539
  ```
534
- ✅ Requirements archived to milestones/v[X.Y]-REQUIREMENTS.md
540
+ ✅ Requirements archived to milestones/v[X.Y]/REQUIREMENTS.md
535
541
  ✅ REQUIREMENTS.md deleted (fresh one needed for next milestone)
536
542
  ```
537
543
 
@@ -544,13 +550,13 @@ Archive requirements and prepare for fresh requirements in next milestone.
544
550
  Move the milestone audit file to the archive (if it exists):
545
551
 
546
552
  ```bash
547
- # Move audit to milestones folder (if exists)
548
- [ -f .planning/v[X.Y]-MILESTONE-AUDIT.md ] && mv .planning/v[X.Y]-MILESTONE-AUDIT.md .planning/milestones/
553
+ # Move audit to milestone folder (if exists)
554
+ [ -f .planning/v[X.Y]-MILESTONE-AUDIT.md ] && mv .planning/v[X.Y]-MILESTONE-AUDIT.md .planning/milestones/v[X.Y]/MILESTONE-AUDIT.md
549
555
  ```
550
556
 
551
557
  Confirm:
552
558
  ```
553
- ✅ Audit archived to milestones/v[X.Y]-MILESTONE-AUDIT.md
559
+ ✅ Audit archived to milestones/v[X.Y]/MILESTONE-AUDIT.md
554
560
  ```
555
561
 
556
562
  (Skip silently if no audit file exists — audit is optional)
@@ -562,18 +568,35 @@ Confirm:
562
568
  Archive the milestone context file (if it exists):
563
569
 
564
570
  ```bash
565
- [ -f .planning/MILESTONE-CONTEXT.md ] && mv .planning/MILESTONE-CONTEXT.md .planning/milestones/v[X.Y]-CONTEXT.md
571
+ [ -f .planning/MILESTONE-CONTEXT.md ] && mv .planning/MILESTONE-CONTEXT.md .planning/milestones/v[X.Y]/CONTEXT.md
566
572
  ```
567
573
 
568
574
  If archived:
569
575
  ```
570
- ✅ Context archived to milestones/v[X.Y]-CONTEXT.md
576
+ ✅ Context archived to milestones/v[X.Y]/CONTEXT.md
571
577
  ```
572
578
 
573
579
  (Skip silently if no context file exists)
574
580
 
575
581
  </step>
576
582
 
583
+ <step name="archive_research">
584
+
585
+ Archive research files to milestone (if research directory exists):
586
+
587
+ ```bash
588
+ [ -d .planning/research ] && mv .planning/research .planning/milestones/v[X.Y]/research
589
+ ```
590
+
591
+ If archived:
592
+ ```
593
+ ✅ Research archived to milestones/v[X.Y]/research/
594
+ ```
595
+
596
+ (Skip silently if no research directory exists)
597
+
598
+ </step>
599
+
577
600
  <step name="update_state">
578
601
 
579
602
  Update STATE.md to reflect milestone completion.
@@ -645,28 +668,27 @@ git push origin v[X.Y]
645
668
  Commit milestone completion including archive files and deletions.
646
669
 
647
670
  ```bash
648
- # Stage archive files (new)
649
- git add .planning/milestones/v[X.Y]-ROADMAP.md
650
- git add .planning/milestones/v[X.Y]-REQUIREMENTS.md
651
- git add .planning/milestones/v[X.Y]-MILESTONE-AUDIT.md 2>/dev/null || true
652
- git add .planning/milestones/v[X.Y]-CONTEXT.md 2>/dev/null || true
671
+ # Stage archive directory (covers ROADMAP, REQUIREMENTS, AUDIT, CONTEXT, research)
672
+ git add .planning/milestones/v[X.Y]/
653
673
 
654
674
  # Stage updated files
655
675
  git add .planning/MILESTONES.md
656
676
  git add .planning/PROJECT.md
657
677
  git add .planning/STATE.md
658
678
 
659
- # Stage deletions (raw artifacts cleaned from phase directories)
679
+ # Stage deletions (raw artifacts cleaned from phase directories, research dir removed)
660
680
  git add -u .planning/
661
681
 
662
682
  # Commit with descriptive message
663
683
  git commit -m "$(cat <<'EOF'
664
684
  chore: complete v[X.Y] milestone
665
685
 
666
- Archived:
667
- - milestones/v[X.Y]-ROADMAP.md
668
- - milestones/v[X.Y]-REQUIREMENTS.md
669
- - milestones/v[X.Y]-MILESTONE-AUDIT.md (if audit was run)
686
+ Archived to milestones/v[X.Y]/:
687
+ - ROADMAP.md
688
+ - REQUIREMENTS.md
689
+ - MILESTONE-AUDIT.md (if audit was run)
690
+ - CONTEXT.md (if milestone context existed)
691
+ - research/ (if research existed)
670
692
 
671
693
  Cleaned:
672
694
  - Raw phase artifacts (CONTEXT, DESIGN, RESEARCH, SUMMARY, UAT, VERIFICATION, EXECUTION-ORDER)
@@ -675,6 +697,7 @@ Cleaned:
675
697
  Deleted (fresh for next milestone):
676
698
  - ROADMAP.md
677
699
  - REQUIREMENTS.md
700
+ - .planning/research/ (archived to milestone)
678
701
 
679
702
  Updated:
680
703
  - MILESTONES.md (new entry)
@@ -699,9 +722,10 @@ Shipped:
699
722
  - [N] phases ([M] plans, [P] tasks)
700
723
  - [One sentence of what shipped]
701
724
 
702
- Archived:
703
- - milestones/v[X.Y]-ROADMAP.md
704
- - milestones/v[X.Y]-REQUIREMENTS.md
725
+ Archived to milestones/v[X.Y]/:
726
+ - ROADMAP.md
727
+ - REQUIREMENTS.md
728
+ - research/ (if existed)
705
729
 
706
730
  Summary: .planning/MILESTONES.md
707
731
  Tag: v[X.Y]
@@ -710,9 +734,7 @@ Tag: v[X.Y]
710
734
 
711
735
  ## ▶ Next Up
712
736
 
713
- **Start Next Milestone** — define goals and requirements
714
-
715
- `/ms:new-milestone`
737
+ `/ms:new-milestone` — define goals and requirements
716
738
 
717
739
  <sub>`/clear` first → fresh context window</sub>
718
740
 
@@ -777,8 +799,10 @@ Milestone completion is successful when:
777
799
  - [ ] All shipped requirements moved to Validated in PROJECT.md
778
800
  - [ ] Key Decisions updated with outcomes
779
801
  - [ ] ROADMAP.md reorganized with milestone grouping
780
- - [ ] Roadmap archive created (milestones/v[X.Y]-ROADMAP.md)
781
- - [ ] Requirements archive created (milestones/v[X.Y]-REQUIREMENTS.md)
802
+ - [ ] Milestone directory created (milestones/v[X.Y]/)
803
+ - [ ] Roadmap archive created (milestones/v[X.Y]/ROADMAP.md)
804
+ - [ ] Requirements archive created (milestones/v[X.Y]/REQUIREMENTS.md)
805
+ - [ ] Research archived to milestone (milestones/v[X.Y]/research/) if .planning/research/ existed
782
806
  - [ ] REQUIREMENTS.md deleted (fresh for next milestone)
783
807
  - [ ] STATE.md updated with fresh project reference
784
808
  - [ ] Git tag created (v[X.Y])
@@ -289,9 +289,7 @@ Requirements defined:
289
289
 
290
290
  ## ▶ Next Up
291
291
 
292
- **Create roadmap** — phases mapped to requirements
293
-
294
- `/ms:create-roadmap`
292
+ `/ms:create-roadmap` — phases mapped to requirements
295
293
 
296
294
  <sub>`/clear` first → fresh context window</sub>
297
295
 
@@ -181,9 +181,7 @@ Debug sessions: ${DEBUG_DIR}/
181
181
 
182
182
  ## Next Up
183
183
 
184
- **Plan fixes** — create fix plans from diagnosed gaps
185
-
186
- `/ms:plan-phase {phase} --gaps`
184
+ `/ms:plan-phase {phase} --gaps` — create fix plans from diagnosed gaps
187
185
 
188
186
  `/clear` first for fresh context window
189
187
 
@@ -386,9 +386,7 @@ Present gaps and offer next command:
386
386
 
387
387
  ## ▶ Next Up
388
388
 
389
- **Plan gap closure** — create additional plans to complete the phase
390
-
391
- `/ms:plan-phase {X} --gaps`
389
+ `/ms:plan-phase {X} --gaps` — create additional plans to complete the phase
392
390
 
393
391
  <sub>`/clear` first → fresh context window</sub>
394
392
 
@@ -271,9 +271,7 @@ Created .planning/codebase/:
271
271
 
272
272
  ## ▶ Next Up
273
273
 
274
- **Initialize project** — use codebase context for planning
275
-
276
- `/ms:new-project`
274
+ `/ms:new-project` — use codebase context for planning
277
275
 
278
276
  <sub>`/clear` first → fresh context window</sub>
279
277
 
@@ -74,7 +74,7 @@ ls .planning/codebase/*.md 2>/dev/null
74
74
  | database, schema, models | ARCHITECTURE.md, STACK.md |
75
75
  | testing, tests | TESTING.md, CONVENTIONS.md |
76
76
  | integration, external API | INTEGRATIONS.md, STACK.md |
77
- | refactor, cleanup | CONCERNS.md, ARCHITECTURE.md |
77
+ | refactor, cleanup, quality, tech debt | CONCERNS.md, ARCHITECTURE.md |
78
78
  | setup, config | STACK.md, STRUCTURE.md |
79
79
  | (default) | STACK.md, ARCHITECTURE.md |
80
80
 
@@ -213,9 +213,7 @@ Also create or update EXECUTION-ORDER.md to include gap closure plans (typically
213
213
 
214
214
  ## ▶ Next Up
215
215
 
216
- **Execute gap closure plans**
217
-
218
- `/ms:execute-phase {X}`
216
+ `/ms:execute-phase {X}` — execute gap closure plans
219
217
 
220
218
  <sub>`/clear` first → fresh context window</sub>
221
219
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindsystem-cc",
3
- "version": "3.16.2",
3
+ "version": "3.17.1",
4
4
  "description": "A meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.",
5
5
  "bin": {
6
6
  "mindsystem-cc": "bin/install.js"