dedicated-tools-usage.yaml 574 B

123456789101112131415161718192021
  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. agent: openagent
  6. prompt: |
  7. Read the contents of /tmp/test.txt and write them to /tmp/output.txt
  8. approvalStrategy:
  9. type: auto-approve
  10. behavior:
  11. mustUseTools:
  12. - read
  13. - write
  14. mustNotUseTools:
  15. - bash
  16. mustUseDedicatedTools: true
  17. expectedViolations:
  18. - rule: tool-usage
  19. shouldViolate: false
  20. severity: error
  21. description: Agent should use dedicated read/write tools instead of bash