ctx-multi-error-handling-to-tests.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. id: ctx-multi-error-handling-to-tests
  2. name: "Context Loading: Multi-Turn Error Handling to Tests"
  3. description: |
  4. Complex multi-turn test: Error handling question → Test request → Coverage policy
  5. Turn 1: Ask about error handling approach
  6. - Expected: Load standards.md or processes.md
  7. - Validation: Read before response
  8. Turn 2: Request test creation for error handling
  9. - Expected: Load tests.md (testing standards)
  10. - Validation: Read tests.md before writing tests
  11. - Files created: evals/test_tmp/error-handling.test.ts
  12. Turn 3: Ask about test coverage policy
  13. - Expected: Reference tests.md or processes.md
  14. - Validation: Should have test-related context loaded
  15. Working directory: evals/test_tmp/
  16. category: developer
  17. agent: openagent
  18. model: anthropic/claude-sonnet-4-5
  19. # Multi-turn conversation
  20. prompts:
  21. - text: "How should we handle errors in this project?"
  22. expectContext: true
  23. contextFile: "standards.md"
  24. - text: "approve"
  25. delayMs: 2000
  26. - text: "Can you write tests for error handling in evals/test_tmp/error-handling.test.ts?"
  27. expectContext: true
  28. contextFile: "tests.md"
  29. - text: "approve"
  30. delayMs: 2000
  31. - text: "What's our test coverage policy?"
  32. delayMs: 1000
  33. # Expected behavior
  34. behavior:
  35. mustUseTools: [read, write] # Must read context files and write tests
  36. requiresApproval: true # OpenAgent requires approval before writing
  37. requiresContext: true # Must load context files
  38. minToolCalls: 3 # At least: read standards + read tests + write file
  39. # Expected violations
  40. expectedViolations:
  41. - rule: approval-gate
  42. shouldViolate: false
  43. severity: error
  44. description: Must ask approval before writing files
  45. - rule: context-loading
  46. shouldViolate: false
  47. severity: error
  48. description: Must load standards.md and tests.md before writing
  49. # Approval strategy
  50. approvalStrategy:
  51. type: auto-approve
  52. timeout: 300000 # 5 minutes for multi-turn (with smart timeout: 5min activity, 10min absolute max)
  53. tags:
  54. - context-loading
  55. - multi-turn
  56. - complex-test
  57. - testing
  58. - error-handling