conversation-session-plugin-reference.json 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-reference",
  4. "spec": "./test/e2e/conversation-session/plugins/conversation-session-plugin-reference.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "plugin-reference-title",
  8. "description": "E2E_PLUGIN_REFERENCE 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "首发会触发默认 title sidecar;固定 case-local 标题响应并用首发 marker 隔离跨 case 匹配。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_PLUGIN_REFERENCE"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "plugin-reference-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"Plugin Reference E2E\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "plugin-reference-reminder-tool-call",
  32. "description": "PLG01 wire 门禁:只有当请求 body 真正携带 identifiers-only 的 <plugin_reference> reminder(含 skill-creator stable id)时才放行,并驱动一次 Read 测试工具调用。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "确定性验证 provider 收到 reminder:fixture 以 bodyIncludes <plugin_reference> 作为匹配门禁,不依赖真实模型的随机偏好。"
  38. },
  39. "maxMatches": 1,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "lastUserMessageIncludes": ["E2E_PLUGIN_REFERENCE"],
  44. "bodyIncludes": ["<plugin_reference>", "skill-creator@zcode-plugins-official"],
  45. "bodyExcludes": ["Generate a concise title", "toolu_e2e_plugin_reference_read"]
  46. },
  47. "response": {
  48. "statusCode": 200,
  49. "toolUse": {
  50. "id": "toolu_e2e_plugin_reference_read",
  51. "messageId": "msg_e2e_plugin_reference_read",
  52. "name": "Read",
  53. "input": { "file_path": "plugin-reference-e2e/note.md" }
  54. }
  55. }
  56. },
  57. {
  58. "id": "plugin-reference-final-reply",
  59. "description": "Read 工具结果回灌后的收口回复,输出时间线断言 marker。",
  60. "metadata": {
  61. "kind": "main",
  62. "timingPolicy": "fast-text",
  63. "source": "synthetic",
  64. "syntheticReason": "第二步以工具结果内容 + tool id 匹配,保证顺序确定性。"
  65. },
  66. "maxMatches": 1,
  67. "match": {
  68. "method": "POST",
  69. "pathIncludes": "/messages",
  70. "bodyIncludes": [
  71. "E2E_PLUGIN_REFERENCE",
  72. "PLUGIN_REFERENCE_NOTE_BODY",
  73. "toolu_e2e_plugin_reference_read"
  74. ],
  75. "bodyExcludes": ["Generate a concise title"]
  76. },
  77. "response": {
  78. "statusCode": 200,
  79. "text": {
  80. "id": "plugin-reference-final-reply",
  81. "inputTokens": 120,
  82. "outputTokens": 12,
  83. "text": "PLUGIN_REFERENCE_REPLY_OK"
  84. }
  85. }
  86. }
  87. ]
  88. }