07-invalid-path-handling.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. id: core-contextscout-invalid-path
  2. name: "ContextScout: Negative Test - Invalid Path Handling"
  3. description: |
  4. Tests that ContextScout handles non-existent directories gracefully.
  5. This is a NEGATIVE test that verifies the agent:
  6. - Detects when a path doesn't exist
  7. - Reports the error clearly
  8. - Doesn't attempt to read from invalid paths
  9. - Suggests checking the path
  10. Expected Behavior:
  11. - MUST detect path doesn't exist
  12. - MUST report error clearly
  13. - MUST NOT attempt to read non-existent files
  14. - SHOULD suggest alternatives
  15. This test SHOULD FAIL if:
  16. - Agent tries to read from non-existent path
  17. - Agent claims to find files in invalid directory
  18. - Agent doesn't report the error
  19. category: developer
  20. prompts:
  21. - text: |
  22. Search for context files in the directory: /this/path/absolutely/does/not/exist/anywhere
  23. What do you find?
  24. approvalStrategy:
  25. type: auto-approve
  26. behavior:
  27. minToolCalls: 1
  28. maxToolCalls: 10
  29. expectedViolations:
  30. - rule: approval-gate
  31. shouldViolate: false
  32. severity: error
  33. timeout: 60000
  34. tags:
  35. - contextscout
  36. - negative-test
  37. - error-handling
  38. - invalid-input
  39. # Expected outcome: Agent should report path doesn't exist
  40. # Agent should NOT claim to find files or attempt to read