04-invalid-path-handling.yaml 993 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. id: edge-04-invalid-path-handling
  2. name: "Edge Case 04: Invalid Path Handling"
  3. description: |
  4. Tests that the agent handles invalid file paths gracefully.
  5. The agent should:
  6. 1. Attempt to read the file
  7. 2. Receive an error (file doesn't exist)
  8. 3. Report the error clearly
  9. 4. NOT crash or produce confusing output
  10. Validates:
  11. - Error handling for missing files
  12. - Agent reports errors clearly
  13. - stop-on-failure evaluator works correctly
  14. category: edge-case
  15. prompts:
  16. - text: |
  17. Read the file at /nonexistent/path/that/does/not/exist.txt and tell me what's in it.
  18. approvalStrategy:
  19. type: auto-approve
  20. behavior:
  21. mustUseTools:
  22. - read
  23. minToolCalls: 1
  24. maxToolCalls: 3
  25. expectedViolations:
  26. - rule: approval-gate
  27. shouldViolate: false
  28. severity: error
  29. # Agent should handle the error gracefully
  30. - rule: stop-on-failure
  31. shouldViolate: false
  32. severity: error
  33. timeout: 60000
  34. tags:
  35. - edge-case
  36. - error-handling
  37. - invalid-input
  38. - safe