@telora/daemon 0.22.104 → 0.22.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (482) hide show
  1. package/build-info.json +4 -3
  2. package/dist/completion/commit-verdict-release.d.ts +49 -0
  3. package/dist/completion/commit-verdict-release.d.ts.map +1 -0
  4. package/dist/completion/commit-verdict-release.js +240 -0
  5. package/dist/completion/commit-verdict-release.js.map +1 -0
  6. package/dist/completion/completion-phase-registry.d.ts +10 -4
  7. package/dist/completion/completion-phase-registry.d.ts.map +1 -1
  8. package/dist/completion/completion-phase-registry.js +19 -7
  9. package/dist/completion/completion-phase-registry.js.map +1 -1
  10. package/dist/completion/detector.d.ts.map +1 -1
  11. package/dist/completion/detector.js +1 -0
  12. package/dist/completion/detector.js.map +1 -1
  13. package/dist/completion/event-entry-phases.d.ts +6 -3
  14. package/dist/completion/event-entry-phases.d.ts.map +1 -1
  15. package/dist/completion/event-entry-phases.js +135 -76
  16. package/dist/completion/event-entry-phases.js.map +1 -1
  17. package/dist/completion/event-phases.d.ts +24 -3
  18. package/dist/completion/event-phases.d.ts.map +1 -1
  19. package/dist/completion/event-phases.js +9 -9
  20. package/dist/completion/event-phases.js.map +1 -1
  21. package/dist/completion/event.d.ts +8 -0
  22. package/dist/completion/event.d.ts.map +1 -1
  23. package/dist/completion/event.js +47 -21
  24. package/dist/completion/event.js.map +1 -1
  25. package/dist/completion/exit-classification.d.ts.map +1 -1
  26. package/dist/completion/exit-classification.js +1 -0
  27. package/dist/completion/exit-classification.js.map +1 -1
  28. package/dist/completion/merge-phase.d.ts +21 -9
  29. package/dist/completion/merge-phase.d.ts.map +1 -1
  30. package/dist/completion/merge-phase.js +35 -10
  31. package/dist/completion/merge-phase.js.map +1 -1
  32. package/dist/completion/review-auto-approval-record.d.ts +19 -0
  33. package/dist/completion/review-auto-approval-record.d.ts.map +1 -0
  34. package/dist/completion/review-auto-approval-record.js +102 -0
  35. package/dist/completion/review-auto-approval-record.js.map +1 -0
  36. package/dist/completion/review-cycle-cap.d.ts +62 -0
  37. package/dist/completion/review-cycle-cap.d.ts.map +1 -0
  38. package/dist/completion/review-cycle-cap.js +180 -0
  39. package/dist/completion/review-cycle-cap.js.map +1 -0
  40. package/dist/completion/review-exit-deps.d.ts +17 -2
  41. package/dist/completion/review-exit-deps.d.ts.map +1 -1
  42. package/dist/completion/review-exit-deps.js +19 -2
  43. package/dist/completion/review-exit-deps.js.map +1 -1
  44. package/dist/completion/review-exit-escalations.d.ts +45 -23
  45. package/dist/completion/review-exit-escalations.d.ts.map +1 -1
  46. package/dist/completion/review-exit-escalations.js +15 -74
  47. package/dist/completion/review-exit-escalations.js.map +1 -1
  48. package/dist/completion/review-exit-evidence.d.ts +9 -0
  49. package/dist/completion/review-exit-evidence.d.ts.map +1 -1
  50. package/dist/completion/review-exit-evidence.js +4 -1
  51. package/dist/completion/review-exit-evidence.js.map +1 -1
  52. package/dist/completion/review-exit-foreign-findings.d.ts +151 -0
  53. package/dist/completion/review-exit-foreign-findings.d.ts.map +1 -0
  54. package/dist/completion/review-exit-foreign-findings.js +474 -0
  55. package/dist/completion/review-exit-foreign-findings.js.map +1 -0
  56. package/dist/completion/review-exit-phase.d.ts.map +1 -1
  57. package/dist/completion/review-exit-phase.js +71 -64
  58. package/dist/completion/review-exit-phase.js.map +1 -1
  59. package/dist/completion/review-exit-progress.d.ts +20 -0
  60. package/dist/completion/review-exit-progress.d.ts.map +1 -1
  61. package/dist/completion/review-exit-progress.js +28 -19
  62. package/dist/completion/review-exit-progress.js.map +1 -1
  63. package/dist/completion/review-exit-rehoming.d.ts +5 -0
  64. package/dist/completion/review-exit-rehoming.d.ts.map +1 -1
  65. package/dist/completion/review-exit-rehoming.js.map +1 -1
  66. package/dist/completion/review-exit-verdict-gate.d.ts +202 -0
  67. package/dist/completion/review-exit-verdict-gate.d.ts.map +1 -0
  68. package/dist/completion/review-exit-verdict-gate.js +228 -0
  69. package/dist/completion/review-exit-verdict-gate.js.map +1 -0
  70. package/dist/completion/review-next-step.d.ts +62 -0
  71. package/dist/completion/review-next-step.d.ts.map +1 -0
  72. package/dist/completion/review-next-step.js +63 -0
  73. package/dist/completion/review-next-step.js.map +1 -0
  74. package/dist/completion/session-hold-sweep-deps.d.ts +17 -0
  75. package/dist/completion/session-hold-sweep-deps.d.ts.map +1 -0
  76. package/dist/completion/session-hold-sweep-deps.js +89 -0
  77. package/dist/completion/session-hold-sweep-deps.js.map +1 -0
  78. package/dist/completion/session-hold.d.ts +180 -0
  79. package/dist/completion/session-hold.d.ts.map +1 -0
  80. package/dist/completion/session-hold.js +238 -0
  81. package/dist/completion/session-hold.js.map +1 -0
  82. package/dist/completion/state-cascade.d.ts +19 -0
  83. package/dist/completion/state-cascade.d.ts.map +1 -1
  84. package/dist/completion/state-cascade.js +85 -31
  85. package/dist/completion/state-cascade.js.map +1 -1
  86. package/dist/completion/team-lifecycle.d.ts +35 -2
  87. package/dist/completion/team-lifecycle.d.ts.map +1 -1
  88. package/dist/completion/team-lifecycle.js +165 -94
  89. package/dist/completion/team-lifecycle.js.map +1 -1
  90. package/dist/completion/team-phase.d.ts +27 -15
  91. package/dist/completion/team-phase.d.ts.map +1 -1
  92. package/dist/completion/team-phase.js +34 -15
  93. package/dist/completion/team-phase.js.map +1 -1
  94. package/dist/delivery/commit-verdict-hold.d.ts +55 -0
  95. package/dist/delivery/commit-verdict-hold.d.ts.map +1 -0
  96. package/dist/delivery/commit-verdict-hold.js +118 -0
  97. package/dist/delivery/commit-verdict-hold.js.map +1 -0
  98. package/dist/directive/directive-dispatch.d.ts.map +1 -1
  99. package/dist/directive/directive-dispatch.js +10 -3
  100. package/dist/directive/directive-dispatch.js.map +1 -1
  101. package/dist/directive/directive-executor.d.ts.map +1 -1
  102. package/dist/directive/directive-executor.js +1 -0
  103. package/dist/directive/directive-executor.js.map +1 -1
  104. package/dist/directive/directive-queue.d.ts.map +1 -1
  105. package/dist/directive/directive-queue.js +6 -1
  106. package/dist/directive/directive-queue.js.map +1 -1
  107. package/dist/directive/phase-sync.d.ts +29 -2
  108. package/dist/directive/phase-sync.d.ts.map +1 -1
  109. package/dist/directive/phase-sync.js +30 -6
  110. package/dist/directive/phase-sync.js.map +1 -1
  111. package/dist/drift/artifact-ref-shape.d.ts +34 -0
  112. package/dist/drift/artifact-ref-shape.d.ts.map +1 -0
  113. package/dist/drift/artifact-ref-shape.js +94 -0
  114. package/dist/drift/artifact-ref-shape.js.map +1 -0
  115. package/dist/drift/drift-eval-loop.d.ts +7 -0
  116. package/dist/drift/drift-eval-loop.d.ts.map +1 -1
  117. package/dist/drift/drift-eval-loop.js +34 -5
  118. package/dist/drift/drift-eval-loop.js.map +1 -1
  119. package/dist/drift/drift-evaluator.d.ts.map +1 -1
  120. package/dist/drift/drift-evaluator.js +8 -3
  121. package/dist/drift/drift-evaluator.js.map +1 -1
  122. package/dist/focus/awaiting-slot.d.ts +34 -0
  123. package/dist/focus/awaiting-slot.d.ts.map +1 -0
  124. package/dist/focus/awaiting-slot.js +26 -0
  125. package/dist/focus/awaiting-slot.js.map +1 -0
  126. package/dist/focus/focus-lifecycle.js +2 -2
  127. package/dist/focus/focus-lifecycle.js.map +1 -1
  128. package/dist/focus/focus-phase.d.ts.map +1 -1
  129. package/dist/focus/focus-phase.js +3 -1
  130. package/dist/focus/focus-phase.js.map +1 -1
  131. package/dist/focus/focus-spawn-decision.d.ts +62 -0
  132. package/dist/focus/focus-spawn-decision.d.ts.map +1 -0
  133. package/dist/focus/focus-spawn-decision.js +41 -0
  134. package/dist/focus/focus-spawn-decision.js.map +1 -0
  135. package/dist/focus/focus-team-state.d.ts.map +1 -1
  136. package/dist/focus/focus-team-state.js +1 -13
  137. package/dist/focus/focus-team-state.js.map +1 -1
  138. package/dist/focus/listener-spawn.d.ts +16 -55
  139. package/dist/focus/listener-spawn.d.ts.map +1 -1
  140. package/dist/focus/listener-spawn.js +102 -64
  141. package/dist/focus/listener-spawn.js.map +1 -1
  142. package/dist/focus/listener-state.d.ts.map +1 -1
  143. package/dist/focus/listener-state.js +4 -1
  144. package/dist/focus/listener-state.js.map +1 -1
  145. package/dist/focus/listener.d.ts +41 -2
  146. package/dist/focus/listener.d.ts.map +1 -1
  147. package/dist/focus/listener.js +135 -83
  148. package/dist/focus/listener.js.map +1 -1
  149. package/dist/focus/pending-spawn-pass-deps.d.ts +69 -0
  150. package/dist/focus/pending-spawn-pass-deps.d.ts.map +1 -0
  151. package/dist/focus/pending-spawn-pass-deps.js +34 -0
  152. package/dist/focus/pending-spawn-pass-deps.js.map +1 -0
  153. package/dist/focus/pending-spawn-review-next-step.d.ts +83 -0
  154. package/dist/focus/pending-spawn-review-next-step.d.ts.map +1 -0
  155. package/dist/focus/pending-spawn-review-next-step.js +325 -0
  156. package/dist/focus/pending-spawn-review-next-step.js.map +1 -0
  157. package/dist/focus/review-cycle-cap-hold.d.ts +132 -0
  158. package/dist/focus/review-cycle-cap-hold.d.ts.map +1 -0
  159. package/dist/focus/review-cycle-cap-hold.js +178 -0
  160. package/dist/focus/review-cycle-cap-hold.js.map +1 -0
  161. package/dist/focus/team-actionable-work.js +2 -2
  162. package/dist/focus/verify-open-issues.d.ts +22 -0
  163. package/dist/focus/verify-open-issues.d.ts.map +1 -1
  164. package/dist/focus/verify-open-issues.js +118 -57
  165. package/dist/focus/verify-open-issues.js.map +1 -1
  166. package/dist/focus/verify-routing-passes.d.ts +32 -0
  167. package/dist/focus/verify-routing-passes.d.ts.map +1 -0
  168. package/dist/focus/verify-routing-passes.js +18 -0
  169. package/dist/focus/verify-routing-passes.js.map +1 -0
  170. package/dist/git/index.d.ts.map +1 -1
  171. package/dist/git/index.js +9 -5
  172. package/dist/git/index.js.map +1 -1
  173. package/dist/merge/focus-merge.d.ts +16 -2
  174. package/dist/merge/focus-merge.d.ts.map +1 -1
  175. package/dist/merge/focus-merge.js +53 -30
  176. package/dist/merge/focus-merge.js.map +1 -1
  177. package/dist/merge/merge-back-loop.d.ts +5 -0
  178. package/dist/merge/merge-back-loop.d.ts.map +1 -1
  179. package/dist/merge/merge-back-loop.js +17 -8
  180. package/dist/merge/merge-back-loop.js.map +1 -1
  181. package/dist/merge/merge-gate-coverage.d.ts +94 -0
  182. package/dist/merge/merge-gate-coverage.d.ts.map +1 -0
  183. package/dist/merge/merge-gate-coverage.js +217 -0
  184. package/dist/merge/merge-gate-coverage.js.map +1 -0
  185. package/dist/prompt/focus-prompt-builder.d.ts.map +1 -1
  186. package/dist/prompt/focus-prompt-builder.js +6 -0
  187. package/dist/prompt/focus-prompt-builder.js.map +1 -1
  188. package/dist/prompt/prompt-listing.d.ts.map +1 -1
  189. package/dist/prompt/prompt-listing.js +8 -0
  190. package/dist/prompt/prompt-listing.js.map +1 -1
  191. package/dist/prompt/team-prompt-base.d.ts.map +1 -1
  192. package/dist/prompt/team-prompt-base.js +5 -1
  193. package/dist/prompt/team-prompt-base.js.map +1 -1
  194. package/dist/prompt-sections/execution-sections.d.ts.map +1 -1
  195. package/dist/prompt-sections/execution-sections.js +14 -39
  196. package/dist/prompt-sections/execution-sections.js.map +1 -1
  197. package/dist/prompt-sections/gate-ownership.d.ts +36 -0
  198. package/dist/prompt-sections/gate-ownership.d.ts.map +1 -0
  199. package/dist/prompt-sections/gate-ownership.js +68 -0
  200. package/dist/prompt-sections/gate-ownership.js.map +1 -0
  201. package/dist/prompt-sections/gate-verdict-section.d.ts +58 -0
  202. package/dist/prompt-sections/gate-verdict-section.d.ts.map +1 -0
  203. package/dist/prompt-sections/gate-verdict-section.js +88 -0
  204. package/dist/prompt-sections/gate-verdict-section.js.map +1 -0
  205. package/dist/prompt-sections/persona-sections.d.ts +10 -0
  206. package/dist/prompt-sections/persona-sections.d.ts.map +1 -1
  207. package/dist/prompt-sections/persona-sections.js +35 -11
  208. package/dist/prompt-sections/persona-sections.js.map +1 -1
  209. package/dist/prompt-sections/shared.js +1 -1
  210. package/dist/prompt-sections/shared.js.map +1 -1
  211. package/dist/queries/agent-resolvable-promotion.d.ts +6 -3
  212. package/dist/queries/agent-resolvable-promotion.d.ts.map +1 -1
  213. package/dist/queries/agent-resolvable-promotion.js +20 -9
  214. package/dist/queries/agent-resolvable-promotion.js.map +1 -1
  215. package/dist/queries/deliveries.d.ts +46 -4
  216. package/dist/queries/deliveries.d.ts.map +1 -1
  217. package/dist/queries/deliveries.js +69 -16
  218. package/dist/queries/deliveries.js.map +1 -1
  219. package/dist/queries/delivery-gate-state.d.ts +151 -1
  220. package/dist/queries/delivery-gate-state.d.ts.map +1 -1
  221. package/dist/queries/delivery-gate-state.js +95 -14
  222. package/dist/queries/delivery-gate-state.js.map +1 -1
  223. package/dist/queries/delivery-write-discipline.d.ts +65 -0
  224. package/dist/queries/delivery-write-discipline.d.ts.map +1 -0
  225. package/dist/queries/delivery-write-discipline.js +101 -0
  226. package/dist/queries/delivery-write-discipline.js.map +1 -0
  227. package/dist/queries/escalation-consumption.d.ts +11 -0
  228. package/dist/queries/escalation-consumption.d.ts.map +1 -1
  229. package/dist/queries/escalation-consumption.js +22 -0
  230. package/dist/queries/escalation-consumption.js.map +1 -1
  231. package/dist/queries/escalation-spool.d.ts +75 -0
  232. package/dist/queries/escalation-spool.d.ts.map +1 -0
  233. package/dist/queries/escalation-spool.js +232 -0
  234. package/dist/queries/escalation-spool.js.map +1 -0
  235. package/dist/queries/escalation-suppression.d.ts.map +1 -1
  236. package/dist/queries/escalation-suppression.js +2 -0
  237. package/dist/queries/escalation-suppression.js.map +1 -1
  238. package/dist/queries/escalations.js +1 -1
  239. package/dist/queries/filing-observation.d.ts.map +1 -1
  240. package/dist/queries/filing-observation.js +2 -0
  241. package/dist/queries/filing-observation.js.map +1 -1
  242. package/dist/queries/focus-discovery.d.ts +4 -4
  243. package/dist/queries/focus-discovery.d.ts.map +1 -1
  244. package/dist/queries/focus-discovery.js +1 -0
  245. package/dist/queries/focus-discovery.js.map +1 -1
  246. package/dist/queries/focus-review-approval.d.ts +84 -0
  247. package/dist/queries/focus-review-approval.d.ts.map +1 -0
  248. package/dist/queries/focus-review-approval.js +158 -0
  249. package/dist/queries/focus-review-approval.js.map +1 -0
  250. package/dist/queries/focuses.d.ts +6 -5
  251. package/dist/queries/focuses.d.ts.map +1 -1
  252. package/dist/queries/focuses.js +9 -5
  253. package/dist/queries/focuses.js.map +1 -1
  254. package/dist/queries/incident-correlation.d.ts +5 -4
  255. package/dist/queries/incident-correlation.d.ts.map +1 -1
  256. package/dist/queries/incident-correlation.js +11 -5
  257. package/dist/queries/incident-correlation.js.map +1 -1
  258. package/dist/queries/issues.d.ts.map +1 -1
  259. package/dist/queries/issues.js +2 -1
  260. package/dist/queries/issues.js.map +1 -1
  261. package/dist/queries/loop-refusal-observation.d.ts +64 -0
  262. package/dist/queries/loop-refusal-observation.d.ts.map +1 -0
  263. package/dist/queries/loop-refusal-observation.js +137 -0
  264. package/dist/queries/loop-refusal-observation.js.map +1 -0
  265. package/dist/queries/schemas.d.ts +9 -0
  266. package/dist/queries/schemas.d.ts.map +1 -1
  267. package/dist/queries/schemas.js +11 -3
  268. package/dist/queries/schemas.js.map +1 -1
  269. package/dist/queries/shared.js +1 -1
  270. package/dist/queries/verification.d.ts.map +1 -1
  271. package/dist/queries/verification.js +1 -15
  272. package/dist/queries/verification.js.map +1 -1
  273. package/dist/queries/wire-contract.generated.d.ts +3 -0
  274. package/dist/queries/wire-contract.generated.d.ts.map +1 -1
  275. package/dist/queries/wire-contract.generated.js +3 -0
  276. package/dist/queries/wire-contract.generated.js.map +1 -1
  277. package/dist/resolvers/assembly-engine.d.ts.map +1 -1
  278. package/dist/resolvers/assembly-engine.js +3 -1
  279. package/dist/resolvers/assembly-engine.js.map +1 -1
  280. package/dist/resolvers/git-diff-against-base.d.ts +5 -2
  281. package/dist/resolvers/git-diff-against-base.d.ts.map +1 -1
  282. package/dist/resolvers/git-diff-against-base.js +121 -39
  283. package/dist/resolvers/git-diff-against-base.js.map +1 -1
  284. package/dist/resolvers/shared/git-diff.d.ts +2 -0
  285. package/dist/resolvers/shared/git-diff.d.ts.map +1 -1
  286. package/dist/resolvers/shared/git-diff.js +5 -1
  287. package/dist/resolvers/shared/git-diff.js.map +1 -1
  288. package/dist/resolvers/shared/review-window-commits.d.ts +96 -0
  289. package/dist/resolvers/shared/review-window-commits.d.ts.map +1 -0
  290. package/dist/resolvers/shared/review-window-commits.js +262 -0
  291. package/dist/resolvers/shared/review-window-commits.js.map +1 -0
  292. package/dist/session/session-lineage.d.ts.map +1 -1
  293. package/dist/session/session-lineage.js +4 -1
  294. package/dist/session/session-lineage.js.map +1 -1
  295. package/dist/shell/fail-stop.d.ts +18 -0
  296. package/dist/shell/fail-stop.d.ts.map +1 -0
  297. package/dist/shell/fail-stop.js +53 -0
  298. package/dist/shell/fail-stop.js.map +1 -0
  299. package/dist/shell/graceful-shutdown.d.ts +48 -0
  300. package/dist/shell/graceful-shutdown.d.ts.map +1 -0
  301. package/dist/shell/graceful-shutdown.js +152 -0
  302. package/dist/shell/graceful-shutdown.js.map +1 -0
  303. package/dist/shell/heartbeat.d.ts.map +1 -1
  304. package/dist/shell/heartbeat.js +5 -4
  305. package/dist/shell/heartbeat.js.map +1 -1
  306. package/dist/shell/log.d.ts.map +1 -1
  307. package/dist/shell/log.js +4 -1
  308. package/dist/shell/log.js.map +1 -1
  309. package/dist/shell/stop-request.d.ts.map +1 -1
  310. package/dist/shell/stop-request.js +2 -1
  311. package/dist/shell/stop-request.js.map +1 -1
  312. package/dist/shell/unified-shell.d.ts.map +1 -1
  313. package/dist/shell/unified-shell.js +41 -114
  314. package/dist/shell/unified-shell.js.map +1 -1
  315. package/dist/spawn/lifecycle.d.ts +12 -0
  316. package/dist/spawn/lifecycle.d.ts.map +1 -1
  317. package/dist/spawn/lifecycle.js +25 -21
  318. package/dist/spawn/lifecycle.js.map +1 -1
  319. package/dist/spawn/prompt-assembly.d.ts +19 -1
  320. package/dist/spawn/prompt-assembly.d.ts.map +1 -1
  321. package/dist/spawn/prompt-assembly.js +70 -21
  322. package/dist/spawn/prompt-assembly.js.map +1 -1
  323. package/dist/spawn/review-hold-park.d.ts.map +1 -1
  324. package/dist/spawn/review-hold-park.js +18 -8
  325. package/dist/spawn/review-hold-park.js.map +1 -1
  326. package/dist/spawn/spawn-cooldown.d.ts.map +1 -1
  327. package/dist/spawn/spawn-cooldown.js +4 -0
  328. package/dist/spawn/spawn-cooldown.js.map +1 -1
  329. package/dist/spawn/spawn-decision.d.ts.map +1 -1
  330. package/dist/spawn/spawn-decision.js +2 -1
  331. package/dist/spawn/spawn-decision.js.map +1 -1
  332. package/dist/spawn/worktree-session.d.ts +6 -0
  333. package/dist/spawn/worktree-session.d.ts.map +1 -1
  334. package/dist/spawn/worktree-session.js +15 -2
  335. package/dist/spawn/worktree-session.js.map +1 -1
  336. package/dist/testing/fixtures/index.d.ts +10 -1
  337. package/dist/testing/fixtures/index.d.ts.map +1 -1
  338. package/dist/testing/fixtures/index.js +59 -1
  339. package/dist/testing/fixtures/index.js.map +1 -1
  340. package/dist/testing/fixtures/pending-spawn-world.d.ts +34 -0
  341. package/dist/testing/fixtures/pending-spawn-world.d.ts.map +1 -0
  342. package/dist/testing/fixtures/pending-spawn-world.js +92 -0
  343. package/dist/testing/fixtures/pending-spawn-world.js.map +1 -0
  344. package/dist/types/index.js +1 -1
  345. package/dist/verify/commit-gate-configured.d.ts +86 -0
  346. package/dist/verify/commit-gate-configured.d.ts.map +1 -0
  347. package/dist/verify/commit-gate-configured.js +234 -0
  348. package/dist/verify/commit-gate-configured.js.map +1 -0
  349. package/dist/verify/commit-verdict-record.d.ts +98 -0
  350. package/dist/verify/commit-verdict-record.d.ts.map +1 -0
  351. package/dist/verify/commit-verdict-record.js +297 -0
  352. package/dist/verify/commit-verdict-record.js.map +1 -0
  353. package/dist/verify/explicit-gate-outcome.d.ts +161 -0
  354. package/dist/verify/explicit-gate-outcome.d.ts.map +1 -0
  355. package/dist/verify/explicit-gate-outcome.js +215 -0
  356. package/dist/verify/explicit-gate-outcome.js.map +1 -0
  357. package/dist/verify/explicit-rearm.d.ts +27 -0
  358. package/dist/verify/explicit-rearm.d.ts.map +1 -0
  359. package/dist/verify/explicit-rearm.js +161 -0
  360. package/dist/verify/explicit-rearm.js.map +1 -0
  361. package/dist/verify/explicit-run-ledger.d.ts +26 -0
  362. package/dist/verify/explicit-run-ledger.d.ts.map +1 -0
  363. package/dist/verify/explicit-run-ledger.js +93 -0
  364. package/dist/verify/explicit-run-ledger.js.map +1 -0
  365. package/dist/verify/failure-signature.d.ts.map +1 -1
  366. package/dist/verify/failure-signature.js +5 -1
  367. package/dist/verify/failure-signature.js.map +1 -1
  368. package/dist/verify/gate-run-registry.d.ts +105 -0
  369. package/dist/verify/gate-run-registry.d.ts.map +1 -0
  370. package/dist/verify/gate-run-registry.js +111 -0
  371. package/dist/verify/gate-run-registry.js.map +1 -0
  372. package/dist/verify/gate-verdict-source.d.ts +68 -0
  373. package/dist/verify/gate-verdict-source.d.ts.map +1 -0
  374. package/dist/verify/gate-verdict-source.js +143 -0
  375. package/dist/verify/gate-verdict-source.js.map +1 -0
  376. package/dist/verify/judged-commit-gate.d.ts +11 -0
  377. package/dist/verify/judged-commit-gate.d.ts.map +1 -0
  378. package/dist/verify/judged-commit-gate.js +48 -0
  379. package/dist/verify/judged-commit-gate.js.map +1 -0
  380. package/dist/verify/rework-judgment.d.ts +58 -0
  381. package/dist/verify/rework-judgment.d.ts.map +1 -0
  382. package/dist/verify/rework-judgment.js +54 -0
  383. package/dist/verify/rework-judgment.js.map +1 -0
  384. package/dist/verify/verification-attribution.d.ts +105 -0
  385. package/dist/verify/verification-attribution.d.ts.map +1 -0
  386. package/dist/verify/verification-attribution.js +322 -0
  387. package/dist/verify/verification-attribution.js.map +1 -0
  388. package/dist/verify/verification-baseline-run.d.ts +123 -0
  389. package/dist/verify/verification-baseline-run.d.ts.map +1 -0
  390. package/dist/verify/verification-baseline-run.js +386 -0
  391. package/dist/verify/verification-baseline-run.js.map +1 -0
  392. package/dist/verify/verification-baseline.d.ts +79 -33
  393. package/dist/verify/verification-baseline.d.ts.map +1 -1
  394. package/dist/verify/verification-baseline.js +99 -106
  395. package/dist/verify/verification-baseline.js.map +1 -1
  396. package/dist/verify/verification-checkout.d.ts +13 -0
  397. package/dist/verify/verification-checkout.d.ts.map +1 -1
  398. package/dist/verify/verification-checkout.js +39 -2
  399. package/dist/verify/verification-checkout.js.map +1 -1
  400. package/dist/verify/verification-commit-sharing.d.ts +84 -0
  401. package/dist/verify/verification-commit-sharing.d.ts.map +1 -0
  402. package/dist/verify/verification-commit-sharing.js +416 -0
  403. package/dist/verify/verification-commit-sharing.js.map +1 -0
  404. package/dist/verify/verification-config.d.ts.map +1 -1
  405. package/dist/verify/verification-config.js +12 -2
  406. package/dist/verify/verification-config.js.map +1 -1
  407. package/dist/verify/verification-default-on.d.ts +27 -11
  408. package/dist/verify/verification-default-on.d.ts.map +1 -1
  409. package/dist/verify/verification-default-on.js +159 -29
  410. package/dist/verify/verification-default-on.js.map +1 -1
  411. package/dist/verify/verification-deps-default.d.ts.map +1 -1
  412. package/dist/verify/verification-deps-default.js +49 -42
  413. package/dist/verify/verification-deps-default.js.map +1 -1
  414. package/dist/verify/verification-deps.d.ts +69 -4
  415. package/dist/verify/verification-deps.d.ts.map +1 -1
  416. package/dist/verify/verification-deterministic.d.ts +15 -2
  417. package/dist/verify/verification-deterministic.d.ts.map +1 -1
  418. package/dist/verify/verification-deterministic.js +12 -3
  419. package/dist/verify/verification-deterministic.js.map +1 -1
  420. package/dist/verify/verification-diagnostics.d.ts +16 -0
  421. package/dist/verify/verification-diagnostics.d.ts.map +1 -0
  422. package/dist/verify/verification-diagnostics.js +219 -0
  423. package/dist/verify/verification-diagnostics.js.map +1 -0
  424. package/dist/verify/verification-engine.d.ts +12 -8
  425. package/dist/verify/verification-engine.d.ts.map +1 -1
  426. package/dist/verify/verification-engine.js +110 -92
  427. package/dist/verify/verification-engine.js.map +1 -1
  428. package/dist/verify/verification-evidence-unavailable-feedback.d.ts +2 -1
  429. package/dist/verify/verification-evidence-unavailable-feedback.d.ts.map +1 -1
  430. package/dist/verify/verification-evidence-unavailable-feedback.js +14 -4
  431. package/dist/verify/verification-evidence-unavailable-feedback.js.map +1 -1
  432. package/dist/verify/verification-failure-parser.d.ts +37 -3
  433. package/dist/verify/verification-failure-parser.d.ts.map +1 -1
  434. package/dist/verify/verification-failure-parser.js +66 -3
  435. package/dist/verify/verification-failure-parser.js.map +1 -1
  436. package/dist/verify/verification-feedback.d.ts +21 -34
  437. package/dist/verify/verification-feedback.d.ts.map +1 -1
  438. package/dist/verify/verification-feedback.js +37 -88
  439. package/dist/verify/verification-feedback.js.map +1 -1
  440. package/dist/verify/verification-gate-stages.d.ts +110 -0
  441. package/dist/verify/verification-gate-stages.d.ts.map +1 -0
  442. package/dist/verify/verification-gate-stages.js +179 -0
  443. package/dist/verify/verification-gate-stages.js.map +1 -0
  444. package/dist/verify/verification-history-reset.d.ts +61 -0
  445. package/dist/verify/verification-history-reset.d.ts.map +1 -0
  446. package/dist/verify/verification-history-reset.js +90 -0
  447. package/dist/verify/verification-history-reset.js.map +1 -0
  448. package/dist/verify/verification-manifest.d.ts.map +1 -1
  449. package/dist/verify/verification-manifest.js +2 -1
  450. package/dist/verify/verification-manifest.js.map +1 -1
  451. package/dist/verify/verification-rework-messages.d.ts +19 -0
  452. package/dist/verify/verification-rework-messages.d.ts.map +1 -0
  453. package/dist/verify/verification-rework-messages.js +52 -0
  454. package/dist/verify/verification-rework-messages.js.map +1 -0
  455. package/dist/worktree/install-inputs.d.ts +89 -0
  456. package/dist/worktree/install-inputs.d.ts.map +1 -0
  457. package/dist/worktree/install-inputs.js +625 -0
  458. package/dist/worktree/install-inputs.js.map +1 -0
  459. package/dist/worktree/install-script-effects.d.ts +30 -0
  460. package/dist/worktree/install-script-effects.d.ts.map +1 -0
  461. package/dist/worktree/install-script-effects.js +524 -0
  462. package/dist/worktree/install-script-effects.js.map +1 -0
  463. package/dist/worktree/install-script-tokens.d.ts +57 -0
  464. package/dist/worktree/install-script-tokens.d.ts.map +1 -0
  465. package/dist/worktree/install-script-tokens.js +299 -0
  466. package/dist/worktree/install-script-tokens.js.map +1 -0
  467. package/dist/worktree/provision.d.ts +27 -4
  468. package/dist/worktree/provision.d.ts.map +1 -1
  469. package/dist/worktree/provision.js +46 -7
  470. package/dist/worktree/provision.js.map +1 -1
  471. package/dist/worktree/safety.d.ts +11 -0
  472. package/dist/worktree/safety.d.ts.map +1 -1
  473. package/dist/worktree/safety.js +20 -3
  474. package/dist/worktree/safety.js.map +1 -1
  475. package/dist/worktree/verify-interlock.d.ts.map +1 -1
  476. package/dist/worktree/verify-interlock.js +3 -1
  477. package/dist/worktree/verify-interlock.js.map +1 -1
  478. package/dist/worktree/worktree-package-provisioning.d.ts +75 -0
  479. package/dist/worktree/worktree-package-provisioning.d.ts.map +1 -0
  480. package/dist/worktree/worktree-package-provisioning.js +362 -0
  481. package/dist/worktree/worktree-package-provisioning.js.map +1 -0
  482. package/package.json +1 -1
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Verify PASS: record the outcome and reset the delivery's verification history.
3
+ *
4
+ * The failure-signature run and the shortfall repeat count CONSECUTIVE
5
+ * rejections, and a pass breaks the streak. So a delivery that passes and is
6
+ * later routed back must start fresh, not extend a pre-pass run. The judged
7
+ * commit (VerificationHistory.judgedCommit) goes with them: a pass supersedes a
8
+ * re-work's judgment of an older commit.
9
+ *
10
+ * The one exception is a judged commit that names the very commit the pass
11
+ * judged. The pass's per-commit record is written BEFORE its outcome is recorded
12
+ * (verify/verification-commit-sharing.ts judgeDelivery writes the record, then
13
+ * the engine runs the pass path, then recordOutcome), and in between a review
14
+ * exit can read that recorded verdict and route the delivery verify ->
15
+ * verify_failed for review-filed work, stamping that commit
16
+ * (completion/review-exit-verdict-gate.ts reviewReworkGateState). A pass never
17
+ * supersedes a judgment of its own commit, so that stamp survives and the
18
+ * resumed coding team is still shown the verdict it was judged on.
19
+ *
20
+ * The explicit-method verdict (VerificationHistory.explicitOutcome) is not the
21
+ * reset's: only the explicit-outcome writers change it (verify/explicit-gate-
22
+ * outcome.ts), and a selection removes it before its run starts. The reset reads
23
+ * and writes in the delivery's serialized write turn, so the row's record is kept
24
+ * as the row holds it -- a verdict recorded before the reset's turn is never
25
+ * dropped by a reset that read the row earlier.
26
+ *
27
+ * Split out of verification-feedback.ts (daemon 800-line limit), which
28
+ * re-exports resetVerificationHistoryOnPass for existing importers.
29
+ *
30
+ * @module verification-history-reset
31
+ */
32
+ import { type DeliveryGateRowIo } from '../queries/deliveries.js';
33
+ import { recordDeliveryVerificationOutcome, type VerificationOutcome } from '../queries/verification.js';
34
+ /** Injected row IO for the pass reset (the real row read and physical write by default). */
35
+ export type VerificationHistoryResetDeps = DeliveryGateRowIo;
36
+ /**
37
+ * Reset a delivery's verification history on a verify PASS (see the module
38
+ * header). `passedSha` is the commit the pass judged; a judged commit naming it
39
+ * is kept, and null keeps nothing.
40
+ *
41
+ * Writes only when there is history to drop, over the FRESH row at its OWN status
42
+ * in one serialized write turn (queries/deliveries.ts
43
+ * rewriteDeliveryGateStateAtOwnStatus), so the gate-only write never moves the
44
+ * delivery. A done or cancelled delivery is left alone. clearVerificationHistory
45
+ * keeps any hold or live verdict and returns a history-only gate to null; the
46
+ * explicit verdict is kept (module header). Best-effort: never throws. Returns
47
+ * whether a reset was written.
48
+ */
49
+ export declare function resetVerificationHistoryOnPass(deliveryId: string, deps?: Partial<VerificationHistoryResetDeps>, passedSha?: string | null): Promise<boolean>;
50
+ /** Injected IO for recording an outcome; the reset IO rides along. */
51
+ export interface VerificationOutcomeRecordDeps extends VerificationHistoryResetDeps {
52
+ recordOutcome: typeof recordDeliveryVerificationOutcome;
53
+ }
54
+ /**
55
+ * Record a delivery's verification outcome (VerificationDeps.recordOutcome). A
56
+ * PASSED verify cleared the gate, so the verification history is reset, keeping
57
+ * a judged commit that names `judgedSha` -- the commit this pass judged, or
58
+ * null for a run that judged none. The reset is best-effort and never throws.
59
+ */
60
+ export declare function recordOutcomeResettingVerificationHistory(deliveryId: string, outcome: VerificationOutcome, judgedSha?: string | null, deps?: Partial<VerificationOutcomeRecordDeps>): Promise<void>;
61
+ //# sourceMappingURL=verification-history-reset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-history-reset.d.ts","sourceRoot":"","sources":["../../src/verify/verification-history-reset.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,iCAAiC,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAKzG,4FAA4F;AAC5F,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;AAS7D;;;;;;;;;;;;GAYG;AACH,wBAAsB,8BAA8B,CAClD,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,OAAO,CAAC,4BAA4B,CAAM,EAChD,SAAS,GAAE,MAAM,GAAG,IAAW,GAC9B,OAAO,CAAC,OAAO,CAAC,CAclB;AAED,sEAAsE;AACtE,MAAM,WAAW,6BAA8B,SAAQ,4BAA4B;IACjF,aAAa,EAAE,OAAO,iCAAiC,CAAC;CACzD;AAED;;;;;GAKG;AACH,wBAAsB,yCAAyC,CAC7D,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,mBAAmB,EAC5B,SAAS,GAAE,MAAM,GAAG,IAAW,EAC/B,IAAI,GAAE,OAAO,CAAC,6BAA6B,CAAM,GAChD,OAAO,CAAC,IAAI,CAAC,CAGf"}
@@ -0,0 +1,90 @@
1
+ // PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
2
+ // Pinned by: packages/daemon/src/integration/delivery-gate-write-interleaving.test.ts,
3
+ // packages/daemon/src/integration/review-rework-resume-verdict.test.ts,
4
+ // packages/daemon/src/verify/verification-feedback.test.ts
5
+ // PINNED-BY-END
6
+ /**
7
+ * Verify PASS: record the outcome and reset the delivery's verification history.
8
+ *
9
+ * The failure-signature run and the shortfall repeat count CONSECUTIVE
10
+ * rejections, and a pass breaks the streak. So a delivery that passes and is
11
+ * later routed back must start fresh, not extend a pre-pass run. The judged
12
+ * commit (VerificationHistory.judgedCommit) goes with them: a pass supersedes a
13
+ * re-work's judgment of an older commit.
14
+ *
15
+ * The one exception is a judged commit that names the very commit the pass
16
+ * judged. The pass's per-commit record is written BEFORE its outcome is recorded
17
+ * (verify/verification-commit-sharing.ts judgeDelivery writes the record, then
18
+ * the engine runs the pass path, then recordOutcome), and in between a review
19
+ * exit can read that recorded verdict and route the delivery verify ->
20
+ * verify_failed for review-filed work, stamping that commit
21
+ * (completion/review-exit-verdict-gate.ts reviewReworkGateState). A pass never
22
+ * supersedes a judgment of its own commit, so that stamp survives and the
23
+ * resumed coding team is still shown the verdict it was judged on.
24
+ *
25
+ * The explicit-method verdict (VerificationHistory.explicitOutcome) is not the
26
+ * reset's: only the explicit-outcome writers change it (verify/explicit-gate-
27
+ * outcome.ts), and a selection removes it before its run starts. The reset reads
28
+ * and writes in the delivery's serialized write turn, so the row's record is kept
29
+ * as the row holds it -- a verdict recorded before the reset's turn is never
30
+ * dropped by a reset that read the row earlier.
31
+ *
32
+ * Split out of verification-feedback.ts (daemon 800-line limit), which
33
+ * re-exports resetVerificationHistoryOnPass for existing importers.
34
+ *
35
+ * @module verification-history-reset
36
+ */
37
+ import { rewriteDeliveryGateStateAtOwnStatus, } from '../queries/deliveries.js';
38
+ import { clearVerificationHistory, readVerificationHistory, stampJudgedCommit, } from '../queries/delivery-gate-state.js';
39
+ import { recordDeliveryVerificationOutcome } from '../queries/verification.js';
40
+ import { createLogger } from '../shell/log.js';
41
+ const log = createLogger({ module: 'verification' });
42
+ /** `cleared` with `kept` re-stamped as its judged commit; `cleared` itself when nothing is kept. Pure. */
43
+ function withJudgedCommit(cleared, kept) {
44
+ if (!kept)
45
+ return cleared;
46
+ const base = cleared ?? { blocking: [], warnings: [], evaluatedAt: kept.judgedAt };
47
+ return stampJudgedCommit(base, kept.sha, kept.judgedAt, kept.gateVerdict);
48
+ }
49
+ /**
50
+ * Reset a delivery's verification history on a verify PASS (see the module
51
+ * header). `passedSha` is the commit the pass judged; a judged commit naming it
52
+ * is kept, and null keeps nothing.
53
+ *
54
+ * Writes only when there is history to drop, over the FRESH row at its OWN status
55
+ * in one serialized write turn (queries/deliveries.ts
56
+ * rewriteDeliveryGateStateAtOwnStatus), so the gate-only write never moves the
57
+ * delivery. A done or cancelled delivery is left alone. clearVerificationHistory
58
+ * keeps any hold or live verdict and returns a history-only gate to null; the
59
+ * explicit verdict is kept (module header). Best-effort: never throws. Returns
60
+ * whether a reset was written.
61
+ */
62
+ export async function resetVerificationHistoryOnPass(deliveryId, deps = {}, passedSha = null) {
63
+ try {
64
+ const written = await rewriteDeliveryGateStateAtOwnStatus(deliveryId, (row) => {
65
+ const history = readVerificationHistory(row.gateState);
66
+ const kept = passedSha !== null && history.judgedCommit?.sha === passedSha ? history.judgedCommit : null;
67
+ const judgedCommitDropped = history.judgedCommit !== undefined && kept === null;
68
+ if (!history.signatureRun && !history.shortfallRepeat && !history.failedAtSha && !judgedCommitDropped)
69
+ return undefined;
70
+ return withJudgedCommit(clearVerificationHistory(row.gateState), kept);
71
+ }, { io: deps });
72
+ return written === 'written';
73
+ }
74
+ catch (err) {
75
+ log.warn(`failed to reset verification history for delivery ${deliveryId}:`, err.message);
76
+ return false;
77
+ }
78
+ }
79
+ /**
80
+ * Record a delivery's verification outcome (VerificationDeps.recordOutcome). A
81
+ * PASSED verify cleared the gate, so the verification history is reset, keeping
82
+ * a judged commit that names `judgedSha` -- the commit this pass judged, or
83
+ * null for a run that judged none. The reset is best-effort and never throws.
84
+ */
85
+ export async function recordOutcomeResettingVerificationHistory(deliveryId, outcome, judgedSha = null, deps = {}) {
86
+ await (deps.recordOutcome ?? recordDeliveryVerificationOutcome)(deliveryId, outcome);
87
+ if (outcome === 'passed')
88
+ await resetVerificationHistoryOnPass(deliveryId, deps, judgedSha);
89
+ }
90
+ //# sourceMappingURL=verification-history-reset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-history-reset.js","sourceRoot":"","sources":["../../src/verify/verification-history-reset.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,uFAAuF;AACvF,0EAA0E;AAC1E,6DAA6D;AAC7D,gBAAgB;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EACL,mCAAmC,GAGpC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,GAElB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iCAAiC,EAA4B,MAAM,4BAA4B,CAAC;AACzG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,GAAG,GAAG,YAAY,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;AAKrD,0GAA0G;AAC1G,SAAS,gBAAgB,CAAC,OAAiC,EAAE,IAAyB;IACpF,IAAI,CAAC,IAAI;QAAE,OAAO,OAAO,CAAC;IAC1B,MAAM,IAAI,GAAsB,OAAO,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;IACtG,OAAO,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;AAC5E,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,UAAkB,EAClB,OAA8C,EAAE,EAChD,YAA2B,IAAI;IAE/B,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,mCAAmC,CAAC,UAAU,EAAE,CAAC,GAAG,EAAE,EAAE;YAC5E,MAAM,OAAO,GAAG,uBAAuB,CAAC,GAAG,CAAC,SAAS,CAAC,CA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AC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC;AAED,oDAAoD;AACpD,eAAO,MAAM,uBAAuB,EAAE,gBAGrC,CAAC;AAEF,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAAG,CACjC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,EAAE,CAAC,EAAE,gBAAgB,KAClB,cAAc,GAAG,SAAS,CAAC;AAEhC,0DAA0D;AAC1D,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AA+BD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,oBAgDhC,CAAC"}
1
+ {"version":3,"file":"verification-manifest.d.ts","sourceRoot":"","sources":["../../src/verify/verification-manifest.ts"],"names":[],"mappings":"AAkEA;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC;AAED,oDAAoD;AACpD,eAAO,MAAM,uBAAuB,EAAE,gBAGrC,CAAC;AAEF,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAAG,CACjC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,EAAE,CAAC,EAAE,gBAAgB,KAClB,cAAc,GAAG,SAAS,CAAC;AAEhC,0DAA0D;AAC1D,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AA+BD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,oBAgDhC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  // PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
2
- // Pinned by: packages/daemon/src/verify/verification-manifest.test.ts,
2
+ // Pinned by: packages/daemon/src/verify/judged-commit-gate.test.ts,
3
+ // packages/daemon/src/verify/verification-manifest.test.ts,
3
4
  // packages/daemon/src/verify/verification-run-config-source.test.ts,
4
5
  // packages/daemon/src/verify/verification-tick-product-scoping.test.ts
5
6
  // PINNED-BY-END
@@ -1 +1 @@
1
- {"version":3,"file":"verification-manifest.js","sourceRoot":"","sources":["../../src/verify/verification-manifest.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,uEAAuE;AACvE,uEAAuE;AACvE,yEAAyE;AACzE,gBAAgB;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AA+B7D,oDAAoD;AACpD,MAAM,CAAC,MAAM,uBAAuB,GAAqB;IACvD,MAAM,EAAE,CAAC,IAAI,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The messages a live coding team receives when a delivery is re-worked from
3
+ * verify on a deterministic failure or a shortfall.
4
+ *
5
+ * Moved out of verification-feedback.ts (at the daemon 800-line limit) when these
6
+ * messages began carrying the gate's recorded verdict for the judged commit. Both
7
+ * compose prompt-sections/gate-verdict-section.ts, the one rendering of that
8
+ * verdict, so this inject and the gate_state listing a respawned team reads
9
+ * (prompt/prompt-listing) say the same thing. The evidence-unavailable message
10
+ * lives with its own feedback path (verification-evidence-unavailable-feedback.ts).
11
+ *
12
+ * @module verification-rework-messages
13
+ */
14
+ import type { ShortfallReconciliationDetail, VerificationFailureDetail } from '../queries/delivery-gate-state.js';
15
+ /** Build the failure message injected into a live team session. Pure -- exported for testing. */
16
+ export declare function buildFailureInjectMessage(deliveryName: string, detail: VerificationFailureDetail): string;
17
+ /** Build the message injected into a live team for a shortfall hold. Pure -- exported for testing. */
18
+ export declare function buildShortfallInjectMessage(deliveryName: string, detail: ShortfallReconciliationDetail): string;
19
+ //# sourceMappingURL=verification-rework-messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-rework-messages.d.ts","sourceRoot":"","sources":["../../src/verify/verification-rework-messages.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,6BAA6B,EAC7B,yBAAyB,EAC1B,MAAM,mCAAmC,CAAC;AAQ3C,iGAAiG;AACjG,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,GAAG,MAAM,CAuBzG;AAED,sGAAsG;AACtG,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,6BAA6B,GACpC,MAAM,CAqBR"}
@@ -0,0 +1,52 @@
1
+ // PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
2
+ // Pinned by: packages/daemon/src/verify/verification-feedback.test.ts
3
+ // PINNED-BY-END
4
+ import { buildGateVerdictLines, HELD_BY_SHORTFALL } from '../prompt-sections/gate-verdict-section.js';
5
+ /** The verdict block followed by a blank line, or nothing when there is no verdict. */
6
+ function verdictBlock(lines) {
7
+ return lines.length > 0 ? [...lines, ''] : [];
8
+ }
9
+ /** Build the failure message injected into a live team session. Pure -- exported for testing. */
10
+ export function buildFailureInjectMessage(deliveryName, detail) {
11
+ const lines = [
12
+ `VERIFICATION FAILED for delivery "${deliveryName}".`,
13
+ '',
14
+ ...verdictBlock(buildGateVerdictLines(detail.gateVerdict)),
15
+ detail.exitCode != null ? `Exit code: ${detail.exitCode}` : 'Exit code: (unknown)',
16
+ detail.logPath ? `Full log: ${detail.logPath}` : 'Full log: (not captured)',
17
+ ];
18
+ if (detail.failingTests.length > 0) {
19
+ lines.push('', `Failing tests (${detail.failingTests.length}):`);
20
+ for (const t of detail.failingTests.slice(0, 50))
21
+ lines.push(`- ${t}`);
22
+ if (detail.failingTests.length > 50) {
23
+ lines.push(`- ... and ${detail.failingTests.length - 50} more (see full log)`);
24
+ }
25
+ }
26
+ else {
27
+ lines.push('', 'Failing tests could not be parsed from the run output -- read the full log.');
28
+ }
29
+ lines.push('', 'Fix the failing tests for the files you changed, then commit. The daemon re-verifies ' +
30
+ 'at the coding -> verify edge -- do NOT run the whole-repo suite yourself.');
31
+ return lines.join('\n');
32
+ }
33
+ /** Build the message injected into a live team for a shortfall hold. Pure -- exported for testing. */
34
+ export function buildShortfallInjectMessage(deliveryName, detail) {
35
+ const lines = [
36
+ `VERIFY HELD for delivery "${deliveryName}": the achieved outcome falls short of the declared desired effect.`,
37
+ '',
38
+ 'This is NOT a failing-test failure -- the deterministic check is not the blocker. The verify ' +
39
+ 'reconciliation compared what your diff delivered against the declared intent for each targeted ' +
40
+ 'node and found a gap. Close the gap in the diff, then commit.',
41
+ '',
42
+ ...verdictBlock(buildGateVerdictLines(detail.gateVerdict, { heldBy: HELD_BY_SHORTFALL })),
43
+ `Declared-vs-achieved gap(s) (${detail.shortfalls.length}):`,
44
+ ];
45
+ for (const s of detail.shortfalls) {
46
+ lines.push(`- node ${s.nodeId}`, ` declared: ${s.declared}`, ` achieved: ${s.achieved}`, ` shortfall: ${s.reason}`);
47
+ if (s.diffCitation)
48
+ lines.push(` diff citation: ${s.diffCitation}`);
49
+ }
50
+ return lines.join('\n');
51
+ }
52
+ //# sourceMappingURL=verification-rework-messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification-rework-messages.js","sourceRoot":"","sources":["../../src/verify/verification-rework-messages.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,sEAAsE;AACtE,gBAAgB;AAoBhB,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAEtG,uFAAuF;AACvF,SAAS,YAAY,CAAC,KAAe;IACnC,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAChD,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,yBAAyB,CAAC,YAAoB,EAAE,MAAiC;IAC/F,MAAM,KAAK,GAAa;QACtB,qCAAqC,YAAY,IAAI;QACrD,EAAE;QACF,GAAG,YAAY,CAAC,qBAAqB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC1D,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,cAAc,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,sBAAsB;QAClF,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,0BAA0B;KAC5E,CAAC;IACF,IAAI,MAAM,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,MAAM,CAAC,YAAY,CAAC,MAAM,IAAI,CAAC,CAAC;QACjE,KAAK,MAAM,CAAC,IAAI,MAAM,C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AC;IACvE,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,89 @@
1
+ /** Git result slice the tree listing reads (structural over runGitSync). */
2
+ type GitRun = (args: string[], cwd: string) => {
3
+ success: boolean;
4
+ output: string;
5
+ error?: string;
6
+ };
7
+ /** The lockfiles that make a directory an install root (npm ci prefers the shrinkwrap). */
8
+ export declare const INSTALL_LOCKFILES: readonly ["npm-shrinkwrap.json", "package-lock.json"];
9
+ /**
10
+ * The package.json scripts an install runs, at any depth. npm documents the
11
+ * `npm ci` / `npm install` order in `npm help scripts` ("Life Cycle Operations":
12
+ * preinstall, install, postinstall, prepublish, preprepare, prepare, postprepare;
13
+ * "Life Cycle Scripts": `dependencies` runs after any operation that modifies
14
+ * node_modules), and npm 10's source runs exactly these:
15
+ * - the root, after the tree is reified (lib/commands/ci.js, install.js):
16
+ * preinstall, install, postinstall, prepublish, preprepare, prepare, postprepare;
17
+ * - the root, whenever node_modules changed -- which `npm ci` always does
18
+ * (@npmcli/arborist reify.js): predependencies, dependencies, postdependencies;
19
+ * - every workspace and in-repo `file:` link (@npmcli/arborist rebuild.js):
20
+ * preinstall, prepare, install, postinstall -- and `prepare` again for a
21
+ * directory dependency packed under install-links (pacote dir.js).
22
+ * The pack scripts (prepack, postpack) are not in it: pacote runs "*only*
23
+ * prepare" when it packs a directory dependency, and the CLI runs them for
24
+ * pack/publish; a git dependency runs them from its remote manifest, which the
25
+ * lockfile pins. Every other script is gate or tool source the checkout pins.
26
+ */
27
+ export declare const INSTALL_LIFECYCLE_SCRIPTS: readonly ["preinstall", "install", "postinstall", "prepublish", "preprepare", "prepare", "postprepare", "predependencies", "dependencies", "postdependencies"];
28
+ /** The fingerprint format; a marker holding any other value (an older format) is never current. */
29
+ export declare const INSTALL_FINGERPRINT_FORMAT = "install-inputs/v2";
30
+ /** A tracked tree an install reads from: a worktree's working tree, or a commit. */
31
+ export interface InstallInputTree {
32
+ /** Whether `path` (repo-relative) is a tracked file. */
33
+ has: (path: string) => boolean;
34
+ /** Every tracked file under `dir` ('' = the whole repo), sorted. */
35
+ filesUnder: (dir: string) => string[];
36
+ /** A tracked file's bytes, or null when it is absent; throws when it cannot be read. */
37
+ read: (path: string) => Buffer | null;
38
+ }
39
+ /** An input the model could not follow, named by the manifest that declares it. */
40
+ export interface UnresolvableInstallInput {
41
+ manifest: string;
42
+ reason: string;
43
+ }
44
+ /** What one install root's install consumes (module doc). */
45
+ export interface InstallInputs {
46
+ /** Lockfiles, .npmrc, and each touched package's package.json and binding.gyp that are tracked. Sorted. */
47
+ manifests: string[];
48
+ /**
49
+ * Every tracked file the install's scripts and native builds read -- a manifest
50
+ * too, when a script names it or a native build reaches it (all of R's files
51
+ * when anything is unresolvable). Compared byte for byte. Sorted.
52
+ */
53
+ consumed: string[];
54
+ /** Empty when every command and input was followed. */
55
+ unresolvable: UnresolvableInstallInput[];
56
+ }
57
+ /**
58
+ * A tree over a tracked path list and a byte reader. Paths under a node_modules
59
+ * segment are not install inputs and are dropped; `read` answers null for an
60
+ * untracked path without calling the reader.
61
+ */
62
+ export declare function trackedInstallTree(paths: readonly string[], read: (path: string) => Buffer | null): InstallInputTree;
63
+ /**
64
+ * A worktree's tracked tree as its installs read it: git's tracked paths, their
65
+ * bytes from the working tree. Null when git cannot list the worktree.
66
+ */
67
+ export declare function readWorktreeInstallTree(worktreePath: string, runGit?: GitRun): InstallInputTree | null;
68
+ /** Every install root of the tree: the directories holding a tracked lockfile ('' = the repo root). Sorted. */
69
+ export declare function listInstallRoots(tree: InstallInputTree): string[];
70
+ /**
71
+ * What an install at `root` consumes (module doc). Throws when a tracked input
72
+ * cannot be read (the caller reports the tree unreadable).
73
+ */
74
+ export declare function readInstallInputs(tree: InstallInputTree, root: string): InstallInputs;
75
+ /**
76
+ * The provisioning fingerprint of an install at `root`: every manifest and
77
+ * consumed file, path and bytes, under {@link INSTALL_FINGERPRINT_FORMAT}. Equal
78
+ * fingerprints mean no input the install reads changed.
79
+ */
80
+ export declare function installInputsFingerprint(tree: InstallInputTree, root: string): string;
81
+ /**
82
+ * Commands that read no tracked file an install's effect depends on, each with why.
83
+ * A command here is admitted with any arguments.
84
+ */
85
+ export declare const READS_NOTHING: ReadonlyMap<string, string>;
86
+ /** Split a command into simple commands of words; null when it uses shell syntax the model does not follow. */
87
+ export declare function splitShellCommands(command: string): string[][] | null;
88
+ export {};
89
+ //# sourceMappingURL=install-inputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install-inputs.d.ts","sourceRoot":"","sources":["../../src/worktree/install-inputs.ts"],"names":[],"mappings":"AA2FA,4EAA4E;AAC5E,KAAK,MAAM,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,KAAK;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpG,2FAA2F;AAC3F,eAAO,MAAM,iBAAiB,uDAAwD,CAAC;AAEvF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,yBAAyB,gKAG5B,CAAC;AAEX,mGAAmG;AACnG,eAAO,MAAM,0BAA0B,sBAAsB,CAAC;AAE9D,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IAC/B,oEAAoE;IACpE,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;IACtC,wFAAwF;IACxF,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CACvC;AAED,mFAAmF;AACnF,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6DAA6D;AAC7D,MAAM,WAAW,aAAa;I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