@howlil/ez-agents 2.0.0 → 2.0.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.
Files changed (106) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +93 -93
  3. package/agents/ez-plan-checker.md +2 -2
  4. package/agents/ez-research-synthesizer.md +1 -1
  5. package/agents/ez-ui-researcher.md +1 -1
  6. package/agents/ez-verifier.md +1 -1
  7. package/bin/install.js +132 -132
  8. package/get-shit-done/bin/lib/assistant-adapter.cjs +205 -205
  9. package/get-shit-done/bin/lib/audit-exec.cjs +150 -150
  10. package/get-shit-done/bin/lib/auth.cjs +175 -175
  11. package/get-shit-done/bin/lib/circuit-breaker.cjs +118 -118
  12. package/get-shit-done/bin/lib/commands.cjs +666 -666
  13. package/get-shit-done/bin/lib/config.cjs +183 -183
  14. package/get-shit-done/bin/lib/core.cjs +495 -495
  15. package/get-shit-done/bin/lib/file-lock.cjs +236 -236
  16. package/get-shit-done/bin/lib/frontmatter.cjs +299 -299
  17. package/get-shit-done/bin/lib/fs-utils.cjs +153 -153
  18. package/get-shit-done/bin/lib/git-utils.cjs +203 -203
  19. package/get-shit-done/bin/lib/health-check.cjs +163 -163
  20. package/get-shit-done/bin/lib/index.cjs +113 -113
  21. package/get-shit-done/bin/lib/init.cjs +710 -710
  22. package/get-shit-done/bin/lib/logger.cjs +117 -117
  23. package/get-shit-done/bin/lib/milestone.cjs +241 -241
  24. package/get-shit-done/bin/lib/model-provider.cjs +146 -146
  25. package/get-shit-done/bin/lib/phase.cjs +908 -908
  26. package/get-shit-done/bin/lib/retry.cjs +119 -119
  27. package/get-shit-done/bin/lib/roadmap.cjs +305 -305
  28. package/get-shit-done/bin/lib/safe-exec.cjs +128 -128
  29. package/get-shit-done/bin/lib/safe-path.cjs +130 -130
  30. package/get-shit-done/bin/lib/state.cjs +721 -721
  31. package/get-shit-done/bin/lib/temp-file.cjs +239 -239
  32. package/get-shit-done/bin/lib/template.cjs +222 -222
  33. package/get-shit-done/bin/lib/test-file-lock.cjs +112 -112
  34. package/get-shit-done/bin/lib/test-graceful.cjs +93 -93
  35. package/get-shit-done/bin/lib/test-logger.cjs +60 -60
  36. package/get-shit-done/bin/lib/test-safe-exec.cjs +38 -38
  37. package/get-shit-done/bin/lib/test-safe-path.cjs +33 -33
  38. package/get-shit-done/bin/lib/test-temp-file.cjs +125 -125
  39. package/get-shit-done/bin/lib/timeout-exec.cjs +62 -62
  40. package/get-shit-done/bin/lib/verify.cjs +820 -820
  41. package/get-shit-done/references/checkpoints.md +776 -776
  42. package/get-shit-done/references/questioning.md +162 -162
  43. package/get-shit-done/references/tdd.md +263 -263
  44. package/get-shit-done/templates/codebase/concerns.md +310 -310
  45. package/get-shit-done/templates/codebase/conventions.md +307 -307
  46. package/get-shit-done/templates/codebase/integrations.md +280 -280
  47. package/get-shit-done/templates/codebase/stack.md +186 -186
  48. package/get-shit-done/templates/codebase/testing.md +480 -480
  49. package/get-shit-done/templates/config.json +37 -37
  50. package/get-shit-done/templates/continue-here.md +78 -78
  51. package/get-shit-done/templates/milestone-archive.md +123 -123
  52. package/get-shit-done/templates/milestone.md +115 -115
  53. package/get-shit-done/templates/requirements.md +231 -231
  54. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -204
  55. package/get-shit-done/templates/research-project/FEATURES.md +147 -147
  56. package/get-shit-done/templates/research-project/PITFALLS.md +200 -200
  57. package/get-shit-done/templates/research-project/STACK.md +120 -120
  58. package/get-shit-done/templates/research-project/SUMMARY.md +170 -170
  59. package/get-shit-done/templates/retrospective.md +54 -54
  60. package/get-shit-done/templates/roadmap.md +202 -202
  61. package/get-shit-done/templates/summary-minimal.md +41 -41
  62. package/get-shit-done/templates/summary-standard.md +48 -48
  63. package/get-shit-done/templates/summary.md +248 -248
  64. package/get-shit-done/templates/user-setup.md +311 -311
  65. package/get-shit-done/templates/verification-report.md +322 -322
  66. package/get-shit-done/workflows/add-phase.md +112 -112
  67. package/get-shit-done/workflows/add-tests.md +351 -351
  68. package/get-shit-done/workflows/add-todo.md +158 -158
  69. package/get-shit-done/workflows/audit-milestone.md +332 -332
  70. package/get-shit-done/workflows/autonomous.md +743 -743
  71. package/get-shit-done/workflows/check-todos.md +177 -177
  72. package/get-shit-done/workflows/cleanup.md +152 -152
  73. package/get-shit-done/workflows/complete-milestone.md +766 -766
  74. package/get-shit-done/workflows/diagnose-issues.md +219 -219
  75. package/get-shit-done/workflows/discovery-phase.md +289 -289
  76. package/get-shit-done/workflows/discuss-phase.md +762 -762
  77. package/get-shit-done/workflows/execute-phase.md +468 -468
  78. package/get-shit-done/workflows/execute-plan.md +483 -483
  79. package/get-shit-done/workflows/health.md +159 -159
  80. package/get-shit-done/workflows/help.md +492 -492
  81. package/get-shit-done/workflows/insert-phase.md +130 -130
  82. package/get-shit-done/workflows/list-phase-assumptions.md +178 -178
  83. package/get-shit-done/workflows/map-codebase.md +316 -316
  84. package/get-shit-done/workflows/new-milestone.md +384 -384
  85. package/get-shit-done/workflows/new-project.md +1111 -1111
  86. package/get-shit-done/workflows/node-repair.md +92 -92
  87. package/get-shit-done/workflows/pause-work.md +122 -122
  88. package/get-shit-done/workflows/plan-milestone-gaps.md +274 -274
  89. package/get-shit-done/workflows/plan-phase.md +651 -651
  90. package/get-shit-done/workflows/progress.md +382 -382
  91. package/get-shit-done/workflows/quick.md +610 -610
  92. package/get-shit-done/workflows/remove-phase.md +155 -155
  93. package/get-shit-done/workflows/research-phase.md +74 -74
  94. package/get-shit-done/workflows/resume-project.md +307 -307
  95. package/get-shit-done/workflows/set-profile.md +81 -81
  96. package/get-shit-done/workflows/settings.md +242 -242
  97. package/get-shit-done/workflows/stats.md +57 -57
  98. package/get-shit-done/workflows/transition.md +544 -544
  99. package/get-shit-done/workflows/ui-phase.md +290 -290
  100. package/get-shit-done/workflows/ui-review.md +157 -157
  101. package/get-shit-done/workflows/update.md +320 -320
  102. package/get-shit-done/workflows/validate-phase.md +167 -167
  103. package/get-shit-done/workflows/verify-phase.md +243 -243
  104. package/package.json +1 -1
  105. package/scripts/build-hooks.js +43 -43
  106. package/scripts/run-tests.cjs +29 -29
