multi-language-validation.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. id: multi-language-validation
  2. name: Multi-Language Support & Validation
  3. description: |
  4. Tests that opencoder adapts to different languages and uses proper tools.
  5. For TypeScript: should mention tsc, eslint
  6. For Python: should mention mypy, pylint, pytest
  7. Agent should recognize language and use appropriate validation tools.
  8. category: developer
  9. agent: opencoder
  10. model: anthropic/claude-sonnet-4-5
  11. prompt: |
  12. Create a simple TypeScript function in src/utils/math.ts that adds two numbers.
  13. Make sure to use proper type checking and validation.
  14. # Expected behavior
  15. behavior:
  16. mustUseTools: [read, write]
  17. minToolCalls: 2
  18. # Should mention TypeScript-specific tools
  19. mustContainAnyOf:
  20. - ["tsc", "TypeScript"]
  21. - ["type check", "type-check"]
  22. - ["eslint"]
  23. # Should follow approval workflow
  24. expectedViolations:
  25. - rule: approval-gate
  26. shouldViolate: false
  27. severity: error
  28. approvalStrategy:
  29. type: auto-approve
  30. timeout: 120000
  31. tags:
  32. - multi-language
  33. - typescript
  34. - validation
  35. - type-checking