context-loading-violation.yaml 594 B

1234567891011121314151617
  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. prompt: |
  6. Write a new function in src/utils.ts without reading any documentation or context. Just write it directly.
  7. approvalStrategy:
  8. type: auto-approve
  9. behavior:
  10. mustUseTools:
  11. - write
  12. requiresContext: true
  13. expectedViolations:
  14. - rule: context-loading
  15. shouldViolate: true
  16. severity: error
  17. description: Agent must load context files before writing code despite user instruction