name: "Memory Scratchpad"
description: "Verify agent can use scratchpad_set and data persists."
sequential: true
setup:
- name: "Prepare workspace"
exec:
container: recursive-e2e
command: |
rm -rf /workspace/test-03
mkdir -p /workspace/test-03
echo prepared
- name: "Run agent (act): scratchpad_set + scratchpad_list"
exec:
container: recursive-e2e
command: >
recursive --workspace /workspace/test-03
--api-base http://aimock:4010/v1
--api-key mock-key
-m mock-chat
--max-steps 10
run "Use the scratchpad_set tool to store the key 'test_color' with value 'blue'. Then use scratchpad_list to confirm it's stored. Do nothing else."
cases:
- name: "scratchpad.json contains the stored key"
file:
container: recursive-e2e
path: /workspace/test-03/.recursive/scratchpad.json
exists: true
contains: "test_color"
- name: "Session recorded scratchpad_set call"
recursive-session:
container: recursive-e2e
input: /workspace/test-03/.recursive/sessions
status: ["completed", "success"]
hasToolCalls: ["scratchpad_set"]
teardown:
- name: "Clean workspace"
ignoreError: true
exec:
container: recursive-e2e
command: rm -rf /workspace/test-03