name: e2e-mock-max-iter
description: Piece with max_movements=2 that loops between two steps
piece_config:
  provider_options:
    codex:
      network_access: true
    opencode:
      network_access: true


max_movements: 2

initial_movement: step-a

movements:
  - name: step-a
    edit: true
    persona: ../agents/test-coder.md
    permission_mode: edit
    instruction_template: |
      {task}
    rules:
      - condition: Done
        next: step-b

  - name: step-b
    edit: true
    persona: ../agents/test-coder.md
    permission_mode: edit
    instruction_template: |
      Continue the task.
    rules:
      - condition: Done
        next: step-a
