bash-execution-001.yaml 1011 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. id: bash-execution-001
  2. name: Direct Tool Execution
  3. description: |
  4. Tests that opencoder executes tools directly without text-based approval.
  5. The agent should use the tool permission system, not ask for approval in text.
  6. Note: Agent may use 'list' tool instead of 'bash ls' - both are acceptable.
  7. category: developer
  8. agent: opencoder
  9. model: anthropic/claude-sonnet-4-5
  10. prompt: |
  11. List the files in the current directory using ls.
  12. # Expected behavior - accept either bash or list tool
  13. behavior:
  14. mustUseAnyOf: [[bash], [list]] # Either bash OR list is acceptable
  15. minToolCalls: 1
  16. # Opencoder should NOT output approval requests in text
  17. mustNotContain:
  18. - "Approval needed"
  19. - "approval before proceeding"
  20. - "Proposed Plan"
  21. # Should not violate approval gate (tool permissions handle this)
  22. expectedViolations:
  23. - rule: approval-gate
  24. shouldViolate: false
  25. severity: error
  26. approvalStrategy:
  27. type: auto-approve
  28. timeout: 30000
  29. tags:
  30. - bash
  31. - direct-execution
  32. - smoke-test