takt 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +78 -4
  2. package/dist/agents/runner.d.ts +3 -0
  3. package/dist/agents/runner.d.ts.map +1 -1
  4. package/dist/agents/runner.js +69 -14
  5. package/dist/agents/runner.js.map +1 -1
  6. package/dist/claude/client.d.ts +1 -1
  7. package/dist/claude/client.d.ts.map +1 -1
  8. package/dist/claude/client.js +4 -3
  9. package/dist/claude/client.js.map +1 -1
  10. package/dist/claude/index.d.ts +1 -1
  11. package/dist/claude/index.d.ts.map +1 -1
  12. package/dist/claude/index.js.map +1 -1
  13. package/dist/claude/process.d.ts +1 -1
  14. package/dist/claude/process.d.ts.map +1 -1
  15. package/dist/claude/process.js.map +1 -1
  16. package/dist/claude/types.d.ts +7 -0
  17. package/dist/claude/types.d.ts.map +1 -1
  18. package/dist/cli.js +3 -1
  19. package/dist/cli.js.map +1 -1
  20. package/dist/codex/client.d.ts +26 -0
  21. package/dist/codex/client.d.ts.map +1 -0
  22. package/dist/codex/client.js +418 -0
  23. package/dist/codex/client.js.map +1 -0
  24. package/dist/codex/index.d.ts +5 -0
  25. package/dist/codex/index.d.ts.map +1 -0
  26. package/dist/codex/index.js +5 -0
  27. package/dist/codex/index.js.map +1 -0
  28. package/dist/commands/workflowExecution.d.ts.map +1 -1
  29. package/dist/commands/workflowExecution.js +3 -1
  30. package/dist/commands/workflowExecution.js.map +1 -1
  31. package/dist/config/globalConfig.d.ts +2 -0
  32. package/dist/config/globalConfig.d.ts.map +1 -1
  33. package/dist/config/globalConfig.js +12 -0
  34. package/dist/config/globalConfig.js.map +1 -1
  35. package/dist/config/initialization.d.ts +10 -0
  36. package/dist/config/initialization.d.ts.map +1 -1
  37. package/dist/config/initialization.js +25 -3
  38. package/dist/config/initialization.js.map +1 -1
  39. package/dist/config/projectConfig.d.ts +2 -0
  40. package/dist/config/projectConfig.d.ts.map +1 -1
  41. package/dist/config/projectConfig.js +3 -0
  42. package/dist/config/projectConfig.js.map +1 -1
  43. package/dist/config/workflowLoader.d.ts.map +1 -1
  44. package/dist/config/workflowLoader.js +3 -0
  45. package/dist/config/workflowLoader.js.map +1 -1
  46. package/dist/index.d.ts +1 -0
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +2 -0
  49. package/dist/index.js.map +1 -1
  50. package/dist/models/schemas.d.ts +54 -3
  51. package/dist/models/schemas.d.ts.map +1 -1
  52. package/dist/models/schemas.js +34 -46
  53. package/dist/models/schemas.js.map +1 -1
  54. package/dist/models/types.d.ts +12 -2
  55. package/dist/models/types.d.ts.map +1 -1
  56. package/dist/resources/index.d.ts +9 -0
  57. package/dist/resources/index.d.ts.map +1 -1
  58. package/dist/resources/index.js +21 -2
  59. package/dist/resources/index.js.map +1 -1
  60. package/dist/utils/session.d.ts +5 -0
  61. package/dist/utils/session.d.ts.map +1 -1
  62. package/dist/utils/session.js +19 -0
  63. package/dist/utils/session.js.map +1 -1
  64. package/dist/utils/ui.d.ts +7 -0
  65. package/dist/utils/ui.d.ts.map +1 -1
  66. package/dist/utils/ui.js +51 -0
  67. package/dist/utils/ui.js.map +1 -1
  68. package/dist/workflow/engine.d.ts +10 -0
  69. package/dist/workflow/engine.d.ts.map +1 -1
  70. package/dist/workflow/engine.js +31 -0
  71. package/dist/workflow/engine.js.map +1 -1
  72. package/dist/workflow/instruction-builder.d.ts +3 -0
  73. package/dist/workflow/instruction-builder.d.ts.map +1 -1
  74. package/dist/workflow/instruction-builder.js +5 -0
  75. package/dist/workflow/instruction-builder.js.map +1 -1
  76. package/dist/workflow/transitions.d.ts.map +1 -1
  77. package/dist/workflow/transitions.js +1 -0
  78. package/dist/workflow/transitions.js.map +1 -1
  79. package/package.json +3 -1
  80. package/resources/global/en/agents/default/ai-reviewer.md +136 -0
  81. package/resources/global/en/agents/default/architect.md +81 -30
  82. package/resources/global/en/agents/default/coder.md +60 -44
  83. package/resources/global/en/agents/default/planner.md +78 -0
  84. package/resources/global/en/agents/default/security.md +67 -75
  85. package/resources/global/en/agents/default/supervisor.md +94 -86
  86. package/resources/global/en/agents/expert-review/cqrs-es-reviewer.md +199 -0
  87. package/resources/global/en/agents/expert-review/frontend-reviewer.md +260 -0
  88. package/resources/global/en/agents/expert-review/qa-reviewer.md +260 -0
  89. package/resources/global/en/agents/expert-review/security-reviewer.md +222 -0
  90. package/resources/global/en/agents/expert-review/supervisor.md +186 -0
  91. package/resources/global/en/config.yaml +8 -0
  92. package/resources/global/en/workflows/default.yaml +474 -21
  93. package/resources/global/en/workflows/expert-review.yaml +936 -0
  94. package/resources/global/en/workflows/magi.yaml +18 -0
  95. package/resources/global/en/workflows/research.yaml +18 -0
  96. package/resources/global/ja/agents/default/ai-reviewer.md +136 -0
  97. package/resources/global/ja/agents/default/architect.md +81 -30
  98. package/resources/global/ja/agents/default/coder.md +21 -6
  99. package/resources/global/ja/agents/default/planner.md +78 -0
  100. package/resources/global/ja/agents/default/security.md +20 -28
  101. package/resources/global/ja/agents/default/supervisor.md +54 -46
  102. package/resources/global/ja/agents/expert-review/cqrs-es-reviewer.md +199 -0
  103. package/resources/global/ja/agents/expert-review/frontend-reviewer.md +260 -0
  104. package/resources/global/ja/agents/expert-review/qa-reviewer.md +260 -0
  105. package/resources/global/ja/agents/expert-review/security-reviewer.md +222 -0
  106. package/resources/global/ja/agents/expert-review/supervisor.md +186 -0
  107. package/resources/global/ja/config.yaml +8 -0
  108. package/resources/global/ja/workflows/default.yaml +485 -32
  109. package/resources/global/ja/workflows/expert-review.yaml +936 -0
  110. package/resources/global/ja/workflows/magi.yaml +18 -0
  111. package/resources/global/ja/workflows/research.yaml +18 -0
