| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- {
- "version": 1,
- "caseName": "conversation-session-background-subagent-rate-limit",
- "spec": "./test/e2e/conversation-session/background/conversation-session-background-subagent-rate-limit.test.ts",
- "providerFixtures": [
- "./test/e2e/fixtures/upstream/common.json",
- "./test/e2e/fixtures/upstream/conversation-session/conversation-session-background-subagent-rate-limit.json"
- ],
- "fileFixtures": [],
- "requests": [
- {
- "id": "background-subagent-rate-limit-title",
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "标题生成不属于本 case,只需稳定返回以免误匹配业务 fixture。"
- },
- {
- "id": "background-subagent-rate-limit-parent-launch",
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-tool-use",
- "syntheticReason": "稳定创建真实 Agent(run_in_background=true) 以覆盖 terminal notification 投影。"
- },
- {
- "id": "background-subagent-rate-limit-parent-launch-ack",
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "让父会话先回 idle,随后由 failed task notification 唤醒。"
- },
- {
- "id": "background-subagent-rate-limit-child-initial-429",
- "kind": "subagent",
- "source": "synthetic",
- "timingPolicy": "fault-stream",
- "syntheticReason": "首个 429 延迟到父 turn 消费 launch ACK 后返回;BG26 worker 禁用模型 retry,只验证 terminal/UI/snapshot 的原始错误投影。"
- },
- {
- "id": "background-subagent-rate-limit-parent-notification",
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "task-notification",
- "syntheticReason": "证明 failed notification 经 runtime command queue 回到父模型并正常收口。"
- },
- {
- "id": "background-subagent-rate-limit-merged-title",
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "标题生成不属于本 case,只需稳定返回以免误匹配业务 fixture。"
- },
- {
- "id": "background-subagent-rate-limit-merged-parent-launch",
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-tool-use",
- "syntheticReason": "同一 response 启动三个真实 Agent(run_in_background=true),终止顺序由各 child 的延迟决定。"
- },
- {
- "id": "background-subagent-rate-limit-merged-parent-launch-ack",
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "delayed-text",
- "syntheticReason": "九秒延迟让三个 child 都在父 launch turn 结束前终止,三条通知在父会话空闲时由同一次 drain 合并为一轮。"
- },
- {
- "id": "background-subagent-rate-limit-merged-first-child-partial-step",
- "kind": "subagent",
- "source": "synthetic",
- "timingPolicy": "fast-tool-use",
- "syntheticReason": "子代理先写出正文再失败,失败通知的 <result> 才有部分报告;TodoWrite 不需要 shell 和权限,第二次请求按工具调用 id 匹配。"
- },
- {
- "id": "background-subagent-rate-limit-merged-first-child-429",
- "kind": "subagent",
- "source": "synthetic",
- "timingPolicy": "fault-stream",
- "syntheticReason": "最先终止,失败通知排在批次第一条;在部分报告那一步之后失败,延迟缩短到 0.5 秒,保证仍早于 3 秒完成的 child。BG26 worker 禁用模型 retry。"
- },
- {
- "id": "background-subagent-rate-limit-merged-child-completed",
- "kind": "subagent",
- "source": "synthetic",
- "timingPolicy": "delayed-text",
- "syntheticReason": "第二个终止,完成通知排在批次第二条,紧跟第一条失败通知。"
- },
- {
- "id": "background-subagent-rate-limit-merged-last-child-429",
- "kind": "subagent",
- "source": "synthetic",
- "timingPolicy": "fault-stream",
- "syntheticReason": "最后终止,失败通知排在批次第三条,覆盖后面的通知块取得终态。"
- },
- {
- "id": "background-subagent-rate-limit-merged-parent-notification",
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "task-notification",
- "syntheticReason": "同一条 last user message 同时含三条通知与完成任务的结果,证明合并为一轮后父模型正常收口。"
- }
- ]
- }
|