mindsystem-cc 3.11.0 → 3.13.0
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/agents/ms-consolidator.md +4 -4
- package/agents/ms-executor.md +19 -351
- package/agents/ms-flutter-code-quality.md +7 -6
- package/agents/ms-plan-checker.md +170 -175
- package/agents/ms-plan-writer.md +121 -125
- package/agents/ms-roadmapper.md +1 -18
- package/agents/ms-verifier.md +22 -18
- package/commands/ms/check-phase.md +3 -3
- package/commands/ms/design-phase.md +2 -9
- package/commands/ms/execute-phase.md +8 -6
- package/commands/ms/help.md +0 -5
- package/commands/ms/new-project.md +3 -40
- package/commands/ms/plan-phase.md +4 -3
- package/commands/ms/review-design.md +1 -8
- package/mindsystem/references/goal-backward.md +10 -25
- package/mindsystem/references/plan-format.md +326 -247
- package/mindsystem/references/scope-estimation.md +29 -57
- package/mindsystem/references/tdd-execution.md +70 -0
- package/mindsystem/references/tdd.md +53 -194
- package/mindsystem/templates/config.json +0 -11
- package/mindsystem/templates/phase-prompt.md +51 -367
- package/mindsystem/templates/roadmap.md +2 -2
- package/mindsystem/templates/verification-report.md +2 -2
- package/mindsystem/workflows/adhoc.md +16 -21
- package/mindsystem/workflows/execute-phase.md +71 -50
- package/mindsystem/workflows/execute-plan.md +183 -1060
- package/mindsystem/workflows/mockup-generation.md +10 -4
- package/mindsystem/workflows/plan-phase.md +56 -75
- package/mindsystem/workflows/transition.md +1 -10
- package/mindsystem/workflows/verify-phase.md +16 -20
- package/package.json +1 -1
- package/scripts/update-state.sh +59 -0
- package/scripts/validate-execution-order.sh +102 -0
- package/skills/flutter-code-quality/SKILL.md +4 -3
- package/mindsystem/templates/summary.md +0 -293
|
@@ -47,8 +47,8 @@ A task "create auth endpoint" can be in the plan while password hashing is missi
|
|
|
47
47
|
Goal-backward plan verification starts from the outcome and works backwards:
|
|
48
48
|
|
|
49
49
|
1. What must be TRUE for the phase goal to be achieved?
|
|
50
|
-
2. Which
|
|
51
|
-
3. Are those
|
|
50
|
+
2. Which changes address each truth?
|
|
51
|
+
3. Are those changes complete (Files, implementation details, verification)?
|
|
52
52
|
4. Are artifacts wired together, not just created in isolation?
|
|
53
53
|
5. Will execution complete within context budget?
|
|
54
54
|
|
|
@@ -88,35 +88,37 @@ issue:
|
|
|
88
88
|
fix_hint: "Add task for logout endpoint in plan 01 or new plan"
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
## Dimension 2:
|
|
91
|
+
## Dimension 2: Change Completeness
|
|
92
92
|
|
|
93
|
-
**Question:** Does every
|
|
93
|
+
**Question:** Does every change subsection have Files + implementation details + corresponding verification and must-have entries?
|
|
94
94
|
|
|
95
95
|
**Process:**
|
|
96
|
-
1. Parse each
|
|
97
|
-
2. Check for required
|
|
98
|
-
3. Flag incomplete
|
|
99
|
-
|
|
100
|
-
**Required
|
|
101
|
-
|
|
|
102
|
-
|
|
103
|
-
|
|
|
104
|
-
|
|
|
96
|
+
1. Parse each `### N.` subsection in PLAN.md `## Changes` section
|
|
97
|
+
2. Check for required content
|
|
98
|
+
3. Flag incomplete changes
|
|
99
|
+
|
|
100
|
+
**Required per change subsection:**
|
|
101
|
+
| Element | Required | What to check |
|
|
102
|
+
|---------|----------|---------------|
|
|
103
|
+
| `**Files:**` line | Yes | Lists files created/modified |
|
|
104
|
+
| Implementation details | Yes | Specific enough to execute (not "implement auth") |
|
|
105
|
+
| `## Verification` entry | Yes | Corresponding way to confirm this change works |
|
|
106
|
+
| `## Must-Haves` entry | Yes | Observable truth this change supports |
|
|
105
107
|
|
|
106
108
|
**Red flags:**
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
109
|
+
- Change subsection missing `**Files:**` line
|
|
110
|
+
- Vague implementation details — "implement auth" instead of specific steps
|
|
111
|
+
- No corresponding entry in `## Verification`
|
|
112
|
+
- No corresponding entry in `## Must-Haves`
|
|
111
113
|
|
|
112
114
|
**Example issue:**
|
|
113
115
|
```yaml
|
|
114
116
|
issue:
|
|
115
|
-
dimension:
|
|
117
|
+
dimension: change_completeness
|
|
116
118
|
severity: blocker
|
|
117
|
-
description: "
|
|
119
|
+
description: "Change 2 has no corresponding verification entry"
|
|
118
120
|
plan: "16-01"
|
|
119
|
-
|
|
121
|
+
change: 2
|
|
120
122
|
fix_hint: "Add verification command for build output"
|
|
121
123
|
```
|
|
122
124
|
|
|
@@ -125,29 +127,30 @@ issue:
|
|
|
125
127
|
**Question:** Are plan dependencies valid and acyclic?
|
|
126
128
|
|
|
127
129
|
**Process:**
|
|
128
|
-
1.
|
|
129
|
-
2. Build dependency graph
|
|
130
|
-
3. Check for cycles, missing references,
|
|
130
|
+
1. Read EXECUTION-ORDER.md for wave groups and dependency declarations
|
|
131
|
+
2. Build dependency graph from wave assignments and explicit dependencies
|
|
132
|
+
3. Check for cycles, missing references, file conflicts within waves
|
|
131
133
|
|
|
132
134
|
**Red flags:**
|
|
133
|
-
- Plan
|
|
135
|
+
- Plan listed in EXECUTION-ORDER.md but PLAN.md file doesn't exist
|
|
136
|
+
- PLAN.md file exists but not listed in EXECUTION-ORDER.md
|
|
134
137
|
- Circular dependency (A -> B -> A)
|
|
135
|
-
-
|
|
138
|
+
- Plans in same wave with overlapping `**Files:**` entries (file conflict)
|
|
136
139
|
- Wave assignment inconsistent with dependencies
|
|
137
140
|
|
|
138
|
-
**Dependency rules:**
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
-
|
|
141
|
+
**Dependency rules (from EXECUTION-ORDER.md):**
|
|
142
|
+
- Wave 1 plans have no dependencies (can run parallel)
|
|
143
|
+
- Later wave plans depend on earlier waves completing
|
|
144
|
+
- Plans in same wave must not modify the same files
|
|
142
145
|
|
|
143
146
|
**Example issue:**
|
|
144
147
|
```yaml
|
|
145
148
|
issue:
|
|
146
149
|
dimension: dependency_correctness
|
|
147
150
|
severity: blocker
|
|
148
|
-
description: "
|
|
151
|
+
description: "Plans 02 and 03 in Wave 1 both modify src/lib/auth.ts"
|
|
149
152
|
plans: ["02", "03"]
|
|
150
|
-
fix_hint: "
|
|
153
|
+
fix_hint: "Move plan 03 to Wave 2 or split shared file into separate modules"
|
|
151
154
|
```
|
|
152
155
|
|
|
153
156
|
## Dimension 4: Key Links Planned
|
|
@@ -155,9 +158,9 @@ issue:
|
|
|
155
158
|
**Question:** Are artifacts wired together, not just created in isolation?
|
|
156
159
|
|
|
157
160
|
**Process:**
|
|
158
|
-
1. Identify artifacts in `
|
|
159
|
-
2. Check that
|
|
160
|
-
3. Verify
|
|
161
|
+
1. Identify artifacts from `**Files:**` lines in `## Changes`
|
|
162
|
+
2. Check that implementation details describe wiring between artifacts
|
|
163
|
+
3. Verify changes actually implement the wiring (not just artifact creation)
|
|
161
164
|
|
|
162
165
|
**Red flags:**
|
|
163
166
|
- Component created but not imported anywhere
|
|
@@ -189,21 +192,21 @@ issue:
|
|
|
189
192
|
**Question:** Will plans complete within context budget?
|
|
190
193
|
|
|
191
194
|
**Process:**
|
|
192
|
-
1. Count
|
|
193
|
-
2.
|
|
195
|
+
1. Count `### ` subsections (changes) per plan
|
|
196
|
+
2. Count files from `**Files:**` lines per plan
|
|
194
197
|
3. Check against thresholds
|
|
195
198
|
|
|
196
199
|
**Thresholds:**
|
|
197
200
|
| Metric | Target | Warning | Blocker |
|
|
198
201
|
|--------|--------|---------|---------|
|
|
199
|
-
|
|
|
202
|
+
| Changes/plan | 2-3 | 4 | 5+ |
|
|
200
203
|
| Files/plan | 5-8 | 10 | 15+ |
|
|
201
204
|
| Total context | ~50% | ~70% | 80%+ |
|
|
202
205
|
|
|
203
206
|
**Red flags:**
|
|
204
|
-
- Plan with 5+
|
|
207
|
+
- Plan with 5+ changes (quality degrades)
|
|
205
208
|
- Plan with 15+ file modifications
|
|
206
|
-
- Single
|
|
209
|
+
- Single change with 10+ files
|
|
207
210
|
- Complex work (auth, payments) crammed into one plan
|
|
208
211
|
|
|
209
212
|
**Example issue:**
|
|
@@ -211,38 +214,38 @@ issue:
|
|
|
211
214
|
issue:
|
|
212
215
|
dimension: scope_sanity
|
|
213
216
|
severity: warning
|
|
214
|
-
description: "Plan 01 has 5
|
|
217
|
+
description: "Plan 01 has 5 changes - split recommended"
|
|
215
218
|
plan: "01"
|
|
216
219
|
metrics:
|
|
217
|
-
|
|
220
|
+
changes: 5
|
|
218
221
|
files: 12
|
|
219
222
|
fix_hint: "Split into 2 plans: foundation (01) and integration (02)"
|
|
220
223
|
```
|
|
221
224
|
|
|
222
225
|
## Dimension 6: Verification Derivation
|
|
223
226
|
|
|
224
|
-
**Question:** Do
|
|
227
|
+
**Question:** Do Must-Haves trace back to phase goal?
|
|
225
228
|
|
|
226
229
|
**Process:**
|
|
227
|
-
1. Check each plan has `
|
|
228
|
-
2. Verify
|
|
229
|
-
3. Verify
|
|
230
|
-
4. Verify
|
|
230
|
+
1. Check each plan has a `## Must-Haves` section with checklist items
|
|
231
|
+
2. Verify checklist items are user-observable (not implementation details)
|
|
232
|
+
3. Verify `## Changes` subsections with `**Files:**` lines support the truths
|
|
233
|
+
4. Verify implementation details describe wiring between artifacts, not just creation
|
|
231
234
|
|
|
232
235
|
**Red flags:**
|
|
233
|
-
- Missing `
|
|
234
|
-
-
|
|
235
|
-
-
|
|
236
|
-
-
|
|
236
|
+
- Missing `## Must-Haves` section entirely
|
|
237
|
+
- Checklist items are implementation-focused ("bcrypt installed") not user-observable ("passwords are secure")
|
|
238
|
+
- `## Changes` doesn't create artifacts needed for Must-Haves truths
|
|
239
|
+
- No wiring described between artifacts that must work together
|
|
237
240
|
|
|
238
241
|
**Example issue:**
|
|
239
242
|
```yaml
|
|
240
243
|
issue:
|
|
241
244
|
dimension: verification_derivation
|
|
242
245
|
severity: warning
|
|
243
|
-
description: "Plan 02
|
|
246
|
+
description: "Plan 02 Must-Haves are implementation-focused"
|
|
244
247
|
plan: "02"
|
|
245
|
-
|
|
248
|
+
problematic_items:
|
|
246
249
|
- "JWT library installed"
|
|
247
250
|
- "Prisma schema updated"
|
|
248
251
|
fix_hint: "Reframe as user-observable: 'User can log in', 'Session persists'"
|
|
@@ -329,32 +332,30 @@ done
|
|
|
329
332
|
```
|
|
330
333
|
|
|
331
334
|
**Parse from each plan:**
|
|
332
|
-
-
|
|
333
|
-
-
|
|
334
|
-
-
|
|
335
|
-
- Verification
|
|
336
|
-
-
|
|
335
|
+
- Inline metadata (Subsystem, Type)
|
|
336
|
+
- Context section
|
|
337
|
+
- Changes subsections (`### N.` headers with `**Files:**` lines)
|
|
338
|
+
- Verification section
|
|
339
|
+
- Must-Haves section (markdown checklist)
|
|
337
340
|
|
|
338
|
-
## Step 3: Parse
|
|
341
|
+
## Step 3: Parse Must-Haves
|
|
339
342
|
|
|
340
|
-
Extract
|
|
343
|
+
Extract Must-Haves from each plan's `## Must-Haves` section.
|
|
341
344
|
|
|
342
|
-
**Structure:**
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
artifacts:
|
|
349
|
-
- path: "src/app/api/auth/login/route.ts"
|
|
350
|
-
provides: "Login endpoint"
|
|
351
|
-
min_lines: 30
|
|
352
|
-
key_links:
|
|
353
|
-
- from: "src/components/LoginForm.tsx"
|
|
354
|
-
to: "/api/auth/login"
|
|
355
|
-
via: "fetch in onSubmit"
|
|
345
|
+
**Structure (markdown checklist):**
|
|
346
|
+
```markdown
|
|
347
|
+
## Must-Haves
|
|
348
|
+
- [ ] User can log in with email/password
|
|
349
|
+
- [ ] Invalid credentials return 401
|
|
350
|
+
- [ ] Session persists across page reload
|
|
356
351
|
```
|
|
357
352
|
|
|
353
|
+
Each `- [ ]` item is a user-observable truth to verify.
|
|
354
|
+
|
|
355
|
+
**Also extract from `## Changes`:**
|
|
356
|
+
- `**Files:**` lines → artifacts that must exist
|
|
357
|
+
- Implementation details → key links between artifacts (fetch calls, imports, queries)
|
|
358
|
+
|
|
358
359
|
**Aggregate across plans** to get full picture of what phase delivers.
|
|
359
360
|
|
|
360
361
|
## Step 4: Check Requirement Coverage
|
|
@@ -375,50 +376,47 @@ User can log out | - | - | MISSING
|
|
|
375
376
|
Session persists | 01 | 3 | COVERED
|
|
376
377
|
```
|
|
377
378
|
|
|
378
|
-
## Step 5: Validate
|
|
379
|
+
## Step 5: Validate Change Structure
|
|
379
380
|
|
|
380
|
-
For each
|
|
381
|
+
For each change subsection, verify required content exists.
|
|
381
382
|
|
|
382
383
|
```bash
|
|
383
|
-
# Count
|
|
384
|
-
grep -c "
|
|
384
|
+
# Count changes per plan
|
|
385
|
+
grep -c "^### " "$PHASE_DIR"/*-PLAN.md
|
|
385
386
|
|
|
386
|
-
# Check for
|
|
387
|
-
grep
|
|
387
|
+
# Check for Files lines in each plan
|
|
388
|
+
grep "^\*\*Files:\*\*" "$PHASE_DIR"/*-PLAN.md
|
|
388
389
|
```
|
|
389
390
|
|
|
390
391
|
**Check:**
|
|
391
|
-
-
|
|
392
|
-
-
|
|
393
|
-
-
|
|
394
|
-
-
|
|
395
|
-
- Done is measurable (acceptance criteria)
|
|
392
|
+
- Each `### N.` subsection has a `**Files:**` line
|
|
393
|
+
- Implementation details are specific (not "implement auth")
|
|
394
|
+
- `## Verification` section has entries
|
|
395
|
+
- `## Must-Haves` section has checklist items
|
|
396
396
|
|
|
397
397
|
## Step 6: Verify Dependency Graph
|
|
398
398
|
|
|
399
|
-
|
|
399
|
+
Read and validate EXECUTION-ORDER.md.
|
|
400
400
|
|
|
401
|
-
**Parse
|
|
401
|
+
**Parse EXECUTION-ORDER.md:**
|
|
402
402
|
```bash
|
|
403
|
-
|
|
404
|
-
for plan in "$PHASE_DIR"/*-PLAN.md; do
|
|
405
|
-
grep "depends_on:" "$plan"
|
|
406
|
-
done
|
|
403
|
+
cat "$PHASE_DIR"/EXECUTION-ORDER.md
|
|
407
404
|
```
|
|
408
405
|
|
|
409
406
|
**Validate:**
|
|
410
|
-
1. All
|
|
411
|
-
2. No
|
|
412
|
-
3.
|
|
413
|
-
4.
|
|
407
|
+
1. All PLAN.md files in phase directory are listed in EXECUTION-ORDER.md
|
|
408
|
+
2. No PLAN.md files missing from EXECUTION-ORDER.md
|
|
409
|
+
3. No circular dependencies between waves
|
|
410
|
+
4. Plans in same wave don't modify the same files (check `**Files:**` lines)
|
|
411
|
+
5. Wave ordering is consistent (later waves depend on earlier ones)
|
|
414
412
|
|
|
415
|
-
**
|
|
413
|
+
**File conflict detection:** Parse `**Files:**` from plans in the same wave. If overlap found, report conflict.
|
|
416
414
|
|
|
417
415
|
## Step 7: Check Key Links Planned
|
|
418
416
|
|
|
419
417
|
Verify artifacts are wired together in task actions.
|
|
420
418
|
|
|
421
|
-
**For each
|
|
419
|
+
**For each key link identified from `## Changes`:**
|
|
422
420
|
1. Find the source artifact task
|
|
423
421
|
2. Check if action mentions the connection
|
|
424
422
|
3. Flag missing wiring
|
|
@@ -437,36 +435,31 @@ Evaluate scope against context budget.
|
|
|
437
435
|
|
|
438
436
|
**Metrics per plan:**
|
|
439
437
|
```bash
|
|
440
|
-
# Count
|
|
441
|
-
grep -c "
|
|
438
|
+
# Count changes (### subsections)
|
|
439
|
+
grep -c "^### " "$PHASE_DIR"/${PHASE}-01-PLAN.md
|
|
442
440
|
|
|
443
|
-
# Count files
|
|
444
|
-
grep "
|
|
441
|
+
# Count files from **Files:** lines
|
|
442
|
+
grep "^\*\*Files:\*\*" "$PHASE_DIR"/${PHASE}-01-PLAN.md
|
|
445
443
|
```
|
|
446
444
|
|
|
447
445
|
**Thresholds:**
|
|
448
|
-
- 2-3
|
|
449
|
-
- 4
|
|
450
|
-
- 5+
|
|
446
|
+
- 2-3 changes/plan: Good
|
|
447
|
+
- 4 changes/plan: Warning
|
|
448
|
+
- 5+ changes/plan: Blocker (split required)
|
|
451
449
|
|
|
452
|
-
## Step 9: Verify
|
|
450
|
+
## Step 9: Verify Must-Haves Derivation
|
|
453
451
|
|
|
454
|
-
Check that
|
|
452
|
+
Check that `## Must-Haves` checklist items are properly derived from phase goal.
|
|
455
453
|
|
|
456
|
-
**
|
|
454
|
+
**Checklist items should be:**
|
|
457
455
|
- User-observable (not "bcrypt installed" but "passwords are secure")
|
|
458
456
|
- Testable by human using the app
|
|
459
457
|
- Specific enough to verify
|
|
460
458
|
|
|
461
|
-
**
|
|
462
|
-
-
|
|
463
|
-
-
|
|
464
|
-
-
|
|
465
|
-
|
|
466
|
-
**Key_links should:**
|
|
467
|
-
- Connect artifacts that must work together
|
|
468
|
-
- Specify the connection method (fetch, Prisma query, import)
|
|
469
|
-
- Cover critical wiring (where stubs hide)
|
|
459
|
+
**Changes should support Must-Haves:**
|
|
460
|
+
- Each Must-Have item has corresponding change(s) in `## Changes`
|
|
461
|
+
- `**Files:**` lines identify artifacts that make truths possible
|
|
462
|
+
- Implementation details describe wiring between artifacts (not just creation)
|
|
470
463
|
|
|
471
464
|
## Step 10: Determine Overall Status
|
|
472
465
|
|
|
@@ -478,7 +471,7 @@ Based on all dimension checks:
|
|
|
478
471
|
- Dependency graph valid
|
|
479
472
|
- Key links planned
|
|
480
473
|
- Scope within budget
|
|
481
|
-
-
|
|
474
|
+
- Must-Haves properly derived
|
|
482
475
|
|
|
483
476
|
**Status: issues_found**
|
|
484
477
|
- One or more blockers or warnings
|
|
@@ -523,68 +516,70 @@ issue:
|
|
|
523
516
|
fix_hint: "Add logout endpoint task to Plan 01 or create Plan 03"
|
|
524
517
|
```
|
|
525
518
|
|
|
526
|
-
## Example 2:
|
|
519
|
+
## Example 2: Dependency Conflict
|
|
527
520
|
|
|
528
|
-
**
|
|
529
|
-
```
|
|
530
|
-
|
|
531
|
-
|
|
521
|
+
**EXECUTION-ORDER.md:**
|
|
522
|
+
```markdown
|
|
523
|
+
## Wave 1 (parallel)
|
|
524
|
+
- 03-01-PLAN.md
|
|
525
|
+
- 03-02-PLAN.md
|
|
532
526
|
|
|
533
|
-
|
|
534
|
-
|
|
527
|
+
## Wave 2
|
|
528
|
+
- 03-03-PLAN.md (after: 01, 02)
|
|
535
529
|
```
|
|
536
530
|
|
|
531
|
+
**But Plan 02 references output from Plan 03 in its implementation details.**
|
|
532
|
+
|
|
537
533
|
**Analysis:**
|
|
538
|
-
- Plan 02
|
|
539
|
-
- Plan 03 waits for Plan 02
|
|
540
|
-
-
|
|
534
|
+
- Plan 02 in Wave 1 needs output from Plan 03 (Wave 2)
|
|
535
|
+
- Plan 03 waits for Plan 02 to complete
|
|
536
|
+
- Contradiction: forward reference from earlier wave
|
|
541
537
|
|
|
542
538
|
**Issue:**
|
|
543
539
|
```yaml
|
|
544
540
|
issue:
|
|
545
541
|
dimension: dependency_correctness
|
|
546
542
|
severity: blocker
|
|
547
|
-
description: "
|
|
543
|
+
description: "Plan 02 (Wave 1) references output from Plan 03 (Wave 2)"
|
|
548
544
|
plans: ["02", "03"]
|
|
549
|
-
fix_hint: "Plan 02
|
|
545
|
+
fix_hint: "Move Plan 02 to Wave 2 or remove the forward reference"
|
|
550
546
|
```
|
|
551
547
|
|
|
552
|
-
## Example 3:
|
|
548
|
+
## Example 3: Change Missing Verification
|
|
553
549
|
|
|
554
|
-
**
|
|
555
|
-
```
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
<!-- Missing <verify> -->
|
|
561
|
-
<done>Login works with valid credentials</done>
|
|
562
|
-
</task>
|
|
550
|
+
**Change in Plan 01:**
|
|
551
|
+
```markdown
|
|
552
|
+
### 2. Create login endpoint
|
|
553
|
+
**Files:** `src/app/api/auth/login/route.ts`
|
|
554
|
+
|
|
555
|
+
POST endpoint accepting {email, password}, validates using bcrypt...
|
|
563
556
|
```
|
|
564
557
|
|
|
558
|
+
**But `## Verification` has no entry for this change, and `## Must-Haves` doesn't reference login.**
|
|
559
|
+
|
|
565
560
|
**Analysis:**
|
|
566
|
-
-
|
|
567
|
-
-
|
|
568
|
-
- Cannot confirm
|
|
561
|
+
- Change has Files and implementation details
|
|
562
|
+
- No corresponding verification entry
|
|
563
|
+
- Cannot confirm change completion
|
|
569
564
|
|
|
570
565
|
**Issue:**
|
|
571
566
|
```yaml
|
|
572
567
|
issue:
|
|
573
|
-
dimension:
|
|
568
|
+
dimension: change_completeness
|
|
574
569
|
severity: blocker
|
|
575
|
-
description: "
|
|
570
|
+
description: "Change 2 has no corresponding verification entry"
|
|
576
571
|
plan: "01"
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
fix_hint: "Add
|
|
572
|
+
change: 2
|
|
573
|
+
change_name: "Create login endpoint"
|
|
574
|
+
fix_hint: "Add curl command or test to ## Verification for login endpoint"
|
|
580
575
|
```
|
|
581
576
|
|
|
582
577
|
## Example 4: Scope Exceeded
|
|
583
578
|
|
|
584
579
|
**Plan 01 analysis:**
|
|
585
580
|
```
|
|
586
|
-
|
|
587
|
-
Files
|
|
581
|
+
Changes (### subsections): 5
|
|
582
|
+
Files (from **Files:** lines): 12
|
|
588
583
|
- prisma/schema.prisma
|
|
589
584
|
- src/app/api/auth/login/route.ts
|
|
590
585
|
- src/app/api/auth/logout/route.ts
|
|
@@ -600,7 +595,7 @@ Files modified: 12
|
|
|
600
595
|
```
|
|
601
596
|
|
|
602
597
|
**Analysis:**
|
|
603
|
-
- 5
|
|
598
|
+
- 5 changes exceeds 2-3 target
|
|
604
599
|
- 12 files is high
|
|
605
600
|
- Auth is complex domain
|
|
606
601
|
- Risk of quality degradation
|
|
@@ -610,10 +605,10 @@ Files modified: 12
|
|
|
610
605
|
issue:
|
|
611
606
|
dimension: scope_sanity
|
|
612
607
|
severity: blocker
|
|
613
|
-
description: "Plan 01 has 5
|
|
608
|
+
description: "Plan 01 has 5 changes with 12 files - exceeds context budget"
|
|
614
609
|
plan: "01"
|
|
615
610
|
metrics:
|
|
616
|
-
|
|
611
|
+
changes: 5
|
|
617
612
|
files: 12
|
|
618
613
|
estimated_context: "~80%"
|
|
619
614
|
fix_hint: "Split into: 01 (schema + API), 02 (middleware + lib), 03 (UI components)"
|
|
@@ -630,10 +625,10 @@ Each issue follows this structure:
|
|
|
630
625
|
```yaml
|
|
631
626
|
issue:
|
|
632
627
|
plan: "16-01" # Which plan (null if phase-level)
|
|
633
|
-
dimension: "
|
|
628
|
+
dimension: "change_completeness" # Which dimension failed
|
|
634
629
|
severity: "blocker" # blocker | warning | info
|
|
635
|
-
description: "
|
|
636
|
-
|
|
630
|
+
description: "Change 2 has no corresponding verification entry"
|
|
631
|
+
change: 2 # Change number if applicable
|
|
637
632
|
fix_hint: "Add verification command for build output"
|
|
638
633
|
```
|
|
639
634
|
|
|
@@ -641,9 +636,9 @@ issue:
|
|
|
641
636
|
|
|
642
637
|
**blocker** - Must fix before execution
|
|
643
638
|
- Missing requirement coverage
|
|
644
|
-
- Missing required
|
|
645
|
-
- Circular dependencies
|
|
646
|
-
- Scope > 5
|
|
639
|
+
- Missing required change fields
|
|
640
|
+
- Circular dependencies or file conflicts in same wave
|
|
641
|
+
- Scope > 5 changes per plan
|
|
647
642
|
|
|
648
643
|
**warning** - Should fix, execution may work
|
|
649
644
|
- Scope 4 tasks (borderline)
|
|
@@ -662,22 +657,22 @@ Return issues as structured list:
|
|
|
662
657
|
```yaml
|
|
663
658
|
issues:
|
|
664
659
|
- plan: "01"
|
|
665
|
-
dimension: "
|
|
660
|
+
dimension: "change_completeness"
|
|
666
661
|
severity: "blocker"
|
|
667
|
-
description: "
|
|
662
|
+
description: "Change 2 has no corresponding verification entry"
|
|
668
663
|
fix_hint: "Add verification command"
|
|
669
664
|
|
|
670
665
|
- plan: "01"
|
|
671
666
|
dimension: "scope_sanity"
|
|
672
667
|
severity: "warning"
|
|
673
|
-
description: "Plan has 4
|
|
668
|
+
description: "Plan has 4 changes - consider splitting"
|
|
674
669
|
fix_hint: "Split into foundation + integration plans"
|
|
675
670
|
|
|
676
671
|
- plan: null
|
|
677
672
|
dimension: "requirement_coverage"
|
|
678
673
|
severity: "blocker"
|
|
679
|
-
description: "Logout requirement has no covering
|
|
680
|
-
fix_hint: "Add logout
|
|
674
|
+
description: "Logout requirement has no covering change"
|
|
675
|
+
fix_hint: "Add logout change to existing plan or new plan"
|
|
681
676
|
```
|
|
682
677
|
|
|
683
678
|
</issue_structure>
|
|
@@ -748,9 +743,9 @@ When issues need fixing:
|
|
|
748
743
|
```yaml
|
|
749
744
|
issues:
|
|
750
745
|
- plan: "01"
|
|
751
|
-
dimension: "
|
|
746
|
+
dimension: "change_completeness"
|
|
752
747
|
severity: "blocker"
|
|
753
|
-
description: "
|
|
748
|
+
description: "Change 2 has no corresponding verification entry"
|
|
754
749
|
fix_hint: "Add verification command"
|
|
755
750
|
```
|
|
756
751
|
|
|
@@ -767,15 +762,15 @@ issues:
|
|
|
767
762
|
|
|
768
763
|
**DO NOT run the application.** This is static plan analysis. No `npm start`, no `curl` to running server.
|
|
769
764
|
|
|
770
|
-
**DO NOT accept vague
|
|
765
|
+
**DO NOT accept vague changes.** "Implement auth" is not specific enough. Changes need concrete files, implementation details, verification.
|
|
771
766
|
|
|
772
|
-
**DO NOT skip dependency analysis.**
|
|
767
|
+
**DO NOT skip dependency analysis.** Missing EXECUTION-ORDER.md entries or file conflicts cause execution failures.
|
|
773
768
|
|
|
774
|
-
**DO NOT ignore scope.** 5+
|
|
769
|
+
**DO NOT ignore scope.** 5+ changes per plan degrades quality. Better to report and split.
|
|
775
770
|
|
|
776
771
|
**DO NOT verify implementation details.** Check that plans describe what to build, not that code exists.
|
|
777
772
|
|
|
778
|
-
**DO NOT trust
|
|
773
|
+
**DO NOT trust change titles alone.** Read the implementation details, Files lines, verification entries. A well-named change can be empty.
|
|
779
774
|
|
|
780
775
|
</anti_patterns>
|
|
781
776
|
|
|
@@ -785,16 +780,16 @@ Plan verification complete when:
|
|
|
785
780
|
|
|
786
781
|
- [ ] Phase goal extracted from ROADMAP.md
|
|
787
782
|
- [ ] All PLAN.md files in phase directory loaded
|
|
788
|
-
- [ ]
|
|
789
|
-
- [ ] Requirement coverage checked (all requirements have
|
|
790
|
-
- [ ]
|
|
791
|
-
- [ ]
|
|
783
|
+
- [ ] Must-Haves parsed from `## Must-Haves` sections
|
|
784
|
+
- [ ] Requirement coverage checked (all requirements have changes)
|
|
785
|
+
- [ ] Change completeness validated (Files, details, verification)
|
|
786
|
+
- [ ] EXECUTION-ORDER.md validated (all plans listed, no cycles, no file conflicts)
|
|
792
787
|
- [ ] Key links checked (wiring planned, not just artifacts)
|
|
793
788
|
- [ ] Scope assessed (within context budget)
|
|
794
|
-
- [ ]
|
|
789
|
+
- [ ] Must-Haves derivation verified (user-observable truths)
|
|
795
790
|
- [ ] Context compliance checked (if CONTEXT.md provided):
|
|
796
|
-
- [ ] Locked decisions have implementing
|
|
797
|
-
- [ ] No
|
|
791
|
+
- [ ] Locked decisions have implementing changes
|
|
792
|
+
- [ ] No changes contradict locked decisions
|
|
798
793
|
- [ ] Deferred ideas not included in plans
|
|
799
794
|
- [ ] Overall status determined (passed | issues_found)
|
|
800
795
|
- [ ] Structured issues returned (if any found)
|