@@ -1,47 +1,168 @@
1
1
  # Default TAKT Workflow
2
- # Coder -> Architect Review -> Security Review -> Supervisor Approval
2
+ # Plan -> Coder -> Architect Review -> AI Review -> Security Review -> Supervisor Approval
3
3
 
4
4
  name: default
5
- description: Standard development workflow with code review
5
+ description: Standard development workflow with planning and specialized reviews
6
6
 
7
- max_iterations: 10
7
+ max_iterations: 20
8
+
9
+ initial_step: plan
8
10
 
9
11
  steps:
12
+ - name: plan
13
+ agent: ~/.takt/agents/default/planner.md
14
+ allowed_tools:
15
+ - Read
16
+ - Glob
17
+ - Grep
18
+ - Bash
19
+ - WebSearch
20
+ - WebFetch
21
+ instruction_template: |
22
+ ## Workflow Context
23
+ - Iteration: {iteration}/{max_iterations}
24
+ - Step: plan (Task Analysis)
25
+ - Report Directory: .takt/reports/{report_dir}/
26
+ - Report File: .takt/reports/{report_dir}/00-plan.md
27
+
28
+ ## User Request
29
+ {task}
30
+
31
+ ## Previous Response (when returned from implement)
32
+ {previous_response}
33
+
34
+ ## Instructions
35
+ Analyze the task and create an implementation plan.
36
+
37
+ **Note:** If returned from implement step (Previous Response exists),
38
+ review and revise the plan based on that feedback (replan).
39
+
40
+ **Tasks:**
41
+ 1. Understand the requirements
42
+ 2. Identify impact scope
43
+ 3. Decide implementation approach
44
+
45
+ **Report output:** Output to the `Report File` specified above.
46
+ - If file does not exist: Create new file
47
+ - If file exists: Append with `## Iteration {iteration}` section
48
+
49
+ **Report format:**
50
+ ```markdown
51
+ # Task Plan
52
+
53
+ ## Original Request
54
+ {User's request as-is}
55
+
56
+ ## Analysis Results
57
+
58
+ ### Objective
59
+ {What needs to be achieved}
60
+
61
+ ### Scope
62
+ {Impact scope}
63
+
64
+ ### Implementation Approach
65
+ {How to proceed}
66
+
67
+ ## Clarifications Needed (if any)
68
+ - {Unclear points or items requiring confirmation}
69
+ ```
70
+
71
+ Output [PLANNER:DONE] when complete.
72
+ Output [PLANNER:BLOCKED] if requirements are unclear.
73
+ pass_previous_response: true
74
+ transitions:
75
+ - condition: done
76
+ next_step: implement
77
+ - condition: blocked
78
+ next_step: ABORT
79
+
10
80
  - name: implement
