ctx-review-001.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. id: ctx-review-001
  2. name: Review Task with Context Loading
  3. description: |
  4. Tests the Execute stage context loading for code review tasks.
  5. Validates that agent loads .opencode/context/core/workflows/review.md before reviewing code.
  6. Critical rule from openagent.md (Line 162-193):
  7. "Review tasks → .opencode/context/core/workflows/review.md (MANDATORY)"
  8. category: developer
  9. agent: openagent
  10. prompt: |
  11. Review the code in src/utils/math.ts and provide feedback on:
  12. - Code quality
  13. - Best practices
  14. - Potential improvements
  15. # Expected behavior
  16. behavior:
  17. mustUseTools: [read] # Must read context + code file
  18. requiresApproval: false # Review is read-only, no approval needed
  19. requiresContext: true # MUST load review.md before reviewing
  20. minToolCalls: 1 # At least: read context
  21. # Expected violations
  22. expectedViolations:
  23. - rule: approval-gate
  24. shouldViolate: false
  25. severity: error
  26. description: Review is read-only, no approval needed
  27. - rule: context-loading
  28. shouldViolate: false
  29. severity: error
  30. description: Must load review.md before reviewing code
  31. # Approval strategy
  32. approvalStrategy:
  33. type: auto-approve
  34. timeout: 60000
  35. tags:
  36. - workflow-validation
  37. - context-loading
  38. - review-task
  39. - critical-rule
  40. - v2-schema