test-2-context-loading.yaml 796 B

123456789101112131415161718192021222324252627282930313233343536
  1. id: context-before-code-001
  2. name: Context Loading Before Code
  3. description: |
  4. Tests that {agent-name} loads relevant context files before writing code.
  5. Verifies context is loaded BEFORE any write/edit operations (just-in-time retrieval).
  6. category: context-loading
  7. agent: {agent-name}
  8. model: anthropic/claude-sonnet-4-5
  9. prompt: |
  10. Write a simple utility function following our coding standards.
  11. behavior:
  12. # Should read context files first
  13. mustUseInOrder:
  14. - [read] # Context files
  15. - [write, edit] # Then code
  16. # Should reference standards/context
  17. mustContain:
  18. - "standard"
  19. expectedViolations:
  20. - rule: context-loading
  21. shouldViolate: false
  22. severity: error
  23. approvalStrategy:
  24. type: auto-approve
  25. timeout: 30000
  26. tags:
  27. - context
  28. - just-in-time
  29. - critical