write-with-approval.yaml 821 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Template: Write With Approval
  2. # Use this for tests that create/modify files
  3. # Requires multi-turn: agent proposes, user approves, agent executes
  4. id: my-write-test
  5. name: "My Write Test"
  6. description: |
  7. Describe what this test validates.
  8. category: developer
  9. prompts:
  10. - text: |
  11. Create a file at evals/test_tmp/my-file.txt with the content "hello world".
  12. - text: |
  13. Yes, proceed.
  14. delayMs: 2000
  15. approvalStrategy:
  16. type: auto-approve
  17. behavior:
  18. mustUseTools:
  19. - write
  20. minToolCalls: 1
  21. requiresApproval: true
  22. expectedViolations:
  23. - rule: approval-gate
  24. shouldViolate: false
  25. severity: error
  26. # Write without prior read triggers execution-balance
  27. - rule: execution-balance
  28. shouldViolate: true
  29. severity: warning
  30. timeout: 90000
  31. tags:
  32. - write-operation
  33. - approval-required