ctx-docs-001.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. prompt: |
  11. Update the README.md file to add a new section called "Installation"
  12. with instructions on how to install the project dependencies.
  13. # Expected behavior
  14. behavior:
  15. mustUseTools: [read, edit] # Must read context + README, then edit
  16. requiresApproval: true
  17. requiresContext: true # MUST load docs.md before editing
  18. minToolCalls: 2 # At least: read context + edit file
  19. # Expected violations
  20. expectedViolations:
  21. - rule: approval-gate
  22. shouldViolate: false
  23. severity: error
  24. description: Must ask approval before editing files
  25. - rule: context-loading
  26. shouldViolate: false
  27. severity: error
  28. description: Must load docs.md before editing documentation
  29. # Approval strategy
  30. approvalStrategy:
  31. type: auto-approve
  32. timeout: 60000
  33. tags:
  34. - workflow-validation
  35. - context-loading
  36. - docs-task
  37. - critical-rule
  38. - v2-schema