conversation-session-subagent-prompt-assembly.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-subagent-prompt-assembly",
  4. "spec": "./test/e2e/conversation-session/subagents/conversation-session-subagent-prompt-assembly.test.ts",
  5. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-subagent-prompt-assembly.json"
  8. ],
  9. "fileFixtures": [
  10. {
  11. "path": "~/.zcode/agents/e2e-prompt-assembly-reviewer.md",
  12. "source": "created-by-spec",
  13. "description": "覆盖 custom subagent prompt assembly,验证 markdown body 进入 child provider-visible system[1]。"
  14. },
  15. {
  16. "path": "~/.zcode/cli/agents/e2e-prompt-assembly-reviewer.md",
  17. "source": "created-by-spec",
  18. "description": "兼容 CLI legacy agents root,避免路径差异让 custom subagent 解析停在 not found。"
  19. },
  20. {
  21. "path": "~/.zcode/agents/e2e-prompt-assembly-isolated.md",
  22. "source": "created-by-spec",
  23. "description": "覆盖显式 injectAgentsMd=false 的 custom subagent。"
  24. },
  25. {
  26. "path": "~/.zcode/cli/agents/e2e-prompt-assembly-isolated.md",
  27. "source": "created-by-spec",
  28. "description": "兼容 CLI legacy agents root,确保显式关闭继承的 custom profile 可加载。"
  29. },
  30. {
  31. "path": "~/.zcode/AGENTS.md",
  32. "source": "created-by-spec",
  33. "description": "提供唯一 user AGENTS marker,验证 child trajectory 的继承次数和顺序。"
  34. },
  35. {
  36. "path": "AGENTS.md",
  37. "source": "created-by-spec",
  38. "description": "提供唯一 workspace AGENTS marker,验证 child trajectory 的继承次数和顺序。"
  39. }
  40. ],
  41. "requests": [
  42. {
  43. "id": "subagent-prompt-assembly-title",
  44. "kind": "common",
  45. "source": "synthetic",
  46. "timingPolicy": "fast-text",
  47. "syntheticReason": "标题生成不是本 case 的产品语义,只需要稳定返回,防止标题请求误命中业务 fixture。"
  48. },
  49. {
  50. "id": "subagent-prompt-assembly-builtin-parent-tool",
  51. "kind": "main",
  52. "source": "synthetic",
  53. "timingPolicy": "fast-text",
  54. "syntheticReason": "核心验证点是 child provider-visible prompt assembly;父请求只需要稳定触发 Agent tool_use。"
  55. },
  56. {
  57. "id": "subagent-prompt-assembly-builtin-child",
  58. "kind": "main",
  59. "source": "synthetic",
  60. "timingPolicy": "fast-text",
  61. "syntheticReason": "child 请求本身是本 case 的验证证据;响应只需稳定完成并返回子结果 token。"
  62. },
  63. {
  64. "id": "subagent-prompt-assembly-builtin-parent-final",
  65. "kind": "main",
  66. "source": "synthetic",
  67. "timingPolicy": "fast-text",
  68. "syntheticReason": "最终回复用于证明 Agent tool_result 被父会话 continuation 消费并回到 idle。"
  69. },
  70. {
  71. "id": "subagent-prompt-assembly-explore-parent-tool",
  72. "kind": "main",
  73. "source": "synthetic",
  74. "timingPolicy": "fast-text",
  75. "syntheticReason": "核心验证点是 Explore child 省略父级 AGENTS.md;父请求只需要稳定触发 Agent tool_use。"
  76. },
  77. {
  78. "id": "subagent-prompt-assembly-explore-child",
  79. "kind": "main",
  80. "source": "synthetic",
  81. "timingPolicy": "fast-text",
  82. "syntheticReason": "Explore child 请求本身是省略 AGENTS.md 的 trajectory 证据;响应只需稳定完成。"
  83. },
  84. {
  85. "id": "subagent-prompt-assembly-explore-parent-final",
  86. "kind": "main",
  87. "source": "synthetic",
  88. "timingPolicy": "fast-text",
  89. "syntheticReason": "Explore 最终回复用于证明 Agent tool_result 被父会话 continuation 消费并回到 idle。"
  90. },
  91. {
  92. "id": "subagent-prompt-assembly-custom-parent-tool",
  93. "kind": "main",
  94. "source": "synthetic",
  95. "timingPolicy": "fast-text",
  96. "syntheticReason": "核心验证点是 custom child provider-visible prompt assembly;父请求只需要稳定触发 Agent tool_use。"
  97. },
  98. {
  99. "id": "subagent-prompt-assembly-custom-child",
  100. "kind": "main",
  101. "source": "synthetic",
  102. "timingPolicy": "fast-text",
  103. "syntheticReason": "custom child 请求本身是本 case 的验证证据;响应只需稳定完成并返回子结果 token。"
  104. },
  105. {
  106. "id": "subagent-prompt-assembly-custom-parent-final",
  107. "kind": "main",
  108. "source": "synthetic",
  109. "timingPolicy": "fast-text",
  110. "syntheticReason": "custom 最终回复用于证明 Agent tool_result 被父会话 continuation 消费并回到 idle。"
  111. },
  112. {
  113. "id": "subagent-prompt-assembly-isolated-parent-tool",
  114. "kind": "main",
  115. "source": "synthetic",
  116. "timingPolicy": "fast-text",
  117. "syntheticReason": "核心验证点是 custom false child 省略父级 AGENTS.md;父请求只需要稳定触发 Agent tool_use。"
  118. },
  119. {
  120. "id": "subagent-prompt-assembly-isolated-child",
  121. "kind": "main",
  122. "source": "synthetic",
  123. "timingPolicy": "fast-text",
  124. "syntheticReason": "custom false child 请求本身是省略 AGENTS.md 的 trajectory 证据;响应只需稳定完成。"
  125. },
  126. {
  127. "id": "subagent-prompt-assembly-isolated-parent-final",
  128. "kind": "main",
  129. "source": "synthetic",
  130. "timingPolicy": "fast-text",
  131. "syntheticReason": "custom false 最终回复用于证明 Agent tool_result 被父会话 continuation 消费并回到 idle。"
  132. }
  133. ]
  134. }