12-correct-context-file-positive.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. id: pos-correct-context-001
  2. name: Correct Context File Loaded (Positive Test)
  3. description: |
  4. POSITIVE TEST: Validates that loading the CORRECT context file passes.
  5. This test asks for a TESTS task and expects the agent to load tests.md.
  6. The evaluator should:
  7. 1. Classify the task as 'tests' (based on "Write a test")
  8. 2. Expect tests.md to be loaded
  9. 3. Pass if tests.md is loaded
  10. 4. Fail if wrong context file is loaded
  11. category: developer
  12. agent: openagent
  13. prompts:
  14. - text: |
  15. Write a test for the multiply function in evals/test_tmp/multiply.test.ts
  16. The test should verify that multiply(2, 3) returns 6.
  17. - text: |
  18. Yes, proceed with the plan.
  19. delayMs: 3000
  20. behavior:
  21. mustUseTools: [read, write]
  22. requiresContext: true
  23. minToolCalls: 2
  24. expectedViolations:
  25. - rule: context-loading
  26. shouldViolate: false # Should NOT violate - correct workflow
  27. severity: error
  28. approvalStrategy:
  29. type: auto-approve
  30. timeout: 120000
  31. tags:
  32. - context-loading
  33. - context-file-mapping
  34. - tests-task
  35. - positive-test