conversation-session-background-notification-batch.json 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-background-notification-batch",
  4. "spec": "./test/e2e/conversation-session/background/conversation-session-background-notification-batch.test.ts",
  5. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-background-notification-batch.json"
  8. ],
  9. "fileFixtures": [],
  10. "requests": [
  11. {
  12. "id": "upstream-background-notification-batch-title",
  13. "kind": "common",
  14. "source": "synthetic",
  15. "timingPolicy": "fast-text",
  16. "syntheticReason": "会话标题 sidecar 不属于 notification batch 语义,只需稳定返回,避免它干扰 request 计数。"
  17. },
  18. {
  19. "id": "upstream-background-notification-batch-agent-tools",
  20. "kind": "main",
  21. "source": "synthetic",
  22. "timingPolicy": "fast-tool-use",
  23. "syntheticReason": "稳定启动三个 run_in_background Agent,构造 N>=2 notification 的代表场景。"
  24. },
  25. {
  26. "id": "upstream-background-notification-batch-launch-ack",
  27. "kind": "main",
  28. "source": "synthetic",
  29. "timingPolicy": "fast-text",
  30. "syntheticReason": "让父会话在首个 child 完成前稳定回到 idle,隔离 outer command loop drain 语义。"
  31. },
  32. {
  33. "id": "upstream-background-notification-batch-child-one",
  34. "kind": "subagent",
  35. "source": "synthetic",
  36. "timingPolicy": "delayed-text",
  37. "syntheticReason": "六秒延迟为父 launch turn terminal 后的 provider child request admission + V4 canStop=false 稳定采样留出可观测窗口,同时让第一条 notification 明确先于其余两条完成。"
  38. },
  39. {
  40. "id": "upstream-background-notification-batch-child-two",
  41. "kind": "subagent",
  42. "source": "synthetic",
  43. "timingPolicy": "delayed-text",
  44. "syntheticReason": "八秒延迟把第二条 notification 放进第一条 provider request 的 in-flight 窗口。"
  45. },
  46. {
  47. "id": "upstream-background-notification-batch-child-three",
  48. "kind": "subagent",
  49. "source": "synthetic",
  50. "timingPolicy": "delayed-text",
  51. "syntheticReason": "八点五秒延迟让第三条 notification 同样进入 in-flight 窗口,并晚于第二条 admission。"
  52. },
  53. {
  54. "id": "upstream-background-notification-batch-auto-compact",
  55. "kind": "main",
  56. "source": "synthetic",
  57. "timingPolicy": "fast-text",
  58. "syntheticReason": "E2E 完整 system prompt 会在首条 notification 前触发自动 compact;固定摘要并保留 case marker,避免 sidecar 干扰 batch 请求计数。"
  59. },
  60. {
  61. "id": "upstream-background-notification-batch-first-consumed",
  62. "kind": "main",
  63. "source": "synthetic",
  64. "timingPolicy": "delayed-text",
  65. "syntheticReason": "五秒受控延迟让第二、三条 child completion 在该 request 处理中进入 pending queue。 验证来源提示及非用户授权边界。 每条新轮通知各包一对 system-reminder,MCS 开关下均保持 user。 CLI 实际统计的 Messages 字符增量包含通知全文且只计一次,静态上下文分类保持不变,并核对 V4 面板中的 Messages 占比。"
  66. },
  67. {
  68. "id": "upstream-background-notification-batch-post-first-compact",
  69. "kind": "main",
  70. "source": "synthetic",
  71. "timingPolicy": "fast-text",
  72. "syntheticReason": "第一条 notification 的 provider 输入仍超过 E2E 自动 compact 阈值;固定该 sidecar,确保下一次 drain 直接检验第二、三条 pending notification。"
  73. },
  74. {
  75. "id": "upstream-background-notification-batch-pending-consumed",
  76. "kind": "main",
  77. "source": "synthetic",
  78. "timingPolicy": "task-notification",
  79. "syntheticReason": "精确约束同一 last user message 同时含第二、三条 notification,证明只启动一个 batch model turn。 验证来源提示及非用户授权边界。 每条新轮通知各包一对 system-reminder,MCS 开关下均保持 user。 CLI 实际统计的 Messages 字符增量包含通知全文且只计一次,静态上下文分类保持不变,并核对 V4 面板中的 Messages 占比。"
  80. }
  81. ]
  82. }