conversation-session-background-subagent-rate-limit.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-background-subagent-rate-limit",
  4. "spec": "./test/e2e/conversation-session/background/conversation-session-background-subagent-rate-limit.test.ts",
  5. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-background-subagent-rate-limit.json"
  8. ],
  9. "fileFixtures": [],
  10. "requests": [
  11. {
  12. "id": "background-subagent-rate-limit-title",
  13. "kind": "common",
  14. "source": "synthetic",
  15. "timingPolicy": "fast-text",
  16. "syntheticReason": "标题生成不属于本 case,只需稳定返回以免误匹配业务 fixture。"
  17. },
  18. {
  19. "id": "background-subagent-rate-limit-parent-launch",
  20. "kind": "main",
  21. "source": "synthetic",
  22. "timingPolicy": "fast-tool-use",
  23. "syntheticReason": "稳定创建真实 Agent(run_in_background=true) 以覆盖 terminal notification 投影。"
  24. },
  25. {
  26. "id": "background-subagent-rate-limit-parent-launch-ack",
  27. "kind": "main",
  28. "source": "synthetic",
  29. "timingPolicy": "fast-text",
  30. "syntheticReason": "让父会话先回 idle,随后由 failed task notification 唤醒。"
  31. },
  32. {
  33. "id": "background-subagent-rate-limit-child-initial-429",
  34. "kind": "subagent",
  35. "source": "synthetic",
  36. "timingPolicy": "fault-stream",
  37. "syntheticReason": "首个 429 延迟到父 turn 消费 launch ACK 后返回;BG26 worker 禁用模型 retry,只验证 terminal/UI/snapshot 的原始错误投影。"
  38. },
  39. {
  40. "id": "background-subagent-rate-limit-parent-notification",
  41. "kind": "main",
  42. "source": "synthetic",
  43. "timingPolicy": "task-notification",
  44. "syntheticReason": "证明 failed notification 经 runtime command queue 回到父模型并正常收口。"
  45. },
  46. {
  47. "id": "background-subagent-rate-limit-merged-title",
  48. "kind": "common",
  49. "source": "synthetic",
  50. "timingPolicy": "fast-text",
  51. "syntheticReason": "标题生成不属于本 case,只需稳定返回以免误匹配业务 fixture。"
  52. },
  53. {
  54. "id": "background-subagent-rate-limit-merged-parent-launch",
  55. "kind": "main",
  56. "source": "synthetic",
  57. "timingPolicy": "fast-tool-use",
  58. "syntheticReason": "同一 response 启动三个真实 Agent(run_in_background=true),终止顺序由各 child 的延迟决定。"
  59. },
  60. {
  61. "id": "background-subagent-rate-limit-merged-parent-launch-ack",
  62. "kind": "main",
  63. "source": "synthetic",
  64. "timingPolicy": "delayed-text",
  65. "syntheticReason": "九秒延迟让三个 child 都在父 launch turn 结束前终止,三条通知在父会话空闲时由同一次 drain 合并为一轮。"
  66. },
  67. {
  68. "id": "background-subagent-rate-limit-merged-first-child-partial-step",
  69. "kind": "subagent",
  70. "source": "synthetic",
  71. "timingPolicy": "fast-tool-use",
  72. "syntheticReason": "子代理先写出正文再失败,失败通知的 <result> 才有部分报告;TodoWrite 不需要 shell 和权限,第二次请求按工具调用 id 匹配。"
  73. },
  74. {
  75. "id": "background-subagent-rate-limit-merged-first-child-429",
  76. "kind": "subagent",
  77. "source": "synthetic",
  78. "timingPolicy": "fault-stream",
  79. "syntheticReason": "最先终止,失败通知排在批次第一条;在部分报告那一步之后失败,延迟缩短到 0.5 秒,保证仍早于 3 秒完成的 child。BG26 worker 禁用模型 retry。"
  80. },
  81. {
  82. "id": "background-subagent-rate-limit-merged-child-completed",
  83. "kind": "subagent",
  84. "source": "synthetic",
  85. "timingPolicy": "delayed-text",
  86. "syntheticReason": "第二个终止,完成通知排在批次第二条,紧跟第一条失败通知。"
  87. },
  88. {
  89. "id": "background-subagent-rate-limit-merged-last-child-429",
  90. "kind": "subagent",
  91. "source": "synthetic",
  92. "timingPolicy": "fault-stream",
  93. "syntheticReason": "最后终止,失败通知排在批次第三条,覆盖后面的通知块取得终态。"
  94. },
  95. {
  96. "id": "background-subagent-rate-limit-merged-parent-notification",
  97. "kind": "main",
  98. "source": "synthetic",
  99. "timingPolicy": "task-notification",
  100. "syntheticReason": "同一条 last user message 同时含三条通知与完成任务的结果,证明合并为一轮后父模型正常收口。"
  101. }
  102. ]
  103. }