05-delegation-with-context.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. id: openrouter-delegation-with-context
  2. name: "OpenRouter Variant: Delegation with Context References"
  3. description: |
  4. Tests OpenRouter variant's ability to include context references when delegating.
  5. This is a conversational test to validate:
  6. 1. Agent knows to pass context file references to subagents
  7. 2. Agent uses proper invocation syntax with context files
  8. 3. Agent explains the context inheritance pattern
  9. OpenRouter-specific validation:
  10. - Agent should reference delegation_criteria section
  11. - Agent should show example invocation with context file
  12. - Agent should explain "Load @.opencode/context/..." pattern
  13. category: developer
  14. agent: openagent
  15. model: anthropic/claude-sonnet-4-5
  16. prompt: |
  17. If I ask you to delegate a coding task to the coder-agent subagent,
  18. how would you invoke it? Show me the exact syntax you would use,
  19. including any context files that should be loaded.
  20. behavior:
  21. requiresApproval: false # Conversational - no execution
  22. minToolCalls: 0 # No tools needed for explanation
  23. expectedViolations:
  24. - rule: approval-gate
  25. shouldViolate: false
  26. severity: error
  27. description: Should NOT ask for approval (conversational path)
  28. approvalStrategy:
  29. type: auto-approve
  30. timeout: 30000
  31. tags:
  32. - delegation
  33. - context
  34. - openrouter
  35. - conversational
  36. - invocation-syntax
  37. - context-inheritance