conversation-session-worker-effective-selection.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-worker-effective-selection",
  4. "spec": "./test/e2e/conversation-session/conversation-session-worker-effective-selection.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "w99-explicit-parent-tool",
  8. "description": "父会话通过真正 Agent 工具触发显式个人套餐意图。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "确定性触发子执行;验证真实 Worker 解析和请求,不测试模型自主决策。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": ["E2E_W99_EXPLICIT_PARENT"],
  20. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  21. },
  22. "response": {
  23. "statusCode": 200,
  24. "toolUse": {
  25. "id": "toolu_w99_explicit",
  26. "name": "Agent",
  27. "input": {
  28. "description": "Run account reviewer",
  29. "subagent_type": "e2e-worker-account-reviewer",
  30. "prompt": "E2E_W99_EXPLICIT_CHILD: Reply with the requested marker."
  31. }
  32. }
  33. }
  34. },
  35. {
  36. "id": "w99-explicit-parent-final",
  37. "description": "消费真实子代理结果后结束父会话。",
  38. "metadata": {
  39. "kind": "main",
  40. "timingPolicy": "fast-text",
  41. "source": "synthetic",
  42. "syntheticReason": "Account 子请求由既有隔离 Coding Plan 数据面返回固定文本;父结果仅证明工具完成。"
  43. },
  44. "maxMatches": 1,
  45. "match": {
  46. "method": "POST",
  47. "pathIncludes": "/messages",
  48. "bodyIncludes": ["E2E_W99_EXPLICIT_PARENT", "coding-plan-e2e-ok"],
  49. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  50. },
  51. "response": {
  52. "statusCode": 200,
  53. "text": {
  54. "id": "w99-parent-final",
  55. "text": "E2E_W99_PARENT_DONE",
  56. "inputTokens": 160,
  57. "outputTokens": 12
  58. }
  59. }
  60. }
  61. ]
  62. }