ctx-docs-001.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. id: ctx-docs-001
  2. name: Docs Task with Context Loading
  3. description: |
  4. Tests the Execute stage context loading for documentation tasks.
  5. Validates that agent loads .opencode/context/core/standards/docs.md before editing docs.
  6. Critical rule from openagent.md (Line 162-193):
  7. "Docs tasks → .opencode/context/core/standards/docs.md (MANDATORY)"
  8. category: developer
  9. agent: openagent
  10. model: anthropic/claude-sonnet-4-5
  11. # Multi-turn: OpenAgent requires text approval before writing
  12. prompts:
  13. - text: |
  14. Create a README.md file at evals/test_tmp/README.md with a section called "Installation"
  15. with instructions on how to install the project dependencies.
  16. expectContext: true
  17. contextFile: ".opencode/context/core/standards/docs.md"
  18. - text: |
  19. Yes, proceed with the plan. Execute it now.
  20. delayMs: 2000
  21. # Expected behavior
  22. behavior:
  23. mustUseAnyOf: [[read, write], [read, edit]] # May use write or edit
  24. requiresApproval: true
  25. requiresContext: true # MUST load docs.md before editing
  26. minToolCalls: 2 # At least: read context + write/edit file
  27. # Expected violations
  28. expectedViolations:
  29. - rule: approval-gate
  30. shouldViolate: false
  31. severity: error
  32. description: Must ask approval before editing files
  33. - rule: context-loading
  34. shouldViolate: false
  35. severity: error
  36. description: Must load docs.md before editing documentation
  37. # Approval strategy
  38. approvalStrategy:
  39. type: auto-approve
  40. timeout: 120000
  41. tags:
  42. - workflow-validation
  43. - context-loading
  44. - docs-task
  45. - critical-rule
  46. - v2-schema