feat(piece): add ai-fix loop monitor and extract judge instruction

This commit is contained in:
nrslib 2026-02-15 05:41:29 +09:00
parent 6e14cd3c38
commit 8e5bc3c912
6 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,12 @@
The ai_review ↔ ai_fix loop has repeated {cycle_count} times.
Review the reports from each cycle and determine whether this loop
is healthy (making progress) or unproductive (repeating the same issues).
**Reports to reference:**
- AI Review results: {report:03-ai-review.md}
**Judgment criteria:**
- Are new issues being found/fixed in each cycle?
- Are the same findings being repeated?
- Are fixes actually being applied?

View File

@ -9,6 +9,19 @@ piece_config:
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: Healthy (making progress)
next: ai_review
- condition: Unproductive (same findings repeated or fixes not reflected)
next: ai_no_fix
movements:
- name: plan
edit: false

View File

@ -9,6 +9,19 @@ piece_config:
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: Healthy (making progress)
next: ai_review
- condition: Unproductive (same findings repeated or fixes not reflected)
next: ai_no_fix
movements:
- name: plan
edit: false

View File

@ -0,0 +1,12 @@
ai_review と ai_fix のループが {cycle_count} 回繰り返されました。
各サイクルのレポートを確認し、このループが健全(進捗がある)か、
非生産的(同じ問題を繰り返している)かを判断してください。
**参照するレポート:**
- AIレビュー結果: {report:03-ai-review.md}
**判断基準:**
- 各サイクルで新しい問題が発見・修正されているか
- 同じ指摘が繰り返されていないか
- 修正が実際に反映されているか

View File

@ -9,6 +9,19 @@ piece_config:
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
movements:
- name: plan
edit: false

View File

@ -9,6 +9,19 @@ piece_config:
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
movements:
- name: plan
edit: false