11
81
  agent: ~/.takt/agents/default/coder.md
82
+ allowed_tools:
83
+ - Read
84
+ - Glob
85
+ - Grep
86
+ - Edit
87
+ - Write
88
+ - Bash
89
+ - WebSearch
90
+ - WebFetch
12
91
  instruction_template: |
13
92
  ## Workflow Context
14
93
  - Iteration: {iteration}/{max_iterations}
15
94
  - Step: implement
95
+ - Report Directory: .takt/reports/{report_dir}/
96
+ - Report Files:
97
+ - Scope: .takt/reports/{report_dir}/01-coder-scope.md
98
+ - Decisions: .takt/reports/{report_dir}/02-coder-decisions.md
16
99
 
17
- ## Original User Request (This is the original request from workflow start, not the latest instruction)
100
+ ## User Request
18
101
  {task}
19
102
 
20
- ## Additional User Inputs (Information added during workflow)
103
+ ## Additional User Inputs
21
104
  {user_inputs}
22
105
 
23
106
  ## Instructions
24
- **Important**: The "Original User Request" above is the initial request from workflow start.
25
- If this is iteration 2 or later, research and investigation should already be completed.
26
- Review the session conversation history and continue from where you left off.
107
+ Follow the plan from the plan step and implement.
108
+ Refer to the plan report (00-plan.md) and proceed with implementation.
109
+
110
+ **Report output:** Output to the `Report Files` specified above.
111
+ - If file does not exist: Create new file
112
+ - If file exists: Append with `## Iteration {iteration}` section
113
+
114
+ **Scope report format (create at implementation start):**
115
+ ```markdown
116
+ # Change Scope Declaration
117
+
118
+ ## Task
119
+ {One-line task summary}
120
+
121
+ ## Planned Changes
122
+ | Type | File |
123
+ |------|------|
124
+ | Create | `src/example.ts` |
125
+ | Modify | `src/routes.ts` |
27
126
 
28
- - Iteration 1: Understand the requirements, conduct research if needed
29
- - Iteration 2+: Continue implementation based on previous work
127
+ ## Estimated Size
128
+ Small / Medium / Large
129
+
130
+ ## Impact Scope
131
+ - {Affected modules or features}
132
+ ```
133
+
134
+ **Decisions report format (on completion, only if decisions were made):**
135
+ ```markdown
136
+ # Decision Log
137
+
138
+ ## 1. {Decision Content}
139
+ - **Background**: {Why the decision was needed}
140
+ - **Options Considered**: {List of options}
141
+ - **Reason**: {Why this option was chosen}
142
+ ```
30
143
 
