ctx-multi-turn-001.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. id: ctx-multi-turn-001
  2. name: Multi-Turn Context Loading
  3. description: |
  4. Tests that context is loaded FRESH for each new task in a multi-turn conversation.
  5. Turn 1: Ask a question (conversational, no context needed)
  6. Turn 2: Request to create docs (should load docs.md context)
  7. This validates that the agent doesn't skip context loading on subsequent messages.
  8. Critical rule from openagent.md (Line 162-193):
  9. "Docs tasks → .opencode/context/core/standards/docs.md (MANDATORY)"
  10. category: developer
  11. agent: openagent
  12. # Multi-turn conversation
  13. prompts:
  14. - text: "What is the purpose of this project?"
  15. expectContext: false
  16. - text: "Create a CONTRIBUTING.md file with guidelines for contributors"
  17. expectContext: true
  18. contextFile: ".opencode/context/core/standards/docs.md"
  19. delayMs: 2000
  20. # Expected behavior
  21. behavior:
  22. mustUseTools: [read, write] # Must read context, then write docs
  23. requiresApproval: true
  24. requiresContext: true # MUST load docs.md before writing
  25. minToolCalls: 2 # At least: read context + write file
  26. # Expected violations
  27. expectedViolations:
  28. - rule: approval-gate
  29. shouldViolate: false
  30. severity: error
  31. description: Must ask approval before writing files
  32. - rule: context-loading
  33. shouldViolate: false
  34. severity: error
  35. description: Must load docs.md before writing documentation
  36. # Approval strategy
  37. approvalStrategy:
  38. type: auto-approve
  39. timeout: 90000
  40. tags:
  41. - workflow-validation
  42. - context-loading
  43. - multi-turn
  44. - docs-task
  45. - critical-rule
  46. - v2-schema