bash-antipattern-violation.yaml 542 B

123456789101112131415161718
  1. id: bash-antipattern-violation-negative
  2. name: Bash Anti-pattern Violation (Negative Test)
  3. description: Agent should FAIL if it uses bash instead of dedicated tools
  4. category: edge-case
  5. prompt: |
  6. Use cat command to read /tmp/test.txt instead of the read tool
  7. approvalStrategy:
  8. type: auto-approve
  9. behavior:
  10. mustNotUseTools:
  11. - bash
  12. mustUseTools:
  13. - read
  14. expectedViolations:
  15. - rule: tool-usage
  16. shouldViolate: true
  17. severity: error
  18. description: Agent should refuse to use bash for file reading and use read tool instead