31
144
  Include [CODER:DONE] when complete.
32
- Include [CODER:BLOCKED] if you cannot proceed.
145
+ Include [CODER:BLOCKED] if you cannot proceed (returns to plan).
33
146
  transitions:
34
147
  - condition: done
35
148
  next_step: review
36
149
  - condition: blocked
37
- next_step: implement
150
+ next_step: plan
38
151
 
39
152
  - name: review
40
153
  agent: ~/.takt/agents/default/architect.md
154
+ allowed_tools:
155
+ - Read
156
+ - Glob
157
+ - Grep
158
+ - WebSearch
159
+ - WebFetch
41
160
  instruction_template: |
42
161
  ## Workflow Context
43
162
  - Iteration: {iteration}/{max_iterations}
44
- - Step: review
163
+ - Step: review (Architecture Review)
164
+ - Report Directory: .takt/reports/{report_dir}/
165
+ - Report File: .takt/reports/{report_dir}/03-architect-review.md
45
166
 
46
167
  ## Original User Request (Initial request from workflow start)
47
168
  {task}
@@ -52,21 +173,222 @@ steps:
52
173
  ```
53
174
 
54
175
  ## Instructions
55
- Review the changes and provide feedback. Include:
56
- - [ARCHITECT:APPROVE] if the code is ready
57
- - [ARCHITECT:REJECT] if changes are needed (list specific issues)
176
+ Focus on **architecture and design** review. Do NOT review AI-specific issues (that's the next step).
177
+
178
+ Review the changes and provide feedback:
179
+ - [ARCHITECT:APPROVE] if no issues
180
+ - [ARCHITECT:IMPROVE] if minor improvements needed
181
+ - [ARCHITECT:REJECT] if structural changes are needed (list specific issues)
182
+
183
+ **Report output:** Output to the `Report File` specified above.
184
+ - If file does not exist: Create new file
185
+ - If file exists: Append with `## Iteration {iteration}` section
186
+
187
+ **Report format:**
188
+ ```markdown
189
+ # Architecture Review
190
+
191
+ ## Result: APPROVE / IMPROVE / REJECT
192
+
193
+ ## Summary
194
+ {1-2 sentences summarizing result}
195
+
196
+ ## Reviewed Perspectives
197
+ - [x] Structure & Design
198
+ - [x] Code Quality
199
+ - [x] Change Scope
200
+
201
+ ## Issues (if REJECT)
202
+ | # | Location | Issue | Fix |
203
+ |---|----------|-------|-----|
204
+ | 1 | `src/file.ts:42` | Issue description | Fix method |
205
+
206
+ ## Improvement Suggestions (optional, non-blocking)
207
+ - {Future improvement suggestions}
208
+ ```
209
+
210
+ **Cognitive load reduction rules:**
211
+ - APPROVE + no issues → Summary only (5 lines or less)
212
+ - APPROVE + minor suggestions → Summary + suggestions (15 lines or less)
213
+ - REJECT → Issues in table format (30 lines or less)
58
214
  transitions:
59
215
  - condition: approved
60
- next_step: security_review
216
+ next_step: ai_review
217
+ - condition: improve
218
+ next_step: improve
61
219
  - condition: rejected
62
220
  next_step: fix
63
221
 
