conversation-session-hooks-lifecycle.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-hooks-lifecycle",
  4. "spec": "./test/e2e/conversation-session/hooks/conversation-session-hooks-lifecycle.test.ts",
  5. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-hooks-lifecycle.json"
  8. ],
  9. "fileFixtures": [
  10. {
  11. "path": ".zcode/hooks-full-e2e-recorder.mjs",
  12. "source": "created-by-spec",
  13. "description": "Recorder shared by process and command Hooks across all four scenarios."
  14. },
  15. {
  16. "path": ".zcode/config.json",
  17. "source": "created-by-spec",
  18. "description": "Project Hook configuration installed before each new session snapshot."
  19. }
  20. ],
  21. "requests": [
  22. {
  23. "id": "hooks-full-chain-title",
  24. "kind": "common",
  25. "source": "synthetic",
  26. "timingPolicy": "fast-text",
  27. "syntheticReason": "Title generation is outside the Hooks runtime contract."
  28. },
  29. {
  30. "id": "hooks-full-chain-write",
  31. "kind": "main",
  32. "source": "synthetic",
  33. "timingPolicy": "fast-text",
  34. "syntheticReason": "A deterministic Write proves PreToolUse and PermissionRequest input effects."
  35. },
  36. {
  37. "id": "hooks-full-chain-read",
  38. "kind": "main",
  39. "source": "synthetic",
  40. "timingPolicy": "fast-text",
  41. "syntheticReason": "The missing Read deterministically exercises PostToolUseFailure."
  42. },
  43. {
  44. "id": "hooks-full-chain-final",
  45. "kind": "main",
  46. "source": "synthetic",
  47. "timingPolicy": "fast-text",
  48. "syntheticReason": "The final marker proves failure recovery context reached the model."
  49. },
  50. {
  51. "id": "hooks-early-failures-title",
  52. "kind": "common",
  53. "source": "synthetic",
  54. "timingPolicy": "fast-text",
  55. "syntheticReason": "Title generation is outside the Hooks runtime contract."
  56. },
  57. {
  58. "id": "hooks-early-pre-deny",
  59. "kind": "main",
  60. "source": "synthetic",
  61. "timingPolicy": "fast-text",
  62. "syntheticReason": "A deterministic path selects the PreToolUse deny branch."
  63. },
  64. {
  65. "id": "hooks-early-invalid-update",
  66. "kind": "main",
  67. "source": "synthetic",
  68. "timingPolicy": "fast-text",
  69. "syntheticReason": "A deterministic path selects the invalid updatedInput branch."
  70. },
  71. {
  72. "id": "hooks-early-permission-deny",
  73. "kind": "main",
  74. "source": "synthetic",
  75. "timingPolicy": "fast-text",
  76. "syntheticReason": "A deterministic path selects the PermissionRequest deny branch."
  77. },
  78. {
  79. "id": "hooks-early-final",
  80. "kind": "main",
  81. "source": "synthetic",
  82. "timingPolicy": "fast-text",
  83. "syntheticReason": "The final marker proves all early-return context reached the model."
  84. },
  85. {
  86. "id": "hooks-stop-cap-title",
  87. "kind": "common",
  88. "source": "synthetic",
  89. "timingPolicy": "fast-text",
  90. "syntheticReason": "Title generation is outside the Hooks runtime contract."
  91. },
  92. {
  93. "id": "hooks-stop-step-0",
  94. "kind": "main",
  95. "source": "synthetic",
  96. "timingPolicy": "fast-text",
  97. "syntheticReason": "Four deterministic assistant drafts prove the three-continuation cap."
  98. },
  99. {
  100. "id": "hooks-stop-step-1",
  101. "kind": "main",
  102. "source": "synthetic",
  103. "timingPolicy": "fast-text",
  104. "syntheticReason": "Four deterministic assistant drafts prove the three-continuation cap."
  105. },
  106. {
  107. "id": "hooks-stop-step-2",
  108. "kind": "main",
  109. "source": "synthetic",
  110. "timingPolicy": "fast-text",
  111. "syntheticReason": "Four deterministic assistant drafts prove the three-continuation cap."
  112. },
  113. {
  114. "id": "hooks-stop-step-3",
  115. "kind": "main",
  116. "source": "synthetic",
  117. "timingPolicy": "fast-text",
  118. "syntheticReason": "Four deterministic assistant drafts prove the three-continuation cap."
  119. },
  120. {
  121. "id": "hooks-prompt-block-title",
  122. "kind": "common",
  123. "source": "synthetic",
  124. "timingPolicy": "fast-text",
  125. "syntheticReason": "Title generation is outside the Hooks runtime contract."
  126. },
  127. {
  128. "id": "hooks-prompt-error-title",
  129. "kind": "common",
  130. "source": "synthetic",
  131. "timingPolicy": "fast-text",
  132. "syntheticReason": "Title generation is outside the Hooks runtime contract."
  133. },
  134. {
  135. "id": "hooks-prompt-error-main",
  136. "kind": "main",
  137. "source": "synthetic",
  138. "timingPolicy": "fast-text",
  139. "syntheticReason": "The provider response isolates hook process failure from model transport."
  140. },
  141. {
  142. "id": "hooks-compact-first-title",
  143. "kind": "common",
  144. "source": "synthetic",
  145. "timingPolicy": "fast-text",
  146. "syntheticReason": "Title generation is outside the Hooks runtime contract."
  147. },
  148. {
  149. "id": "hooks-compact-first-follow-up",
  150. "kind": "main",
  151. "source": "synthetic",
  152. "timingPolicy": "fast-text",
  153. "syntheticReason": "Deterministic final text proves the SessionStart summary lands on the next real turn after /compact."
  154. }
  155. ]
  156. }