* takt: move-allowed-tools-claude * fix: E2Eフィクスチャの allowed_tools を provider_options.claude に移行 PR #469 で allowed_tools がムーブメント直下から provider_options.claude.allowed_tools に 移動されたが、E2Eフィクスチャとインラインピース定義が旧形式のままだった。
360 lines
8.6 KiB
YAML
360 lines
8.6 KiB
YAML
name: dual-cqrs
|
||
description: フロントエンド+バックエンド開発ピース(CQRS+ES特化)(CQRS+ES・フロントエンド・セキュリティ・QAレビューと修正ループ付き)
|
||
piece_config:
|
||
provider_options:
|
||
codex:
|
||
network_access: true
|
||
opencode:
|
||
network_access: true
|
||
max_movements: 30
|
||
initial_movement: plan
|
||
loop_monitors:
|
||
- cycle:
|
||
- ai_review
|
||
- ai_fix
|
||
threshold: 3
|
||
judge:
|
||
persona: supervisor
|
||
instruction_template: loop-monitor-ai-fix
|
||
rules:
|
||
- condition: 健全(進捗あり)
|
||
next: ai_review
|
||
- condition: 非生産的(同じ指摘の反復・修正未反映)
|
||
next: ai_no_fix
|
||
- cycle:
|
||
- reviewers
|
||
- fix
|
||
threshold: 3
|
||
judge:
|
||
persona: supervisor
|
||
instruction_template: loop-monitor-reviewers-fix
|
||
rules:
|
||
- condition: 健全(指摘数が減少、修正が反映されている)
|
||
next: reviewers
|
||
- condition: 非生産的(同じ指摘が繰り返される)
|
||
next: supervise
|
||
movements:
|
||
- name: plan
|
||
edit: false
|
||
persona: planner
|
||
knowledge:
|
||
- frontend
|
||
- backend
|
||
- cqrs-es
|
||
- architecture
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- Bash
|
||
- WebSearch
|
||
- WebFetch
|
||
instruction: plan
|
||
rules:
|
||
- condition: タスク分析と計画が完了した
|
||
next: implement
|
||
- condition: 要件が不明確で計画を立てられない
|
||
next: ABORT
|
||
output_contracts:
|
||
report:
|
||
- name: plan.md
|
||
format: plan
|
||
- name: implement
|
||
edit: true
|
||
persona: coder
|
||
policy:
|
||
- coding
|
||
- testing
|
||
session: refresh
|
||
knowledge:
|
||
- frontend
|
||
- backend
|
||
- cqrs-es
|
||
- security
|
||
- architecture
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- Edit
|
||
- Write
|
||
- Bash
|
||
- WebSearch
|
||
- WebFetch
|
||
instruction: implement
|
||
rules:
|
||
- condition: 実装が完了した
|
||
next: ai_review
|
||
- condition: 実装未着手(レポートのみ)
|
||
next: ai_review
|
||
- condition: 実装を進行できない
|
||
next: ai_review
|
||
- condition: ユーザー入力が必要
|
||
next: implement
|
||
requires_user_input: true
|
||
interactive_only: true
|
||
output_contracts:
|
||
report:
|
||
- name: coder-scope.md
|
||
format: coder-scope
|
||
- name: coder-decisions.md
|
||
format: coder-decisions
|
||
- name: ai_review
|
||
edit: false
|
||
persona: ai-antipattern-reviewer
|
||
policy:
|
||
- review
|
||
- ai-antipattern
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- WebSearch
|
||
- WebFetch
|
||
instruction: ai-review
|
||
rules:
|
||
- condition: AI特有の問題が見つからない
|
||
next: reviewers
|
||
- condition: AI特有の問題が検出された
|
||
next: ai_fix
|
||
output_contracts:
|
||
report:
|
||
- name: ai-review.md
|
||
format: ai-review
|
||
- name: ai_fix
|
||
edit: true
|
||
persona: coder
|
||
policy:
|
||
- coding
|
||
- testing
|
||
session: refresh
|
||
knowledge:
|
||
- frontend
|
||
- backend
|
||
- cqrs-es
|
||
- security
|
||
- architecture
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- Edit
|
||
- Write
|
||
- Bash
|
||
- WebSearch
|
||
- WebFetch
|
||
instruction: ai-fix
|
||
pass_previous_response: false
|
||
rules:
|
||
- condition: AI Reviewerの指摘に対する修正が完了した
|
||
next: ai_review
|
||
- condition: 修正不要(指摘対象ファイル/仕様の確認済み)
|
||
next: ai_no_fix
|
||
- condition: 修正を進行できない
|
||
next: ai_no_fix
|
||
- name: ai_no_fix
|
||
edit: false
|
||
persona: architecture-reviewer
|
||
policy: review
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
rules:
|
||
- condition: ai_reviewの指摘が妥当(修正すべき)
|
||
next: ai_fix
|
||
- condition: ai_fixの判断が妥当(修正不要)
|
||
next: reviewers
|
||
instruction: arbitrate
|
||
- name: reviewers
|
||
parallel:
|
||
- name: cqrs-es-review
|
||
edit: false
|
||
persona: cqrs-es-reviewer
|
||
policy: review
|
||
knowledge:
|
||
- cqrs-es
|
||
- backend
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- WebSearch
|
||
- WebFetch
|
||
rules:
|
||
- condition: approved
|
||
- condition: needs_fix
|
||
instruction: review-cqrs-es
|
||
output_contracts:
|
||
report:
|
||
- name: cqrs-es-review.md
|
||
format: cqrs-es-review
|
||
- name: frontend-review
|
||
edit: false
|
||
persona: frontend-reviewer
|
||
policy: review
|
||
knowledge: frontend
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- WebSearch
|
||
- WebFetch
|
||
rules:
|
||
- condition: approved
|
||
- condition: needs_fix
|
||
instruction: review-frontend
|
||
output_contracts:
|
||
report:
|
||
- name: frontend-review.md
|
||
format: frontend-review
|
||
- name: security-review
|
||
edit: false
|
||
persona: security-reviewer
|
||
policy: review
|
||
knowledge: security
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- WebSearch
|
||
- WebFetch
|
||
rules:
|
||
- condition: approved
|
||
- condition: needs_fix
|
||
instruction: review-security
|
||
output_contracts:
|
||
report:
|
||
- name: security-review.md
|
||
format: security-review
|
||
- name: qa-review
|
||
edit: false
|
||
persona: qa-reviewer
|
||
policy:
|
||
- review
|
||
- qa
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- WebSearch
|
||
- WebFetch
|
||
rules:
|
||
- condition: approved
|
||
- condition: needs_fix
|
||
instruction: review-qa
|
||
output_contracts:
|
||
report:
|
||
- name: qa-review.md
|
||
format: qa-review
|
||
rules:
|
||
- condition: all("approved")
|
||
next: supervise
|
||
- condition: any("needs_fix")
|
||
next: fix
|
||
- name: fix
|
||
edit: true
|
||
persona: coder
|
||
policy:
|
||
- coding
|
||
- testing
|
||
knowledge:
|
||
- frontend
|
||
- backend
|
||
- cqrs-es
|
||
- security
|
||
- architecture
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- Edit
|
||
- Write
|
||
- Bash
|
||
- WebSearch
|
||
- WebFetch
|
||
required_permission_mode: edit
|
||
pass_previous_response: false
|
||
rules:
|
||
- condition: 修正が完了した
|
||
next: reviewers
|
||
- condition: 修正を進行できない
|
||
next: plan
|
||
instruction: fix
|
||
- name: supervise
|
||
edit: false
|
||
persona: dual-supervisor
|
||
policy: review
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- WebSearch
|
||
- WebFetch
|
||
instruction: supervise
|
||
pass_previous_response: false
|
||
rules:
|
||
- condition: すべての検証が完了し、マージ可能な状態である
|
||
next: COMPLETE
|
||
- condition: 問題が検出された
|
||
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:
|
||
- frontend
|
||
- backend
|
||
- cqrs-es
|
||
- security
|
||
- architecture
|
||
provider_options:
|
||
claude:
|
||
allowed_tools:
|
||
- Read
|
||
- Glob
|
||
- Grep
|
||
- Edit
|
||
- Write
|
||
- Bash
|
||
- WebSearch
|
||
- WebFetch
|
||
instruction: fix-supervisor
|
||
pass_previous_response: false
|
||
rules:
|
||
- condition: 監督者の指摘に対する修正が完了した
|
||
next: supervise
|
||
- condition: 修正を進行できない
|
||
next: plan
|