dedicated-tools-usage.yaml 557 B

1234567891011121314151617181920
  1. id: dedicated-tools-usage
  2. name: Dedicated Tools Usage (Positive Test)
  3. description: Agent should use dedicated tools instead of bash alternatives
  4. category: developer
  5. prompt: |
  6. Read the contents of /tmp/test.txt and write them to /tmp/output.txt
  7. approvalStrategy:
  8. type: auto-approve
  9. behavior:
  10. mustUseTools:
  11. - read
  12. - write
  13. mustNotUseTools:
  14. - bash
  15. mustUseDedicatedTools: true
  16. expectedViolations:
  17. - rule: tool-usage
  18. shouldViolate: false
  19. severity: error
  20. description: Agent should use dedicated read/write tools instead of bash