222
+ - name: improve
223
+ agent: ~/.takt/agents/default/coder.md
224
+ allowed_tools:
225
+ - Read
226
+ - Glob
227
+ - Grep
228
+ - Edit
229
+ - Write
230
+ - Bash
231
+ - WebSearch
232
+ - WebFetch
233
+ instruction_template: |
234
+ ## Workflow Context
235
+ - Iteration: {iteration}/{max_iterations}
236
+ - Step: improve
237
+
238
+ ## Architect Feedback (This is the latest instruction - prioritize this)
239
+ {previous_response}
240
+
241
+ ## Original User Request (Initial request from workflow start - for reference)
242
+ {task}
243
+
244
+ ## Additional User Inputs
245
+ {user_inputs}
246
+
247
+ ## Instructions
248
+ **Important**: Address the Architect's improvement suggestions.
249
+ These are minor improvements, not major design issues.
250
+
251
+ Make improvements such as:
252
+ - Naming improvements
253
+ - Small refactoring
254
+ - Adding/fixing comments
255
+ - Code organization
256
+
257
+ Include [CODER:DONE] when complete.
258
+ Include [CODER:BLOCKED] if you cannot proceed.
259
+ pass_previous_response: true
260
+ transitions:
261
+ - condition: done
262
+ next_step: review
263
+ - condition: blocked
264
+ next_step: plan
265
+
266
+ - name: ai_review
267
+ agent: ~/.takt/agents/default/ai-reviewer.md
268
+ allowed_tools:
269
+ - Read
270
+ - Glob
271
+ - Grep
272
+ - WebSearch
273
+ - WebFetch
274
+ instruction_template: |
275
+ ## Workflow Context
276
+ - Iteration: {iteration}/{max_iterations}
277
+ - Step: ai_review (AI-Generated Code Review)
278
+ - Report Directory: .takt/reports/{report_dir}/
279
+ - Report File: .takt/reports/{report_dir}/04-ai-review.md
280
+
281
+ ## Original User Request (Initial request from workflow start)
282
+ {task}
283
+
284
+ ## Git Diff
285
+ ```diff
286
+ {git_diff}
287
+ ```
288
+
289
+ ## Instructions
290
+ Review the code for AI-specific issues:
291
+ - Assumption validation
292
+ - Plausible but wrong patterns
293
+ - Context fit with existing codebase
294
+ - Scope creep detection
295
+
296
+ Include:
297
+ - [AI_REVIEW:APPROVE] if no AI-specific issues found
298
+ - [AI_REVIEW:REJECT] if issues detected (list specific problems)
299
+
300
+ **Report output:** Output to the `Report File` specified above.
301
+ - If file does not exist: Create new file
302
+ - If file exists: Append with `## Iteration {iteration}` section
303
+
304
+ **Report format:**
305
+ ```markdown
306
+ # AI-Generated Code Review
307
+
308
+ ## Result: APPROVE / REJECT
309
+
310
+ ## Summary
311
+ {One sentence summarizing result}
312
+
313
+ ## Verified Items
314
+ | Aspect | Result | Notes |
315
+ |--------|--------|-------|
316
+ | Assumption validity | ✅ | - |
317
+ | API/Library existence | ✅ | - |
318
+ | Context fit | ✅ | - |
319
+ | Scope | ✅ | - |
320
+
321
+ ## Issues (if REJECT)
322
+ | # | Category | Location | Issue |
323
+ |---|----------|----------|-------|
324
+ | 1 | Hallucinated API | `src/file.ts:23` | Non-existent method |
325
+ ```
326
+
327
+ **Cognitive load reduction rules:**
328
+ - No issues → Summary 1 line + check table only (10 lines or less)
329
+ - Issues found → + Issues in table format (25 lines or less)
330
+ transitions:
331
+ - condition: approved
332
+ next_step: security_review
333
+ - condition: rejected
334
+ next_step: ai_fix
335
+
336
+ - name: ai_fix
337
+ agent: ~/.takt/agents/default/coder.md
338
+ allowed_tools:
339
+ - Read
340
+ - Glob
341
+ - Grep
342
+ - Edit
343
+ - Write
344
+ - Bash
345
+ - WebSearch
346
+ - WebFetch
347
+ instruction_template: |
348
+ ## Workflow Context
349
+ - Iteration: {iteration}/{max_iterations}
350
+ - Step: ai_fix
351
+
352
+ ## AI Review Feedback (This is the latest instruction - prioritize this)
353
+ {previous_response}
354
+
355
+ ## Original User Request (Initial request from workflow start - for reference)
356
+ {task}
357
+
358
+ ## Additional User Inputs
359
+ {user_inputs}
360
+
361
+ ## Instructions
362
+ **Important**: Address the AI Reviewer's feedback.
363
+ Focus on:
364
+ - Correcting incorrect assumptions
365
+ - Fixing plausible-but-wrong implementations
366
+ - Aligning with existing codebase patterns
367
+ - Removing scope creep
368
+
369
+ Include [CODER:DONE] when complete.
370
+ Include [CODER:BLOCKED] if you cannot proceed.
371
+ pass_previous_response: true
372
+ transitions:
373
+ - condition: done
374
+ next_step: review
375
+ - condition: blocked
376
+ next_step: plan
377
+
64
378
  - name: security_review
