conversation-session-compact-manual-queue.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-compact-manual-queue",
  4. "spec": "./test/e2e/conversation-session/context/conversation-session-compact-manual-queue.test.ts",
  5. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-compact-manual-queue.json"
  8. ],
  9. "fileFixtures": [
  10. {
  11. "path": ".zcode-e2e/shared/readonly-tool.txt",
  12. "source": "created-by-helper",
  13. "description": "prepareConversationE2E 写入的只读工具输入文件,用于构造 compact 前的 tool_result 历史。"
  14. }
  15. ],
  16. "requests": [
  17. {
  18. "id": "conversation-session-compact-manual-queue-title-sidecar",
  19. "kind": "common",
  20. "source": "synthetic",
  21. "timingPolicy": "fast-text",
  22. "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。"
  23. },
  24. {
  25. "id": "upstream-compact-manual-queue-prep-one",
  26. "kind": "main",
  27. "timingPolicy": "fast-text",
  28. "source": "synthetic",
  29. "syntheticReason": "第一轮只用于形成可 compact 的普通历史,真实 provider 文案不影响 held queue 语义。"
  30. },
  31. {
  32. "id": "upstream-compact-manual-queue-readonly-final",
  33. "kind": "main",
  34. "timingPolicy": "fast-text",
  35. "source": "synthetic",
  36. "syntheticReason": "第二轮只用于构造含 readonly tool_result 的 compact 历史,工具业务由本地文件 fixture 决定。"
  37. },
  38. {
  39. "id": "upstream-compact-manual-queue-summary-success",
  40. "kind": "main",
  41. "timingPolicy": "controlled-stream",
  42. "source": "synthetic",
  43. "syntheticReason": "检查真实 compacting 时 held queue 身份后显式释放摘要响应,完成后继续验证未被消费。"
  44. },
  45. {
  46. "id": "upstream-compact-manual-queue-held-contract",
  47. "kind": "main",
  48. "timingPolicy": "fast-text",
  49. "source": "synthetic",
  50. "syntheticReason": "held queue 在 manual compact 前后都必须保留;fixture 只覆盖 marker 合同。"
  51. },
  52. {
  53. "id": "upstream-compact-manual-queue-append-contract",
  54. "kind": "main",
  55. "timingPolicy": "fast-text",
  56. "source": "synthetic",
  57. "syntheticReason": "manual compact 完成后 queue 仍 held,追加文本应入队而不是触发 provider。"
  58. },
  59. {
  60. "id": "upstream-compact-manual-queue-running",
  61. "kind": "main",
  62. "source": "synthetic",
  63. "timingPolicy": "controlled-stream",
  64. "syntheticReason": "真实 partial 输出后保持流,直到测试点击 Stop;不存在错过停止窗口而跳过断言的路径。"
  65. }
  66. ]
  67. }