name: "Loop Mode (agent self-scheduling)"
description: >
Verify `recursive loop` runs the agent with the ScheduleWakeup tool
available. The agent completes its goal and exits without scheduling a
wakeup.
sequential: true
setup:
- name: "Prepare workspace"
exec:
container: recursive-e2e
command: |
rm -rf /workspace/test-loop
mkdir -p /workspace/test-loop
echo prepared
- name: "Run loop mode (act)"
exec:
container: recursive-e2e
command: >
recursive --workspace /workspace/test-loop
--api-base http://aimock:4010/v1
--api-key mock-key -m mock-chat
--max-steps 5
loop Write file loop-result.txt with content loop-done
cases:
- name: "loop-result.txt was produced by the loop run"
file:
container: recursive-e2e
path: /workspace/test-loop/loop-result.txt
exists: true
contains: "loop-done"
teardown:
- name: "Clean workspace"
ignoreError: true
exec:
container: recursive-e2e
command: rm -rf /workspace/test-loop