65
379
  agent: ~/.takt/agents/default/security.md
380
+ allowed_tools:
381
+ - Read
382
+ - Glob
383
+ - Grep
384
+ - WebSearch
385
+ - WebFetch
66
386
  instruction_template: |
67
387
  ## Workflow Context
68
388
  - Iteration: {iteration}/{max_iterations}
69
389
  - Step: security_review
390
+ - Report Directory: .takt/reports/{report_dir}/
391
+ - Report File: .takt/reports/{report_dir}/05-security-review.md
70
392
 
71
393
  ## Original User Request (Initial request from workflow start)
72
394
  {task}
@@ -86,6 +408,40 @@ steps:
86
408
  Include:
87
409
  - [SECURITY:APPROVE] if no security issues found
88
410
  - [SECURITY:REJECT] if vulnerabilities detected (list specific issues)
411
+
412
+ **Report output:** Output to the `Report File` specified above.
413
+ - If file does not exist: Create new file
414
+ - If file exists: Append with `## Iteration {iteration}` section
415
+
416
+ **Report format:**
417
+ ```markdown
418
+ # Security Review
419
+
420
+ ## Result: APPROVE / REJECT
421
+
422
+ ## Severity: None / Low / Medium / High / Critical
423
+
424
+ ## Check Results
425
+ | Category | Result | Notes |
426
+ |----------|--------|-------|
427
+ | Injection | ✅ | - |
428
+ | Auth/Authz | ✅ | - |
429
+ | Data Protection | ✅ | - |
430
+ | Dependencies | ✅ | - |
431
+
432
+ ## Vulnerabilities (if REJECT)
433
+ | # | Severity | Type | Location | Fix |
434
+ |---|----------|------|----------|-----|
435
+ | 1 | High | SQLi | `src/db.ts:42` | Use parameterized query |
436
+
437
+ ## Warnings (non-blocking)
438
+ - {Security recommendations}
439
+ ```
440
+
441
+ **Cognitive load reduction rules:**
442
+ - No issues → Check table only (10 lines or less)
443
+ - Warnings → + Warnings 1-2 lines (15 lines or less)
444
+ - Vulnerabilities → + Table format (30 lines or less)
89
445
  transitions:
90
446
  - condition: approved
91
447
  next_step: supervise
@@ -94,6 +450,15 @@ steps:
94
450
 
95
451
  - name: security_fix
96
452
  agent: ~/.takt/agents/default/coder.md
453
+ allowed_tools:
454
+ - Read
455
+ - Glob
456
+ - Grep
457
+ - Edit
458
+ - Write
459
+ - Bash
460
+ - WebSearch
461
+ - WebFetch
97
462
  instruction_template: |
98
463
  ## Workflow Context
99
464
  - Iteration: {iteration}/{max_iterations}
@@ -119,10 +484,19 @@ steps:
119
484
  - condition: done
120
485
  next_step: security_review
121
486
  - condition: blocked
122
- next_step: security_fix
487
+ next_step: plan
123
488
 
124
489
  - name: fix
125
490
  agent: ~/.takt/agents/default/coder.md
491
+ allowed_tools:
492
+ - Read
493
+ - Glob
494
+ - Grep
495
+ - Edit
496
+ - Write
497
+ - Bash
498
+ - WebSearch
499
+ - WebFetch
126
500
  instruction_template: |
