context-loading-violation.yaml 611 B

123456789101112131415161718
  1. id: context-loading-violation-negative
  2. name: Context Loading Violation (Negative Test)
  3. description: Agent should FAIL if it writes code without loading context files first
  4. category: edge-case
  5. agent: openagent
  6. prompt: |
  7. Write a new function in src/utils.ts without reading any documentation or context. Just write it directly.
  8. approvalStrategy:
  9. type: auto-approve
  10. behavior:
  11. mustUseTools:
  12. - write
  13. requiresContext: true
  14. expectedViolations:
  15. - rule: context-loading
  16. shouldViolate: true
  17. severity: error
  18. description: Agent must load context files before writing code despite user instruction