takt/e2e/fixtures/pieces/mock-cycle-detect.yaml
nrslib 2460dbdf61 refactor(output-contracts): unify OutputContractEntry to item format with use_judge and move runtime dir under .takt
- Remove OutputContractLabelPath (label:path format), unify to OutputContractItem only
- Add required format field and use_judge flag to output contracts
- Add getJudgmentReportFiles() to filter reports eligible for Phase 3 status judgment
- Add supervisor-validation output contract, remove review-summary
- Enhance output contracts with finding_id tracking (new/persists/resolved sections)
- Move runtime environment directory from .runtime to .takt/.runtime
- Update all builtin pieces, e2e fixtures, and tests
2026-02-15 11:17:55 +09:00

42 lines
948 B
YAML

name: e2e-cycle-detect
description: Piece with loop_monitors for cycle detection E2E testing
piece_config:
provider_options:
codex:
network_access: true
opencode:
network_access: true
max_movements: 20
initial_movement: review
loop_monitors:
- cycle:
- review
- fix
threshold: 2
judge:
persona: ../agents/test-reviewer-b.md
rules:
- condition: continue
next: review
- condition: abort_loop
next: ABORT
movements:
- name: review
persona: ../agents/test-reviewer-a.md
instruction_template: |
Review the code.
rules:
- condition: approved
next: COMPLETE
- condition: needs_fix
next: fix
- name: fix
persona: ../agents/test-coder.md
edit: true
required_permission_mode: edit
instruction_template: |
Fix the issues found in review.
rules:
- condition: fixed
next: review