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.
- package/.agent/bin/lib/commands.cjs +959 -0
- package/.agent/bin/lib/config.cjs +421 -0
- package/.agent/bin/lib/core.cjs +1166 -0
- package/.agent/bin/lib/frontmatter.cjs +307 -0
- package/.agent/bin/lib/init.cjs +1336 -0
- package/.agent/bin/lib/milestone.cjs +252 -0
- package/.agent/bin/lib/model-profiles.cjs +68 -0
- package/.agent/bin/lib/phase.cjs +888 -0
- package/.agent/bin/lib/profile-output.cjs +952 -0
- package/.agent/bin/lib/profile-pipeline.cjs +539 -0
- package/.agent/bin/lib/roadmap.cjs +329 -0
- package/.agent/bin/lib/security.cjs +356 -0
- package/.agent/bin/lib/state.cjs +969 -0
- package/.agent/bin/lib/template.cjs +222 -0
- package/.agent/bin/lib/uat.cjs +189 -0
- package/.agent/bin/lib/verify.cjs +851 -0
- package/.agent/bin/lib/workstream.cjs +491 -0
- package/.agent/bin/mindforge-tools.cjs +897 -0
- package/.agent/file-manifest.json +219 -0
- package/.agent/hooks/mindforge-check-update.js +114 -0
- package/.agent/hooks/mindforge-context-monitor.js +156 -0
- package/.agent/hooks/mindforge-prompt-guard.js +96 -0
- package/.agent/hooks/mindforge-statusline.js +119 -0
- package/.agent/hooks/mindforge-workflow-guard.js +94 -0
- package/.agent/mindforge/discuss-phase.md +1 -1
- package/.agent/mindforge/help.md +1 -1
- package/.agent/mindforge/learn.md +3 -2
- package/.agent/mindforge/research.md +3 -2
- package/.agent/mindforge/steer.md +1 -1
- package/.agent/settings.json +38 -0
- package/.agent/skills/mindforge-add-backlog/SKILL.md +72 -0
- package/.agent/skills/mindforge-add-phase/SKILL.md +39 -0
- package/.agent/skills/mindforge-add-tests/SKILL.md +28 -0
- package/.agent/skills/mindforge-add-todo/SKILL.md +42 -0
- package/.agent/skills/mindforge-audit-milestone/SKILL.md +29 -0
- package/.agent/skills/mindforge-audit-uat/SKILL.md +20 -0
- package/.agent/skills/mindforge-autonomous/SKILL.md +33 -0
- package/.agent/skills/mindforge-check-todos/SKILL.md +40 -0
- package/.agent/skills/mindforge-cleanup/SKILL.md +19 -0
- package/.agent/skills/mindforge-complete-milestone/SKILL.md +131 -0
- package/.agent/skills/mindforge-debug/SKILL.md +163 -0
- package/.agent/skills/mindforge-discuss-phase/SKILL.md +54 -0
- package/.agent/skills/mindforge-do/SKILL.md +26 -0
- package/.agent/skills/mindforge-execute-phase/SKILL.md +49 -0
- package/.agent/skills/mindforge-fast/SKILL.md +23 -0
- package/.agent/skills/mindforge-forensics/SKILL.md +49 -0
- package/.agent/skills/mindforge-health/SKILL.md +17 -0
- package/.agent/skills/mindforge-help/SKILL.md +23 -0
- package/.agent/skills/mindforge-insert-phase/SKILL.md +28 -0
- package/.agent/skills/mindforge-join-discord/SKILL.md +19 -0
- package/.agent/skills/mindforge-list-phase-assumptions/SKILL.md +41 -0
- package/.agent/skills/mindforge-list-workspaces/SKILL.md +17 -0
- package/.agent/skills/mindforge-manager/SKILL.md +32 -0
- package/.agent/skills/mindforge-map-codebase/SKILL.md +64 -0
- package/.agent/skills/mindforge-milestone-summary/SKILL.md +44 -0
- package/.agent/skills/mindforge-new-milestone/SKILL.md +38 -0
- package/.agent/skills/mindforge-new-project/SKILL.md +36 -0
- package/.agent/skills/mindforge-new-workspace/SKILL.md +39 -0
- package/.agent/skills/mindforge-next/SKILL.md +19 -0
- package/.agent/skills/mindforge-note/SKILL.md +29 -0
- package/.agent/skills/mindforge-pause-work/SKILL.md +35 -0
- package/.agent/skills/mindforge-plan-milestone-gaps/SKILL.md +28 -0
- package/.agent/skills/mindforge-plan-phase/SKILL.md +37 -0
- package/.agent/skills/mindforge-plant-seed/SKILL.md +22 -0
- package/.agent/skills/mindforge-pr-branch/SKILL.md +21 -0
- package/.agent/skills/mindforge-profile-user/SKILL.md +38 -0
- package/.agent/skills/mindforge-progress/SKILL.md +19 -0
- package/.agent/skills/mindforge-quick/SKILL.md +38 -0
- package/.agent/skills/mindforge-reapply-patches/SKILL.md +124 -0
- package/.agent/skills/mindforge-remove-phase/SKILL.md +26 -0
- package/.agent/skills/mindforge-remove-workspace/SKILL.md +22 -0
- package/.agent/skills/mindforge-research-phase/SKILL.md +186 -0
- package/.agent/skills/mindforge-resume-work/SKILL.md +35 -0
- package/.agent/skills/mindforge-review/SKILL.md +31 -0
- package/.agent/skills/mindforge-review-backlog/SKILL.md +58 -0
- package/.agent/skills/mindforge-session-report/SKILL.md +16 -0
- package/.agent/skills/mindforge-set-profile/SKILL.md +9 -0
- package/.agent/skills/mindforge-settings/SKILL.md +32 -0
- package/.agent/skills/mindforge-ship/SKILL.md +16 -0
- package/.agent/skills/mindforge-stats/SKILL.md +16 -0
- package/.agent/skills/mindforge-thread/SKILL.md +123 -0
- package/.agent/skills/mindforge-ui-phase/SKILL.md +24 -0
- package/.agent/skills/mindforge-ui-review/SKILL.md +24 -0
- package/.agent/skills/mindforge-update/SKILL.md +35 -0
- package/.agent/skills/mindforge-validate-phase/SKILL.md +26 -0
- package/.agent/skills/mindforge-verify-work/SKILL.md +30 -0
- package/.agent/skills/mindforge-workstreams/SKILL.md +65 -0
- package/.agent/workflows/mindforge-add-phase.md +112 -0
- package/.agent/workflows/mindforge-add-tests.md +351 -0
- package/.agent/workflows/mindforge-add-todo.md +158 -0
- package/.agent/workflows/mindforge-audit-milestone.md +332 -0
- package/.agent/workflows/mindforge-audit-uat.md +109 -0
- package/.agent/workflows/mindforge-autonomous.md +815 -0
- package/.agent/workflows/mindforge-check-todos.md +177 -0
- package/.agent/workflows/mindforge-cleanup.md +152 -0
- package/.agent/workflows/mindforge-complete-milestone.md +766 -0
- package/.agent/workflows/mindforge-diagnose-issues.md +220 -0
- package/.agent/workflows/mindforge-discovery-phase.md +289 -0
- package/.agent/workflows/mindforge-discuss-phase-assumptions.md +645 -0
- package/.agent/workflows/mindforge-discuss-phase.md +1047 -0
- package/.agent/workflows/mindforge-do.md +104 -0
- package/.agent/workflows/mindforge-execute-phase.md +838 -0
- package/.agent/workflows/mindforge-execute-plan.md +509 -0
- package/.agent/workflows/mindforge-fast.md +105 -0
- package/.agent/workflows/mindforge-forensics.md +265 -0
- package/.agent/workflows/mindforge-health.md +181 -0
- package/.agent/workflows/mindforge-help.md +606 -0
- package/.agent/workflows/mindforge-insert-phase.md +130 -0
- package/.agent/workflows/mindforge-list-phase-assumptions.md +178 -0
- package/.agent/workflows/mindforge-list-workspaces.md +56 -0
- package/.agent/workflows/mindforge-manager.md +360 -0
- package/.agent/workflows/mindforge-map-codebase.md +370 -0
- package/.agent/workflows/mindforge-milestone-summary.md +223 -0
- package/.agent/workflows/mindforge-new-milestone.md +469 -0
- package/.agent/workflows/mindforge-new-project.md +1226 -0
- package/.agent/workflows/mindforge-new-workspace.md +237 -0
- package/.agent/workflows/mindforge-next.md +97 -0
- package/.agent/workflows/mindforge-node-repair.md +92 -0
- package/.agent/workflows/mindforge-note.md +156 -0
- package/.agent/workflows/mindforge-pause-work.md +176 -0
- package/.agent/workflows/mindforge-plan-milestone-gaps.md +273 -0
- package/.agent/workflows/mindforge-plan-phase.md +848 -0
- package/.agent/workflows/mindforge-plant-seed.md +169 -0
- package/.agent/workflows/mindforge-pr-branch.md +129 -0
- package/.agent/workflows/mindforge-profile-user.md +450 -0
- package/.agent/workflows/mindforge-progress.md +507 -0
- package/.agent/workflows/mindforge-quick.md +732 -0
- package/.agent/workflows/mindforge-remove-phase.md +155 -0
- package/.agent/workflows/mindforge-remove-workspace.md +90 -0
- package/.agent/workflows/mindforge-research-phase.md +74 -0
- package/.agent/workflows/mindforge-resume-project.md +325 -0
- package/.agent/workflows/mindforge-review.md +228 -0
- package/.agent/workflows/mindforge-session-report.md +146 -0
- package/.agent/workflows/mindforge-settings.md +283 -0
- package/.agent/workflows/mindforge-ship.md +228 -0
- package/.agent/workflows/mindforge-stats.md +60 -0
- package/.agent/workflows/mindforge-transition.md +671 -0
- package/.agent/workflows/mindforge-ui-phase.md +290 -0
- package/.agent/workflows/mindforge-ui-review.md +157 -0
- package/.agent/workflows/mindforge-update.md +323 -0
- package/.agent/workflows/mindforge-validate-phase.md +167 -0
- package/.agent/workflows/mindforge-verify-phase.md +254 -0
- package/.agent/workflows/mindforge-verify-work.md +623 -0
- package/.mindforge/personas/advisor-researcher.md +3 -3
- package/.mindforge/personas/debug-specialist.md +1 -1
- package/.mindforge/personas/debugger.md +1 -1
- package/.mindforge/personas/developer.md +1 -1
- package/.mindforge/personas/phase-researcher.md +4 -4
- package/.mindforge/personas/project-researcher.md +3 -3
- package/.mindforge/personas/research-agent.md +4 -3
- package/.mindforge/personas/tech-writer.md +1 -1
- package/.mindforge/personas/ui-researcher.md +1 -1
- package/.planning/ROADMAP.md +10 -0
- package/CHANGELOG.md +34 -0
- package/README.md +70 -45
- package/RELEASENOTES.md +26 -26
- package/bin/install.js +41 -41
- package/bin/installer-core.js +67 -26
- package/bin/wizard/setup-wizard.js +11 -24
- package/bin/wizard/theme.js +141 -0
- package/docs/PERSONAS.md +119 -87
- package/docs/References/checkpoints.md +778 -0
- package/docs/References/config-reference.md +81 -0
- package/docs/References/continuation-format.md +249 -0
- package/docs/References/decimal-phase-calculation.md +64 -0
- package/docs/References/git-integration.md +295 -0
- package/docs/References/git-planning-commit.md +38 -0
- package/docs/References/model-profile-resolution.md +36 -0
- package/docs/References/model-profiles.md +139 -0
- package/docs/References/phase-argument-parsing.md +61 -0
- package/docs/References/planning-config.md +202 -0
- package/docs/References/questioning.md +162 -0
- package/docs/References/tdd.md +263 -0
- package/docs/References/ui-brand.md +160 -0
- package/docs/References/user-profiling.md +681 -0
- package/docs/References/verification-patterns.md +612 -0
- package/docs/References/workstream-flag.md +58 -0
- package/docs/Templates/Agents/CLAUDE-MD.md +122 -0
- package/docs/Templates/Agents/COPILOT-INSTRUCTIONS.md +7 -0
- package/docs/Templates/Agents/DEBUGGER-PROMPT.md +91 -0
- package/docs/Templates/Agents/PLANNER-PROMPT.md +117 -0
- package/docs/Templates/Codebase/architecture.md +255 -0
- package/docs/Templates/Codebase/concerns.md +310 -0
- package/docs/Templates/Codebase/conventions.md +307 -0
- package/docs/Templates/Codebase/integrations.md +280 -0
- package/docs/Templates/Codebase/stack.md +186 -0
- package/docs/Templates/Codebase/structure.md +285 -0
- package/docs/Templates/Codebase/testing.md +480 -0
- package/docs/Templates/Execution/CONTINUE-HERE.md +78 -0
- package/docs/Templates/Execution/DISCUSSION-LOG.md +63 -0
- package/docs/Templates/Execution/PHASE-PROMPT.md +610 -0
- package/docs/Templates/Execution/STATE.md +176 -0
- package/docs/Templates/Execution/SUMMARY-COMPLEX.md +59 -0
- package/docs/Templates/Execution/SUMMARY-MINIMAL.md +41 -0
- package/docs/Templates/Execution/SUMMARY-STANDARD.md +48 -0
- package/docs/Templates/Execution/SUMMARY.md +248 -0
- package/docs/Templates/Profile/DEV-PREFERENCES.md +21 -0
- package/docs/Templates/Profile/USER-PROFILE.md +146 -0
- package/docs/Templates/Profile/USER-SETUP.md +311 -0
- package/docs/Templates/Project/DISCOVERY.md +146 -0
- package/docs/Templates/Project/MILESTONE-ARCHIVE.md +123 -0
- package/docs/Templates/Project/MILESTONE.md +115 -0
- package/docs/Templates/Project/PROJECT.md +206 -0
- package/docs/Templates/Project/REQUIREMENTS.md +231 -0
- package/docs/Templates/Project/RETROSPECTIVE.md +54 -0
- package/docs/Templates/Project/ROADMAP.md +202 -0
- package/docs/Templates/Quality/DEBUG.md +164 -0
- package/docs/Templates/Quality/UAT.md +280 -0
- package/docs/Templates/Quality/UI-SPEC.md +100 -0
- package/docs/Templates/Quality/VALIDATION.md +76 -0
- package/docs/Templates/Quality/VERIFICATION-REPORT.md +322 -0
- package/docs/Templates/Research/ARCHITECTURE.md +204 -0
- package/docs/Templates/Research/FEATURES.md +147 -0
- package/docs/Templates/Research/PITFALLS.md +200 -0
- package/docs/Templates/Research/STACK.md +120 -0
- package/docs/Templates/Research/SUMMARY.md +170 -0
- package/docs/Templates/System/CONFIG.json +43 -0
- package/docs/Templates/System/CONTEXT.md +352 -0
- package/docs/architecture/README.md +54 -42
- package/docs/commands-reference.md +62 -14
- package/docs/getting-started.md +26 -18
- package/docs/skills-authoring-guide.md +40 -12
- package/docs/tutorial.md +83 -116
- package/docs/user-guide.md +72 -198
- package/package.json +7 -2
- package/.mindforge/memory/knowledge-base.jsonl +0 -7
- package/.mindforge/memory/pattern-library.jsonl +0 -1
- package/.mindforge/memory/team-preferences.jsonl +0 -4
- package/.planning/browser-daemon.log +0 -32
- package/docs/mindforge-md-reference.md +0 -57
- package/docs/reference/config-reference.md +0 -64
- /package/{.mindforge/memory/decision-library.jsonl → .planning/phases/01-migrate-gsd-to-mindforge/.gitkeep} +0 -0
- /package/docs/{reference → References}/audit-events.md +0 -0
- /package/docs/{reference → References}/commands.md +0 -0
- /package/docs/{reference → References}/sdk-api.md +0 -0
- /package/docs/{reference → References}/skills-api.md +0 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Capture an idea, task, or issue that surfaces during a MindForge session as a structured todo for later work. Enables "thought → capture → continue" flow without losing context.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<process>
|
|
10
|
+
|
|
11
|
+
<step name="init_context">
|
|
12
|
+
Load todo context:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
INIT=$(node ".agent/bin/mindforge-tools.cjs" init todos)
|
|
16
|
+
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Extract from init JSON: `commit_docs`, `date`, `timestamp`, `todo_count`, `todos`, `pending_dir`, `todos_dir_exists`.
|
|
20
|
+
|
|
21
|
+
Ensure directories exist:
|
|
22
|
+
```bash
|
|
23
|
+
mkdir -p .planning/todos/pending .planning/todos/done
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Note existing areas from the todos array for consistency in infer_area step.
|
|
27
|
+
</step>
|
|
28
|
+
|
|
29
|
+
<step name="extract_content">
|
|
30
|
+
**With arguments:** Use as the title/focus.
|
|
31
|
+
- `/mindforge-add-todo Add auth token refresh` → title = "Add auth token refresh"
|
|
32
|
+
|
|
33
|
+
**Without arguments:** Analyze recent conversation to extract:
|
|
34
|
+
- The specific problem, idea, or task discussed
|
|
35
|
+
- Relevant file paths mentioned
|
|
36
|
+
- Technical details (error messages, line numbers, constraints)
|
|
37
|
+
|
|
38
|
+
Formulate:
|
|
39
|
+
- `title`: 3-10 word descriptive title (action verb preferred)
|
|
40
|
+
- `problem`: What's wrong or why this is needed
|
|
41
|
+
- `solution`: Approach hints or "TBD" if just an idea
|
|
42
|
+
- `files`: Relevant paths with line numbers from conversation
|
|
43
|
+
</step>
|
|
44
|
+
|
|
45
|
+
<step name="infer_area">
|
|
46
|
+
Infer area from file paths:
|
|
47
|
+
|
|
48
|
+
| Path pattern | Area |
|
|
49
|
+
|--------------|------|
|
|
50
|
+
| `src/api/*`, `api/*` | `api` |
|
|
51
|
+
| `src/components/*`, `src/ui/*` | `ui` |
|
|
52
|
+
| `src/auth/*`, `auth/*` | `auth` |
|
|
53
|
+
| `src/db/*`, `database/*` | `database` |
|
|
54
|
+
| `tests/*`, `__tests__/*` | `testing` |
|
|
55
|
+
| `docs/*` | `docs` |
|
|
56
|
+
| `.planning/*` | `planning` |
|
|
57
|
+
| `scripts/*`, `bin/*` | `tooling` |
|
|
58
|
+
| No files or unclear | `general` |
|
|
59
|
+
|
|
60
|
+
Use existing area from step 2 if similar match exists.
|
|
61
|
+
</step>
|
|
62
|
+
|
|
63
|
+
<step name="check_duplicates">
|
|
64
|
+
```bash
|
|
65
|
+
# Search for key words from title in existing todos
|
|
66
|
+
grep -l -i "[key words from title]" .planning/todos/pending/*.md 2>/dev/null
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
If potential duplicate found:
|
|
70
|
+
1. Read the existing todo
|
|
71
|
+
2. Compare scope
|
|
72
|
+
|
|
73
|
+
If overlapping, use AskUserQuestion:
|
|
74
|
+
- header: "Duplicate?"
|
|
75
|
+
- question: "Similar todo exists: [title]. What would you like to do?"
|
|
76
|
+
- options:
|
|
77
|
+
- "Skip" — keep existing todo
|
|
78
|
+
- "Replace" — update existing with new context
|
|
79
|
+
- "Add anyway" — create as separate todo
|
|
80
|
+
</step>
|
|
81
|
+
|
|
82
|
+
<step name="create_file">
|
|
83
|
+
Use values from init context: `timestamp` and `date` are already available.
|
|
84
|
+
|
|
85
|
+
Generate slug for the title:
|
|
86
|
+
```bash
|
|
87
|
+
slug=$(node ".agent/bin/mindforge-tools.cjs" generate-slug "$title" --raw)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Write to `.planning/todos/pending/${date}-${slug}.md`:
|
|
91
|
+
|
|
92
|
+
```markdown
|
|
93
|
+
---
|
|
94
|
+
created: [timestamp]
|
|
95
|
+
title: [title]
|
|
96
|
+
area: [area]
|
|
97
|
+
files:
|
|
98
|
+
- [file:lines]
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Problem
|
|
102
|
+
|
|
103
|
+
[problem description - enough context for future the agent to understand weeks later]
|
|
104
|
+
|
|
105
|
+
## Solution
|
|
106
|
+
|
|
107
|
+
[approach hints or "TBD"]
|
|
108
|
+
```
|
|
109
|
+
</step>
|
|
110
|
+
|
|
111
|
+
<step name="update_state">
|
|
112
|
+
If `.planning/STATE.md` exists:
|
|
113
|
+
|
|
114
|
+
1. Use `todo_count` from init context (or re-run `init todos` if count changed)
|
|
115
|
+
2. Update "### Pending Todos" under "## Accumulated Context"
|
|
116
|
+
</step>
|
|
117
|
+
|
|
118
|
+
<step name="git_commit">
|
|
119
|
+
Commit the todo and any updated state:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
node ".agent/bin/mindforge-tools.cjs" commit "docs: capture todo - [title]" --files .planning/todos/pending/[filename] .planning/STATE.md
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Tool respects `commit_docs` config and gitignore automatically.
|
|
126
|
+
|
|
127
|
+
Confirm: "Committed: docs: capture todo - [title]"
|
|
128
|
+
</step>
|
|
129
|
+
|
|
130
|
+
<step name="confirm">
|
|
131
|
+
```
|
|
132
|
+
Todo saved: .planning/todos/pending/[filename]
|
|
133
|
+
|
|
134
|
+
[title]
|
|
135
|
+
Area: [area]
|
|
136
|
+
Files: [count] referenced
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
Would you like to:
|
|
141
|
+
|
|
142
|
+
1. Continue with current work
|
|
143
|
+
2. Add another todo
|
|
144
|
+
3. View all todos (/mindforge-check-todos)
|
|
145
|
+
```
|
|
146
|
+
</step>
|
|
147
|
+
|
|
148
|
+
</process>
|
|
149
|
+
|
|
150
|
+
<success_criteria>
|
|
151
|
+
- [ ] Directory structure exists
|
|
152
|
+
- [ ] Todo file created with valid frontmatter
|
|
153
|
+
- [ ] Problem section has enough context for future the agent
|
|
154
|
+
- [ ] No duplicates (checked and resolved)
|
|
155
|
+
- [ ] Area consistent with existing todos
|
|
156
|
+
- [ ] STATE.md updated if exists
|
|
157
|
+
- [ ] Todo and state committed to git
|
|
158
|
+
</success_criteria>
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Verify milestone achieved its definition of done by aggregating phase verifications, checking cross-phase integration, and assessing requirements coverage. Reads existing VERIFICATION.md files (phases already verified during execute-phase), aggregates tech debt and deferred gaps, then spawns integration checker for cross-phase wiring.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<process>
|
|
10
|
+
|
|
11
|
+
## 0. Initialize Milestone Context
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
INIT=$(node ".agent/bin/mindforge-tools.cjs" init milestone-op)
|
|
15
|
+
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Extract from init JSON: `milestone_version`, `milestone_name`, `phase_count`, `completed_phases`, `commit_docs`.
|
|
19
|
+
|
|
20
|
+
Resolve integration checker model:
|
|
21
|
+
```bash
|
|
22
|
+
integration_checker_model=$(node ".agent/bin/mindforge-tools.cjs" resolve-model mindforge-integration-checker --raw)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## 1. Determine Milestone Scope
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Get phases in milestone (sorted numerically, handles decimals)
|
|
29
|
+
node ".agent/bin/mindforge-tools.cjs" phases list
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- Parse version from arguments or detect current from ROADMAP.md
|
|
33
|
+
- Identify all phase directories in scope
|
|
34
|
+
- Extract milestone definition of done from ROADMAP.md
|
|
35
|
+
- Extract requirements mapped to this milestone from REQUIREMENTS.md
|
|
36
|
+
|
|
37
|
+
## 2. Read All Phase Verifications
|
|
38
|
+
|
|
39
|
+
For each phase directory, read the VERIFICATION.md:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# For each phase, use find-phase to resolve the directory (handles archived phases)
|
|
43
|
+
PHASE_INFO=$(node ".agent/bin/mindforge-tools.cjs" find-phase 01 --raw)
|
|
44
|
+
# Extract directory from JSON, then read VERIFICATION.md from that directory
|
|
45
|
+
# Repeat for each phase number from ROADMAP.md
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
From each VERIFICATION.md, extract:
|
|
49
|
+
- **Status:** passed | gaps_found
|
|
50
|
+
- **Critical gaps:** (if any — these are blockers)
|
|
51
|
+
- **Non-critical gaps:** tech debt, deferred items, warnings
|
|
52
|
+
- **Anti-patterns found:** TODOs, stubs, placeholders
|
|
53
|
+
- **Requirements coverage:** which requirements satisfied/blocked
|
|
54
|
+
|
|
55
|
+
If a phase is missing VERIFICATION.md, flag it as "unverified phase" — this is a blocker.
|
|
56
|
+
|
|
57
|
+
## 3. Spawn Integration Checker
|
|
58
|
+
|
|
59
|
+
With phase context collected:
|
|
60
|
+
|
|
61
|
+
Extract `MILESTONE_REQ_IDS` from REQUIREMENTS.md traceability table — all REQ-IDs assigned to phases in this milestone.
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
Task(
|
|
65
|
+
prompt="Check cross-phase integration and E2E flows.
|
|
66
|
+
|
|
67
|
+
Phases: {phase_dirs}
|
|
68
|
+
Phase exports: {from SUMMARYs}
|
|
69
|
+
API routes: {routes created}
|
|
70
|
+
|
|
71
|
+
Milestone Requirements:
|
|
72
|
+
{MILESTONE_REQ_IDS — list each REQ-ID with description and assigned phase}
|
|
73
|
+
|
|
74
|
+
MUST map each integration finding to affected requirement IDs where applicable.
|
|
75
|
+
|
|
76
|
+
Verify cross-phase wiring and E2E user flows.",
|
|
77
|
+
subagent_type="mindforge-integration-checker",
|
|
78
|
+
model="{integration_checker_model}"
|
|
79
|
+
)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 4. Collect Results
|
|
83
|
+
|
|
84
|
+
Combine:
|
|
85
|
+
- Phase-level gaps and tech debt (from step 2)
|
|
86
|
+
- Integration checker's report (wiring gaps, broken flows)
|
|
87
|
+
|
|
88
|
+
## 5. Check Requirements Coverage (3-Source Cross-Reference)
|
|
89
|
+
|
|
90
|
+
MUST cross-reference three independent sources for each requirement:
|
|
91
|
+
|
|
92
|
+
### 5a. Parse REQUIREMENTS.md Traceability Table
|
|
93
|
+
|
|
94
|
+
Extract all REQ-IDs mapped to milestone phases from the traceability table:
|
|
95
|
+
- Requirement ID, description, assigned phase, current status, checked-off state (`[x]` vs `[ ]`)
|
|
96
|
+
|
|
97
|
+
### 5b. Parse Phase VERIFICATION.md Requirements Tables
|
|
98
|
+
|
|
99
|
+
For each phase's VERIFICATION.md, extract the expanded requirements table:
|
|
100
|
+
- Requirement | Source Plan | Description | Status | Evidence
|
|
101
|
+
- Map each entry back to its REQ-ID
|
|
102
|
+
|
|
103
|
+
### 5c. Extract SUMMARY.md Frontmatter Cross-Check
|
|
104
|
+
|
|
105
|
+
For each phase's SUMMARY.md, extract `requirements-completed` from YAML frontmatter:
|
|
106
|
+
```bash
|
|
107
|
+
for summary in .planning/phases/*-*/*-SUMMARY.md; do
|
|
108
|
+
node ".agent/bin/mindforge-tools.cjs" summary-extract "$summary" --fields requirements_completed --pick requirements_completed
|
|
109
|
+
done
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### 5d. Status Determination Matrix
|
|
113
|
+
|
|
114
|
+
For each REQ-ID, determine status using all three sources:
|
|
115
|
+
|
|
116
|
+
| VERIFICATION.md Status | SUMMARY Frontmatter | REQUIREMENTS.md | → Final Status |
|
|
117
|
+
|------------------------|---------------------|-----------------|----------------|
|
|
118
|
+
| passed | listed | `[x]` | **satisfied** |
|
|
119
|
+
| passed | listed | `[ ]` | **satisfied** (update checkbox) |
|
|
120
|
+
| passed | missing | any | **partial** (verify manually) |
|
|
121
|
+
| gaps_found | any | any | **unsatisfied** |
|
|
122
|
+
| missing | listed | any | **partial** (verification gap) |
|
|
123
|
+
| missing | missing | any | **unsatisfied** |
|
|
124
|
+
|
|
125
|
+
### 5e. FAIL Gate and Orphan Detection
|
|
126
|
+
|
|
127
|
+
**REQUIRED:** Any `unsatisfied` requirement MUST force `gaps_found` status on the milestone audit.
|
|
128
|
+
|
|
129
|
+
**Orphan detection:** Requirements present in REQUIREMENTS.md traceability table but absent from ALL phase VERIFICATION.md files MUST be flagged as orphaned. Orphaned requirements are treated as `unsatisfied` — they were assigned but never verified by any phase.
|
|
130
|
+
|
|
131
|
+
## 5.5. Nyquist Compliance Discovery
|
|
132
|
+
|
|
133
|
+
Skip if `workflow.nyquist_validation` is explicitly `false` (absent = enabled).
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
NYQUIST_CONFIG=$(node ".agent/bin/mindforge-tools.cjs" config-get workflow.nyquist_validation --raw 2>/dev/null)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
If `false`: skip entirely.
|
|
140
|
+
|
|
141
|
+
For each phase directory, check `*-VALIDATION.md`. If exists, parse frontmatter (`nyquist_compliant`, `wave_0_complete`).
|
|
142
|
+
|
|
143
|
+
Classify per phase:
|
|
144
|
+
|
|
145
|
+
| Status | Condition |
|
|
146
|
+
|--------|-----------|
|
|
147
|
+
| COMPLIANT | `nyquist_compliant: true` and all tasks green |
|
|
148
|
+
| PARTIAL | VALIDATION.md exists, `nyquist_compliant: false` or red/pending |
|
|
149
|
+
| MISSING | No VALIDATION.md |
|
|
150
|
+
|
|
151
|
+
Add to audit YAML: `nyquist: { compliant_phases, partial_phases, missing_phases, overall }`
|
|
152
|
+
|
|
153
|
+
Discovery only — never auto-calls `/mindforge-validate-phase`.
|
|
154
|
+
|
|
155
|
+
## 6. Aggregate into v{version}-MILESTONE-AUDIT.md
|
|
156
|
+
|
|
157
|
+
Create `.planning/v{version}-v{version}-MILESTONE-AUDIT.md` with:
|
|
158
|
+
|
|
159
|
+
```yaml
|
|
160
|
+
---
|
|
161
|
+
milestone: {version}
|
|
162
|
+
audited: {timestamp}
|
|
163
|
+
status: passed | gaps_found | tech_debt
|
|
164
|
+
scores:
|
|
165
|
+
requirements: N/M
|
|
166
|
+
phases: N/M
|
|
167
|
+
integration: N/M
|
|
168
|
+
flows: N/M
|
|
169
|
+
gaps: # Critical blockers
|
|
170
|
+
requirements:
|
|
171
|
+
- id: "{REQ-ID}"
|
|
172
|
+
status: "unsatisfied | partial | orphaned"
|
|
173
|
+
phase: "{assigned phase}"
|
|
174
|
+
claimed_by_plans: ["{plan files that reference this requirement}"]
|
|
175
|
+
completed_by_plans: ["{plan files whose SUMMARY marks it complete}"]
|
|
176
|
+
verification_status: "passed | gaps_found | missing | orphaned"
|
|
177
|
+
evidence: "{specific evidence or lack thereof}"
|
|
178
|
+
integration: [...]
|
|
179
|
+
flows: [...]
|
|
180
|
+
tech_debt: # Non-critical, deferred
|
|
181
|
+
- phase: 01-auth
|
|
182
|
+
items:
|
|
183
|
+
- "TODO: add rate limiting"
|
|
184
|
+
- "Warning: no password strength validation"
|
|
185
|
+
- phase: 03-dashboard
|
|
186
|
+
items:
|
|
187
|
+
- "Deferred: mobile responsive layout"
|
|
188
|
+
---
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Plus full markdown report with tables for requirements, phases, integration, tech debt.
|
|
192
|
+
|
|
193
|
+
**Status values:**
|
|
194
|
+
- `passed` — all requirements met, no critical gaps, minimal tech debt
|
|
195
|
+
- `gaps_found` — critical blockers exist
|
|
196
|
+
- `tech_debt` — no blockers but accumulated deferred items need review
|
|
197
|
+
|
|
198
|
+
## 7. Present Results
|
|
199
|
+
|
|
200
|
+
Route by status (see `<offer_next>`).
|
|
201
|
+
|
|
202
|
+
</process>
|
|
203
|
+
|
|
204
|
+
<offer_next>
|
|
205
|
+
Output this markdown directly (not as a code block). Route based on status:
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
**If passed:**
|
|
210
|
+
|
|
211
|
+
## ✓ Milestone {version} — Audit Passed
|
|
212
|
+
|
|
213
|
+
**Score:** {N}/{M} requirements satisfied
|
|
214
|
+
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
215
|
+
|
|
216
|
+
All requirements covered. Cross-phase integration verified. E2E flows complete.
|
|
217
|
+
|
|
218
|
+
───────────────────────────────────────────────────────────────
|
|
219
|
+
|
|
220
|
+
## ▶ Next Up
|
|
221
|
+
|
|
222
|
+
**Complete milestone** — archive and tag
|
|
223
|
+
|
|
224
|
+
/mindforge-complete-milestone {version}
|
|
225
|
+
|
|
226
|
+
<sub>/clear first → fresh context window</sub>
|
|
227
|
+
|
|
228
|
+
───────────────────────────────────────────────────────────────
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
**If gaps_found:**
|
|
233
|
+
|
|
234
|
+
## ⚠ Milestone {version} — Gaps Found
|
|
235
|
+
|
|
236
|
+
**Score:** {N}/{M} requirements satisfied
|
|
237
|
+
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
238
|
+
|
|
239
|
+
### Unsatisfied Requirements
|
|
240
|
+
|
|
241
|
+
{For each unsatisfied requirement:}
|
|
242
|
+
- **{REQ-ID}: {description}** (Phase {X})
|
|
243
|
+
- {reason}
|
|
244
|
+
|
|
245
|
+
### Cross-Phase Issues
|
|
246
|
+
|
|
247
|
+
{For each integration gap:}
|
|
248
|
+
- **{from} → {to}:** {issue}
|
|
249
|
+
|
|
250
|
+
### Broken Flows
|
|
251
|
+
|
|
252
|
+
{For each flow gap:}
|
|
253
|
+
- **{flow name}:** breaks at {step}
|
|
254
|
+
|
|
255
|
+
### Nyquist Coverage
|
|
256
|
+
|
|
257
|
+
| Phase | VALIDATION.md | Compliant | Action |
|
|
258
|
+
|-------|---------------|-----------|--------|
|
|
259
|
+
| {phase} | exists/missing | true/false/partial | `/mindforge-validate-phase {N}` |
|
|
260
|
+
|
|
261
|
+
Phases needing validation: run `/mindforge-validate-phase {N}` for each flagged phase.
|
|
262
|
+
|
|
263
|
+
───────────────────────────────────────────────────────────────
|
|
264
|
+
|
|
265
|
+
## ▶ Next Up
|
|
266
|
+
|
|
267
|
+
**Plan gap closure** — create phases to complete milestone
|
|
268
|
+
|
|
269
|
+
/mindforge-plan-milestone-gaps
|
|
270
|
+
|
|
271
|
+
<sub>/clear first → fresh context window</sub>
|
|
272
|
+
|
|
273
|
+
───────────────────────────────────────────────────────────────
|
|
274
|
+
|
|
275
|
+
**Also available:**
|
|
276
|
+
- cat .planning/v{version}-MILESTONE-AUDIT.md — see full report
|
|
277
|
+
- /mindforge-complete-milestone {version} — proceed anyway (accept tech debt)
|
|
278
|
+
|
|
279
|
+
───────────────────────────────────────────────────────────────
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
**If tech_debt (no blockers but accumulated debt):**
|
|
284
|
+
|
|
285
|
+
## ⚡ Milestone {version} — Tech Debt Review
|
|
286
|
+
|
|
287
|
+
**Score:** {N}/{M} requirements satisfied
|
|
288
|
+
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
289
|
+
|
|
290
|
+
All requirements met. No critical blockers. Accumulated tech debt needs review.
|
|
291
|
+
|
|
292
|
+
### Tech Debt by Phase
|
|
293
|
+
|
|
294
|
+
{For each phase with debt:}
|
|
295
|
+
**Phase {X}: {name}**
|
|
296
|
+
- {item 1}
|
|
297
|
+
- {item 2}
|
|
298
|
+
|
|
299
|
+
### Total: {N} items across {M} phases
|
|
300
|
+
|
|
301
|
+
───────────────────────────────────────────────────────────────
|
|
302
|
+
|
|
303
|
+
## ▶ Options
|
|
304
|
+
|
|
305
|
+
**A. Complete milestone** — accept debt, track in backlog
|
|
306
|
+
|
|
307
|
+
/mindforge-complete-milestone {version}
|
|
308
|
+
|
|
309
|
+
**B. Plan cleanup phase** — address debt before completing
|
|
310
|
+
|
|
311
|
+
/mindforge-plan-milestone-gaps
|
|
312
|
+
|
|
313
|
+
<sub>/clear first → fresh context window</sub>
|
|
314
|
+
|
|
315
|
+
───────────────────────────────────────────────────────────────
|
|
316
|
+
</offer_next>
|
|
317
|
+
|
|
318
|
+
<success_criteria>
|
|
319
|
+
- [ ] Milestone scope identified
|
|
320
|
+
- [ ] All phase VERIFICATION.md files read
|
|
321
|
+
- [ ] SUMMARY.md `requirements-completed` frontmatter extracted for each phase
|
|
322
|
+
- [ ] REQUIREMENTS.md traceability table parsed for all milestone REQ-IDs
|
|
323
|
+
- [ ] 3-source cross-reference completed (VERIFICATION + SUMMARY + traceability)
|
|
324
|
+
- [ ] Orphaned requirements detected (in traceability but absent from all VERIFICATIONs)
|
|
325
|
+
- [ ] Tech debt and deferred gaps aggregated
|
|
326
|
+
- [ ] Integration checker spawned with milestone requirement IDs
|
|
327
|
+
- [ ] v{version}-MILESTONE-AUDIT.md created with structured requirement gap objects
|
|
328
|
+
- [ ] FAIL gate enforced — any unsatisfied requirement forces gaps_found status
|
|
329
|
+
- [ ] Nyquist compliance scanned for all milestone phases (if enabled)
|
|
330
|
+
- [ ] Missing VALIDATION.md phases flagged with validate-phase suggestion
|
|
331
|
+
- [ ] Results presented with actionable next steps
|
|
332
|
+
</success_criteria>
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Cross-phase audit of all UAT and verification files. Finds every outstanding item (pending, skipped, blocked, human_needed), optionally verifies against the codebase to detect stale docs, and produces a prioritized human test plan.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<process>
|
|
6
|
+
|
|
7
|
+
<step name="initialize">
|
|
8
|
+
Run the CLI audit:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
AUDIT=$(node ".agent/bin/mindforge-tools.cjs" audit-uat --raw)
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Parse JSON for `results` array and `summary` object.
|
|
15
|
+
|
|
16
|
+
If `summary.total_items` is 0:
|
|
17
|
+
```
|
|
18
|
+
## All Clear
|
|
19
|
+
|
|
20
|
+
No outstanding UAT or verification items found across all phases.
|
|
21
|
+
All tests are passing, resolved, or diagnosed with fix plans.
|
|
22
|
+
```
|
|
23
|
+
Stop here.
|
|
24
|
+
</step>
|
|
25
|
+
|
|
26
|
+
<step name="categorize">
|
|
27
|
+
Group items by what's actionable NOW vs. what needs prerequisites:
|
|
28
|
+
|
|
29
|
+
**Testable Now** (no external dependencies):
|
|
30
|
+
- `pending` — tests never run
|
|
31
|
+
- `human_uat` — human verification items
|
|
32
|
+
- `skipped_unresolved` — skipped without clear blocking reason
|
|
33
|
+
|
|
34
|
+
**Needs Prerequisites:**
|
|
35
|
+
- `server_blocked` — needs external server running
|
|
36
|
+
- `device_needed` — needs physical device (not simulator)
|
|
37
|
+
- `build_needed` — needs release/preview build
|
|
38
|
+
- `third_party` — needs external service configuration
|
|
39
|
+
|
|
40
|
+
For each item in "Testable Now", use Grep/Read to check if the underlying feature still exists in the codebase:
|
|
41
|
+
- If the test references a component/function that no longer exists → mark as `stale`
|
|
42
|
+
- If the test references code that has been significantly rewritten → mark as `needs_update`
|
|
43
|
+
- Otherwise → mark as `active`
|
|
44
|
+
</step>
|
|
45
|
+
|
|
46
|
+
<step name="present">
|
|
47
|
+
Present the audit report:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
## UAT Audit Report
|
|
51
|
+
|
|
52
|
+
**{total_items} outstanding items across {total_files} files in {phase_count} phases**
|
|
53
|
+
|
|
54
|
+
### Testable Now ({count})
|
|
55
|
+
|
|
56
|
+
| # | Phase | Test | Description | Status |
|
|
57
|
+
|---|-------|------|-------------|--------|
|
|
58
|
+
| 1 | {phase} | {test_name} | {expected} | {active/stale/needs_update} |
|
|
59
|
+
...
|
|
60
|
+
|
|
61
|
+
### Needs Prerequisites ({count})
|
|
62
|
+
|
|
63
|
+
| # | Phase | Test | Blocked By | Description |
|
|
64
|
+
|---|-------|------|------------|-------------|
|
|
65
|
+
| 1 | {phase} | {test_name} | {category} | {expected} |
|
|
66
|
+
...
|
|
67
|
+
|
|
68
|
+
### Stale (can be closed) ({count})
|
|
69
|
+
|
|
70
|
+
| # | Phase | Test | Why Stale |
|
|
71
|
+
|---|-------|------|-----------|
|
|
72
|
+
| 1 | {phase} | {test_name} | {reason} |
|
|
73
|
+
...
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Recommended Actions
|
|
78
|
+
|
|
79
|
+
1. **Close stale items:** `/mindforge-verify-work {phase}` — mark stale tests as resolved
|
|
80
|
+
2. **Run active tests:** Human UAT test plan below
|
|
81
|
+
3. **When prerequisites met:** Retest blocked items with `/mindforge-verify-work {phase}`
|
|
82
|
+
```
|
|
83
|
+
</step>
|
|
84
|
+
|
|
85
|
+
<step name="test_plan">
|
|
86
|
+
Generate a human UAT test plan for "Testable Now" + "active" items only:
|
|
87
|
+
|
|
88
|
+
Group by what can be tested together (same screen, same feature, same prerequisite):
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
## Human UAT Test Plan
|
|
92
|
+
|
|
93
|
+
### Group 1: {category — e.g., "Billing Flow"}
|
|
94
|
+
Prerequisites: {what needs to be running/configured}
|
|
95
|
+
|
|
96
|
+
1. **{Test name}** (Phase {N})
|
|
97
|
+
- Navigate to: {where}
|
|
98
|
+
- Do: {action}
|
|
99
|
+
- Expected: {expected behavior}
|
|
100
|
+
|
|
101
|
+
2. **{Test name}** (Phase {N})
|
|
102
|
+
...
|
|
103
|
+
|
|
104
|
+
### Group 2: {category}
|
|
105
|
+
...
|
|
106
|
+
```
|
|
107
|
+
</step>
|
|
108
|
+
|
|
109
|
+
</process>
|