@@ -1,322 +1,322 @@
1
- # Verification Report Template
2
-
3
- Template for `.planning/phases/XX-name/{phase_num}-VERIFICATION.md` — phase goal verification results.
4
-
5
- ---
6
-
7
- ## File Template
8
-
9
- ```markdown
10
- ---
11
- phase: XX-name
12
- verified: YYYY-MM-DDTHH:MM:SSZ
13
- status: passed | gaps_found | human_needed
14
- score: N/M must-haves verified
15
- ---
16
-
17
- # Phase {X}: {Name} Verification Report
18
-
19
- **Phase Goal:** {goal from ROADMAP.md}
20
- **Verified:** {timestamp}
21
- **Status:** {passed | gaps_found | human_needed}
22
-
23
- ## Goal Achievement
24
-
25
- ### Observable Truths
26
-
27
- | # | Truth | Status | Evidence |
28
- |---|-------|--------|----------|
29
- | 1 | {truth from must_haves} | ✓ VERIFIED | {what confirmed it} |
30
- | 2 | {truth from must_haves} | ✗ FAILED | {what's wrong} |
31
- | 3 | {truth from must_haves} | ? UNCERTAIN | {why can't verify} |
32
-
33
- **Score:** {N}/{M} truths verified
34
-
35
- ### Required Artifacts
36
-
37
- | Artifact | Expected | Status | Details |
38
- |----------|----------|--------|---------|
39
- | `src/components/Chat.tsx` | Message list component | ✓ EXISTS + SUBSTANTIVE | Exports ChatList, renders Message[], no stubs |
40
- | `src/app/api/chat/route.ts` | Message CRUD | ✗ STUB | File exists but POST returns placeholder |
41
- | `prisma/schema.prisma` | Message model | ✓ EXISTS + SUBSTANTIVE | Model defined with all fields |
42
-
43
- **Artifacts:** {N}/{M} verified
44
-
45
- ### Key Link Verification
46
-
47
- | From | To | Via | Status | Details |
48
- |------|----|----|--------|---------|
49
- | Chat.tsx | /api/chat | fetch in useEffect | ✓ WIRED | Line 23: `fetch('/api/chat')` with response handling |
50
- | ChatInput | /api/chat POST | onSubmit handler | ✗ NOT WIRED | onSubmit only calls console.log |
51
- | /api/chat POST | database | prisma.message.create | ✗ NOT WIRED | Returns hardcoded response, no DB call |
52
-
53
- **Wiring:** {N}/{M} connections verified
54
-
55
- ## Requirements Coverage
56
-
57
- | Requirement | Status | Blocking Issue |
58
- |-------------|--------|----------------|
59
- | {REQ-01}: {description} | ✓ SATISFIED | - |
60
- | {REQ-02}: {description} | ✗ BLOCKED | API route is stub |
61
- | {REQ-03}: {description} | ? NEEDS HUMAN | Can't verify WebSocket programmatically |
62
-
63
- **Coverage:** {N}/{M} requirements satisfied
64
-
65
- ## Anti-Patterns Found
66
-
67
- | File | Line | Pattern | Severity | Impact |
68
- |------|------|---------|----------|--------|
69
- | src/app/api/chat/route.ts | 12 | `// TODO: implement` | ⚠️ Warning | Indicates incomplete |
70
- | src/components/Chat.tsx | 45 | `return <div>Placeholder</div>` | 🛑 Blocker | Renders no content |
71
- | src/hooks/useChat.ts | - | File missing | 🛑 Blocker | Expected hook doesn't exist |
72
-
73
- **Anti-patterns:** {N} found ({blockers} blockers, {warnings} warnings)
74
-
75
- ## Human Verification Required
76
-
77
- {If no human verification needed:}
78
- None — all verifiable items checked programmatically.
79
-
80
- {If human verification needed:}
81
-
82
- ### 1. {Test Name}
83
- **Test:** {What to do}
84
- **Expected:** {What should happen}
85
- **Why human:** {Why can't verify programmatically}
86
-
87
- ### 2. {Test Name}
88
- **Test:** {What to do}
89
- **Expected:** {What should happen}
90
- **Why human:** {Why can't verify programmatically}
91
-
92
- ## Gaps Summary
93
-
94
- {If no gaps:}
95
- **No gaps found.** Phase goal achieved. Ready to proceed.
96
-
97
- {If gaps found:}
98
-
99
- ### Critical Gaps (Block Progress)
100
-
101
- 1. **{Gap name}**
102
- - Missing: {what's missing}
103
- - Impact: {why this blocks the goal}
104
- - Fix: {what needs to happen}
105
-
106
- 2. **{Gap name}**
107
- - Missing: {what's missing}
108
- - Impact: {why this blocks the goal}
109
- - Fix: {what needs to happen}
110
-
111
- ### Non-Critical Gaps (Can Defer)
112
-
113
- 1. **{Gap name}**
114
- - Issue: {what's wrong}
115
- - Impact: {limited impact because...}
116
- - Recommendation: {fix now or defer}
117
-
118
- ## Recommended Fix Plans
119
-
120
- {If gaps found, generate fix plan recommendations:}
121
-
122
- ### {phase}-{next}-PLAN.md: {Fix Name}
123
-
124
- **Objective:** {What this fixes}
125
-
126
- **Tasks:**
127
- 1. {Task to fix gap 1}
128
- 2. {Task to fix gap 2}
129
- 3. {Verification task}
130
-
131
- **Estimated scope:** {Small / Medium}
132
-
133
- ---
134
-
135
- ### {phase}-{next+1}-PLAN.md: {Fix Name}
136
-
137
- **Objective:** {What this fixes}
138
-
139
- **Tasks:**
140
- 1. {Task}
141
- 2. {Task}
142
-
143
- **Estimated scope:** {Small / Medium}
144
-
145
- ---
146
-
147
- ## Verification Metadata
148
-
149
- **Verification approach:** Goal-backward (derived from phase goal)
150
- **Must-haves source:** {PLAN.md frontmatter | derived from ROADMAP.md goal}
151
- **Automated checks:** {N} passed, {M} failed
152
- **Human checks required:** {N}
153
- **Total verification time:** {duration}
154
-
155
- ---
156
- *Verified: {timestamp}*
157
- *Verifier: Claude (subagent)*
158
- ```
159
-
160
- ---
161
-
162
- ## Guidelines
163
-
164
- **Status values:**
165
- - `passed` — All must-haves verified, no blockers
166
- - `gaps_found` — One or more critical gaps found
167
- - `human_needed` — Automated checks pass but human verification required
168
-
169
- **Evidence types:**
170
- - For EXISTS: "File at path, exports X"
171
- - For SUBSTANTIVE: "N lines, has patterns X, Y, Z"
172
- - For WIRED: "Line N: code that connects A to B"
173
- - For FAILED: "Missing because X" or "Stub because Y"
174
-
175
- **Severity levels:**
176
- - 🛑 Blocker: Prevents goal achievement, must fix
177
- - ⚠️ Warning: Indicates incomplete but doesn't block
178
- - ℹ️ Info: Notable but not problematic
179
-
180
- **Fix plan generation:**
181
- - Only generate if gaps_found
182
- - Group related fixes into single plans
183
- - Keep to 2-3 tasks per plan
184
- - Include verification task in each plan
185
-
186
- ---
187
-
188
- ## Example
189
-
190
- ```markdown
191
- ---
192
- phase: 03-chat
193
- verified: 2025-01-15T14:30:00Z
194
- status: gaps_found
195
- score: 2/5 must-haves verified
196
- ---
197
-
198
- # Phase 3: Chat Interface Verification Report
199
-
200
- **Phase Goal:** Working chat interface where users can send and receive messages
201
- **Verified:** 2025-01-15T14:30:00Z
202
- **Status:** gaps_found
203
-
204
- ## Goal Achievement
205
-
206
- ### Observable Truths
207
-
208
- | # | Truth | Status | Evidence |
209
- |---|-------|--------|----------|
210
- | 1 | User can see existing messages | ✗ FAILED | Component renders placeholder, not message data |
211
- | 2 | User can type a message | ✓ VERIFIED | Input field exists with onChange handler |
212
- | 3 | User can send a message | ✗ FAILED | onSubmit handler is console.log only |
213
- | 4 | Sent message appears in list | ✗ FAILED | No state update after send |
214
- | 5 | Messages persist across refresh | ? UNCERTAIN | Can't verify - send doesn't work |
215
-
216
- **Score:** 1/5 truths verified
217
-
218
- ### Required Artifacts
219
-
220
- | Artifact | Expected | Status | Details |
221
- |----------|----------|--------|---------|
222
- | `src/components/Chat.tsx` | Message list component | ✗ STUB | Returns `<div>Chat will be here</div>` |
223
- | `src/components/ChatInput.tsx` | Message input | ✓ EXISTS + SUBSTANTIVE | Form with input, submit button, handlers |
224
- | `src/app/api/chat/route.ts` | Message CRUD | ✗ STUB | GET returns [], POST returns { ok: true } |
225
- | `prisma/schema.prisma` | Message model | ✓ EXISTS + SUBSTANTIVE | Message model with id, content, userId, createdAt |
226
-
227
- **Artifacts:** 2/4 verified
228
-
229
- ### Key Link Verification
230
-
231
- | From | To | Via | Status | Details |
232
- |------|----|----|--------|---------|
233
- | Chat.tsx | /api/chat GET | fetch | ✗ NOT WIRED | No fetch call in component |
234
- | ChatInput | /api/chat POST | onSubmit | ✗ NOT WIRED | Handler only logs, doesn't fetch |
235
- | /api/chat GET | database | prisma.message.findMany | ✗ NOT WIRED | Returns hardcoded [] |
236
- | /api/chat POST | database | prisma.message.create | ✗ NOT WIRED | Returns { ok: true }, no DB call |
237
-
238
- **Wiring:** 0/4 connections verified
239
-
240
- ## Requirements Coverage
241
-
242
- | Requirement | Status | Blocking Issue |
243
- |-------------|--------|----------------|
244
- | CHAT-01: User can send message | ✗ BLOCKED | API POST is stub |
245
- | CHAT-02: User can view messages | ✗ BLOCKED | Component is placeholder |
246
- | CHAT-03: Messages persist | ✗ BLOCKED | No database integration |
247
-
248
- **Coverage:** 0/3 requirements satisfied
249
-
250
- ## Anti-Patterns Found
251
-
252
- | File | Line | Pattern | Severity | Impact |
253
- |------|------|---------|----------|--------|
254
- | src/components/Chat.tsx | 8 | `<div>Chat will be here</div>` | 🛑 Blocker | No actual content |
255
- | src/app/api/chat/route.ts | 5 | `return Response.json([])` | 🛑 Blocker | Hardcoded empty |
256
- | src/app/api/chat/route.ts | 12 | `// TODO: save to database` | ⚠️ Warning | Incomplete |
257
-
258
- **Anti-patterns:** 3 found (2 blockers, 1 warning)
259
-
260
- ## Human Verification Required
261
-
262
- None needed until automated gaps are fixed.
263
-
264
- ## Gaps Summary
265
-
266
- ### Critical Gaps (Block Progress)
267
-
268
- 1. **Chat component is placeholder**
269
- - Missing: Actual message list rendering
270
- - Impact: Users see "Chat will be here" instead of messages
271
- - Fix: Implement Chat.tsx to fetch and render messages
272
-
273
- 2. **API routes are stubs**
274
- - Missing: Database integration in GET and POST
275
- - Impact: No data persistence, no real functionality
276
- - Fix: Wire prisma calls in route handlers
277
-
278
- 3. **No wiring between frontend and backend**
279
- - Missing: fetch calls in components
280
- - Impact: Even if API worked, UI wouldn't call it
281
- - Fix: Add useEffect fetch in Chat, onSubmit fetch in ChatInput
282
-
283
- ## Recommended Fix Plans
284
-
285
- ### 03-04-PLAN.md: Implement Chat API
286
-
287
- **Objective:** Wire API routes to database
288
-
289
- **Tasks:**
290
- 1. Implement GET /api/chat with prisma.message.findMany
291
- 2. Implement POST /api/chat with prisma.message.create
292
- 3. Verify: API returns real data, POST creates records
293
-
294
- **Estimated scope:** Small
295
-
296
- ---
297
-
298
- ### 03-05-PLAN.md: Implement Chat UI
299
-
300
- **Objective:** Wire Chat component to API
301
-
302
- **Tasks:**
303
- 1. Implement Chat.tsx with useEffect fetch and message rendering
304
- 2. Wire ChatInput onSubmit to POST /api/chat
305
- 3. Verify: Messages display, new messages appear after send
306
-
307
- **Estimated scope:** Small
308
-
309
- ---
310
-
311
- ## Verification Metadata
312
-
313
- **Verification approach:** Goal-backward (derived from phase goal)
314
- **Must-haves source:** 03-01-PLAN.md frontmatter
315
- **Automated checks:** 2 passed, 8 failed
316
- **Human checks required:** 0 (blocked by automated failures)
317
- **Total verification time:** 2 min
318
-
319
- ---
320
- *Verified: 2025-01-15T14:30:00Z*
321
- *Verifier: Claude (subagent)*
322
- ```
1
+ # Verification Report Template
2
+
3
+ Template for `.planning/phases/XX-name/{phase_num}-VERIFICATION.md` — phase goal verification results.
4
+
5
+ ---
6
+
7
+ ## File Template
8
+
9
+ ```markdown
10
+ ---
11
+ phase: XX-name
12
+ verified: YYYY-MM-DDTHH:MM:SSZ
13
+ status: passed | gaps_found | human_needed
14
+ score: N/M must-haves verified
15
+ ---
16
+
17
+ # Phase {X}: {Name} Verification Report
18
+
19
+ **Phase Goal:** {goal from ROADMAP.md}
20
+ **Verified:** {timestamp}
21
+ **Status:** {passed | gaps_found | human_needed}
22
+
23
+ ## Goal Achievement
24
+
25
+ ### Observable Truths
26
+
27
+ | # | Truth | Status | Evidence |
28
+ |---|-------|--------|----------|
29
+ | 1 | {truth from must_haves} | ✓ VERIFIED | {what confirmed it} |
30
+ | 2 | {truth from must_haves} | ✗ FAILED | {what's wrong} |
31
+ | 3 | {truth from must_haves} | ? UNCERTAIN | {why can't verify} |
32
+
33
+ **Score:** {N}/{M} truths verified
34
+
35
+ ### Required Artifacts
36
+
37
+ | Artifact | Expected | Status | Details |
38
+ |----------|----------|--------|---------|
39
+ | `src/components/Chat.tsx` | Message list component | ✓ EXISTS + SUBSTANTIVE | Exports ChatList, renders Message[], no stubs |
40
+ | `src/app/api/chat/route.ts` | Message CRUD | ✗ STUB | File exists but POST returns placeholder |
41
+ | `prisma/schema.prisma` | Message model | ✓ EXISTS + SUBSTANTIVE | Model defined with all fields |
42
+
43
+ **Artifacts:** {N}/{M} verified
44
+
45
+ ### Key Link Verification
46
+
47
+ | From | To | Via | Status | Details |
48
+ |------|----|----|--------|---------|
49
+ | Chat.tsx | /api/chat | fetch in useEffect | ✓ WIRED | Line 23: `fetch('/api/chat')` with response handling |
50
+ | ChatInput | /api/chat POST | onSubmit handler | ✗ NOT WIRED | onSubmit only calls console.log |
51
+ | /api/chat POST | database | prisma.message.create | ✗ NOT WIRED | Returns hardcoded response, no DB call |
52
+
53
+ **Wiring:** {N}/{M} connections verified
54
+
55
+ ## Requirements Coverage
56
+
57
+ | Requirement | Status | Blocking Issue |
58
+ |-------------|--------|----------------|
59
+ | {REQ-01}: {description} | ✓ SATISFIED | - |
60
+ | {REQ-02}: {description} | ✗ BLOCKED | API route is stub |
61
+ | {REQ-03}: {description} | ? NEEDS HUMAN | Can't verify WebSocket programmatically |
62
+
63
+ **Coverage:** {N}/{M} requirements satisfied
64
+
65
+ ## Anti-Patterns Found
66
+
67
+ | File | Line | Pattern | Severity | Impact |
68
+ |------|------|---------|----------|--------|
69
+ | src/app/api/chat/route.ts | 12 | `// TODO: implement` | ⚠️ Warning | Indicates incomplete |
70
+ | src/components/Chat.tsx | 45 | `return <div>Placeholder</div>` | 🛑 Blocker | Renders no content |
71
+ | src/hooks/useChat.ts | - | File missing | 🛑 Blocker | Expected hook doesn't exist |
72
+
73
+ **Anti-patterns:** {N} found ({blockers} blockers, {warnings} warnings)
74
+
75
+ ## Human Verification Required
76
+
77
+ {If no human verification needed:}
78
+ None — all verifiable items checked programmatically.
79
+
80
+ {If human verification needed:}
81
+
82
+ ### 1. {Test Name}
83
+ **Test:** {What to do}
84
+ **Expected:** {What should happen}
85
+ **Why human:** {Why can't verify programmatically}
86
+
87
+ ### 2. {Test Name}
88
+ **Test:** {What to do}
89
+ **Expected:** {What should happen}
90
+ **Why human:** {Why can't verify programmatically}
91
+
92
+ ## Gaps Summary
93
+
94
+ {If no gaps:}
95
+ **No gaps found.** Phase goal achieved. Ready to proceed.
96
+
97
+ {If gaps found:}
98
+
99
+ ### Critical Gaps (Block Progress)
100
+
101
+ 1. **{Gap name}**
102
+ - Missing: {what's missing}
103
+ - Impact: {why this blocks the goal}
104
+ - Fix: {what needs to happen}
105
+
106
+ 2. **{Gap name}**
107
+ - Missing: {what's missing}
108
+ - Impact: {why this blocks the goal}
109
+ - Fix: {what needs to happen}
110
+
111
+ ### Non-Critical Gaps (Can Defer)
112
+
113
+ 1. **{Gap name}**
114
+ - Issue: {what's wrong}
115
+ - Impact: {limited impact because...}
116
+ - Recommendation: {fix now or defer}
117
+
118
+ ## Recommended Fix Plans
119
+
120
+ {If gaps found, generate fix plan recommendations:}
121
+
122
+ ### {phase}-{next}-PLAN.md: {Fix Name}
123
+
124
+ **Objective:** {What this fixes}
125
+
126
+ **Tasks:**
127
+ 1. {Task to fix gap 1}
128
+ 2. {Task to fix gap 2}
129
+ 3. {Verification task}
130
+
131
+ **Estimated scope:** {Small / Medium}
132
+
133
+ ---
134
+
135
+ ### {phase}-{next+1}-PLAN.md: {Fix Name}
136
+
137
+ **Objective:** {What this fixes}
138
+
139
+ **Tasks:**
140
+ 1. {Task}
141
+ 2. {Task}
142
+
143
+ **Estimated scope:** {Small / Medium}
144
+
145
+ ---
146
+
147
+ ## Verification Metadata
148
+
149
+ **Verification approach:** Goal-backward (derived from phase goal)
150
+ **Must-haves source:** {PLAN.md frontmatter | derived from ROADMAP.md goal}
151
+ **Automated checks:** {N} passed, {M} failed
152
+ **Human checks required:** {N}
153
+ **Total verification time:** {duration}
154
+
155
+ ---
156
+ *Verified: {timestamp}*
157
+ *Verifier: Claude (subagent)*
158
+ ```
159
+
160
+ ---
161
+
162
+ ## Guidelines
163
+
164
+ **Status values:**
165
+ - `passed` — All must-haves verified, no blockers
166
+ - `gaps_found` — One or more critical gaps found
167
+ - `human_needed` — Automated checks pass but human verification required
168
+
169
+ **Evidence types:**
170
+ - For EXISTS: "File at path, exports X"
171
+ - For SUBSTANTIVE: "N lines, has patterns X, Y, Z"
172
+ - For WIRED: "Line N: code that connects A to B"
173
+ - For FAILED: "Missing because X" or "Stub because Y"
174
+
175
+ **Severity levels:**
176
+ - 🛑 Blocker: Prevents goal achievement, must fix
177
+ - ⚠️ Warning: Indicates incomplete but doesn't block
178
+ - ℹ️ Info: Notable but not problematic
179
+
180
+ **Fix plan generation:**
181
+ - Only generate if gaps_found
182
+ - Group related fixes into single plans
183
+ - Keep to 2-3 tasks per plan
184
+ - Include verification task in each plan
185
+
186
+ ---
187
+
188
+ ## Example
189
+
190
+ ```markdown
191
+ ---
192
+ phase: 03-chat
193
+ verified: 2025-01-15T14:30:00Z
194
+ status: gaps_found
195
+ score: 2/5 must-haves verified
196
+ ---
197
+
198
+ # Phase 3: Chat Interface Verification Report
199
+
200
+ **Phase Goal:** Working chat interface where users can send and receive messages
201
+ **Verified:** 2025-01-15T14:30:00Z
202
+ **Status:** gaps_found
203
+
204
+ ## Goal Achievement
205
+
206
+ ### Observable Truths
207
+
208
+ | # | Truth | Status | Evidence |
209
+ |---|-------|--------|----------|
210
+ | 1 | User can see existing messages | ✗ FAILED | Component renders placeholder, not message data |
211
+ | 2 | User can type a message | ✓ VERIFIED | Input field exists with onChange handler |
212
+ | 3 | User can send a message | ✗ FAILED | onSubmit handler is console.log only |
213
+ | 4 | Sent message appears in list | ✗ FAILED | No state update after send |
214
+ | 5 | Messages persist across refresh | ? UNCERTAIN | Can't verify - send doesn't work |
215
+
216
+ **Score:** 1/5 truths verified
217
+
218
+ ### Required Artifacts
219
+
220
+ | Artifact | Expected | Status | Details |
221
+ |----------|----------|--------|---------|
222
+ | `src/components/Chat.tsx` | Message list component | ✗ STUB | Returns `<div>Chat will be here</div>` |
223
+ | `src/components/ChatInput.tsx` | Message input | ✓ EXISTS + SUBSTANTIVE | Form with input, submit button, handlers |
224
+ | `src/app/api/chat/route.ts` | Message CRUD | ✗ STUB | GET returns [], POST returns { ok: true } |
225
+ | `prisma/schema.prisma` | Message model | ✓ EXISTS + SUBSTANTIVE | Message model with id, content, userId, createdAt |
226
+
227
+ **Artifacts:** 2/4 verified
228
+
229
+ ### Key Link Verification
230
+
231
+ | From | To | Via | Status | Details |
232
+ |------|----|----|--------|---------|
233
+ | Chat.tsx | /api/chat GET | fetch | ✗ NOT WIRED | No fetch call in component |
234
+ | ChatInput | /api/chat POST | onSubmit | ✗ NOT WIRED | Handler only logs, doesn't fetch |
235
+ | /api/chat GET | database | prisma.message.findMany | ✗ NOT WIRED | Returns hardcoded [] |
236
+ | /api/chat POST | database | prisma.message.create | ✗ NOT WIRED | Returns { ok: true }, no DB call |
237
+
238
+ **Wiring:** 0/4 connections verified
239
+
240
+ ## Requirements Coverage
241
+
242
+ | Requirement | Status | Blocking Issue |
243
+ |-------------|--------|----------------|
244
+ | CHAT-01: User can send message | ✗ BLOCKED | API POST is stub |
245
+ | CHAT-02: User can view messages | ✗ BLOCKED | Component is placeholder |
246
+ | CHAT-03: Messages persist | ✗ BLOCKED | No database integration |
247
+
248
+ **Coverage:** 0/3 requirements satisfied
249
+
250
+ ## Anti-Patterns Found
251
+
252
+ | File | Line | Pattern | Severity | Impact |
253
+ |------|------|---------|----------|--------|
254
+ | src/components/Chat.tsx | 8 | `<div>Chat will be here</div>` | 🛑 Blocker | No actual content |
255
+ | src/app/api/chat/route.ts | 5 | `return Response.json([])` | 🛑 Blocker | Hardcoded empty |
256
+ | src/app/api/chat/route.ts | 12 | `// TODO: save to database` | ⚠️ Warning | Incomplete |
257
+
258
+ **Anti-patterns:** 3 found (2 blockers, 1 warning)
259
+
260
+ ## Human Verification Required
261
+
262
+ None needed until automated gaps are fixed.
263
+
264
+ ## Gaps Summary
265
+
266
+ ### Critical Gaps (Block Progress)
267
+
268
+ 1. **Chat component is placeholder**
269
+ - Missing: Actual message list rendering
270
+ - Impact: Users see "Chat will be here" instead of messages
271
+ - Fix: Implement Chat.tsx to fetch and render messages
272
+
273
+ 2. **API routes are stubs**
274
+ - Missing: Database integration in GET and POST
275
+ - Impact: No data persistence, no real functionality
276
+ - Fix: Wire prisma calls in route handlers
277
+
278
+ 3. **No wiring between frontend and backend**
279
+ - Missing: fetch calls in components
280
+ - Impact: Even if API worked, UI wouldn't call it
281
+ - Fix: Add useEffect fetch in Chat, onSubmit fetch in ChatInput
282
+
283
+ ## Recommended Fix Plans
284
+
285
+ ### 03-04-PLAN.md: Implement Chat API
286
+
287
+ **Objective:** Wire API routes to database
288
+
289
+ **Tasks:**
290
+ 1. Implement GET /api/chat with prisma.message.findMany
291
+ 2. Implement POST /api/chat with prisma.message.create
292
+ 3. Verify: API returns real data, POST creates records
293
+
294
+ **Estimated scope:** Small
295
+
296
+ ---
297
+
298
+ ### 03-05-PLAN.md: Implement Chat UI
299
+
300
+ **Objective:** Wire Chat component to API
301
+
302
+ **Tasks:**
303
+ 1. Implement Chat.tsx with useEffect fetch and message rendering
304
+ 2. Wire ChatInput onSubmit to POST /api/chat
305
+ 3. Verify: Messages display, new messages appear after send
306
+
307
+ **Estimated scope:** Small
308
+
309
+ ---
310
+
311
+ ## Verification Metadata
312
+
313
+ **Verification approach:** Goal-backward (derived from phase goal)
314
+ **Must-haves source:** 03-01-PLAN.md frontmatter
315
+ **Automated checks:** 2 passed, 8 failed
316
+ **Human checks required:** 0 (blocked by automated failures)
317
+ **Total verification time:** 2 min
318
+
319
+ ---
320
+ *Verified: 2025-01-15T14:30:00Z*
321
+ *Verifier: Claude (subagent)*
322
+ ```