12-response-validation-agent-creation.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. id: contextscout-response-validation
  2. name: "ContextScout: Response Validation - Returns Correct File Paths"
  3. description: |
  4. Tests that ContextScout not only uses the right tools, but also RETURNS
  5. the correct file paths in its final response to the user.
  6. This validates:
  7. - ContextScout discovers the right files (via tool usage)
  8. - ContextScout includes exact file paths in its response
  9. - ContextScout provides the expected files for agent creation
  10. Expected Files in Response:
  11. - .opencode/context/openagents-repo/core-concepts/agents.md
  12. - .opencode/context/openagents-repo/guides/adding-agent.md
  13. - .opencode/context/core/standards/code-quality.md
  14. This test SHOULD FAIL if:
  15. - ContextScout doesn't mention the expected files in its response
  16. - ContextScout returns wrong file paths
  17. - ContextScout doesn't provide exact paths (just descriptions)
  18. category: developer
  19. agent: subagents/core/contextscout
  20. prompts:
  21. - text: |
  22. Find context files about creating a new agent.
  23. Topic: agent-creation
  24. I need to understand how to create a new agent in the OpenAgents repository.
  25. Return:
  26. - Exact file paths to relevant context files
  27. - Brief summary of what each file contains
  28. - Priority order (critical, high, medium)
  29. Focus on:
  30. - Agent structure and format
  31. - Step-by-step creation guides
  32. - Code standards for agents
  33. - Testing requirements
  34. approvalStrategy:
  35. type: auto-approve
  36. behavior:
  37. forbiddenTools:
  38. - task
  39. - bash
  40. - write # Read-only agent
  41. - edit # Read-only agent
  42. minToolCalls: 1
  43. maxToolCalls: 10
  44. # Validate response content
  45. expectedResponse:
  46. contains:
  47. - ".opencode/context/openagents-repo/core-concepts/agents.md"
  48. - ".opencode/context/openagents-repo/guides/adding-agent.md"
  49. - ".opencode/context/core/standards/code-quality.md"
  50. description: "Response must include exact file paths for agent creation context"
  51. timeout: 60000
  52. tags:
  53. - contextscout
  54. - discovery
  55. - response-validation
  56. - agent-creation
  57. - critical
  58. # Expected outcome:
  59. # - ContextScout uses glob/read to discover files
  60. # - ContextScout's final response includes:
  61. # * .opencode/context/openagents-repo/core-concepts/agents.md
  62. # * .opencode/context/openagents-repo/guides/adding-agent.md
  63. # * .opencode/context/core/standards/code-quality.md
  64. # - Response provides priority ratings and summaries