127
501
  ## Workflow Context
128
502
  - Iteration: {iteration}/{max_iterations}
@@ -149,14 +523,25 @@ steps:
149
523
  - condition: done
150
524
  next_step: review
151
525
  - condition: blocked
152
- next_step: fix
526
+ next_step: plan
153
527
 
154
528
  - name: supervise
155
529
  agent: ~/.takt/agents/default/supervisor.md
530
+ allowed_tools:
531
+ - Read
532
+ - Glob
533
+ - Grep
534
+ - Bash
535
+ - WebSearch
536
+ - WebFetch
156
537
  instruction_template: |
157
538
  ## Workflow Context
158
539
  - Iteration: {iteration}/{max_iterations}
159
540
  - Step: supervise (final verification)
541
+ - Report Directory: .takt/reports/{report_dir}/
542
+ - Report Files:
543
+ - Validation: .takt/reports/{report_dir}/06-supervisor-validation.md
544
+ - Summary: .takt/reports/{report_dir}/summary.md
160
545
 
161
546
  ## Original User Request
162
547
  {task}
@@ -168,10 +553,78 @@ steps:
168
553
 
169
554
  ## Instructions
170
555
  Run tests, verify the build, and perform final approval.
556
+
557
+ **Workflow Overall Review:**
558
+ 1. Does the implementation match the plan (00-plan.md)?
559
+ 2. Were all review step issues addressed?
560
+ 3. Was the original task objective achieved?
561
+
562
+ **Review Reports:** Read all reports in Report Directory and
563
+ check for any unaddressed improvement suggestions.
564
+
565
+ **Report output:** Output to the `Report Files` specified above.
566
+ - If file does not exist: Create new file
567
+ - If file exists: Append with `## Iteration {iteration}` section
568
+
569
+ **Validation report format:**
570
+ ```markdown
571
+ # Final Validation Results
572
+
573
+ ## Result: APPROVE / REJECT
574
+
575
+ ## Validation Summary
576
+ | Item | Status | Verification Method |
577
+ |------|--------|---------------------|
578
+ | Requirements met | ✅ | Matched against requirements list |
579
+ | Tests | ✅ | `npm test` (N passed) |
580
+ | Build | ✅ | `npm run build` succeeded |
581
+ | Functional check | ✅ | Main flows verified |
582
+
583
+ ## Deliverables
584
+ - Created: {Created files}
585
+ - Modified: {Modified files}
586
+
587
+ ## Incomplete Items (if REJECT)
588
+ | # | Item | Reason |
589
+ |---|------|--------|
590
+ | 1 | {Item} | {Reason} |
591
+ ```
592
+
593
+ **Summary report format (only if APPROVE):**
594
+ ```markdown
595
+ # Task Completion Summary
596
+
597
+ ## Task
598
+ {Original request in 1-2 sentences}
599
+
600
+ ## Result
601
+ ✅ Complete
602
+
603
+ ## Changes
604
+ | Type | File | Summary |
605
+ |------|------|---------|
606
+ | Create | `src/file.ts` | Summary description |
607
+
608
+ ## Review Results
609
+ | Review | Result |
610
+ |--------|--------|
611
+ | Architect | ✅ APPROVE |
612
+ | AI Review | ✅ APPROVE |
613
+ | Security | ✅ APPROVE |
614
+ | Supervisor | ✅ APPROVE |
615
+
616
+ ## Verification Commands
617
+ ```bash
618
+ npm test
619
+ npm run build
620
+ ```
621
+ ```
622
+
623
+ Output:
171
624
  - [SUPERVISOR:APPROVE] if ready to merge
172
- - [SUPERVISOR:REJECT] if issues found
625
+ - [SUPERVISOR:REJECT] if issues found (specify the issues)
173
626
  transitions:
174
627
  - condition: approved
175
628
  next_step: COMPLETE
176
629
  - condition: rejected
177
- next_step: fix
630
+ next_step: plan