11-unfamiliar-domain-discovery.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. id: contextscout-unfamiliar-domain
  2. name: "ContextScout: Unfamiliar Domain Discovery"
  3. description: |
  4. Tests that ContextScout correctly handles requests for domains it hasn't seen before
  5. or domains with limited context files.
  6. This validates:
  7. - ContextScout searches thoroughly even for unfamiliar terms
  8. - ContextScout returns related files if exact match not found
  9. - ContextScout suggests alternative search terms
  10. - ContextScout doesn't fabricate files
  11. Expected Behavior:
  12. - Search for "blockchain" or "machine learning" (not in our context)
  13. - Return: "No exact matches found for 'blockchain'"
  14. - Suggest: "Found related files in development/ or core/standards/"
  15. - Provide: General code standards as fallback
  16. This test SHOULD FAIL if:
  17. - ContextScout fabricates non-existent files
  18. - ContextScout returns empty response without suggestions
  19. - ContextScout doesn't search thoroughly
  20. category: developer
  21. agent: subagents/core/contextscout
  22. prompts:
  23. - text: |
  24. Search for context files related to: blockchain smart contract development
  25. Task type: blockchain-development
  26. Search intent: I need to understand how to develop blockchain smart contracts
  27. Return:
  28. - Exact file paths to relevant context files
  29. - Brief summary of what each file contains
  30. - Priority order (critical, high, medium)
  31. Focus on:
  32. - Blockchain development patterns
  33. - Smart contract best practices
  34. - Security considerations
  35. - Testing strategies
  36. approvalStrategy:
  37. type: auto-approve
  38. behavior:
  39. forbiddenTools:
  40. - task
  41. - bash
  42. - write # Read-only agent
  43. - edit # Read-only agent
  44. minToolCalls: 1
  45. maxToolCalls: 10
  46. timeout: 60000
  47. tags:
  48. - contextscout
  49. - discovery
  50. - unfamiliar-domain
  51. - error-handling
  52. - medium
  53. # Expected outcome:
  54. # - Uses glob to search for "blockchain", "smart", "contract"
  55. # - Finds no exact matches
  56. # - Returns response like:
  57. # "No specific blockchain context files found.
  58. #
  59. # However, these general files may be helpful:
  60. # - .opencode/context/core/standards/code-quality.md (MEDIUM) - General code standards
  61. # - .opencode/context/core/standards/security-patterns.md (HIGH) - Security best practices
  62. #
  63. # Suggestion: Consider adding blockchain-specific context files to:
  64. # - .opencode/context/development/blockchain/
  65. # - .opencode/context/development/principles/smart-contracts.md"