@zhixuan92/multi-model-agent-core 5.0.3 → 5.2.0

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 (718) hide show
  1. package/dist/bounded-execution/activity-tracker-types.d.ts +30 -15
  2. package/dist/bounded-execution/activity-tracker-types.d.ts.map +1 -1
  3. package/dist/bounded-execution/activity-tracker-types.js.map +1 -1
  4. package/dist/bounded-execution/activity-tracker.d.ts +2 -2
  5. package/dist/bounded-execution/activity-tracker.d.ts.map +1 -1
  6. package/dist/bounded-execution/activity-tracker.js +4 -5
  7. package/dist/bounded-execution/activity-tracker.js.map +1 -1
  8. package/dist/config/schema.d.ts +41 -2
  9. package/dist/config/schema.d.ts.map +1 -1
  10. package/dist/config/schema.js +1 -2
  11. package/dist/config/schema.js.map +1 -1
  12. package/dist/events/plain-log-entry.d.ts +1 -1
  13. package/dist/events/plain-log-entry.d.ts.map +1 -1
  14. package/dist/events/plain-log-entry.js +5 -1
  15. package/dist/events/plain-log-entry.js.map +1 -1
  16. package/dist/events/task-envelope.d.ts +5 -5
  17. package/dist/events/task-envelope.d.ts.map +1 -1
  18. package/dist/events/task-envelope.js +3 -6
  19. package/dist/events/task-envelope.js.map +1 -1
  20. package/dist/events/telemetry-uploader.d.ts +1 -1
  21. package/dist/events/telemetry-uploader.d.ts.map +1 -1
  22. package/dist/events/to-wire-record.d.ts +1 -1
  23. package/dist/events/to-wire-record.d.ts.map +1 -1
  24. package/dist/events/to-wire-record.js +1 -1
  25. package/dist/events/to-wire-record.js.map +1 -1
  26. package/dist/events/wire-schema.d.ts +38 -15
  27. package/dist/events/wire-schema.d.ts.map +1 -1
  28. package/dist/events/wire-schema.js +8 -8
  29. package/dist/events/wire-schema.js.map +1 -1
  30. package/dist/index.d.ts +13 -18
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +9 -17
  33. package/dist/index.js.map +1 -1
  34. package/dist/providers/agent-resolver.js +1 -1
  35. package/dist/providers/agent-resolver.js.map +1 -1
  36. package/dist/providers/claude-session.d.ts +2 -1
  37. package/dist/providers/claude-session.d.ts.map +1 -1
  38. package/dist/providers/claude-session.js +43 -2
  39. package/dist/providers/claude-session.js.map +1 -1
  40. package/dist/providers/codex-cli-session.d.ts +3 -2
  41. package/dist/providers/codex-cli-session.d.ts.map +1 -1
  42. package/dist/providers/codex-cli-session.js +5 -2
  43. package/dist/providers/codex-cli-session.js.map +1 -1
  44. package/dist/providers/provider-factory.d.ts +2 -2
  45. package/dist/providers/provider-factory.d.ts.map +1 -1
  46. package/dist/providers/provider-factory.js +12 -12
  47. package/dist/providers/provider-factory.js.map +1 -1
  48. package/dist/providers/runner-types.d.ts +3 -16
  49. package/dist/providers/runner-types.d.ts.map +1 -1
  50. package/dist/research/adapters/arxiv.d.ts.map +1 -1
  51. package/dist/research/adapters/arxiv.js +6 -1
  52. package/dist/research/adapters/arxiv.js.map +1 -1
  53. package/dist/research/index.d.ts +11 -1
  54. package/dist/research/index.d.ts.map +1 -1
  55. package/dist/research/index.js +8 -1
  56. package/dist/research/index.js.map +1 -1
  57. package/dist/stores/context-block-tool.d.ts +2 -3
  58. package/dist/stores/context-block-tool.d.ts.map +1 -1
  59. package/dist/stores/context-block-tool.js +1 -1
  60. package/dist/stores/context-block-tool.js.map +1 -1
  61. package/dist/stores/project-context-registry.d.ts +0 -9
  62. package/dist/stores/project-context-registry.d.ts.map +1 -1
  63. package/dist/stores/project-context-registry.js +0 -4
  64. package/dist/stores/project-context-registry.js.map +1 -1
  65. package/dist/types/brief-quality-policy.d.ts.map +1 -1
  66. package/dist/types/enums.d.ts +0 -9
  67. package/dist/types/enums.d.ts.map +1 -1
  68. package/dist/types/enums.js +0 -10
  69. package/dist/types/enums.js.map +1 -1
  70. package/dist/types/goal.d.ts +47 -0
  71. package/dist/types/goal.d.ts.map +1 -0
  72. package/dist/types/goal.js +2 -0
  73. package/dist/types/goal.js.map +1 -0
  74. package/dist/types/run-result.d.ts +48 -23
  75. package/dist/types/run-result.d.ts.map +1 -1
  76. package/dist/types/run-result.js +3 -16
  77. package/dist/types/run-result.js.map +1 -1
  78. package/dist/types/stage-stats.d.ts +1 -1
  79. package/dist/types/stage-stats.d.ts.map +1 -1
  80. package/dist/types/stage-stats.js +2 -4
  81. package/dist/types/stage-stats.js.map +1 -1
  82. package/dist/types/task-spec.d.ts +14 -17
  83. package/dist/types/task-spec.d.ts.map +1 -1
  84. package/dist/types.d.ts +2 -1
  85. package/dist/types.d.ts.map +1 -1
  86. package/dist/unified/reviewer-output-parser.d.ts +51 -0
  87. package/dist/unified/reviewer-output-parser.d.ts.map +1 -0
  88. package/dist/unified/reviewer-output-parser.js +39 -0
  89. package/dist/unified/reviewer-output-parser.js.map +1 -0
  90. package/dist/unified/skill-loader.d.ts +9 -0
  91. package/dist/unified/skill-loader.d.ts.map +1 -0
  92. package/dist/unified/skill-loader.js +45 -0
  93. package/dist/unified/skill-loader.js.map +1 -0
  94. package/dist/unified/task-input-schema.d.ts +217 -0
  95. package/dist/unified/task-input-schema.d.ts.map +1 -0
  96. package/dist/unified/task-input-schema.js +35 -0
  97. package/dist/unified/task-input-schema.js.map +1 -0
  98. package/dist/unified/task-registry.d.ts +23 -0
  99. package/dist/unified/task-registry.d.ts.map +1 -0
  100. package/dist/unified/task-registry.js +56 -0
  101. package/dist/unified/task-registry.js.map +1 -0
  102. package/dist/unified/two-phase-pipeline.d.ts +52 -0
  103. package/dist/unified/two-phase-pipeline.d.ts.map +1 -0
  104. package/dist/unified/two-phase-pipeline.js +95 -0
  105. package/dist/unified/two-phase-pipeline.js.map +1 -0
  106. package/dist/unified/type-registry.d.ts +13 -0
  107. package/dist/unified/type-registry.d.ts.map +1 -0
  108. package/dist/unified/type-registry.js +30 -0
  109. package/dist/unified/type-registry.js.map +1 -0
  110. package/dist/unified/worktree-manager.d.ts +43 -0
  111. package/dist/unified/worktree-manager.d.ts.map +1 -0
  112. package/dist/unified/worktree-manager.js +76 -0
  113. package/dist/unified/worktree-manager.js.map +1 -0
  114. package/package.json +5 -117
  115. package/dist/bounded-execution/file-artifact-check.d.ts +0 -7
  116. package/dist/bounded-execution/file-artifact-check.d.ts.map +0 -1
  117. package/dist/bounded-execution/file-artifact-check.js +0 -13
  118. package/dist/bounded-execution/file-artifact-check.js.map +0 -1
  119. package/dist/bounded-execution/progress-events-subscriber.d.ts +0 -33
  120. package/dist/bounded-execution/progress-events-subscriber.d.ts.map +0 -1
  121. package/dist/bounded-execution/progress-events-subscriber.js +0 -59
  122. package/dist/bounded-execution/progress-events-subscriber.js.map +0 -1
  123. package/dist/bounded-execution/progress-watchdog.d.ts +0 -43
  124. package/dist/bounded-execution/progress-watchdog.d.ts.map +0 -1
  125. package/dist/bounded-execution/progress-watchdog.js +0 -170
  126. package/dist/bounded-execution/progress-watchdog.js.map +0 -1
  127. package/dist/bounded-execution/real-diff.d.ts +0 -17
  128. package/dist/bounded-execution/real-diff.d.ts.map +0 -1
  129. package/dist/bounded-execution/real-diff.js +0 -59
  130. package/dist/bounded-execution/real-diff.js.map +0 -1
  131. package/dist/bounded-execution/scope-match.d.ts +0 -7
  132. package/dist/bounded-execution/scope-match.d.ts.map +0 -1
  133. package/dist/bounded-execution/scope-match.js +0 -28
  134. package/dist/bounded-execution/scope-match.js.map +0 -1
  135. package/dist/bounded-execution/stall-watchdog.d.ts +0 -18
  136. package/dist/bounded-execution/stall-watchdog.d.ts.map +0 -1
  137. package/dist/bounded-execution/stall-watchdog.js +0 -134
  138. package/dist/bounded-execution/stall-watchdog.js.map +0 -1
  139. package/dist/bounded-execution/wall-clock-guard.d.ts +0 -12
  140. package/dist/bounded-execution/wall-clock-guard.d.ts.map +0 -1
  141. package/dist/bounded-execution/wall-clock-guard.js +0 -27
  142. package/dist/bounded-execution/wall-clock-guard.js.map +0 -1
  143. package/dist/config/canonical-model-identity.d.ts +0 -9
  144. package/dist/config/canonical-model-identity.d.ts.map +0 -1
  145. package/dist/config/canonical-model-identity.js +0 -54
  146. package/dist/config/canonical-model-identity.js.map +0 -1
  147. package/dist/journal/default-schema.d.ts +0 -2
  148. package/dist/journal/default-schema.d.ts.map +0 -1
  149. package/dist/journal/default-schema.js +0 -27
  150. package/dist/journal/default-schema.js.map +0 -1
  151. package/dist/journal/types.d.ts +0 -22
  152. package/dist/journal/types.d.ts.map +0 -1
  153. package/dist/journal/types.js +0 -5
  154. package/dist/journal/types.js.map +0 -1
  155. package/dist/lifecycle/annotate-parser.d.ts +0 -11
  156. package/dist/lifecycle/annotate-parser.d.ts.map +0 -1
  157. package/dist/lifecycle/annotate-parser.js +0 -74
  158. package/dist/lifecycle/annotate-parser.js.map +0 -1
  159. package/dist/lifecycle/annotate-prompts.d.ts +0 -9
  160. package/dist/lifecycle/annotate-prompts.d.ts.map +0 -1
  161. package/dist/lifecycle/annotate-prompts.js +0 -95
  162. package/dist/lifecycle/annotate-prompts.js.map +0 -1
  163. package/dist/lifecycle/auto-commit.d.ts +0 -3
  164. package/dist/lifecycle/auto-commit.d.ts.map +0 -1
  165. package/dist/lifecycle/auto-commit.js +0 -5
  166. package/dist/lifecycle/auto-commit.js.map +0 -1
  167. package/dist/lifecycle/auto-register-context-block.d.ts +0 -11
  168. package/dist/lifecycle/auto-register-context-block.d.ts.map +0 -1
  169. package/dist/lifecycle/auto-register-context-block.js +0 -18
  170. package/dist/lifecycle/auto-register-context-block.js.map +0 -1
  171. package/dist/lifecycle/build-cancelled-result.d.ts +0 -11
  172. package/dist/lifecycle/build-cancelled-result.d.ts.map +0 -1
  173. package/dist/lifecycle/build-cancelled-result.js +0 -25
  174. package/dist/lifecycle/build-cancelled-result.js.map +0 -1
  175. package/dist/lifecycle/derive-completion.d.ts +0 -24
  176. package/dist/lifecycle/derive-completion.d.ts.map +0 -1
  177. package/dist/lifecycle/derive-completion.js +0 -66
  178. package/dist/lifecycle/derive-completion.js.map +0 -1
  179. package/dist/lifecycle/diff-tracker.d.ts +0 -88
  180. package/dist/lifecycle/diff-tracker.d.ts.map +0 -1
  181. package/dist/lifecycle/diff-tracker.js +0 -429
  182. package/dist/lifecycle/diff-tracker.js.map +0 -1
  183. package/dist/lifecycle/executor-output-types.d.ts +0 -53
  184. package/dist/lifecycle/executor-output-types.d.ts.map +0 -1
  185. package/dist/lifecycle/executor-output-types.js +0 -2
  186. package/dist/lifecycle/executor-output-types.js.map +0 -1
  187. package/dist/lifecycle/file-confinement-check.d.ts +0 -17
  188. package/dist/lifecycle/file-confinement-check.d.ts.map +0 -1
  189. package/dist/lifecycle/file-confinement-check.js +0 -44
  190. package/dist/lifecycle/file-confinement-check.js.map +0 -1
  191. package/dist/lifecycle/findings-parser.d.ts +0 -18
  192. package/dist/lifecycle/findings-parser.d.ts.map +0 -1
  193. package/dist/lifecycle/findings-parser.js +0 -143
  194. package/dist/lifecycle/findings-parser.js.map +0 -1
  195. package/dist/lifecycle/git-toplevel.d.ts +0 -12
  196. package/dist/lifecycle/git-toplevel.d.ts.map +0 -1
  197. package/dist/lifecycle/git-toplevel.js +0 -52
  198. package/dist/lifecycle/git-toplevel.js.map +0 -1
  199. package/dist/lifecycle/handlers/annotate-stage.d.ts +0 -35
  200. package/dist/lifecycle/handlers/annotate-stage.d.ts.map +0 -1
  201. package/dist/lifecycle/handlers/annotate-stage.js +0 -360
  202. package/dist/lifecycle/handlers/annotate-stage.js.map +0 -1
  203. package/dist/lifecycle/handlers/baseline-handlers.d.ts +0 -12
  204. package/dist/lifecycle/handlers/baseline-handlers.d.ts.map +0 -1
  205. package/dist/lifecycle/handlers/baseline-handlers.js +0 -281
  206. package/dist/lifecycle/handlers/baseline-handlers.js.map +0 -1
  207. package/dist/lifecycle/handlers/compose-commit-message.d.ts +0 -15
  208. package/dist/lifecycle/handlers/compose-commit-message.d.ts.map +0 -1
  209. package/dist/lifecycle/handlers/compose-commit-message.js +0 -227
  210. package/dist/lifecycle/handlers/compose-commit-message.js.map +0 -1
  211. package/dist/lifecycle/handlers/enrich-runtime-result.d.ts +0 -3
  212. package/dist/lifecycle/handlers/enrich-runtime-result.d.ts.map +0 -1
  213. package/dist/lifecycle/handlers/enrich-runtime-result.js +0 -239
  214. package/dist/lifecycle/handlers/enrich-runtime-result.js.map +0 -1
  215. package/dist/lifecycle/handlers/git-commit-handler.d.ts +0 -4
  216. package/dist/lifecycle/handlers/git-commit-handler.d.ts.map +0 -1
  217. package/dist/lifecycle/handlers/git-commit-handler.js +0 -202
  218. package/dist/lifecycle/handlers/git-commit-handler.js.map +0 -1
  219. package/dist/lifecycle/handlers/implement-stage.d.ts +0 -10
  220. package/dist/lifecycle/handlers/implement-stage.d.ts.map +0 -1
  221. package/dist/lifecycle/handlers/implement-stage.js +0 -228
  222. package/dist/lifecycle/handlers/implement-stage.js.map +0 -1
  223. package/dist/lifecycle/handlers/journal-review-prompt.d.ts +0 -7
  224. package/dist/lifecycle/handlers/journal-review-prompt.d.ts.map +0 -1
  225. package/dist/lifecycle/handlers/journal-review-prompt.js +0 -54
  226. package/dist/lifecycle/handlers/journal-review-prompt.js.map +0 -1
  227. package/dist/lifecycle/handlers/parse-review-report.d.ts +0 -15
  228. package/dist/lifecycle/handlers/parse-review-report.d.ts.map +0 -1
  229. package/dist/lifecycle/handlers/parse-review-report.js +0 -40
  230. package/dist/lifecycle/handlers/parse-review-report.js.map +0 -1
  231. package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts +0 -13
  232. package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts.map +0 -1
  233. package/dist/lifecycle/handlers/prepare-execution-context-handler.js +0 -83
  234. package/dist/lifecycle/handlers/prepare-execution-context-handler.js.map +0 -1
  235. package/dist/lifecycle/handlers/quality-review-prompt.d.ts +0 -7
  236. package/dist/lifecycle/handlers/quality-review-prompt.d.ts.map +0 -1
  237. package/dist/lifecycle/handlers/quality-review-prompt.js +0 -50
  238. package/dist/lifecycle/handlers/quality-review-prompt.js.map +0 -1
  239. package/dist/lifecycle/handlers/read-route-implementer.d.ts +0 -52
  240. package/dist/lifecycle/handlers/read-route-implementer.d.ts.map +0 -1
  241. package/dist/lifecycle/handlers/read-route-implementer.js +0 -109
  242. package/dist/lifecycle/handlers/read-route-implementer.js.map +0 -1
  243. package/dist/lifecycle/handlers/register-context-block-handlers.d.ts +0 -4
  244. package/dist/lifecycle/handlers/register-context-block-handlers.d.ts.map +0 -1
  245. package/dist/lifecycle/handlers/register-context-block-handlers.js +0 -35
  246. package/dist/lifecycle/handlers/register-context-block-handlers.js.map +0 -1
  247. package/dist/lifecycle/handlers/review-stage.d.ts +0 -4
  248. package/dist/lifecycle/handlers/review-stage.d.ts.map +0 -1
  249. package/dist/lifecycle/handlers/review-stage.js +0 -277
  250. package/dist/lifecycle/handlers/review-stage.js.map +0 -1
  251. package/dist/lifecycle/handlers/rework-prompt.d.ts +0 -6
  252. package/dist/lifecycle/handlers/rework-prompt.d.ts.map +0 -1
  253. package/dist/lifecycle/handlers/rework-prompt.js +0 -18
  254. package/dist/lifecycle/handlers/rework-prompt.js.map +0 -1
  255. package/dist/lifecycle/handlers/rework-stage.d.ts +0 -4
  256. package/dist/lifecycle/handlers/rework-stage.d.ts.map +0 -1
  257. package/dist/lifecycle/handlers/rework-stage.js +0 -191
  258. package/dist/lifecycle/handlers/rework-stage.js.map +0 -1
  259. package/dist/lifecycle/handlers/spec-review-prompt.d.ts +0 -8
  260. package/dist/lifecycle/handlers/spec-review-prompt.d.ts.map +0 -1
  261. package/dist/lifecycle/handlers/spec-review-prompt.js +0 -47
  262. package/dist/lifecycle/handlers/spec-review-prompt.js.map +0 -1
  263. package/dist/lifecycle/handlers/terminal-handlers.d.ts +0 -61
  264. package/dist/lifecycle/handlers/terminal-handlers.d.ts.map +0 -1
  265. package/dist/lifecycle/handlers/terminal-handlers.js +0 -327
  266. package/dist/lifecycle/handlers/terminal-handlers.js.map +0 -1
  267. package/dist/lifecycle/handlers/tier-policy.d.ts +0 -11
  268. package/dist/lifecycle/handlers/tier-policy.d.ts.map +0 -1
  269. package/dist/lifecycle/handlers/tier-policy.js +0 -12
  270. package/dist/lifecycle/handlers/tier-policy.js.map +0 -1
  271. package/dist/lifecycle/lifecycle-context.d.ts +0 -109
  272. package/dist/lifecycle/lifecycle-context.d.ts.map +0 -1
  273. package/dist/lifecycle/lifecycle-context.js +0 -2
  274. package/dist/lifecycle/lifecycle-context.js.map +0 -1
  275. package/dist/lifecycle/lifecycle-dispatcher.d.ts +0 -35
  276. package/dist/lifecycle/lifecycle-dispatcher.d.ts.map +0 -1
  277. package/dist/lifecycle/lifecycle-dispatcher.js +0 -64
  278. package/dist/lifecycle/lifecycle-dispatcher.js.map +0 -1
  279. package/dist/lifecycle/lifecycle-driver.d.ts +0 -16
  280. package/dist/lifecycle/lifecycle-driver.d.ts.map +0 -1
  281. package/dist/lifecycle/lifecycle-driver.js +0 -334
  282. package/dist/lifecycle/lifecycle-driver.js.map +0 -1
  283. package/dist/lifecycle/merge-stage-stats.d.ts +0 -62
  284. package/dist/lifecycle/merge-stage-stats.d.ts.map +0 -1
  285. package/dist/lifecycle/merge-stage-stats.js +0 -136
  286. package/dist/lifecycle/merge-stage-stats.js.map +0 -1
  287. package/dist/lifecycle/normalize-output-targets.d.ts +0 -2
  288. package/dist/lifecycle/normalize-output-targets.d.ts.map +0 -1
  289. package/dist/lifecycle/normalize-output-targets.js +0 -14
  290. package/dist/lifecycle/normalize-output-targets.js.map +0 -1
  291. package/dist/lifecycle/perform-implementation.d.ts +0 -3
  292. package/dist/lifecycle/perform-implementation.d.ts.map +0 -1
  293. package/dist/lifecycle/perform-implementation.js +0 -371
  294. package/dist/lifecycle/perform-implementation.js.map +0 -1
  295. package/dist/lifecycle/read-only-subtype-spec.d.ts +0 -18
  296. package/dist/lifecycle/read-only-subtype-spec.d.ts.map +0 -1
  297. package/dist/lifecycle/read-only-subtype-spec.js +0 -2
  298. package/dist/lifecycle/read-only-subtype-spec.js.map +0 -1
  299. package/dist/lifecycle/repo-commit-lock.d.ts +0 -20
  300. package/dist/lifecycle/repo-commit-lock.d.ts.map +0 -1
  301. package/dist/lifecycle/repo-commit-lock.js +0 -40
  302. package/dist/lifecycle/repo-commit-lock.js.map +0 -1
  303. package/dist/lifecycle/review-verdict-mapping.d.ts +0 -16
  304. package/dist/lifecycle/review-verdict-mapping.d.ts.map +0 -1
  305. package/dist/lifecycle/review-verdict-mapping.js +0 -24
  306. package/dist/lifecycle/review-verdict-mapping.js.map +0 -1
  307. package/dist/lifecycle/shared-compute.d.ts +0 -14
  308. package/dist/lifecycle/shared-compute.d.ts.map +0 -1
  309. package/dist/lifecycle/shared-compute.js +0 -51
  310. package/dist/lifecycle/shared-compute.js.map +0 -1
  311. package/dist/lifecycle/stage-idle-tracker.d.ts +0 -14
  312. package/dist/lifecycle/stage-idle-tracker.d.ts.map +0 -1
  313. package/dist/lifecycle/stage-idle-tracker.js +0 -17
  314. package/dist/lifecycle/stage-idle-tracker.js.map +0 -1
  315. package/dist/lifecycle/stage-io.d.ts +0 -157
  316. package/dist/lifecycle/stage-io.d.ts.map +0 -1
  317. package/dist/lifecycle/stage-io.js +0 -20
  318. package/dist/lifecycle/stage-io.js.map +0 -1
  319. package/dist/lifecycle/stage-labels.d.ts +0 -7
  320. package/dist/lifecycle/stage-labels.d.ts.map +0 -1
  321. package/dist/lifecycle/stage-labels.js +0 -19
  322. package/dist/lifecycle/stage-labels.js.map +0 -1
  323. package/dist/lifecycle/stage-plan-builder.d.ts +0 -4
  324. package/dist/lifecycle/stage-plan-builder.d.ts.map +0 -1
  325. package/dist/lifecycle/stage-plan-builder.js +0 -164
  326. package/dist/lifecycle/stage-plan-builder.js.map +0 -1
  327. package/dist/lifecycle/stage-plan-types.d.ts +0 -131
  328. package/dist/lifecycle/stage-plan-types.d.ts.map +0 -1
  329. package/dist/lifecycle/stage-plan-types.js +0 -28
  330. package/dist/lifecycle/stage-plan-types.js.map +0 -1
  331. package/dist/lifecycle/stage-progression.d.ts +0 -6
  332. package/dist/lifecycle/stage-progression.d.ts.map +0 -1
  333. package/dist/lifecycle/stage-progression.js +0 -100
  334. package/dist/lifecycle/stage-progression.js.map +0 -1
  335. package/dist/lifecycle/task-executor.d.ts +0 -24
  336. package/dist/lifecycle/task-executor.d.ts.map +0 -1
  337. package/dist/lifecycle/task-executor.js +0 -320
  338. package/dist/lifecycle/task-executor.js.map +0 -1
  339. package/dist/lifecycle/task-runner.d.ts +0 -66
  340. package/dist/lifecycle/task-runner.d.ts.map +0 -1
  341. package/dist/lifecycle/task-runner.js +0 -332
  342. package/dist/lifecycle/task-runner.js.map +0 -1
  343. package/dist/lifecycle/tool-category.d.ts +0 -2
  344. package/dist/lifecycle/tool-category.d.ts.map +0 -1
  345. package/dist/lifecycle/tool-category.js +0 -6
  346. package/dist/lifecycle/tool-category.js.map +0 -1
  347. package/dist/lifecycle/tool-config-types.d.ts +0 -32
  348. package/dist/lifecycle/tool-config-types.d.ts.map +0 -1
  349. package/dist/lifecycle/tool-config-types.js +0 -2
  350. package/dist/lifecycle/tool-config-types.js.map +0 -1
  351. package/dist/lifecycle/warm-followup.d.ts +0 -3
  352. package/dist/lifecycle/warm-followup.d.ts.map +0 -1
  353. package/dist/lifecycle/warm-followup.js +0 -16
  354. package/dist/lifecycle/warm-followup.js.map +0 -1
  355. package/dist/lifecycle/worker-output-contract.d.ts +0 -22
  356. package/dist/lifecycle/worker-output-contract.d.ts.map +0 -1
  357. package/dist/lifecycle/worker-output-contract.js +0 -91
  358. package/dist/lifecycle/worker-output-contract.js.map +0 -1
  359. package/dist/providers/assemble-run-result.d.ts +0 -17
  360. package/dist/providers/assemble-run-result.d.ts.map +0 -1
  361. package/dist/providers/assemble-run-result.js +0 -52
  362. package/dist/providers/assemble-run-result.js.map +0 -1
  363. package/dist/providers/skill-resolver.d.ts +0 -17
  364. package/dist/providers/skill-resolver.d.ts.map +0 -1
  365. package/dist/providers/skill-resolver.js +0 -123
  366. package/dist/providers/skill-resolver.js.map +0 -1
  367. package/dist/reporting/batch-persister.d.ts +0 -4
  368. package/dist/reporting/batch-persister.d.ts.map +0 -1
  369. package/dist/reporting/batch-persister.js +0 -11
  370. package/dist/reporting/batch-persister.js.map +0 -1
  371. package/dist/reporting/commit-stage-runner.d.ts +0 -12
  372. package/dist/reporting/commit-stage-runner.d.ts.map +0 -1
  373. package/dist/reporting/commit-stage-runner.js +0 -43
  374. package/dist/reporting/commit-stage-runner.js.map +0 -1
  375. package/dist/reporting/derive-investigate-status.d.ts +0 -15
  376. package/dist/reporting/derive-investigate-status.d.ts.map +0 -1
  377. package/dist/reporting/derive-investigate-status.js +0 -23
  378. package/dist/reporting/derive-investigate-status.js.map +0 -1
  379. package/dist/reporting/extract-fenced-json.d.ts +0 -7
  380. package/dist/reporting/extract-fenced-json.d.ts.map +0 -1
  381. package/dist/reporting/extract-fenced-json.js +0 -17
  382. package/dist/reporting/extract-fenced-json.js.map +0 -1
  383. package/dist/reporting/findings-headline.d.ts +0 -12
  384. package/dist/reporting/findings-headline.d.ts.map +0 -1
  385. package/dist/reporting/findings-headline.js +0 -40
  386. package/dist/reporting/findings-headline.js.map +0 -1
  387. package/dist/reporting/findings-outcome.d.ts +0 -13
  388. package/dist/reporting/findings-outcome.d.ts.map +0 -1
  389. package/dist/reporting/findings-outcome.js +0 -22
  390. package/dist/reporting/findings-outcome.js.map +0 -1
  391. package/dist/reporting/headline-composer.d.ts +0 -29
  392. package/dist/reporting/headline-composer.d.ts.map +0 -1
  393. package/dist/reporting/headline-composer.js +0 -10
  394. package/dist/reporting/headline-composer.js.map +0 -1
  395. package/dist/reporting/headline-templates/delegate.d.ts +0 -3
  396. package/dist/reporting/headline-templates/delegate.d.ts.map +0 -1
  397. package/dist/reporting/headline-templates/delegate.js +0 -42
  398. package/dist/reporting/headline-templates/delegate.js.map +0 -1
  399. package/dist/reporting/headline-templates/execute-plan.d.ts +0 -3
  400. package/dist/reporting/headline-templates/execute-plan.d.ts.map +0 -1
  401. package/dist/reporting/headline-templates/execute-plan.js +0 -26
  402. package/dist/reporting/headline-templates/execute-plan.js.map +0 -1
  403. package/dist/reporting/headline-templates/investigate.d.ts +0 -13
  404. package/dist/reporting/headline-templates/investigate.d.ts.map +0 -1
  405. package/dist/reporting/headline-templates/investigate.js +0 -53
  406. package/dist/reporting/headline-templates/investigate.js.map +0 -1
  407. package/dist/reporting/headline-templates/journal-recall.d.ts +0 -3
  408. package/dist/reporting/headline-templates/journal-recall.d.ts.map +0 -1
  409. package/dist/reporting/headline-templates/journal-recall.js +0 -9
  410. package/dist/reporting/headline-templates/journal-recall.js.map +0 -1
  411. package/dist/reporting/headline-templates/journal.d.ts +0 -3
  412. package/dist/reporting/headline-templates/journal.d.ts.map +0 -1
  413. package/dist/reporting/headline-templates/journal.js +0 -17
  414. package/dist/reporting/headline-templates/journal.js.map +0 -1
  415. package/dist/reporting/headline-templates/research.d.ts +0 -3
  416. package/dist/reporting/headline-templates/research.d.ts.map +0 -1
  417. package/dist/reporting/headline-templates/research.js +0 -22
  418. package/dist/reporting/headline-templates/research.js.map +0 -1
  419. package/dist/reporting/headline-text.d.ts +0 -36
  420. package/dist/reporting/headline-text.d.ts.map +0 -1
  421. package/dist/reporting/headline-text.js +0 -73
  422. package/dist/reporting/headline-text.js.map +0 -1
  423. package/dist/reporting/report-parser-slots/delegate-report.d.ts +0 -8
  424. package/dist/reporting/report-parser-slots/delegate-report.d.ts.map +0 -1
  425. package/dist/reporting/report-parser-slots/delegate-report.js +0 -12
  426. package/dist/reporting/report-parser-slots/delegate-report.js.map +0 -1
  427. package/dist/reporting/report-parser-slots/execute-plan-report.d.ts +0 -11
  428. package/dist/reporting/report-parser-slots/execute-plan-report.d.ts.map +0 -1
  429. package/dist/reporting/report-parser-slots/execute-plan-report.js +0 -7
  430. package/dist/reporting/report-parser-slots/execute-plan-report.js.map +0 -1
  431. package/dist/reporting/report-parser-slots/investigate-report.d.ts +0 -52
  432. package/dist/reporting/report-parser-slots/investigate-report.d.ts.map +0 -1
  433. package/dist/reporting/report-parser-slots/investigate-report.js +0 -307
  434. package/dist/reporting/report-parser-slots/investigate-report.js.map +0 -1
  435. package/dist/reporting/report-parser-slots/journal-report.d.ts +0 -19
  436. package/dist/reporting/report-parser-slots/journal-report.d.ts.map +0 -1
  437. package/dist/reporting/report-parser-slots/journal-report.js +0 -13
  438. package/dist/reporting/report-parser-slots/journal-report.js.map +0 -1
  439. package/dist/reporting/report-parser-slots/no-structured-report.d.ts +0 -10
  440. package/dist/reporting/report-parser-slots/no-structured-report.d.ts.map +0 -1
  441. package/dist/reporting/report-parser-slots/no-structured-report.js +0 -13
  442. package/dist/reporting/report-parser-slots/no-structured-report.js.map +0 -1
  443. package/dist/reporting/report-parser-slots/research-report.d.ts +0 -31
  444. package/dist/reporting/report-parser-slots/research-report.d.ts.map +0 -1
  445. package/dist/reporting/report-parser-slots/research-report.js +0 -50
  446. package/dist/reporting/report-parser-slots/research-report.js.map +0 -1
  447. package/dist/reporting/response-envelope-builder.d.ts +0 -32
  448. package/dist/reporting/response-envelope-builder.d.ts.map +0 -1
  449. package/dist/reporting/response-envelope-builder.js +0 -26
  450. package/dist/reporting/response-envelope-builder.js.map +0 -1
  451. package/dist/reporting/severity.d.ts +0 -62
  452. package/dist/reporting/severity.d.ts.map +0 -1
  453. package/dist/reporting/severity.js +0 -93
  454. package/dist/reporting/severity.js.map +0 -1
  455. package/dist/reporting/structured-report-parser.d.ts +0 -9
  456. package/dist/reporting/structured-report-parser.d.ts.map +0 -1
  457. package/dist/reporting/structured-report-parser.js +0 -8
  458. package/dist/reporting/structured-report-parser.js.map +0 -1
  459. package/dist/reporting/terminal-block-registrar.d.ts +0 -14
  460. package/dist/reporting/terminal-block-registrar.d.ts.map +0 -1
  461. package/dist/reporting/terminal-block-registrar.js +0 -17
  462. package/dist/reporting/terminal-block-registrar.js.map +0 -1
  463. package/dist/reporting/terminal-report-markdown.d.ts +0 -13
  464. package/dist/reporting/terminal-report-markdown.d.ts.map +0 -1
  465. package/dist/reporting/terminal-report-markdown.js +0 -31
  466. package/dist/reporting/terminal-report-markdown.js.map +0 -1
  467. package/dist/research/research-pre-loop.d.ts +0 -22
  468. package/dist/research/research-pre-loop.d.ts.map +0 -1
  469. package/dist/research/research-pre-loop.js +0 -50
  470. package/dist/research/research-pre-loop.js.map +0 -1
  471. package/dist/routing/read-route-criteria.d.ts +0 -36
  472. package/dist/routing/read-route-criteria.d.ts.map +0 -1
  473. package/dist/routing/read-route-criteria.js +0 -71
  474. package/dist/routing/read-route-criteria.js.map +0 -1
  475. package/dist/stores/batch-cache.d.ts +0 -29
  476. package/dist/stores/batch-cache.d.ts.map +0 -1
  477. package/dist/stores/batch-cache.js +0 -89
  478. package/dist/stores/batch-cache.js.map +0 -1
  479. package/dist/stores/batch-registry.d.ts +0 -138
  480. package/dist/stores/batch-registry.d.ts.map +0 -1
  481. package/dist/stores/batch-registry.js +0 -205
  482. package/dist/stores/batch-registry.js.map +0 -1
  483. package/dist/tool-surface/register-all-tools.d.ts +0 -4
  484. package/dist/tool-surface/register-all-tools.d.ts.map +0 -1
  485. package/dist/tool-surface/register-all-tools.js +0 -35
  486. package/dist/tool-surface/register-all-tools.js.map +0 -1
  487. package/dist/tool-surface/tool-surface-registry.d.ts +0 -28
  488. package/dist/tool-surface/tool-surface-registry.d.ts.map +0 -1
  489. package/dist/tool-surface/tool-surface-registry.js +0 -16
  490. package/dist/tool-surface/tool-surface-registry.js.map +0 -1
  491. package/dist/tools/audit/brief-slot.d.ts +0 -15
  492. package/dist/tools/audit/brief-slot.d.ts.map +0 -1
  493. package/dist/tools/audit/brief-slot.js +0 -69
  494. package/dist/tools/audit/brief-slot.js.map +0 -1
  495. package/dist/tools/audit/implementer-criteria.d.ts +0 -62
  496. package/dist/tools/audit/implementer-criteria.d.ts.map +0 -1
  497. package/dist/tools/audit/implementer-criteria.js +0 -121
  498. package/dist/tools/audit/implementer-criteria.js.map +0 -1
  499. package/dist/tools/audit/plan-audit-criteria.d.ts +0 -35
  500. package/dist/tools/audit/plan-audit-criteria.d.ts.map +0 -1
  501. package/dist/tools/audit/plan-audit-criteria.js +0 -159
  502. package/dist/tools/audit/plan-audit-criteria.js.map +0 -1
  503. package/dist/tools/audit/schema.d.ts +0 -61
  504. package/dist/tools/audit/schema.d.ts.map +0 -1
  505. package/dist/tools/audit/schema.js +0 -21
  506. package/dist/tools/audit/schema.js.map +0 -1
  507. package/dist/tools/audit/skill-audit-criteria.d.ts +0 -9
  508. package/dist/tools/audit/skill-audit-criteria.d.ts.map +0 -1
  509. package/dist/tools/audit/skill-audit-criteria.js +0 -52
  510. package/dist/tools/audit/skill-audit-criteria.js.map +0 -1
  511. package/dist/tools/audit/spec-audit-criteria.d.ts +0 -9
  512. package/dist/tools/audit/spec-audit-criteria.d.ts.map +0 -1
  513. package/dist/tools/audit/spec-audit-criteria.js +0 -55
  514. package/dist/tools/audit/spec-audit-criteria.js.map +0 -1
  515. package/dist/tools/audit/subtypes.d.ts +0 -4
  516. package/dist/tools/audit/subtypes.d.ts.map +0 -1
  517. package/dist/tools/audit/subtypes.js +0 -69
  518. package/dist/tools/audit/subtypes.js.map +0 -1
  519. package/dist/tools/audit/tool-config.d.ts +0 -7
  520. package/dist/tools/audit/tool-config.d.ts.map +0 -1
  521. package/dist/tools/audit/tool-config.js +0 -60
  522. package/dist/tools/audit/tool-config.js.map +0 -1
  523. package/dist/tools/criteria-types.d.ts +0 -27
  524. package/dist/tools/criteria-types.d.ts.map +0 -1
  525. package/dist/tools/criteria-types.js +0 -25
  526. package/dist/tools/criteria-types.js.map +0 -1
  527. package/dist/tools/debug/brief-slot.d.ts +0 -15
  528. package/dist/tools/debug/brief-slot.d.ts.map +0 -1
  529. package/dist/tools/debug/brief-slot.js +0 -10
  530. package/dist/tools/debug/brief-slot.js.map +0 -1
  531. package/dist/tools/debug/implementer-criteria.d.ts +0 -45
  532. package/dist/tools/debug/implementer-criteria.d.ts.map +0 -1
  533. package/dist/tools/debug/implementer-criteria.js +0 -97
  534. package/dist/tools/debug/implementer-criteria.js.map +0 -1
  535. package/dist/tools/debug/schema.d.ts +0 -60
  536. package/dist/tools/debug/schema.d.ts.map +0 -1
  537. package/dist/tools/debug/schema.js +0 -17
  538. package/dist/tools/debug/schema.js.map +0 -1
  539. package/dist/tools/debug/subtypes.d.ts +0 -4
  540. package/dist/tools/debug/subtypes.d.ts.map +0 -1
  541. package/dist/tools/debug/subtypes.js +0 -26
  542. package/dist/tools/debug/subtypes.js.map +0 -1
  543. package/dist/tools/debug/tool-config.d.ts +0 -7
  544. package/dist/tools/debug/tool-config.d.ts.map +0 -1
  545. package/dist/tools/debug/tool-config.js +0 -55
  546. package/dist/tools/debug/tool-config.js.map +0 -1
  547. package/dist/tools/delegate/brief-slot.d.ts +0 -17
  548. package/dist/tools/delegate/brief-slot.d.ts.map +0 -1
  549. package/dist/tools/delegate/brief-slot.js +0 -55
  550. package/dist/tools/delegate/brief-slot.js.map +0 -1
  551. package/dist/tools/delegate/implementer-criteria.d.ts +0 -53
  552. package/dist/tools/delegate/implementer-criteria.d.ts.map +0 -1
  553. package/dist/tools/delegate/implementer-criteria.js +0 -99
  554. package/dist/tools/delegate/implementer-criteria.js.map +0 -1
  555. package/dist/tools/delegate/schema.d.ts +0 -74
  556. package/dist/tools/delegate/schema.d.ts.map +0 -1
  557. package/dist/tools/delegate/schema.js +0 -23
  558. package/dist/tools/delegate/schema.js.map +0 -1
  559. package/dist/tools/delegate/tool-config.d.ts +0 -7
  560. package/dist/tools/delegate/tool-config.d.ts.map +0 -1
  561. package/dist/tools/delegate/tool-config.js +0 -44
  562. package/dist/tools/delegate/tool-config.js.map +0 -1
  563. package/dist/tools/execute-plan/barrel.d.ts +0 -2
  564. package/dist/tools/execute-plan/barrel.d.ts.map +0 -1
  565. package/dist/tools/execute-plan/barrel.js +0 -7
  566. package/dist/tools/execute-plan/barrel.js.map +0 -1
  567. package/dist/tools/execute-plan/brief-slot.d.ts +0 -19
  568. package/dist/tools/execute-plan/brief-slot.d.ts.map +0 -1
  569. package/dist/tools/execute-plan/brief-slot.js +0 -80
  570. package/dist/tools/execute-plan/brief-slot.js.map +0 -1
  571. package/dist/tools/execute-plan/implementer-criteria.d.ts +0 -57
  572. package/dist/tools/execute-plan/implementer-criteria.d.ts.map +0 -1
  573. package/dist/tools/execute-plan/implementer-criteria.js +0 -108
  574. package/dist/tools/execute-plan/implementer-criteria.js.map +0 -1
  575. package/dist/tools/execute-plan/plan-extractor.d.ts +0 -21
  576. package/dist/tools/execute-plan/plan-extractor.d.ts.map +0 -1
  577. package/dist/tools/execute-plan/plan-extractor.js +0 -96
  578. package/dist/tools/execute-plan/plan-extractor.js.map +0 -1
  579. package/dist/tools/execute-plan/tool-config.d.ts +0 -68
  580. package/dist/tools/execute-plan/tool-config.d.ts.map +0 -1
  581. package/dist/tools/execute-plan/tool-config.js +0 -107
  582. package/dist/tools/execute-plan/tool-config.js.map +0 -1
  583. package/dist/tools/index.d.ts +0 -8
  584. package/dist/tools/index.d.ts.map +0 -1
  585. package/dist/tools/index.js +0 -14
  586. package/dist/tools/index.js.map +0 -1
  587. package/dist/tools/investigate/brief-slot.d.ts +0 -15
  588. package/dist/tools/investigate/brief-slot.d.ts.map +0 -1
  589. package/dist/tools/investigate/brief-slot.js +0 -9
  590. package/dist/tools/investigate/brief-slot.js.map +0 -1
  591. package/dist/tools/investigate/implementer-criteria.d.ts +0 -52
  592. package/dist/tools/investigate/implementer-criteria.d.ts.map +0 -1
  593. package/dist/tools/investigate/implementer-criteria.js +0 -106
  594. package/dist/tools/investigate/implementer-criteria.js.map +0 -1
  595. package/dist/tools/investigate/schema.d.ts +0 -62
  596. package/dist/tools/investigate/schema.d.ts.map +0 -1
  597. package/dist/tools/investigate/schema.js +0 -13
  598. package/dist/tools/investigate/schema.js.map +0 -1
  599. package/dist/tools/investigate/subtypes.d.ts +0 -4
  600. package/dist/tools/investigate/subtypes.d.ts.map +0 -1
  601. package/dist/tools/investigate/subtypes.js +0 -26
  602. package/dist/tools/investigate/subtypes.js.map +0 -1
  603. package/dist/tools/investigate/tool-config.d.ts +0 -8
  604. package/dist/tools/investigate/tool-config.d.ts.map +0 -1
  605. package/dist/tools/investigate/tool-config.js +0 -68
  606. package/dist/tools/investigate/tool-config.js.map +0 -1
  607. package/dist/tools/journal/recall/brief-slot.d.ts +0 -7
  608. package/dist/tools/journal/recall/brief-slot.d.ts.map +0 -1
  609. package/dist/tools/journal/recall/brief-slot.js +0 -5
  610. package/dist/tools/journal/recall/brief-slot.js.map +0 -1
  611. package/dist/tools/journal/recall/implementer-criteria.d.ts +0 -9
  612. package/dist/tools/journal/recall/implementer-criteria.d.ts.map +0 -1
  613. package/dist/tools/journal/recall/implementer-criteria.js +0 -23
  614. package/dist/tools/journal/recall/implementer-criteria.js.map +0 -1
  615. package/dist/tools/journal/recall/schema.d.ts +0 -54
  616. package/dist/tools/journal/recall/schema.d.ts.map +0 -1
  617. package/dist/tools/journal/recall/schema.js +0 -10
  618. package/dist/tools/journal/recall/schema.js.map +0 -1
  619. package/dist/tools/journal/recall/subtypes.d.ts +0 -4
  620. package/dist/tools/journal/recall/subtypes.d.ts.map +0 -1
  621. package/dist/tools/journal/recall/subtypes.js +0 -25
  622. package/dist/tools/journal/recall/subtypes.js.map +0 -1
  623. package/dist/tools/journal/recall/tool-config.d.ts +0 -8
  624. package/dist/tools/journal/recall/tool-config.d.ts.map +0 -1
  625. package/dist/tools/journal/recall/tool-config.js +0 -46
  626. package/dist/tools/journal/recall/tool-config.js.map +0 -1
  627. package/dist/tools/journal/record/brief-slot.d.ts +0 -12
  628. package/dist/tools/journal/record/brief-slot.d.ts.map +0 -1
  629. package/dist/tools/journal/record/brief-slot.js +0 -24
  630. package/dist/tools/journal/record/brief-slot.js.map +0 -1
  631. package/dist/tools/journal/record/implementer-criteria.d.ts +0 -6
  632. package/dist/tools/journal/record/implementer-criteria.d.ts.map +0 -1
  633. package/dist/tools/journal/record/implementer-criteria.js +0 -20
  634. package/dist/tools/journal/record/implementer-criteria.js.map +0 -1
  635. package/dist/tools/journal/record/schema.d.ts +0 -55
  636. package/dist/tools/journal/record/schema.d.ts.map +0 -1
  637. package/dist/tools/journal/record/schema.js +0 -12
  638. package/dist/tools/journal/record/schema.js.map +0 -1
  639. package/dist/tools/journal/record/tool-config.d.ts +0 -7
  640. package/dist/tools/journal/record/tool-config.d.ts.map +0 -1
  641. package/dist/tools/journal/record/tool-config.js +0 -40
  642. package/dist/tools/journal/record/tool-config.js.map +0 -1
  643. package/dist/tools/read-route-prompt.d.ts +0 -113
  644. package/dist/tools/read-route-prompt.d.ts.map +0 -1
  645. package/dist/tools/read-route-prompt.js +0 -86
  646. package/dist/tools/read-route-prompt.js.map +0 -1
  647. package/dist/tools/register-context-block/schema.d.ts +0 -8
  648. package/dist/tools/register-context-block/schema.d.ts.map +0 -1
  649. package/dist/tools/register-context-block/schema.js +0 -7
  650. package/dist/tools/register-context-block/schema.js.map +0 -1
  651. package/dist/tools/register-context-block/tool-config.d.ts +0 -6
  652. package/dist/tools/register-context-block/tool-config.d.ts.map +0 -1
  653. package/dist/tools/register-context-block/tool-config.js +0 -39
  654. package/dist/tools/register-context-block/tool-config.js.map +0 -1
  655. package/dist/tools/research/brief-slot.d.ts +0 -37
  656. package/dist/tools/research/brief-slot.d.ts.map +0 -1
  657. package/dist/tools/research/brief-slot.js +0 -68
  658. package/dist/tools/research/brief-slot.js.map +0 -1
  659. package/dist/tools/research/implementer-criteria.d.ts +0 -13
  660. package/dist/tools/research/implementer-criteria.d.ts.map +0 -1
  661. package/dist/tools/research/implementer-criteria.js +0 -109
  662. package/dist/tools/research/implementer-criteria.js.map +0 -1
  663. package/dist/tools/research/schema.d.ts +0 -11
  664. package/dist/tools/research/schema.d.ts.map +0 -1
  665. package/dist/tools/research/schema.js +0 -59
  666. package/dist/tools/research/schema.js.map +0 -1
  667. package/dist/tools/research/subtypes.d.ts +0 -4
  668. package/dist/tools/research/subtypes.d.ts.map +0 -1
  669. package/dist/tools/research/subtypes.js +0 -25
  670. package/dist/tools/research/subtypes.js.map +0 -1
  671. package/dist/tools/research/tool-config.d.ts +0 -8
  672. package/dist/tools/research/tool-config.d.ts.map +0 -1
  673. package/dist/tools/research/tool-config.js +0 -48
  674. package/dist/tools/research/tool-config.js.map +0 -1
  675. package/dist/tools/research/two-turn-driver.d.ts +0 -16
  676. package/dist/tools/research/two-turn-driver.d.ts.map +0 -1
  677. package/dist/tools/research/two-turn-driver.js +0 -41
  678. package/dist/tools/research/two-turn-driver.js.map +0 -1
  679. package/dist/tools/retry/brief-slot.d.ts +0 -7
  680. package/dist/tools/retry/brief-slot.d.ts.map +0 -1
  681. package/dist/tools/retry/brief-slot.js +0 -2
  682. package/dist/tools/retry/brief-slot.js.map +0 -1
  683. package/dist/tools/retry/schema.d.ts +0 -54
  684. package/dist/tools/retry/schema.d.ts.map +0 -1
  685. package/dist/tools/retry/schema.js +0 -12
  686. package/dist/tools/retry/schema.js.map +0 -1
  687. package/dist/tools/retry/tool-config.d.ts +0 -7
  688. package/dist/tools/retry/tool-config.d.ts.map +0 -1
  689. package/dist/tools/retry/tool-config.js +0 -84
  690. package/dist/tools/retry/tool-config.js.map +0 -1
  691. package/dist/tools/review/brief-slot.d.ts +0 -11
  692. package/dist/tools/review/brief-slot.d.ts.map +0 -1
  693. package/dist/tools/review/brief-slot.js +0 -23
  694. package/dist/tools/review/brief-slot.js.map +0 -1
  695. package/dist/tools/review/implementer-criteria.d.ts +0 -48
  696. package/dist/tools/review/implementer-criteria.d.ts.map +0 -1
  697. package/dist/tools/review/implementer-criteria.js +0 -108
  698. package/dist/tools/review/implementer-criteria.js.map +0 -1
  699. package/dist/tools/review/schema.d.ts +0 -64
  700. package/dist/tools/review/schema.d.ts.map +0 -1
  701. package/dist/tools/review/schema.js +0 -17
  702. package/dist/tools/review/schema.js.map +0 -1
  703. package/dist/tools/review/subtypes.d.ts +0 -4
  704. package/dist/tools/review/subtypes.d.ts.map +0 -1
  705. package/dist/tools/review/subtypes.js +0 -27
  706. package/dist/tools/review/subtypes.js.map +0 -1
  707. package/dist/tools/review/tool-config.d.ts +0 -7
  708. package/dist/tools/review/tool-config.d.ts.map +0 -1
  709. package/dist/tools/review/tool-config.js +0 -94
  710. package/dist/tools/review/tool-config.js.map +0 -1
  711. package/dist/tools/shared-output.d.ts +0 -56
  712. package/dist/tools/shared-output.d.ts.map +0 -1
  713. package/dist/tools/shared-output.js +0 -33
  714. package/dist/tools/shared-output.js.map +0 -1
  715. package/dist/types/review-policy.d.ts +0 -2
  716. package/dist/types/review-policy.d.ts.map +0 -1
  717. package/dist/types/review-policy.js +0 -2
  718. package/dist/types/review-policy.js.map +0 -1
