- frontend/backend/dual/dual-cqrs/backend-cqrs の review 専用ピース(gather → reviewers → supervise)を追加
- 同5種の review-fix ピース(gather → reviewers ↔ fix → supervise)を追加
- review-arch インストラクションにモジュール化・関数化観点を明示的に追加
- 🔍 レビューカテゴリに10ピースを追加
221 lines
4.9 KiB
YAML
221 lines
4.9 KiB
YAML
name: backend-cqrs-review-fix
|
|
description: CQRS+ES focused review + fix loop (structure, modularization, domain model, security, QA)
|
|
piece_config:
|
|
provider_options:
|
|
codex:
|
|
network_access: true
|
|
opencode:
|
|
network_access: true
|
|
max_movements: 30
|
|
initial_movement: gather
|
|
loop_monitors:
|
|
- cycle:
|
|
- reviewers
|
|
- fix
|
|
threshold: 3
|
|
judge:
|
|
persona: supervisor
|
|
instruction_template: loop-monitor-ai-fix
|
|
rules:
|
|
- condition: Healthy (progress being made)
|
|
next: reviewers
|
|
- condition: Unproductive (repeated findings, fixes not applied)
|
|
next: supervise
|
|
|
|
movements:
|
|
- name: gather
|
|
edit: false
|
|
persona: planner
|
|
allowed_tools:
|
|
- Read
|
|
- Glob
|
|
- Grep
|
|
- Bash
|
|
- WebSearch
|
|
- WebFetch
|
|
instruction: gather-review
|
|
output_contracts:
|
|
report:
|
|
- name: review-target.md
|
|
format: review-gather
|
|
rules:
|
|
- condition: Review target information gathered
|
|
next: reviewers
|
|
- condition: Unable to identify review target, insufficient information
|
|
next: ABORT
|
|
|
|
- name: reviewers
|
|
parallel:
|
|
- name: arch-review
|
|
edit: false
|
|
persona: architecture-reviewer
|
|
policy: review
|
|
knowledge:
|
|
- architecture
|
|
- backend
|
|
allowed_tools:
|
|
- Read
|
|
- Glob
|
|
- Grep
|
|
- WebSearch
|
|
- WebFetch
|
|
instruction: review-arch
|
|
output_contracts:
|
|
report:
|
|
- name: architect-review.md
|
|
format: architecture-review
|
|
rules:
|
|
- condition: approved
|
|
- condition: needs_fix
|
|
|
|
- name: cqrs-es-review
|
|
edit: false
|
|
persona: cqrs-es-reviewer
|
|
policy: review
|
|
knowledge:
|
|
- cqrs-es
|
|
- backend
|
|
allowed_tools:
|
|
- Read
|
|
- Glob
|
|
- Grep
|
|
- WebSearch
|
|
- WebFetch
|
|
instruction: review-cqrs-es
|
|
output_contracts:
|
|
report:
|
|
- name: cqrs-es-review.md
|
|
format: cqrs-es-review
|
|
rules:
|
|
- condition: approved
|
|
- condition: needs_fix
|
|
|
|
- name: security-review
|
|
edit: false
|
|
persona: security-reviewer
|
|
policy: review
|
|
knowledge: security
|
|
allowed_tools:
|
|
- Read
|
|
- Glob
|
|
- Grep
|
|
- WebSearch
|
|
- WebFetch
|
|
instruction: review-security
|
|
output_contracts:
|
|
report:
|
|
- name: security-review.md
|
|
format: security-review
|
|
rules:
|
|
- condition: approved
|
|
- condition: needs_fix
|
|
|
|
- name: qa-review
|
|
edit: false
|
|
persona: qa-reviewer
|
|
policy:
|
|
- review
|
|
- qa
|
|
allowed_tools:
|
|
- Read
|
|
- Glob
|
|
- Grep
|
|
- WebSearch
|
|
- WebFetch
|
|
instruction: review-qa
|
|
output_contracts:
|
|
report:
|
|
- name: qa-review.md
|
|
format: qa-review
|
|
rules:
|
|
- condition: approved
|
|
- condition: needs_fix
|
|
|
|
rules:
|
|
- condition: all("approved")
|
|
next: supervise
|
|
- condition: any("needs_fix")
|
|
next: fix
|
|
|
|
- name: fix
|
|
edit: true
|
|
persona: coder
|
|
policy:
|
|
- coding
|
|
- testing
|
|
knowledge:
|
|
- backend
|
|
- cqrs-es
|
|
- security
|
|
- architecture
|
|
allowed_tools:
|
|
- Read
|
|
- Glob
|
|
- Grep
|
|
- Edit
|
|
- Write
|
|
- Bash
|
|
- WebSearch
|
|
- WebFetch
|
|
required_permission_mode: edit
|
|
pass_previous_response: false
|
|
instruction: fix
|
|
rules:
|
|
- condition: Fixes complete
|
|
next: reviewers
|
|
- condition: Unable to proceed with fixes
|
|
next: supervise
|
|
|
|
- name: supervise
|
|
edit: false
|
|
persona: dual-supervisor
|
|
policy: review
|
|
allowed_tools:
|
|
- Read
|
|
- Glob
|
|
- Grep
|
|
- WebSearch
|
|
- WebFetch
|
|
instruction: supervise
|
|
pass_previous_response: false
|
|
rules:
|
|
- condition: All validations complete, ready to merge
|
|
next: COMPLETE
|
|
- condition: Issues detected
|
|
next: fix_supervisor
|
|
output_contracts:
|
|
report:
|
|
- name: supervisor-validation.md
|
|
format: supervisor-validation
|
|
- name: summary.md
|
|
format: summary
|
|
use_judge: false
|
|
|
|
- name: fix_supervisor
|
|
edit: true
|
|
persona: coder
|
|
policy:
|
|
- coding
|
|
- testing
|
|
knowledge:
|
|
- backend
|
|
- cqrs-es
|
|
- security
|
|
- architecture
|
|
allowed_tools:
|
|
- Read
|
|
- Glob
|
|
- Grep
|
|
- Edit
|
|
- Write
|
|
- Bash
|
|
- WebSearch
|
|
- WebFetch
|
|
instruction: fix-supervisor
|
|
pass_previous_response: false
|
|
rules:
|
|
- condition: Fixes for supervisor findings complete
|
|
next: supervise
|
|
- condition: Unable to proceed with fixes
|
|
next: supervise
|