takt 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +98 -24
- package/dist/claude/client.d.ts +2 -0
- package/dist/claude/client.d.ts.map +1 -1
- package/dist/claude/client.js +3 -0
- package/dist/claude/client.js.map +1 -1
- package/dist/claude/executor.d.ts +2 -0
- package/dist/claude/executor.d.ts.map +1 -1
- package/dist/claude/executor.js +6 -0
- package/dist/claude/executor.js.map +1 -1
- package/dist/claude/process.d.ts +2 -0
- package/dist/claude/process.d.ts.map +1 -1
- package/dist/claude/process.js.map +1 -1
- package/dist/claude/stream-converter.d.ts.map +1 -1
- package/dist/claude/stream-converter.js +4 -0
- package/dist/claude/stream-converter.js.map +1 -1
- package/dist/claude/types.d.ts +1 -0
- package/dist/claude/types.d.ts.map +1 -1
- package/dist/cli.d.ts +5 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +83 -9
- package/dist/cli.js.map +1 -1
- package/dist/codex/client.d.ts +2 -0
- package/dist/codex/client.d.ts.map +1 -1
- package/dist/codex/client.js +2 -1
- package/dist/codex/client.js.map +1 -1
- package/dist/commands/addTask.d.ts.map +1 -1
- package/dist/commands/addTask.js +3 -5
- package/dist/commands/addTask.js.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/interactive.d.ts.map +1 -1
- package/dist/commands/interactive.js +37 -24
- package/dist/commands/interactive.js.map +1 -1
- package/dist/commands/pipelineExecution.d.ts +33 -0
- package/dist/commands/pipelineExecution.d.ts.map +1 -0
- package/dist/commands/pipelineExecution.js +191 -0
- package/dist/commands/pipelineExecution.js.map +1 -0
- package/dist/commands/session.d.ts +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -3
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/workflowExecution.d.ts.map +1 -1
- package/dist/commands/workflowExecution.js +13 -20
- package/dist/commands/workflowExecution.js.map +1 -1
- package/dist/config/globalConfig.d.ts +10 -0
- package/dist/config/globalConfig.d.ts.map +1 -1
- package/dist/config/globalConfig.js +68 -2
- package/dist/config/globalConfig.js.map +1 -1
- package/dist/config/initialization.d.ts +9 -1
- package/dist/config/initialization.d.ts.map +1 -1
- package/dist/config/initialization.js +9 -1
- package/dist/config/initialization.js.map +1 -1
- package/dist/config/sessionStore.d.ts +9 -7
- package/dist/config/sessionStore.d.ts.map +1 -1
- package/dist/config/sessionStore.js +34 -9
- package/dist/config/sessionStore.js.map +1 -1
- package/dist/exitCodes.d.ts +13 -0
- package/dist/exitCodes.d.ts.map +1 -0
- package/dist/exitCodes.js +13 -0
- package/dist/exitCodes.js.map +1 -0
- package/dist/github/issue.d.ts.map +1 -1
- package/dist/github/issue.js +4 -4
- package/dist/github/issue.js.map +1 -1
- package/dist/github/pr.d.ts +39 -0
- package/dist/github/pr.d.ts.map +1 -0
- package/dist/github/pr.js +78 -0
- package/dist/github/pr.js.map +1 -0
- package/dist/models/schemas.d.ts +13 -0
- package/dist/models/schemas.d.ts.map +1 -1
- package/dist/models/schemas.js +12 -0
- package/dist/models/schemas.js.map +1 -1
- package/dist/models/types.d.ts +15 -0
- package/dist/models/types.d.ts.map +1 -1
- package/dist/providers/claude.d.ts.map +1 -1
- package/dist/providers/claude.js +3 -0
- package/dist/providers/claude.js.map +1 -1
- package/dist/providers/codex.d.ts.map +1 -1
- package/dist/providers/codex.js +3 -0
- package/dist/providers/codex.js.map +1 -1
- package/dist/providers/index.d.ts +4 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/task/clone.d.ts.map +1 -1
- package/dist/task/clone.js +18 -0
- package/dist/task/clone.js.map +1 -1
- package/dist/utils/session.d.ts +3 -9
- package/dist/utils/session.d.ts.map +1 -1
- package/dist/utils/session.js +1 -1
- package/dist/utils/session.js.map +1 -1
- package/dist/utils/ui.d.ts +1 -1
- package/dist/utils/ui.d.ts.map +1 -1
- package/dist/utils/ui.js +5 -2
- package/dist/utils/ui.js.map +1 -1
- package/dist/workflow/engine.d.ts.map +1 -1
- package/dist/workflow/engine.js +18 -9
- package/dist/workflow/engine.js.map +1 -1
- package/dist/workflow/types.d.ts +1 -1
- package/dist/workflow/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/global/en/config.yaml +16 -0
- package/resources/global/en/workflows/expert-cqrs.yaml +227 -357
- package/resources/global/en/workflows/expert.yaml +231 -359
- package/resources/global/ja/config.yaml +16 -0
- package/resources/global/ja/workflows/expert-cqrs.yaml +226 -356
- package/resources/global/ja/workflows/expert.yaml +230 -358
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
# Review workflow with CQRS+ES, Frontend, Security, and QA experts
|
|
3
3
|
#
|
|
4
4
|
# Flow:
|
|
5
|
-
# plan -> implement -> ai_review ->
|
|
6
|
-
# ↓
|
|
7
|
-
# ai_fix
|
|
8
|
-
#
|
|
9
|
-
#
|
|
10
|
-
#
|
|
11
|
-
# - fix_qa: MINOR->qa_review, SECURITY->security_review, MAJOR->cqrs_es_review
|
|
5
|
+
# plan -> implement -> ai_review -> reviewers (parallel) -> supervise -> COMPLETE
|
|
6
|
+
# ↓ ├─ cqrs-es-review ↓
|
|
7
|
+
# ai_fix ├─ frontend-review fix_supervisor
|
|
8
|
+
# ├─ security-review
|
|
9
|
+
# └─ qa-review
|
|
10
|
+
# any("needs_fix") → fix → reviewers
|
|
12
11
|
#
|
|
13
12
|
# Template Variables:
|
|
14
13
|
# {iteration} - Workflow-wide turn count (total steps executed across all agents)
|
|
@@ -190,7 +189,7 @@ steps:
|
|
|
190
189
|
- Scope creep detection
|
|
191
190
|
rules:
|
|
192
191
|
- condition: No AI-specific issues found
|
|
193
|
-
next:
|
|
192
|
+
next: reviewers
|
|
194
193
|
- condition: AI-specific issues detected
|
|
195
194
|
next: ai_fix
|
|
196
195
|
|
|
@@ -224,236 +223,220 @@ steps:
|
|
|
224
223
|
next: plan
|
|
225
224
|
|
|
226
225
|
# ===========================================
|
|
227
|
-
# Phase 3:
|
|
228
|
-
# ===========================================
|
|
229
|
-
- name: cqrs_es_review
|
|
230
|
-
edit: false
|
|
231
|
-
agent: ../agents/expert-cqrs/cqrs-es-reviewer.md
|
|
232
|
-
report:
|
|
233
|
-
name: 04-cqrs-es-review.md
|
|
234
|
-
format: |
|
|
235
|
-
```markdown
|
|
236
|
-
# CQRS+ES Review
|
|
237
|
-
|
|
238
|
-
## Result: APPROVE / REJECT
|
|
239
|
-
|
|
240
|
-
## Summary
|
|
241
|
-
{1-2 sentences summarizing result}
|
|
242
|
-
|
|
243
|
-
## Reviewed Perspectives
|
|
244
|
-
| Perspective | Result | Notes |
|
|
245
|
-
|-------------|--------|-------|
|
|
246
|
-
| Aggregate Design | ✅ | - |
|
|
247
|
-
| Event Design | ✅ | - |
|
|
248
|
-
| Command/Query Separation | ✅ | - |
|
|
249
|
-
| Projections | ✅ | - |
|
|
250
|
-
| Eventual Consistency | ✅ | - |
|
|
251
|
-
|
|
252
|
-
## Issues (if REJECT)
|
|
253
|
-
| # | Location | Issue | Fix |
|
|
254
|
-
|---|----------|-------|-----|
|
|
255
|
-
| 1 | `src/file.ts:42` | Issue description | Fix method |
|
|
256
|
-
```
|
|
257
|
-
allowed_tools:
|
|
258
|
-
- Read
|
|
259
|
-
- Glob
|
|
260
|
-
- Grep
|
|
261
|
-
- Write
|
|
262
|
-
- WebSearch
|
|
263
|
-
- WebFetch
|
|
264
|
-
instruction_template: |
|
|
265
|
-
Review the changes above from the CQRS (Command Query Responsibility Segregation)
|
|
266
|
-
and Event Sourcing perspective.
|
|
267
|
-
|
|
268
|
-
**Review Criteria:**
|
|
269
|
-
- Aggregate design validity
|
|
270
|
-
- Event design (granularity, naming, schema)
|
|
271
|
-
- Command/Query separation
|
|
272
|
-
- Projection design
|
|
273
|
-
- Eventual consistency considerations
|
|
274
|
-
|
|
275
|
-
**Note**: If this project does not use CQRS+ES patterns,
|
|
276
|
-
review from a general domain design perspective.
|
|
277
|
-
rules:
|
|
278
|
-
- condition: CQRS+ES design is sound with no issues
|
|
279
|
-
next: frontend_review
|
|
280
|
-
- condition: CQRS+ES design issues found
|
|
281
|
-
next: fix_cqrs_es
|
|
282
|
-
|
|
283
|
-
- name: fix_cqrs_es
|
|
284
|
-
edit: true
|
|
285
|
-
agent: ../agents/default/coder.md
|
|
286
|
-
allowed_tools:
|
|
287
|
-
- Read
|
|
288
|
-
- Glob
|
|
289
|
-
- Grep
|
|
290
|
-
- Edit
|
|
291
|
-
- Write
|
|
292
|
-
- Bash
|
|
293
|
-
- WebSearch
|
|
294
|
-
- WebFetch
|
|
295
|
-
instruction_template: |
|
|
296
|
-
## CQRS+ES Review Feedback (This is the latest instruction - prioritize this)
|
|
297
|
-
{previous_response}
|
|
298
|
-
|
|
299
|
-
**Important**: Fix the issues pointed out by the CQRS+ES expert.
|
|
300
|
-
|
|
301
|
-
Areas of concern:
|
|
302
|
-
- Aggregate design
|
|
303
|
-
- Event design
|
|
304
|
-
- Command/Query separation
|
|
305
|
-
- Projections
|
|
306
|
-
- Eventual consistency
|
|
307
|
-
pass_previous_response: true
|
|
308
|
-
rules:
|
|
309
|
-
- condition: CQRS+ES issues have been fixed
|
|
310
|
-
next: cqrs_es_review
|
|
311
|
-
- condition: Unable to proceed with fixes
|
|
312
|
-
next: plan
|
|
313
|
-
|
|
314
|
-
# ===========================================
|
|
315
|
-
# Phase 4: Frontend Review
|
|
316
|
-
# ===========================================
|
|
317
|
-
- name: frontend_review
|
|
318
|
-
edit: false
|
|
319
|
-
agent: ../agents/expert/frontend-reviewer.md
|
|
320
|
-
report:
|
|
321
|
-
name: 05-frontend-review.md
|
|
322
|
-
format: |
|
|
323
|
-
```markdown
|
|
324
|
-
# Frontend Review
|
|
325
|
-
|
|
326
|
-
## Result: APPROVE / REJECT
|
|
327
|
-
|
|
328
|
-
## Summary
|
|
329
|
-
{1-2 sentences summarizing result}
|
|
330
|
-
|
|
331
|
-
## Reviewed Perspectives
|
|
332
|
-
| Perspective | Result | Notes |
|
|
333
|
-
|-------------|--------|-------|
|
|
334
|
-
| Component Design | ✅ | - |
|
|
335
|
-
| State Management | ✅ | - |
|
|
336
|
-
| Performance | ✅ | - |
|
|
337
|
-
| Accessibility | ✅ | - |
|
|
338
|
-
| Type Safety | ✅ | - |
|
|
339
|
-
|
|
340
|
-
## Issues (if REJECT)
|
|
341
|
-
| # | Location | Issue | Fix |
|
|
342
|
-
|---|----------|-------|-----|
|
|
343
|
-
| 1 | `src/file.tsx:42` | Issue description | Fix method |
|
|
344
|
-
```
|
|
345
|
-
allowed_tools:
|
|
346
|
-
- Read
|
|
347
|
-
- Glob
|
|
348
|
-
- Grep
|
|
349
|
-
- Write
|
|
350
|
-
- WebSearch
|
|
351
|
-
- WebFetch
|
|
352
|
-
instruction_template: |
|
|
353
|
-
Review the changes above from the frontend development perspective.
|
|
354
|
-
|
|
355
|
-
**Review Criteria:**
|
|
356
|
-
- Component design (separation of concerns, granularity)
|
|
357
|
-
- State management (local/global decisions)
|
|
358
|
-
- Performance (re-rendering, memoization)
|
|
359
|
-
- Accessibility (keyboard support, ARIA)
|
|
360
|
-
- Data fetching patterns
|
|
361
|
-
- TypeScript type safety
|
|
362
|
-
|
|
363
|
-
**Note**: If this project does not include frontend code,
|
|
364
|
-
approve and proceed to the next step.
|
|
365
|
-
rules:
|
|
366
|
-
- condition: Frontend design is sound with no issues
|
|
367
|
-
next: security_review
|
|
368
|
-
- condition: Frontend design issues found
|
|
369
|
-
next: fix_frontend
|
|
370
|
-
|
|
371
|
-
- name: fix_frontend
|
|
372
|
-
edit: true
|
|
373
|
-
agent: ../agents/default/coder.md
|
|
374
|
-
allowed_tools:
|
|
375
|
-
- Read
|
|
376
|
-
- Glob
|
|
377
|
-
- Grep
|
|
378
|
-
- Edit
|
|
379
|
-
- Write
|
|
380
|
-
- Bash
|
|
381
|
-
- WebSearch
|
|
382
|
-
- WebFetch
|
|
383
|
-
instruction_template: |
|
|
384
|
-
## Frontend Review Feedback (This is the latest instruction - prioritize this)
|
|
385
|
-
{previous_response}
|
|
386
|
-
|
|
387
|
-
**Important**: Fix the issues pointed out by the frontend expert.
|
|
388
|
-
|
|
389
|
-
Areas of concern:
|
|
390
|
-
- Component design
|
|
391
|
-
- State management
|
|
392
|
-
- Performance
|
|
393
|
-
- Accessibility
|
|
394
|
-
- Type safety
|
|
395
|
-
pass_previous_response: true
|
|
396
|
-
rules:
|
|
397
|
-
- condition: Frontend issues have been fixed
|
|
398
|
-
next: frontend_review
|
|
399
|
-
- condition: Unable to proceed with fixes
|
|
400
|
-
next: plan
|
|
401
|
-
|
|
402
|
-
# ===========================================
|
|
403
|
-
# Phase 5: Security Review
|
|
226
|
+
# Phase 3: Expert Reviews (Parallel)
|
|
404
227
|
# ===========================================
|
|
405
|
-
- name:
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
228
|
+
- name: reviewers
|
|
229
|
+
parallel:
|
|
230
|
+
- name: cqrs-es-review
|
|
231
|
+
edit: false
|
|
232
|
+
agent: ../agents/expert-cqrs/cqrs-es-reviewer.md
|
|
233
|
+
report:
|
|
234
|
+
name: 04-cqrs-es-review.md
|
|
235
|
+
format: |
|
|
236
|
+
```markdown
|
|
237
|
+
# CQRS+ES Review
|
|
238
|
+
|
|
239
|
+
## Result: APPROVE / REJECT
|
|
240
|
+
|
|
241
|
+
## Summary
|
|
242
|
+
{1-2 sentences summarizing result}
|
|
243
|
+
|
|
244
|
+
## Reviewed Perspectives
|
|
245
|
+
| Perspective | Result | Notes |
|
|
246
|
+
|-------------|--------|-------|
|
|
247
|
+
| Aggregate Design | ✅ | - |
|
|
248
|
+
| Event Design | ✅ | - |
|
|
249
|
+
| Command/Query Separation | ✅ | - |
|
|
250
|
+
| Projections | ✅ | - |
|
|
251
|
+
| Eventual Consistency | ✅ | - |
|
|
252
|
+
|
|
253
|
+
## Issues (if REJECT)
|
|
254
|
+
| # | Location | Issue | Fix |
|
|
255
|
+
|---|----------|-------|-----|
|
|
256
|
+
| 1 | `src/file.ts:42` | Issue description | Fix method |
|
|
257
|
+
```
|
|
258
|
+
allowed_tools:
|
|
259
|
+
- Read
|
|
260
|
+
- Glob
|
|
261
|
+
- Grep
|
|
262
|
+
- Write
|
|
263
|
+
- WebSearch
|
|
264
|
+
- WebFetch
|
|
265
|
+
rules:
|
|
266
|
+
- condition: approved
|
|
267
|
+
- condition: needs_fix
|
|
268
|
+
instruction_template: |
|
|
269
|
+
Review the changes from the CQRS (Command Query Responsibility Segregation)
|
|
270
|
+
and Event Sourcing perspective. Do NOT review AI-specific issues (that's the ai_review step).
|
|
271
|
+
|
|
272
|
+
**Review Criteria:**
|
|
273
|
+
- Aggregate design validity
|
|
274
|
+
- Event design (granularity, naming, schema)
|
|
275
|
+
- Command/Query separation
|
|
276
|
+
- Projection design
|
|
277
|
+
- Eventual consistency considerations
|
|
278
|
+
|
|
279
|
+
**Note**: If this project does not use CQRS+ES patterns,
|
|
280
|
+
review from a general domain design perspective.
|
|
281
|
+
|
|
282
|
+
- name: frontend-review
|
|
283
|
+
edit: false
|
|
284
|
+
agent: ../agents/expert/frontend-reviewer.md
|
|
285
|
+
report:
|
|
286
|
+
name: 05-frontend-review.md
|
|
287
|
+
format: |
|
|
288
|
+
```markdown
|
|
289
|
+
# Frontend Review
|
|
290
|
+
|
|
291
|
+
## Result: APPROVE / REJECT
|
|
292
|
+
|
|
293
|
+
## Summary
|
|
294
|
+
{1-2 sentences summarizing result}
|
|
295
|
+
|
|
296
|
+
## Reviewed Perspectives
|
|
297
|
+
| Perspective | Result | Notes |
|
|
298
|
+
|-------------|--------|-------|
|
|
299
|
+
| Component Design | ✅ | - |
|
|
300
|
+
| State Management | ✅ | - |
|
|
301
|
+
| Performance | ✅ | - |
|
|
302
|
+
| Accessibility | ✅ | - |
|
|
303
|
+
| Type Safety | ✅ | - |
|
|
304
|
+
|
|
305
|
+
## Issues (if REJECT)
|
|
306
|
+
| # | Location | Issue | Fix |
|
|
307
|
+
|---|----------|-------|-----|
|
|
308
|
+
| 1 | `src/file.tsx:42` | Issue description | Fix method |
|
|
309
|
+
```
|
|
310
|
+
allowed_tools:
|
|
311
|
+
- Read
|
|
312
|
+
- Glob
|
|
313
|
+
- Grep
|
|
314
|
+
- Write
|
|
315
|
+
- WebSearch
|
|
316
|
+
- WebFetch
|
|
317
|
+
rules:
|
|
318
|
+
- condition: approved
|
|
319
|
+
- condition: needs_fix
|
|
320
|
+
instruction_template: |
|
|
321
|
+
Review the changes from the frontend development perspective.
|
|
322
|
+
|
|
323
|
+
**Review Criteria:**
|
|
324
|
+
- Component design (separation of concerns, granularity)
|
|
325
|
+
- State management (local/global decisions)
|
|
326
|
+
- Performance (re-rendering, memoization)
|
|
327
|
+
- Accessibility (keyboard support, ARIA)
|
|
328
|
+
- Data fetching patterns
|
|
329
|
+
- TypeScript type safety
|
|
330
|
+
|
|
331
|
+
**Note**: If this project does not include frontend code,
|
|
332
|
+
approve and proceed to the next step.
|
|
333
|
+
|
|
334
|
+
- name: security-review
|
|
335
|
+
edit: false
|
|
336
|
+
agent: ../agents/expert/security-reviewer.md
|
|
337
|
+
report:
|
|
338
|
+
name: 06-security-review.md
|
|
339
|
+
format: |
|
|
340
|
+
```markdown
|
|
341
|
+
# Security Review
|
|
342
|
+
|
|
343
|
+
## Result: APPROVE / REJECT
|
|
344
|
+
|
|
345
|
+
## Severity: None / Low / Medium / High / Critical
|
|
346
|
+
|
|
347
|
+
## Check Results
|
|
348
|
+
| Category | Result | Notes |
|
|
349
|
+
|----------|--------|-------|
|
|
350
|
+
| Injection | ✅ | - |
|
|
351
|
+
| Auth/Authz | ✅ | - |
|
|
352
|
+
| Data Protection | ✅ | - |
|
|
353
|
+
| Dependencies | ✅ | - |
|
|
354
|
+
|
|
355
|
+
## Vulnerabilities (if REJECT)
|
|
356
|
+
| # | Severity | Type | Location | Fix |
|
|
357
|
+
|---|----------|------|----------|-----|
|
|
358
|
+
| 1 | High | SQLi | `src/db.ts:42` | Use parameterized query |
|
|
359
|
+
|
|
360
|
+
## Warnings (non-blocking)
|
|
361
|
+
- {Security recommendations}
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
**Cognitive load reduction rules:**
|
|
365
|
+
- No issues -> Check table only (10 lines or less)
|
|
366
|
+
- Warnings -> + Warnings 1-2 lines (15 lines or less)
|
|
367
|
+
- Vulnerabilities -> + Table format (30 lines or less)
|
|
368
|
+
allowed_tools:
|
|
369
|
+
- Read
|
|
370
|
+
- Glob
|
|
371
|
+
- Grep
|
|
372
|
+
- Write
|
|
373
|
+
- WebSearch
|
|
374
|
+
- WebFetch
|
|
375
|
+
rules:
|
|
376
|
+
- condition: approved
|
|
377
|
+
- condition: needs_fix
|
|
378
|
+
instruction_template: |
|
|
379
|
+
Perform security review on the changes. Check for vulnerabilities including:
|
|
380
|
+
- Injection attacks (SQL, Command, XSS)
|
|
381
|
+
- Authentication/Authorization issues
|
|
382
|
+
- Data exposure risks
|
|
383
|
+
- Cryptographic weaknesses
|
|
384
|
+
|
|
385
|
+
- name: qa-review
|
|
386
|
+
edit: false
|
|
387
|
+
agent: ../agents/expert/qa-reviewer.md
|
|
388
|
+
report:
|
|
389
|
+
name: 07-qa-review.md
|
|
390
|
+
format: |
|
|
391
|
+
```markdown
|
|
392
|
+
# QA Review
|
|
393
|
+
|
|
394
|
+
## Result: APPROVE / REJECT
|
|
395
|
+
|
|
396
|
+
## Summary
|
|
397
|
+
{1-2 sentences summarizing result}
|
|
398
|
+
|
|
399
|
+
## Reviewed Perspectives
|
|
400
|
+
| Perspective | Result | Notes |
|
|
401
|
+
|-------------|--------|-------|
|
|
402
|
+
| Test Coverage | ✅ | - |
|
|
403
|
+
| Test Quality | ✅ | - |
|
|
404
|
+
| Error Handling | ✅ | - |
|
|
405
|
+
| Documentation | ✅ | - |
|
|
406
|
+
| Maintainability | ✅ | - |
|
|
407
|
+
|
|
408
|
+
## Issues (if REJECT)
|
|
409
|
+
| # | Category | Issue | Fix |
|
|
410
|
+
|---|----------|-------|-----|
|
|
411
|
+
| 1 | Testing | Issue description | Fix method |
|
|
412
|
+
```
|
|
413
|
+
allowed_tools:
|
|
414
|
+
- Read
|
|
415
|
+
- Glob
|
|
416
|
+
- Grep
|
|
417
|
+
- Write
|
|
418
|
+
- WebSearch
|
|
419
|
+
- WebFetch
|
|
420
|
+
rules:
|
|
421
|
+
- condition: approved
|
|
422
|
+
- condition: needs_fix
|
|
423
|
+
instruction_template: |
|
|
424
|
+
Review the changes from the quality assurance perspective.
|
|
425
|
+
|
|
426
|
+
**Review Criteria:**
|
|
427
|
+
- Test coverage and quality
|
|
428
|
+
- Test strategy (unit/integration/E2E)
|
|
429
|
+
- Documentation (in-code and external)
|
|
430
|
+
- Error handling
|
|
431
|
+
- Logging and monitoring
|
|
432
|
+
- Maintainability
|
|
450
433
|
rules:
|
|
451
|
-
- condition:
|
|
452
|
-
next:
|
|
453
|
-
- condition:
|
|
454
|
-
next:
|
|
434
|
+
- condition: all("approved")
|
|
435
|
+
next: supervise
|
|
436
|
+
- condition: any("needs_fix")
|
|
437
|
+
next: fix
|
|
455
438
|
|
|
456
|
-
- name:
|
|
439
|
+
- name: fix
|
|
457
440
|
edit: true
|
|
458
441
|
agent: ../agents/default/coder.md
|
|
459
442
|
allowed_tools:
|
|
@@ -465,136 +448,23 @@ steps:
|
|
|
465
448
|
- Bash
|
|
466
449
|
- WebSearch
|
|
467
450
|
- WebFetch
|
|
468
|
-
|
|
469
|
-
## Security Review Feedback (This is the latest instruction - prioritize this)
|
|
470
|
-
{previous_response}
|
|
471
|
-
|
|
472
|
-
**Important**: Fix the issues pointed out by the security expert.
|
|
473
|
-
Security issues should be addressed with highest priority.
|
|
474
|
-
|
|
475
|
-
Areas of concern:
|
|
476
|
-
- Injection vulnerabilities
|
|
477
|
-
- Authentication/authorization flaws
|
|
478
|
-
- Sensitive information exposure
|
|
479
|
-
- Encryption issues
|
|
480
|
-
|
|
481
|
-
## Completion: Determine Change Impact
|
|
482
|
-
When fix is complete, judge the **impact scope of changes**:
|
|
483
|
-
|
|
484
|
-
- Minor fix (re-run security review only)
|
|
485
|
-
- Examples: Add validation, add escaping, configuration changes
|
|
486
|
-
- Major fix (restart from CQRS+ES review)
|
|
487
|
-
- Examples: Data flow changes, API design changes, auth method changes, domain model changes
|
|
488
|
-
pass_previous_response: true
|
|
451
|
+
permission_mode: acceptEdits
|
|
489
452
|
rules:
|
|
490
|
-
- condition:
|
|
491
|
-
next:
|
|
492
|
-
- condition:
|
|
493
|
-
next: cqrs_es_review
|
|
494
|
-
- condition: Unable to proceed with fixes
|
|
453
|
+
- condition: Fix complete
|
|
454
|
+
next: reviewers
|
|
455
|
+
- condition: Cannot proceed, insufficient info
|
|
495
456
|
next: plan
|
|
496
|
-
|
|
497
|
-
# ===========================================
|
|
498
|
-
# Phase 6: QA Review
|
|
499
|
-
# ===========================================
|
|
500
|
-
- name: qa_review
|
|
501
|
-
edit: false
|
|
502
|
-
agent: ../agents/expert/qa-reviewer.md
|
|
503
|
-
report:
|
|
504
|
-
name: 07-qa-review.md
|
|
505
|
-
format: |
|
|
506
|
-
```markdown
|
|
507
|
-
# QA Review
|
|
508
|
-
|
|
509
|
-
## Result: APPROVE / REJECT
|
|
510
|
-
|
|
511
|
-
## Summary
|
|
512
|
-
{1-2 sentences summarizing result}
|
|
513
|
-
|
|
514
|
-
## Reviewed Perspectives
|
|
515
|
-
| Perspective | Result | Notes |
|
|
516
|
-
|-------------|--------|-------|
|
|
517
|
-
| Test Coverage | ✅ | - |
|
|
518
|
-
| Test Quality | ✅ | - |
|
|
519
|
-
| Error Handling | ✅ | - |
|
|
520
|
-
| Documentation | ✅ | - |
|
|
521
|
-
| Maintainability | ✅ | - |
|
|
522
|
-
|
|
523
|
-
## Issues (if REJECT)
|
|
524
|
-
| # | Category | Issue | Fix |
|
|
525
|
-
|---|----------|-------|-----|
|
|
526
|
-
| 1 | Testing | Issue description | Fix method |
|
|
527
|
-
```
|
|
528
|
-
allowed_tools:
|
|
529
|
-
- Read
|
|
530
|
-
- Glob
|
|
531
|
-
- Grep
|
|
532
|
-
- Write
|
|
533
|
-
- WebSearch
|
|
534
|
-
- WebFetch
|
|
535
|
-
instruction_template: |
|
|
536
|
-
Review the changes above from the quality assurance perspective.
|
|
537
|
-
|
|
538
|
-
**Review Criteria:**
|
|
539
|
-
- Test coverage and quality
|
|
540
|
-
- Test strategy (unit/integration/E2E)
|
|
541
|
-
- Documentation (in-code and external)
|
|
542
|
-
- Error handling
|
|
543
|
-
- Logging and monitoring
|
|
544
|
-
- Maintainability
|
|
545
|
-
rules:
|
|
546
|
-
- condition: Quality standards are met
|
|
547
|
-
next: supervise
|
|
548
|
-
- condition: Quality issues found
|
|
549
|
-
next: fix_qa
|
|
550
|
-
|
|
551
|
-
- name: fix_qa
|
|
552
|
-
edit: true
|
|
553
|
-
agent: ../agents/default/coder.md
|
|
554
|
-
allowed_tools:
|
|
555
|
-
- Read
|
|
556
|
-
- Glob
|
|
557
|
-
- Grep
|
|
558
|
-
- Edit
|
|
559
|
-
- Write
|
|
560
|
-
- Bash
|
|
561
|
-
- WebSearch
|
|
562
|
-
- WebFetch
|
|
563
457
|
instruction_template: |
|
|
564
|
-
##
|
|
458
|
+
## Review Feedback (This is the latest instruction - prioritize this)
|
|
565
459
|
{previous_response}
|
|
566
460
|
|
|
567
|
-
**Important**:
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
- Adding/improving tests
|
|
571
|
-
- Adding/fixing documentation
|
|
572
|
-
- Error handling
|
|
573
|
-
- Log output
|
|
574
|
-
- Code quality
|
|
575
|
-
|
|
576
|
-
## Completion: Determine Change Impact
|
|
577
|
-
When fix is complete, judge the **impact scope of changes**:
|
|
578
|
-
|
|
579
|
-
- Minor fix (re-run QA review only)
|
|
580
|
-
- Examples: Add tests, add documentation, add logs, add comments
|
|
581
|
-
- Security-impacting fix (restart from security review)
|
|
582
|
-
- Examples: Error handling changes (error message content changes), input validation changes
|
|
583
|
-
- Major fix (restart from CQRS+ES review)
|
|
584
|
-
- Examples: Business logic changes, data model changes, API changes
|
|
461
|
+
**Important**: Address the feedback from the reviewers.
|
|
462
|
+
The "Original User Request" is reference information, not the latest instruction.
|
|
463
|
+
Review the session conversation history and fix the issues raised by the reviewers.
|
|
585
464
|
pass_previous_response: true
|
|
586
|
-
rules:
|
|
587
|
-
- condition: Minor QA fix is complete
|
|
588
|
-
next: qa_review
|
|
589
|
-
- condition: Security-impacting fix applied
|
|
590
|
-
next: security_review
|
|
591
|
-
- condition: Major fix applied requiring CQRS+ES re-review
|
|
592
|
-
next: cqrs_es_review
|
|
593
|
-
- condition: Unable to proceed with fixes
|
|
594
|
-
next: plan
|
|
595
465
|
|
|
596
466
|
# ===========================================
|
|
597
|
-
# Phase
|
|
467
|
+
# Phase 4: Supervision
|
|
598
468
|
# ===========================================
|
|
599
469
|
- name: supervise
|
|
600
470
|
edit: false
|