@@ -1,55 +0,0 @@
1
- import { parseCriteria } from '../criteria-types.js';
2
- export const SPEC_AUDIT_PURPOSE_ORIENTATION = [
3
- 'Why this audit exists:',
4
- 'A spec is the prose that says what the system shall do. A finding here is a place where the prose, executed literally, would produce the wrong outcome or paralyze the executor. The completion test: would a downstream worker reading only this spec be able to build the right thing without coming back for clarification?',
5
- '',
6
- 'For your output to clear that bar, every Finding must answer:',
7
- '- Issue: the gap or contradiction in one paragraph, quoting the exact prose snippet.',
8
- '- Suggestion: the missing sentence the spec needs in order to be executable.',
9
- '',
10
- 'The completion test: would a downstream executor reading ONLY this spec be able to build the right thing without coming back for clarification? If a Finding does not change that answer from "no" to "yes" when applied, it is below the bar — omit it.',
11
- ].join('\n');
12
- export const EVIDENCE_RULE_SPEC_AUDIT = [
13
- 'Evidence grounding (REQUIRED for every finding):',
14
- '- Quote the exact `shall` / `must` / `should` clause that contains the gap (or the heading the gap sits under).',
15
- '- For requirement conflicts: quote BOTH conflicting clauses.',
16
- '- For assumption-exposure findings: quote the hidden assumption + name what would break if it does not hold.',
17
- '- For acceptance-criteria-coverage findings: name the requirement that lacks a mapping AND state whether the spec calls out a reason it is non-testable.',
18
- '- A "the spec seems to imply" claim without a quoted clause is NOT evidence — drop it.',
19
- '- Severity binding: critical = literal execution silently ships wrong behavior; high = executor blocked; medium = clarification round forced; low = stylistic / metadata gap.',
20
- ].join('\n');
21
- export const SCOPE_RULE_SPEC_AUDIT = [
22
- 'Scope:',
23
- '- In scope: requirement testability, scope explicitness AND decomposability, acceptance-criteria coverage, non-functional capture, requirement conflicts, decision trace, hidden assumptions, unresolved authoring placeholders, and presence of architectural decomposition (components, data flow, error handling, testing strategy).',
24
- '- Out of scope: implementation details (those belong in a plan, not a spec — flag scope leak into implementation as a SCOPE-EXPLICITNESS-AND-DECOMPOSABILITY finding, not a general comment), stylistic prose preferences, opinions on whether the spec is "good", lens-style audits (security or performance focus belongs in free-text prompt, not in spec subtype).',
25
- '- IMPLICIT requirements embedded inside a clause ARE in scope. Example: "shall validate the token" implicitly requires "what counts as valid" — if that is undefined, flag it as REQUIREMENT-TESTABILITY (do not split into two findings).',
26
- ].join('\n');
27
- export const ANNOTATOR_AWARENESS_SPEC_AUDIT = [
28
- '(N/A — your output is consumed verbatim by the user; there is no downstream annotator dedup step on this subtype.)',
29
- ].join('\n');
30
- const SPEC_AUDIT_FAILURE_MODES = [
31
- '1. REQUIREMENT-TESTABILITY — Every "shall" / "must" / "should" requirement has a concrete, observable outcome that a test can assert. Vague verbs ("supports", "handles", "is reliable") without a measurable outcome flag as findings.',
32
- '2. SCOPE-EXPLICITNESS-AND-DECOMPOSABILITY — In-scope and out-of-scope items are explicit AND the stated scope is sized for a single implementation plan. Two sub-checks: (a) EXPLICITNESS — implied scope (mentioned-once-then-dropped, or referenced without definition) is a finding; in-scope and out-of-scope lists should appear as a dedicated section, not be inferred from prose. (b) DECOMPOSABILITY — the spec describes ONE buildable feature, not multiple independent subsystems bundled together. Signals that decomposition is needed (severity HIGH): the spec mixes orthogonal subsystems (e.g. chat + file storage + billing); the spec has more than one top-level "Goal" or implies multiple independently releasable units; the architecture section names more than ~5 net-new modules across non-overlapping concerns. Suggested fix on a multi-subsystem spec: split into sub-project specs and brainstorm/plan each independently, citing the brainstorming-skill decomposition guidance.',
33
- '3. ACCEPTANCE-CRITERIA-COVERAGE — Every requirement maps to at least one acceptance criterion (or the spec calls out it is non-acceptance-testable and says why). Missing mapping is a finding.',
34
- '4. NON-FUNCTIONAL-CAPTURED — Non-functional constraints (latency, security, observability, accessibility, scale) are stated where load-bearing, not assumed silently. Silent assumption is a finding.',
35
- '5. REQUIREMENT-CONFLICT — Two requirements that cannot simultaneously hold (e.g. "respond in <50ms" + "validate against the remote registry on every call") are surfaced.',
36
- '6. DECISION-TRACE — Decisions that affect downstream implementation (algorithm choice, data shape, integration point) are stated with the reasoning, not just the outcome. Outcome-only is a finding.',
37
- '7. ASSUMPTION-EXPOSURE — Hidden assumptions about caller behaviour, environment, or pre-existing state are made explicit so the executor can verify them.',
38
- '8. PLACEHOLDER-SCAN — The spec contains no unresolved authoring placeholders that would block planning. Flag occurrences of `TBD`, `TODO`, `[fill in]`, `[to be decided]`, `???`, empty section bodies under a heading (a heading with no content beneath it before the next heading), bulleted lists ending in `…` or "more to come", and tables with empty cells in load-bearing columns. Severity binding: HIGH when the placeholder sits on a load-bearing section (a requirement, an architecture component, an acceptance criterion); MEDIUM elsewhere; LOW on metadata-only sections (author, revision history). Suggested fix: resolve the placeholder before moving to writing-plans, or mark the section explicitly as "out of scope for this iteration" with a forward reference. Evidence is the exact placeholder quote with its section heading.',
39
- '9. DESIGN-DECOMPOSITION-PRESENT — A spec must give the planner enough architectural information to write tasks. The brainstorming skill mandates that the spec cover architecture, components, data flow, error handling, and testing. Flag the spec when any load-bearing dimension is missing: (a) no component decomposition (the spec states requirements but never names the modules / units / services that will implement them); (b) no data flow description (request shape, response shape, or how data moves between named components is silent); (c) no error-handling treatment for failure modes that the requirements themselves imply (e.g. a "shall validate the token" requirement with no statement of what happens on invalid token); (d) no testing strategy section (silent on unit / integration / contract / manual layer). Severity HIGH when the missing dimension is load-bearing for downstream planning (the planner would have to invent the architecture); MEDIUM when the dimension is partial (named but underspecified). For each finding, name the missing dimension and the section that should contain it. This perspective is the spec-side complement to plan-audit perspective 10 (SPEC-COVERAGE) — together they enforce that the spec gives the planner enough to build, and the plan in turn covers the spec.',
40
- ].join('\n');
41
- export const SPEC_AUDIT_CRITERIA = parseCriteria(SPEC_AUDIT_FAILURE_MODES);
42
- export const SPEC_AUDIT_SEMANTICS = {
43
- goalLine: 'Find ALL ways this spec, executed literally by a downstream worker, would produce the wrong outcome or paralyze the executor — viewed through this criterion.',
44
- emptyOutcomeLine: 'If THIS criterion does not surface a real gap in the spec, respond with the literal text "No findings for this criterion." — that is a valid outcome on a clean spec.',
45
- findingMeaningParagraph: 'A finding is a PLACE WHERE THE SPEC PROSE FAILS THE EXECUTABILITY TEST viewed through this criterion. Title = the failing prose snippet (or its anchor). Severity reflects whether the failure would silently ship wrong behavior, block the executor, force a clarification round, or just leave a stylistic gap.',
46
- severityMeanings: {
47
- critical: 'Blocks executability of the audited doc',
48
- high: 'Significant ambiguity/gap; rework needed',
49
- medium: 'Clarity gap; minor assumption needed',
50
- low: 'Polish; no behavior change',
51
- },
52
- mustEmitAtLeastOne: false,
53
- legalOutcomes: ['found', 'clean'],
54
- };
55
- //# sourceMappingURL=spec-audit-criteria.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec-audit-criteria.js","sourceRoot":"","sources":["../../../src/tools/audit/spec-audit-criteria.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,wBAAwB;IACxB,gUAAgU;IAChU,EAAE;IACF,+DAA+D;IAC/D,sFAAsF;IACtF,8EAA8E;IAC9E,EAAE;IACF,0PAA0P;CAC3P,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,kDAAkD;IAClD,iHAAiH;IACjH,8DAA8D;IAC9D,8GAA8G;IAC9G,0JAA0J;IAC1J,wFAAwF;IACxF,+KAA+K;CAChL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ;IACR,yUAAyU;IACzU,wWAAwW;IACxW,4OAA4O;CAC7O,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,oHAAoH;CACrH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,wBAAwB,GAAG;IAC/B,yOAAyO;IACzO,o9BAAo9B;IACp9B,iMAAiM;IACjM,uMAAuM;IACvM,2KAA2K;IAC3K,uMAAuM;IACvM,2JAA2J;IAC3J,g0BAAg0B;IACh0B,yxCAAyxC;CAC1xC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CAAC,wBAAwB,CAAC,CAAC;AAEtG,MAAM,CAAC,MAAM,oBAAoB,GAAmB;IAClD,QAAQ,EAAE,+JAA+J;IACzK,gBAAgB,EAAE,uKAAuK;IACzL,uBAAuB,EAAE,oTAAoT;IAC7U,gBAAgB,EAAE;QAChB,QAAQ,EAAE,yCAAyC;QACnD,IAAI,EAAE,0CAA0C;QAChD,MAAM,EAAE,sCAAsC;QAC9C,GAAG,EAAE,4BAA4B;KAClC;IACD,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,CAAU;CAC3C,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { ReadOnlySubtypeSpec } from '../../lifecycle/read-only-subtype-spec.js';
2
- export type AuditSubtype = 'default' | 'plan' | 'spec' | 'skill';
3
- export declare const AUDIT_SUBTYPES: Record<AuditSubtype, ReadOnlySubtypeSpec>;
4
- //# sourceMappingURL=subtypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subtypes.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/subtypes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAarF,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAkCjE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,mBAAmB,CAiCpE,CAAC"}
@@ -1,69 +0,0 @@
1
- import { AUDIT_PURPOSE_ORIENTATION, EVIDENCE_RULE_AUDIT, SCOPE_RULE_AUDIT, ANNOTATOR_AWARENESS_AUDIT, AUDIT_CRITERIA, } from './implementer-criteria.js';
2
- import { PLAN_AUDIT_PURPOSE_ORIENTATION, EVIDENCE_RULE_PLAN_AUDIT, SCOPE_RULE_PLAN_AUDIT, ANNOTATOR_AWARENESS_PLAN_AUDIT, PLAN_AUDIT_CRITERIA, } from './plan-audit-criteria.js';
3
- import { SPEC_AUDIT_CRITERIA, SPEC_AUDIT_PURPOSE_ORIENTATION, EVIDENCE_RULE_SPEC_AUDIT, SCOPE_RULE_SPEC_AUDIT, ANNOTATOR_AWARENESS_SPEC_AUDIT, SPEC_AUDIT_SEMANTICS } from './spec-audit-criteria.js';
4
- import { SKILL_AUDIT_CRITERIA, SKILL_AUDIT_PURPOSE_ORIENTATION, EVIDENCE_RULE_SKILL_AUDIT, SCOPE_RULE_SKILL_AUDIT, ANNOTATOR_AWARENESS_SKILL_AUDIT, SKILL_AUDIT_SEMANTICS } from './skill-audit-criteria.js';
5
- // Copied verbatim from ROUTE_SEMANTICS.audit in
6
- // packages/core/src/routing/read-route-criteria.ts (the legacy
7
- // private const there is removed in Task 8 once dispatch reads from here).
8
- const SEMANTICS_DEFAULT = {
9
- goalLine: 'Find ALL issues of THIS specific kind in the artifact above.',
10
- emptyOutcomeLine: 'If none exist, respond with the literal text "No findings for this criterion." — that is a fully valid outcome. Do NOT pad with low-signal observations to avoid returning empty.',
11
- findingMeaningParagraph: 'A finding is an ISSUE in the artifact (a contradiction, missing recommendation, fix that violates a constraint, drift, structural inconsistency, etc.). Severity reflects how much the issue blocks the artifact\'s downstream use.',
12
- severityMeanings: {
13
- critical: 'a recommendation or claim that, if implemented as written, would fail or cause harm because the artifact is internally incoherent — e.g. a fix that depends on something the doc forbids.',
14
- high: 'a substantive missing recommendation, an evidence chain that does not support a load-bearing conclusion, OR a fix that violates a stated principle/constraint of the doc.',
15
- medium: 'argument-soundness gap, fix-actionability gap, drift between sections, structural inconsistency between similar items, scope-creep risk that needs a guardrail.',
16
- low: 'stylistic / labeling / formatting issue; missing metadata; minor cross-reference fix.',
17
- },
18
- mustEmitAtLeastOne: false,
19
- legalOutcomes: ['found', 'clean'],
20
- };
21
- // Copied verbatim from ROUTE_SEMANTICS.audit_plan.
22
- const SEMANTICS_PLAN = {
23
- goalLine: 'Apply THIS verification perspective to every task in the plan above. Each finding is a plan-vs-codebase coherence issue grounded in real file:line evidence. Verify before flagging — use read_file / grep to inspect the source files the plan names.',
24
- emptyOutcomeLine: 'If your perspective finds no plan-vs-codebase drift after grounding in the actual source files, respond with the literal text "No findings for this criterion." — that is the EXPECTED outcome on a clean plan. Do NOT pad with prose-quality observations (those belong in subtype=default, not here).',
25
- findingMeaningParagraph: 'A finding is a CONCRETE PLAN-VS-CODEBASE DRIFT viewed through this perspective: the plan names a symbol / path / signature / import / test helper / verify command / cross-task dependency that the actual codebase does not match. Title = "<task ID>: <one-line drift>". Severity reflects whether the task can dispatch.',
26
- severityMeanings: {
27
- critical: 'plan would BLOCK dispatch — e.g. wrong method name (perspective 2), missing modify-target file (perspective 1), wrong signature (perspective 3), missing module export (perspective 4), out-of-order task dependency (perspective 7), wrong tooling (perspective 8). A literal worker freezes on this.',
28
- high: 'load-bearing ambiguity — multiple matching symbols and the plan does not disambiguate, OR test harness missing in claimed shape, OR step depends on later step recoverably. Task may execute but produces an ambiguous artifact.',
29
- medium: 'step ordering inferable but undeclared, cross-task dependency unstated, verify command vague but recoverable, missing parent dirs for create-targets. Fixable by reordering or adding a sentence; doesn\'t block dispatch.',
30
- low: 'cosmetic — naming preference, missing metadata, minor cross-reference. Does not affect executability.',
31
- },
32
- mustEmitAtLeastOne: false,
33
- legalOutcomes: ['found', 'clean'],
34
- };
35
- export const AUDIT_SUBTYPES = {
36
- default: {
37
- criteria: AUDIT_CRITERIA,
38
- orientation: AUDIT_PURPOSE_ORIENTATION,
39
- evidenceRule: EVIDENCE_RULE_AUDIT,
40
- scopeRule: SCOPE_RULE_AUDIT,
41
- annotatorAwareness: ANNOTATOR_AWARENESS_AUDIT,
42
- semantics: SEMANTICS_DEFAULT,
43
- },
44
- plan: {
45
- criteria: PLAN_AUDIT_CRITERIA,
46
- orientation: PLAN_AUDIT_PURPOSE_ORIENTATION,
47
- evidenceRule: EVIDENCE_RULE_PLAN_AUDIT,
48
- scopeRule: SCOPE_RULE_PLAN_AUDIT,
49
- annotatorAwareness: ANNOTATOR_AWARENESS_PLAN_AUDIT,
50
- semantics: SEMANTICS_PLAN,
51
- },
52
- spec: {
53
- criteria: SPEC_AUDIT_CRITERIA,
54
- orientation: SPEC_AUDIT_PURPOSE_ORIENTATION,
55
- evidenceRule: EVIDENCE_RULE_SPEC_AUDIT,
56
- scopeRule: SCOPE_RULE_SPEC_AUDIT,
57
- annotatorAwareness: ANNOTATOR_AWARENESS_SPEC_AUDIT,
58
- semantics: SPEC_AUDIT_SEMANTICS,
59
- },
60
- skill: {
61
- criteria: SKILL_AUDIT_CRITERIA,
62
- orientation: SKILL_AUDIT_PURPOSE_ORIENTATION,
63
- evidenceRule: EVIDENCE_RULE_SKILL_AUDIT,
64
- scopeRule: SCOPE_RULE_SKILL_AUDIT,
65
- annotatorAwareness: ANNOTATOR_AWARENESS_SKILL_AUDIT,
66
- semantics: SKILL_AUDIT_SEMANTICS,
67
- },
68
- };
69
- //# sourceMappingURL=subtypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subtypes.js","sourceRoot":"","sources":["../../../src/tools/audit/subtypes.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,yBAAyB,EAAE,mBAAmB,EAAE,gBAAgB,EAChE,yBAAyB,EAAE,cAAc,GAC1C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,8BAA8B,EAAE,wBAAwB,EAAE,qBAAqB,EAC/E,8BAA8B,EAAE,mBAAmB,GACpD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACtM,OAAO,EAAE,oBAAoB,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAI7M,gDAAgD;AAChD,+DAA+D;AAC/D,2EAA2E;AAC3E,MAAM,iBAAiB,GAAmB;IACxC,QAAQ,EAAE,8DAA8D;IACxE,gBAAgB,EAAE,mLAAmL;IACrM,uBAAuB,EAAE,qOAAqO;IAC9P,gBAAgB,EAAE;QAChB,QAAQ,EAAE,2LAA2L;QACrM,IAAI,EAAE,2KAA2K;QACjL,MAAM,EAAE,iKAAiK;QACzK,GAAG,EAAE,uFAAuF;KAC7F;IACD,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,CAAU;CAC3C,CAAC;AAEF,mDAAmD;AACnD,MAAM,cAAc,GAAmB;IACrC,QAAQ,EAAE,wPAAwP;IAClQ,gBAAgB,EAAE,ySAAyS;IAC3T,uBAAuB,EAAE,6TAA6T;IACtV,gBAAgB,EAAE;QAChB,QAAQ,EAAE,wSAAwS;QAClT,IAAI,EAAE,kOAAkO;QACxO,MAAM,EAAE,4NAA4N;QACpO,GAAG,EAAE,uGAAuG;KAC7G;IACD,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,CAAU;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAA8C;IACvE,OAAO,EAAE;QACP,QAAQ,EAAE,cAAc;QACxB,WAAW,EAAE,yBAAyB;QACtC,YAAY,EAAE,mBAAmB;QACjC,SAAS,EAAE,gBAAgB;QAC3B,kBAAkB,EAAE,yBAAyB;QAC7C,SAAS,EAAE,iBAAiB;KAC7B;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,mBAAmB;QAC7B,WAAW,EAAE,8BAA8B;QAC3C,YAAY,EAAE,wBAAwB;QACtC,SAAS,EAAE,qBAAqB;QAChC,kBAAkB,EAAE,8BAA8B;QAClD,SAAS,EAAE,cAAc;KAC1B;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,mBAAmB;QAC7B,WAAW,EAAE,8BAA8B;QAC3C,YAAY,EAAE,wBAAwB;QACtC,SAAS,EAAE,qBAAqB;QAChC,kBAAkB,EAAE,8BAA8B;QAClD,SAAS,EAAE,oBAAoB;KAChC;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,oBAAoB;QAC9B,WAAW,EAAE,+BAA+B;QAC5C,YAAY,EAAE,yBAAyB;QACvC,SAAS,EAAE,sBAAsB;QACjC,kBAAkB,EAAE,+BAA+B;QACnD,SAAS,EAAE,qBAAqB;KACjC;CACF,CAAC"}
@@ -1,7 +0,0 @@
1
- import { ToolSurfaceRegistry } from '../../tool-surface/tool-surface-registry.js';
2
- import { type Input } from './schema.js';
3
- import { type AuditBrief } from './brief-slot.js';
4
- import type { ToolConfig } from '../../lifecycle/tool-config-types.js';
5
- export declare function registerAudit(registry: ToolSurfaceRegistry): void;
6
- export declare const toolConfig: ToolConfig<Input, AuditBrief, unknown>;
7
- //# sourceMappingURL=tool-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAIvE,wBAAgB,aAAa,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYjE;AAED,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAuC7D,CAAC"}
@@ -1,60 +0,0 @@
1
- import { inputSchema } from './schema.js';
2
- import { auditBriefSlot } from './brief-slot.js';
3
- import { noStructuredReportSchema } from '../../reporting/report-parser-slots/no-structured-report.js';
4
- import { makeFindingsHeadlineTemplate } from '../../reporting/findings-headline.js';
5
- import { DEFAULT_TASK_TIMEOUT_MS } from '../../config/schema.js';
6
- export function registerAudit(registry) {
7
- registry.register({
8
- routeName: 'audit',
9
- httpMethod: 'POST',
10
- httpPath: '/audit',
11
- surface: 'tool',
12
- schema: inputSchema,
13
- toolCategory: 'read_only',
14
- agentTypeDefault: 'complex',
15
- agentTypeOverridable: false,
16
- responseShapeName: 'BatchResponse',
17
- });
18
- }
19
- export const toolConfig = {
20
- name: 'audit',
21
- category: 'read_only',
22
- dispatchMode: 'parallel',
23
- dispatchModeOverridable: false,
24
- agentType: 'complex',
25
- briefSlot: auditBriefSlot,
26
- buildTaskSpec: (brief, ctx) => {
27
- // The read-route dispatcher builds the worker prefix from this pure
28
- // target + FINDING_FORMAT_SHARED + the audit RouteSemantics (subtypes.ts);
29
- // `prompt` carries the same pure target (TaskSpec.prompt is required and
30
- // feeds telemetry, but is not the read-route worker input).
31
- const targetParts = [`Audit for ${brief.subtypeText} issues.`];
32
- if (brief.document)
33
- targetParts.push(`Document:\n\n${brief.document}`);
34
- if (brief.filePaths.length > 0) {
35
- targetParts.push(`Target files:\n${brief.filePaths.map(p => `- ${p}`).join('\n')}`);
36
- }
37
- const target = targetParts.join('\n\n');
38
- return {
39
- prompt: target,
40
- readTarget: target,
41
- agentType: 'complex',
42
- reviewPolicy: 'none',
43
- briefQualityPolicy: 'off',
44
- done: brief.done,
45
- tools: ctx.config.defaults?.tools ?? 'full',
46
- timeoutMs: ctx.config.defaults?.timeoutMs ?? DEFAULT_TASK_TIMEOUT_MS,
47
- sandboxPolicy: ctx.config.defaults?.sandboxPolicy ?? 'cwd-only',
48
- cwd: ctx.projectContext?.cwd ?? ctx.cwd,
49
- contextBlockIds: brief.contextBlockIds,
50
- filePaths: brief.filePaths.length > 0 ? brief.filePaths : undefined,
51
- mainModel: ctx.mainModel,
52
- // v4.4.x: plumb subtype to the dispatcher. The parallel-criteria
53
- // router reads `task.subtype` and looks it up in AUDIT_SUBTYPES.
54
- subtype: brief.subtype,
55
- };
56
- },
57
- reportSchema: noStructuredReportSchema,
58
- headlineTemplate: makeFindingsHeadlineTemplate('audit', 'high'),
59
- };
60
- //# sourceMappingURL=tool-config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AACvG,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AAGpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,MAAM,UAAU,aAAa,CAAC,QAA6B;IACzD,QAAQ,CAAC,QAAQ,CAAC;QAChB,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,MAAM;QAClB,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,WAAW;QACnB,YAAY,EAAE,WAAW;QACzB,gBAAgB,EAAE,SAAS;QAC3B,oBAAoB,EAAE,KAAK;QAC3B,iBAAiB,EAAE,eAAe;KACnC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAA2C;IAChE,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,WAAW;IACrB,YAAY,EAAE,UAAU;IACxB,uBAAuB,EAAE,KAAK;IAC9B,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,cAAc;IACzB,aAAa,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAC5B,oEAAoE;QACpE,2EAA2E;QAC3E,yEAAyE;QACzE,4DAA4D;QAC5D,MAAM,WAAW,GAAa,CAAC,aAAa,KAAK,CAAC,WAAW,UAAU,CAAC,CAAC;QACzE,IAAI,KAAK,CAAC,QAAQ;YAAE,WAAW,CAAC,IAAI,CAAC,gBAAgB,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvE,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC/B,WAAW,CAAC,IAAI,CAAC,kBAAkB,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACtF,CAAC;QACD,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,OAAO;YACL,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,MAAM;YAClB,SAAS,EAAE,SAAS;YACpB,YAAY,EAAE,MAAM;YACpB,kBAAkB,EAAE,KAAK;YACzB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,IAAI,MAAM;YAC3C,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,IAAI,uBAAuB;YACpE,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,IAAI,UAAU;YAC/D,GAAG,EAAE,GAAG,CAAC,cAAc,EAAE,GAAG,IAAI,GAAG,CAAC,GAAG;YACvC,eAAe,EAAE,KAAK,CAAC,eAAe;YACtC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;YACnE,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,iEAAiE;YACjE,iEAAiE;YACjE,OAAO,EAAE,KAAK,CAAC,OAAO;SACX,CAAC;IAChB,CAAC;IACD,YAAY,EAAE,wBAAwB;IACtC,gBAAgB,EAAE,4BAA4B,CAAC,OAAO,EAAE,MAAM,CAAC;CAChE,CAAC"}
@@ -1,27 +0,0 @@
1
- /**
2
- * Structured criterion shape used by all five read-only routes for
3
- * parallel-criteria fan-out. Each entry in the route's *_CRITERIA constant
4
- * becomes one sub-worker; the per-criterion description is the variable
5
- * suffix in the sub-worker's user message (the cached prefix carries
6
- * everything else).
7
- */
8
- export interface CriterionEntry {
9
- /** "1", "2", ..., matches the position in the existing *_FAILURE_MODES list. */
10
- id: string;
11
- /** Short label, e.g. "RECOMMENDATION-COHERENCE". */
12
- title: string;
13
- /** Verbatim prose from the existing failure-mode description, sans the
14
- * leading "N. TITLE — " prefix. */
15
- description: string;
16
- }
17
- /**
18
- * Parses a `*_FAILURE_MODES` joined string back into structured criterion
19
- * entries. Each route's implementer-criteria.ts already authors its
20
- * taxonomy as a numbered list (`'1. TITLE — description...'`); this lets
21
- * the parallel-criteria dispatcher iterate without duplicating the prose.
22
- *
23
- * Expected line shape per criterion: `^N. TITLE — description$`
24
- * (em-dash with surrounding spaces; title may contain hyphens or slashes).
25
- */
26
- export declare function parseCriteria(failureModesText: string): CriterionEntry[];
27
- //# sourceMappingURL=criteria-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"criteria-types.d.ts","sourceRoot":"","sources":["../../src/tools/criteria-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd;wCACoC;IACpC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,cAAc,EAAE,CAaxE"}
@@ -1,25 +0,0 @@
1
- /**
2
- * Parses a `*_FAILURE_MODES` joined string back into structured criterion
3
- * entries. Each route's implementer-criteria.ts already authors its
4
- * taxonomy as a numbered list (`'1. TITLE — description...'`); this lets
5
- * the parallel-criteria dispatcher iterate without duplicating the prose.
6
- *
7
- * Expected line shape per criterion: `^N. TITLE — description$`
8
- * (em-dash with surrounding spaces; title may contain hyphens or slashes).
9
- */
10
- export function parseCriteria(failureModesText) {
11
- const out = [];
12
- const lines = failureModesText.split('\n');
13
- // Regex: leading digits + dot + space, capture title up to ' — ' separator,
14
- // then capture rest of line as description.
15
- const re = /^(\d+)\.\s+([^—]+?)\s+—\s+(.+)$/;
16
- for (const line of lines) {
17
- const m = re.exec(line);
18
- if (!m)
19
- continue;
20
- const [, id, title, description] = m;
21
- out.push({ id, title: title.trim(), description: description.trim() });
22
- }
23
- return out;
24
- }
25
- //# sourceMappingURL=criteria-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"criteria-types.js","sourceRoot":"","sources":["../../src/tools/criteria-types.ts"],"names":[],"mappings":"AAiBA;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CAAC,gBAAwB;IACpD,MAAM,GAAG,GAAqB,EAAE,CAAC;IACjC,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3C,4EAA4E;IAC5E,4CAA4C;IAC5C,MAAM,EAAE,GAAG,iCAAiC,CAAC;IAC7C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,CAAC,CAAC;YAAE,SAAS;QACjB,MAAM,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;QACrC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,WAAW,EAAE,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -1,15 +0,0 @@
1
- export interface ToolDebugBrief {
2
- problem: string;
3
- context?: string;
4
- hypothesis?: string;
5
- filePaths?: string[];
6
- contextBlockIds?: string[];
7
- }
8
- export declare function debugBriefSlot(input: {
9
- problem: string;
10
- context?: string;
11
- hypothesis?: string;
12
- filePaths?: string[];
13
- contextBlockIds?: string[];
14
- }): ToolDebugBrief[];
15
- //# sourceMappingURL=brief-slot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"brief-slot.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/brief-slot.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,GAAG,cAAc,EAAE,CAQnB"}
@@ -1,10 +0,0 @@
1
- export function debugBriefSlot(input) {
2
- return [{
3
- problem: input.problem,
4
- context: input.context,
5
- hypothesis: input.hypothesis,
6
- filePaths: input.filePaths,
7
- contextBlockIds: input.contextBlockIds,
8
- }];
9
- }
10
- //# sourceMappingURL=brief-slot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"brief-slot.js","sourceRoot":"","sources":["../../../src/tools/debug/brief-slot.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,cAAc,CAAC,KAM9B;IACC,OAAO,CAAC;YACN,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,eAAe,EAAE,KAAK,CAAC,eAAe;SACvC,CAAC,CAAC;AACL,CAAC"}
@@ -1,45 +0,0 @@
1
- /**
2
- * Debug-specific implementer criteria.
3
- *
4
- * DEBUG'S PURPOSE — read this before adding categories.
5
- * mma-debug is hypothesis-driven root-cause investigation. The output is
6
- * a fix specification, not a hint. The success criterion is:
7
- *
8
- * "Could a maintainer who reads ONLY your debug report apply the fix,
9
- * reproduce the original failure, verify the fix, and re-merge —
10
- * without redoing the investigation?"
11
- *
12
- * That criterion is what makes a finding load-bearing. A correctly-
13
- * identified line that is just a SYMPTOM (the real cause is upstream)
14
- * is the debug-equivalent of an unimplementable fix — it sends the
15
- * maintainer down the wrong path. A hypothesis with no falsifier is a
16
- * guess dressed up as a finding.
17
- *
18
- * Debug is hypothesis-driven; cross-file tracing is required, not
19
- * forbidden. Findings are evidence chains, not point observations.
20
- */
21
- /**
22
- * The orientation block. Goes at the TOP of every debug prompt.
23
- *
24
- * Without an explicit purpose statement, workers default to "find a
25
- * suspicious line" — which often points at the symptom, not the cause.
26
- * With this orientation, they trace from the failure point upstream
27
- * until they hit something that, if changed, would prevent the failure.
28
- */
29
- export declare const DEBUG_PURPOSE_ORIENTATION: string;
30
- export declare const EVIDENCE_RULE_DEBUG: string;
31
- export declare const SCOPE_RULE_DEBUG: string;
32
- /**
33
- * The failure-mode taxonomy for debug investigations.
34
- *
35
- * Without this block, workers default to "find a suspicious line" —
36
- * which catches surface symptoms but misses the chain upstream that
37
- * actually caused the failure. The 9 categories below are the patterns
38
- * a careful debugger would consciously check for.
39
- */
40
- export declare const DEBUG_FAILURE_MODES: string;
41
- export declare const ANNOTATOR_AWARENESS_DEBUG: string;
42
- import { type CriterionEntry } from '../criteria-types.js';
43
- /** Structured per-criterion array for parallel-criteria fan-out. */
44
- export declare const DEBUG_CRITERIA: readonly CriterionEntry[];
45
- //# sourceMappingURL=implementer-criteria.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"implementer-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/implementer-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,QAe1B,CAAC;AAEb,eAAO,MAAM,mBAAmB,QAQpB,CAAC;AAEb,eAAO,MAAM,gBAAgB,QAMjB,CAAC;AAEb;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,QAcpB,CAAC;AAEb,eAAO,MAAM,yBAAyB,QAS1B,CAAC;AAEb,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE1E,oEAAoE;AACpE,eAAO,MAAM,cAAc,EAAE,SAAS,cAAc,EAAuC,CAAC"}
@@ -1,97 +0,0 @@
1
- /**
2
- * Debug-specific implementer criteria.
3
- *
4
- * DEBUG'S PURPOSE — read this before adding categories.
5
- * mma-debug is hypothesis-driven root-cause investigation. The output is
6
- * a fix specification, not a hint. The success criterion is:
7
- *
8
- * "Could a maintainer who reads ONLY your debug report apply the fix,
9
- * reproduce the original failure, verify the fix, and re-merge —
10
- * without redoing the investigation?"
11
- *
12
- * That criterion is what makes a finding load-bearing. A correctly-
13
- * identified line that is just a SYMPTOM (the real cause is upstream)
14
- * is the debug-equivalent of an unimplementable fix — it sends the
15
- * maintainer down the wrong path. A hypothesis with no falsifier is a
16
- * guess dressed up as a finding.
17
- *
18
- * Debug is hypothesis-driven; cross-file tracing is required, not
19
- * forbidden. Findings are evidence chains, not point observations.
20
- */
21
- /**
22
- * The orientation block. Goes at the TOP of every debug prompt.
23
- *
24
- * Without an explicit purpose statement, workers default to "find a
25
- * suspicious line" — which often points at the symptom, not the cause.
26
- * With this orientation, they trace from the failure point upstream
27
- * until they hit something that, if changed, would prevent the failure.
28
- */
29
- export const DEBUG_PURPOSE_ORIENTATION = [
30
- 'Why this debug investigation exists:',
31
- 'mma-debug produces a fix specification a maintainer can apply WITHOUT redoing the investigation. Your output replaces the maintainer\'s own root-cause work — not augments it.',
32
- '',
33
- 'For your output to clear that bar, every finding must answer:',
34
- '- Reproduction: how does the maintainer trigger the failure (command, input, state)?',
35
- '- Symptom: where does the failure surface (file:line of the error, the failing assertion, the wrong output)?',
36
- '- Cause: where is the actual defect (file:line that, if changed, would prevent the failure)?',
37
- '- Trace: the evidence chain that links symptom to cause — each step a file:line citation or an observed value.',
38
- '- Fix: the specific change to make at the cause (PROPOSE only — read-only contract; the caller applies).',
39
- '- Falsifier: how the maintainer can verify the fix works (the assertion that should now pass, the wrong output that should now be right).',
40
- '',
41
- 'A finding missing the trace from symptom to cause is a guess. A finding that names a symptom location as the cause is misdirection. Both are worse than no finding because they send the maintainer down the wrong path.',
42
- '',
43
- 'The completion test: would a maintainer who reads only your report and the source code reproduce the failure, find the cited cause, apply the proposed fix, and confirm the falsifier — all without doing the investigation a second time?',
44
- ].join('\n');
45
- export const EVIDENCE_RULE_DEBUG = [
46
- 'Evidence grounding (REQUIRED for every finding):',
47
- '- Each finding is a hypothesis with a supporting evidence chain. Cite `file:line` at every step of the chain.',
48
- '- The chain has at least three points: SYMPTOM (where the failure surfaces) → INTERMEDIATE STATE (the wrong value, the unexpected branch, the missing call) → CAUSE (the file:line that, if changed, would prevent the failure).',
49
- '- Evidence forms accepted: reproducer commands, captured logs / stack traces, observed values, and code-path traces with file:line per step.',
50
- '- Hypothesis-level findings with PARTIAL evidence are valid — that is how root-causing works. Show the reasoning chain. State which step is firm and which is conjecture.',
51
- '- A hypothesis with NO falsifier (no way to check if the proposed cause is right) is a guess, not a finding. Always state how the maintainer can verify the fix.',
52
- '- Severity reflects evidence strength AND impact: confirmed root cause that ships a wrong fix = `critical`; confirmed root cause = `high`; plausible candidate with most of the chain = `medium`; partial trace / multiple plausible explanations = `low` (or note in summary).',
53
- ].join('\n');
54
- export const SCOPE_RULE_DEBUG = [
55
- 'Scope:',
56
- '- Follow the failure path wherever it leads. Cross-file tracing is required.',
57
- '- Reproduction discovery IS in scope: if the caller did not provide reproduction steps, infer them from test files, error messages, or recent commits and state your inferred reproduction explicitly.',
58
- '- Pre-existing-vs-new separation: if multiple bugs are entangled in the same failure, separate them. Identify which is the one the caller asked about; note the others under "Other defects observed (out of scope for this investigation)".',
59
- '- Out of scope: applying fixes (debug is read-only — propose, do not apply); rewriting code; auditing unrelated subsystems; broadening into general code review.',
60
- ].join('\n');
61
- /**
62
- * The failure-mode taxonomy for debug investigations.
63
- *
64
- * Without this block, workers default to "find a suspicious line" —
65
- * which catches surface symptoms but misses the chain upstream that
66
- * actually caused the failure. The 9 categories below are the patterns
67
- * a careful debugger would consciously check for.
68
- */
69
- export const DEBUG_FAILURE_MODES = [
70
- 'Five parallel angles for finding the root cause. EACH angle is a distinct perspective; from your assigned angle, propose one or more candidate root-cause hypotheses (or contributing factors). Severity = strength of the evidence chain from THIS angle.',
71
- '',
72
- '1. SYMPTOM-LOCATION ANGLE — start from where the failure surfaces (the throwing line, the failing assertion, the visible bad output). Trace UPSTREAM through the call/data path until you find a state that, if changed, prevents the failure. Each step must be a file:line citation or an observed value. Your candidate cause is the upstream state-change site you identify.',
73
- '2. RECENT-CHANGE ANGLE — read git log / recent diffs on the involved files. Which lines changed in the last N commits? Which changes plausibly altered the behavior under question? Your candidate cause is a specific recent change that could have introduced the bug; cite the commit + the line.',
74
- '3. TEST-FAILURE ANGLE — read the failing test (or the test that would fail). What assertion fires, with what expected vs actual? Read the implementation it exercises and identify where the contract is broken. Your candidate cause is "the implementation does X but the test contract requires Y at <file:line>".',
75
- '4. REPRODUCTION ANGLE — what minimum input / state / config triggers the failure? If no reproduction exists in the bug report, infer one from the code: which entry point + arguments would land in the failing path? Your candidate cause is "the failure requires <state>; the bug is the code path that handles that state at <file:line>".',
76
- '5. CONCURRENCY / CONFIGURATION ANGLE — does the failure depend on timing, ordering, async-ness, env vars, feature flags, or runtime config? Look for shared state, locks, awaits between check-and-act, conditional code gated on env. Your candidate cause is the race / config dependency, or "no concurrency/config dependency suspected" with reasoning.',
77
- '',
78
- 'Severity calibration for each candidate root cause:',
79
- '- critical: confirmed root cause + reproducible evidence + concrete fix is implied. The maintainer can act now without re-investigation.',
80
- '- high: strong root-cause hypothesis with traced upstream evidence (file:line citations along the call/data path), single chain, no inferred steps.',
81
- '- medium: likely candidate cause with most of the chain; 1-2 inferred steps; mark gaps explicitly with "verify by reading <file>" or "verify by running <cmd>".',
82
- '- low: possible contributing factor or partial trace; weak evidence but worth surfacing for the maintainer to consider against other angles\' candidates.',
83
- ].join('\n');
84
- export const ANNOTATOR_AWARENESS_DEBUG = [
85
- 'After your output, an annotator validates each finding against this debug rubric:',
86
- '- Is each finding a hypothesis with a complete trace from symptom to cause (not a point observation at the symptom)?',
87
- '- Does the cited cause come UPSTREAM of the cited symptom in the call/data flow?',
88
- '- Is there a reproduction step the maintainer can use to trigger the failure?',
89
- '- Is there a falsifier the maintainer can use to verify the fix?',
90
- '- Did you propose fixes WITHOUT applying them (read-only contract)?',
91
- '- Is severity calibrated to evidence strength (gaps in chain = lower severity, not the same severity with hand-waving)?',
92
- 'Self-check before emitting. Findings that fail any check are downgraded or dropped — but partial-evidence hypotheses with explicit "the gap is here, verify by X" notes are FULLY VALID, do NOT downgrade them as "speculation". Debug is speculation narrowed by evidence; hand-waving is the failure mode, not careful gap-marking.',
93
- ].join('\n');
94
- import { parseCriteria } from '../criteria-types.js';
95
- /** Structured per-criterion array for parallel-criteria fan-out. */
96
- export const DEBUG_CRITERIA = parseCriteria(DEBUG_FAILURE_MODES);
97
- //# sourceMappingURL=implementer-criteria.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"implementer-criteria.js","sourceRoot":"","sources":["../../../src/tools/debug/implementer-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,sCAAsC;IACtC,gLAAgL;IAChL,EAAE;IACF,+DAA+D;IAC/D,sFAAsF;IACtF,8GAA8G;IAC9G,8FAA8F;IAC9F,gHAAgH;IAChH,0GAA0G;IAC1G,2IAA2I;IAC3I,EAAE;IACF,0NAA0N;IAC1N,EAAE;IACF,4OAA4O;CAC7O,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,kDAAkD;IAClD,+GAA+G;IAC/G,kOAAkO;IAClO,8IAA8I;IAC9I,2KAA2K;IAC3K,kKAAkK;IAClK,iRAAiR;CAClR,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ;IACR,8EAA8E;IAC9E,wMAAwM;IACxM,8OAA8O;IAC9O,kKAAkK;CACnK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,4PAA4P;IAC5P,EAAE;IACF,kXAAkX;IAClX,sSAAsS;IACtS,uTAAuT;IACvT,gVAAgV;IAChV,8VAA8V;IAC9V,EAAE;IACF,qDAAqD;IACrD,0IAA0I;IAC1I,qJAAqJ;IACrJ,iKAAiK;IACjK,2JAA2J;CAC5J,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,mFAAmF;IACnF,sHAAsH;IACtH,kFAAkF;IAClF,+EAA+E;IAC/E,kEAAkE;IAClE,qEAAqE;IACrE,yHAAyH;IACzH,uUAAuU;CACxU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,OAAO,EAAE,aAAa,EAAuB,MAAM,sBAAsB,CAAC;AAE1E,oEAAoE;AACpE,MAAM,CAAC,MAAM,cAAc,GAA8B,aAAa,CAAC,mBAAmB,CAAC,CAAC"}
@@ -1,60 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const inputSchema: z.ZodObject<{
3
- problem: z.ZodString;
4
- context: z.ZodOptional<z.ZodString>;
5
- hypothesis: z.ZodOptional<z.ZodString>;
6
- subtype: z.ZodDefault<z.ZodEnum<{
7
- default: "default";
8
- }>>;
9
- filePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
- contextBlockIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
- }, z.core.$strip>;
12
- export type Input = z.infer<typeof inputSchema>;
13
- export declare const outputSchema: z.ZodObject<{
14
- headline: z.ZodString;
15
- results: z.ZodUnion<readonly [z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.ZodObject<{
16
- kind: z.ZodLiteral<"not_applicable">;
17
- reason: z.ZodString;
18
- }, z.core.$strip>]>;
19
- batchTimings: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$loose>, z.ZodObject<{
20
- kind: z.ZodLiteral<"not_applicable">;
21
- reason: z.ZodString;
22
- }, z.core.$strip>]>;
23
- costSummary: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$loose>, z.ZodObject<{
24
- kind: z.ZodLiteral<"not_applicable">;
25
- reason: z.ZodString;
26
- }, z.core.$strip>]>;
27
- structuredReport: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$loose>, z.ZodObject<{
28
- kind: z.ZodLiteral<"not_applicable">;
29
- reason: z.ZodString;
30
- }, z.core.$strip>]>;
31
- error: z.ZodUnion<readonly [z.ZodObject<{
32
- code: z.ZodString;
33
- message: z.ZodString;
34
- details: z.ZodOptional<z.ZodUnknown>;
35
- }, z.core.$strip>, z.ZodObject<{
36
- kind: z.ZodLiteral<"not_applicable">;
37
- reason: z.ZodString;
38
- }, z.core.$strip>]>;
39
- specReviewVerdict: z.ZodOptional<z.ZodEnum<{
40
- error: "error";
41
- approved: "approved";
42
- concerns: "concerns";
43
- changes_required: "changes_required";
44
- annotated: "annotated";
45
- skipped: "skipped";
46
- not_applicable: "not_applicable";
47
- }>>;
48
- qualityReviewVerdict: z.ZodOptional<z.ZodEnum<{
49
- error: "error";
50
- approved: "approved";
51
- concerns: "concerns";
52
- changes_required: "changes_required";
53
- annotated: "annotated";
54
- skipped: "skipped";
55
- not_applicable: "not_applicable";
56
- }>>;
57
- roundsUsed: z.ZodOptional<z.ZodNumber>;
58
- }, z.core.$loose>;
59
- export type Output = z.infer<typeof outputSchema>;
60
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,WAAW;;;;;;;;;iBAUtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAExD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- // packages/core/src/tool-schemas/debug.ts
2
- import { z } from 'zod';
3
- import { buildOutputEnvelopeSchema } from '../shared-output.js';
4
- // Ported verbatim from packages/mcp/src/tools/debug-task.ts (debugTaskSchema).
5
- // The filePaths field has its description overridden in the original — reproduced here.
6
- // commonToolFields (filePaths + contextBlockIds) are inlined to avoid cross-package coupling.
7
- export const inputSchema = z.object({
8
- problem: z.string().describe('What is broken'),
9
- context: z.string().optional().describe('Background'),
10
- hypothesis: z.string().optional().describe('Initial theory'),
11
- subtype: z.enum(['default']).default('default').describe('Criteria-set selector. Only `default` is wired today; reserved for future per-failure-class subtypes.'),
12
- filePaths: z.array(z.string()).optional().describe('Files the sub-agent should focus on. For debug_task, all provided files are investigated together in a single task.'),
13
- contextBlockIds: z.array(z.string()).optional()
14
- .describe('IDs from register_context_block to prepend to prompt. Use for delta audits, diff-scoped reviews, or shared specs.'),
15
- });
16
- export const outputSchema = buildOutputEnvelopeSchema();
17
- //# sourceMappingURL=schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/tools/debug/schema.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,+EAA+E;AAC/E,wFAAwF;AACxF,8FAA8F;AAC9F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;IACrD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC5D,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,uGAAuG,CAAC;IACjK,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAChD,qHAAqH,CACtH;IACD,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SAC5C,QAAQ,CAAC,mHAAmH,CAAC;CACjI,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,YAAY,GAAG,yBAAyB,EAAE,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { ReadOnlySubtypeSpec } from '../../lifecycle/read-only-subtype-spec.js';
2
- export type DebugSubtype = 'default';
3
- export declare const DEBUG_SUBTYPES: Record<DebugSubtype, ReadOnlySubtypeSpec>;
4
- //# sourceMappingURL=subtypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subtypes.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/subtypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAOrF,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;AAiBrC,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,mBAAmB,CASpE,CAAC"}
@@ -1,26 +0,0 @@
1
- import { DEBUG_PURPOSE_ORIENTATION, EVIDENCE_RULE_DEBUG, SCOPE_RULE_DEBUG, ANNOTATOR_AWARENESS_DEBUG, DEBUG_CRITERIA, } from './implementer-criteria.js';
2
- // Copied verbatim from ROUTE_SEMANTICS.debug.
3
- const SEMANTICS_DEFAULT = {
4
- goalLine: 'Apply THIS failure mode as the lens. Each finding is a root-cause hypothesis (or contributing factor), framed against this lens; severity = strength of the evidence chain.',
5
- emptyOutcomeLine: 'If THIS lens reveals nothing in the failure under investigation, respond with "No findings for this criterion." — valid outcome.',
6
- findingMeaningParagraph: 'A finding is a ROOT-CAUSE HYPOTHESIS (or contributing factor) for the failure under investigation, viewed through this criterion\'s lens. Title = the proposed cause. Severity reflects how strong the trace from symptom to cause is.',
7
- severityMeanings: {
8
- critical: 'Confirmed root cause',
9
- high: 'Very likely root cause; one step unconfirmed',
10
- medium: 'Plausible hypothesis',
11
- low: 'Peripheral observation',
12
- },
13
- mustEmitAtLeastOne: true,
14
- legalOutcomes: ['found', 'not_applicable'],
15
- };
16
- export const DEBUG_SUBTYPES = {
17
- default: {
18
- criteria: DEBUG_CRITERIA,
19
- orientation: DEBUG_PURPOSE_ORIENTATION,
20
- evidenceRule: EVIDENCE_RULE_DEBUG,
21
- scopeRule: SCOPE_RULE_DEBUG,
22
- annotatorAwareness: ANNOTATOR_AWARENESS_DEBUG,
23
- semantics: SEMANTICS_DEFAULT,
24
- },
25
- };
26
- //# sourceMappingURL=subtypes.js.map