@zhixuan92/multi-model-agent-core 5.1.0 → 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 (687) 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/task-envelope.d.ts +5 -5
  13. package/dist/events/task-envelope.d.ts.map +1 -1
  14. package/dist/events/task-envelope.js +3 -6
  15. package/dist/events/task-envelope.js.map +1 -1
  16. package/dist/events/telemetry-uploader.d.ts +1 -1
  17. package/dist/events/telemetry-uploader.d.ts.map +1 -1
  18. package/dist/events/to-wire-record.d.ts +1 -1
  19. package/dist/events/to-wire-record.d.ts.map +1 -1
  20. package/dist/events/to-wire-record.js +1 -1
  21. package/dist/events/to-wire-record.js.map +1 -1
  22. package/dist/events/wire-schema.d.ts +34 -11
  23. package/dist/events/wire-schema.d.ts.map +1 -1
  24. package/dist/events/wire-schema.js +8 -8
  25. package/dist/events/wire-schema.js.map +1 -1
  26. package/dist/index.d.ts +13 -18
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +9 -17
  29. package/dist/index.js.map +1 -1
  30. package/dist/providers/agent-resolver.js +1 -1
  31. package/dist/providers/agent-resolver.js.map +1 -1
  32. package/dist/providers/claude-session.d.ts +2 -1
  33. package/dist/providers/claude-session.d.ts.map +1 -1
  34. package/dist/providers/claude-session.js +29 -2
  35. package/dist/providers/claude-session.js.map +1 -1
  36. package/dist/providers/codex-cli-session.d.ts +3 -2
  37. package/dist/providers/codex-cli-session.d.ts.map +1 -1
  38. package/dist/providers/codex-cli-session.js +5 -2
  39. package/dist/providers/codex-cli-session.js.map +1 -1
  40. package/dist/providers/provider-factory.d.ts +2 -2
  41. package/dist/providers/provider-factory.d.ts.map +1 -1
  42. package/dist/providers/provider-factory.js +12 -12
  43. package/dist/providers/provider-factory.js.map +1 -1
  44. package/dist/providers/runner-types.d.ts +3 -16
  45. package/dist/providers/runner-types.d.ts.map +1 -1
  46. package/dist/research/index.d.ts +11 -1
  47. package/dist/research/index.d.ts.map +1 -1
  48. package/dist/research/index.js +8 -1
  49. package/dist/research/index.js.map +1 -1
  50. package/dist/stores/context-block-tool.d.ts +2 -3
  51. package/dist/stores/context-block-tool.d.ts.map +1 -1
  52. package/dist/stores/context-block-tool.js +1 -1
  53. package/dist/stores/context-block-tool.js.map +1 -1
  54. package/dist/stores/project-context-registry.d.ts +0 -9
  55. package/dist/stores/project-context-registry.d.ts.map +1 -1
  56. package/dist/stores/project-context-registry.js +0 -4
  57. package/dist/stores/project-context-registry.js.map +1 -1
  58. package/dist/types/brief-quality-policy.d.ts.map +1 -1
  59. package/dist/types/enums.d.ts +0 -9
  60. package/dist/types/enums.d.ts.map +1 -1
  61. package/dist/types/enums.js +0 -10
  62. package/dist/types/enums.js.map +1 -1
  63. package/dist/types/run-result.d.ts +48 -23
  64. package/dist/types/run-result.d.ts.map +1 -1
  65. package/dist/types/run-result.js +3 -16
  66. package/dist/types/run-result.js.map +1 -1
  67. package/dist/types/stage-stats.d.ts +1 -1
  68. package/dist/types/stage-stats.d.ts.map +1 -1
  69. package/dist/types/stage-stats.js +2 -4
  70. package/dist/types/stage-stats.js.map +1 -1
  71. package/dist/types/task-spec.d.ts +3 -17
  72. package/dist/types/task-spec.d.ts.map +1 -1
  73. package/dist/types.d.ts +1 -1
  74. package/dist/types.d.ts.map +1 -1
  75. package/dist/unified/reviewer-output-parser.d.ts +51 -0
  76. package/dist/unified/reviewer-output-parser.d.ts.map +1 -0
  77. package/dist/unified/reviewer-output-parser.js +39 -0
  78. package/dist/unified/reviewer-output-parser.js.map +1 -0
  79. package/dist/unified/skill-loader.d.ts +9 -0
  80. package/dist/unified/skill-loader.d.ts.map +1 -0
  81. package/dist/unified/skill-loader.js +45 -0
  82. package/dist/unified/skill-loader.js.map +1 -0
  83. package/dist/unified/task-input-schema.d.ts +217 -0
  84. package/dist/unified/task-input-schema.d.ts.map +1 -0
  85. package/dist/unified/task-input-schema.js +35 -0
  86. package/dist/unified/task-input-schema.js.map +1 -0
  87. package/dist/unified/task-registry.d.ts +23 -0
  88. package/dist/unified/task-registry.d.ts.map +1 -0
  89. package/dist/unified/task-registry.js +56 -0
  90. package/dist/unified/task-registry.js.map +1 -0
  91. package/dist/unified/two-phase-pipeline.d.ts +52 -0
  92. package/dist/unified/two-phase-pipeline.d.ts.map +1 -0
  93. package/dist/unified/two-phase-pipeline.js +95 -0
  94. package/dist/unified/two-phase-pipeline.js.map +1 -0
  95. package/dist/unified/type-registry.d.ts +13 -0
  96. package/dist/unified/type-registry.d.ts.map +1 -0
  97. package/dist/unified/type-registry.js +30 -0
  98. package/dist/unified/type-registry.js.map +1 -0
  99. package/dist/unified/worktree-manager.d.ts +43 -0
  100. package/dist/unified/worktree-manager.d.ts.map +1 -0
  101. package/dist/unified/worktree-manager.js +76 -0
  102. package/dist/unified/worktree-manager.js.map +1 -0
  103. package/package.json +5 -117
  104. package/dist/bounded-execution/file-artifact-check.d.ts +0 -7
  105. package/dist/bounded-execution/file-artifact-check.d.ts.map +0 -1
  106. package/dist/bounded-execution/file-artifact-check.js +0 -13
  107. package/dist/bounded-execution/file-artifact-check.js.map +0 -1
  108. package/dist/bounded-execution/progress-events-subscriber.d.ts +0 -33
  109. package/dist/bounded-execution/progress-events-subscriber.d.ts.map +0 -1
  110. package/dist/bounded-execution/progress-events-subscriber.js +0 -59
  111. package/dist/bounded-execution/progress-events-subscriber.js.map +0 -1
  112. package/dist/bounded-execution/progress-watchdog.d.ts +0 -43
  113. package/dist/bounded-execution/progress-watchdog.d.ts.map +0 -1
  114. package/dist/bounded-execution/progress-watchdog.js +0 -170
  115. package/dist/bounded-execution/progress-watchdog.js.map +0 -1
  116. package/dist/bounded-execution/real-diff.d.ts +0 -17
  117. package/dist/bounded-execution/real-diff.d.ts.map +0 -1
  118. package/dist/bounded-execution/real-diff.js +0 -59
  119. package/dist/bounded-execution/real-diff.js.map +0 -1
  120. package/dist/bounded-execution/scope-match.d.ts +0 -7
  121. package/dist/bounded-execution/scope-match.d.ts.map +0 -1
  122. package/dist/bounded-execution/scope-match.js +0 -28
  123. package/dist/bounded-execution/scope-match.js.map +0 -1
  124. package/dist/bounded-execution/stall-watchdog.d.ts +0 -18
  125. package/dist/bounded-execution/stall-watchdog.d.ts.map +0 -1
  126. package/dist/bounded-execution/stall-watchdog.js +0 -134
  127. package/dist/bounded-execution/stall-watchdog.js.map +0 -1
  128. package/dist/bounded-execution/wall-clock-guard.d.ts +0 -12
  129. package/dist/bounded-execution/wall-clock-guard.d.ts.map +0 -1
  130. package/dist/bounded-execution/wall-clock-guard.js +0 -27
  131. package/dist/bounded-execution/wall-clock-guard.js.map +0 -1
  132. package/dist/config/canonical-model-identity.d.ts +0 -9
  133. package/dist/config/canonical-model-identity.d.ts.map +0 -1
  134. package/dist/config/canonical-model-identity.js +0 -54
  135. package/dist/config/canonical-model-identity.js.map +0 -1
  136. package/dist/journal/default-schema.d.ts +0 -2
  137. package/dist/journal/default-schema.d.ts.map +0 -1
  138. package/dist/journal/default-schema.js +0 -27
  139. package/dist/journal/default-schema.js.map +0 -1
  140. package/dist/journal/types.d.ts +0 -22
  141. package/dist/journal/types.d.ts.map +0 -1
  142. package/dist/journal/types.js +0 -5
  143. package/dist/journal/types.js.map +0 -1
  144. package/dist/lifecycle/annotate-parser.d.ts +0 -11
  145. package/dist/lifecycle/annotate-parser.d.ts.map +0 -1
  146. package/dist/lifecycle/annotate-parser.js +0 -74
  147. package/dist/lifecycle/annotate-parser.js.map +0 -1
  148. package/dist/lifecycle/annotate-prompts.d.ts +0 -9
  149. package/dist/lifecycle/annotate-prompts.d.ts.map +0 -1
  150. package/dist/lifecycle/annotate-prompts.js +0 -95
  151. package/dist/lifecycle/annotate-prompts.js.map +0 -1
  152. package/dist/lifecycle/auto-commit.d.ts +0 -3
  153. package/dist/lifecycle/auto-commit.d.ts.map +0 -1
  154. package/dist/lifecycle/auto-commit.js +0 -5
  155. package/dist/lifecycle/auto-commit.js.map +0 -1
  156. package/dist/lifecycle/auto-register-context-block.d.ts +0 -11
  157. package/dist/lifecycle/auto-register-context-block.d.ts.map +0 -1
  158. package/dist/lifecycle/auto-register-context-block.js +0 -18
  159. package/dist/lifecycle/auto-register-context-block.js.map +0 -1
  160. package/dist/lifecycle/build-cancelled-result.d.ts +0 -11
  161. package/dist/lifecycle/build-cancelled-result.d.ts.map +0 -1
  162. package/dist/lifecycle/build-cancelled-result.js +0 -25
  163. package/dist/lifecycle/build-cancelled-result.js.map +0 -1
  164. package/dist/lifecycle/derive-completion.d.ts +0 -28
  165. package/dist/lifecycle/derive-completion.d.ts.map +0 -1
  166. package/dist/lifecycle/derive-completion.js +0 -79
  167. package/dist/lifecycle/derive-completion.js.map +0 -1
  168. package/dist/lifecycle/executor-output-types.d.ts +0 -53
  169. package/dist/lifecycle/executor-output-types.d.ts.map +0 -1
  170. package/dist/lifecycle/executor-output-types.js +0 -2
  171. package/dist/lifecycle/executor-output-types.js.map +0 -1
  172. package/dist/lifecycle/file-confinement-check.d.ts +0 -17
  173. package/dist/lifecycle/file-confinement-check.d.ts.map +0 -1
  174. package/dist/lifecycle/file-confinement-check.js +0 -44
  175. package/dist/lifecycle/file-confinement-check.js.map +0 -1
  176. package/dist/lifecycle/findings-parser.d.ts +0 -18
  177. package/dist/lifecycle/findings-parser.d.ts.map +0 -1
  178. package/dist/lifecycle/findings-parser.js +0 -143
  179. package/dist/lifecycle/findings-parser.js.map +0 -1
  180. package/dist/lifecycle/git-exec.d.ts +0 -62
  181. package/dist/lifecycle/git-exec.d.ts.map +0 -1
  182. package/dist/lifecycle/git-exec.js +0 -135
  183. package/dist/lifecycle/git-exec.js.map +0 -1
  184. package/dist/lifecycle/git-toplevel.d.ts +0 -12
  185. package/dist/lifecycle/git-toplevel.d.ts.map +0 -1
  186. package/dist/lifecycle/git-toplevel.js +0 -52
  187. package/dist/lifecycle/git-toplevel.js.map +0 -1
  188. package/dist/lifecycle/goal-builder.d.ts +0 -35
  189. package/dist/lifecycle/goal-builder.d.ts.map +0 -1
  190. package/dist/lifecycle/goal-builder.js +0 -56
  191. package/dist/lifecycle/goal-builder.js.map +0 -1
  192. package/dist/lifecycle/goal-preconditions.d.ts +0 -21
  193. package/dist/lifecycle/goal-preconditions.d.ts.map +0 -1
  194. package/dist/lifecycle/goal-preconditions.js +0 -33
  195. package/dist/lifecycle/goal-preconditions.js.map +0 -1
  196. package/dist/lifecycle/goal-prompts.d.ts +0 -27
  197. package/dist/lifecycle/goal-prompts.d.ts.map +0 -1
  198. package/dist/lifecycle/goal-prompts.js +0 -204
  199. package/dist/lifecycle/goal-prompts.js.map +0 -1
  200. package/dist/lifecycle/goal-report.d.ts +0 -42
  201. package/dist/lifecycle/goal-report.d.ts.map +0 -1
  202. package/dist/lifecycle/goal-report.js +0 -125
  203. package/dist/lifecycle/goal-report.js.map +0 -1
  204. package/dist/lifecycle/handlers/annotate-stage.d.ts +0 -35
  205. package/dist/lifecycle/handlers/annotate-stage.d.ts.map +0 -1
  206. package/dist/lifecycle/handlers/annotate-stage.js +0 -387
  207. package/dist/lifecycle/handlers/annotate-stage.js.map +0 -1
  208. package/dist/lifecycle/handlers/baseline-handlers.d.ts +0 -12
  209. package/dist/lifecycle/handlers/baseline-handlers.d.ts.map +0 -1
  210. package/dist/lifecycle/handlers/baseline-handlers.js +0 -281
  211. package/dist/lifecycle/handlers/baseline-handlers.js.map +0 -1
  212. package/dist/lifecycle/handlers/enrich-runtime-result.d.ts +0 -3
  213. package/dist/lifecycle/handlers/enrich-runtime-result.d.ts.map +0 -1
  214. package/dist/lifecycle/handlers/enrich-runtime-result.js +0 -239
  215. package/dist/lifecycle/handlers/enrich-runtime-result.js.map +0 -1
  216. package/dist/lifecycle/handlers/implement-stage.d.ts +0 -10
  217. package/dist/lifecycle/handlers/implement-stage.d.ts.map +0 -1
  218. package/dist/lifecycle/handlers/implement-stage.js +0 -228
  219. package/dist/lifecycle/handlers/implement-stage.js.map +0 -1
  220. package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts +0 -13
  221. package/dist/lifecycle/handlers/prepare-execution-context-handler.d.ts.map +0 -1
  222. package/dist/lifecycle/handlers/prepare-execution-context-handler.js +0 -61
  223. package/dist/lifecycle/handlers/prepare-execution-context-handler.js.map +0 -1
  224. package/dist/lifecycle/handlers/read-route-implementer.d.ts +0 -52
  225. package/dist/lifecycle/handlers/read-route-implementer.d.ts.map +0 -1
  226. package/dist/lifecycle/handlers/read-route-implementer.js +0 -109
  227. package/dist/lifecycle/handlers/read-route-implementer.js.map +0 -1
  228. package/dist/lifecycle/handlers/register-context-block-handlers.d.ts +0 -4
  229. package/dist/lifecycle/handlers/register-context-block-handlers.d.ts.map +0 -1
  230. package/dist/lifecycle/handlers/register-context-block-handlers.js +0 -35
  231. package/dist/lifecycle/handlers/register-context-block-handlers.js.map +0 -1
  232. package/dist/lifecycle/handlers/review-fix-stage.d.ts +0 -9
  233. package/dist/lifecycle/handlers/review-fix-stage.d.ts.map +0 -1
  234. package/dist/lifecycle/handlers/review-fix-stage.js +0 -75
  235. package/dist/lifecycle/handlers/review-fix-stage.js.map +0 -1
  236. package/dist/lifecycle/handlers/terminal-handlers.d.ts +0 -61
  237. package/dist/lifecycle/handlers/terminal-handlers.d.ts.map +0 -1
  238. package/dist/lifecycle/handlers/terminal-handlers.js +0 -339
  239. package/dist/lifecycle/handlers/terminal-handlers.js.map +0 -1
  240. package/dist/lifecycle/lifecycle-context.d.ts +0 -109
  241. package/dist/lifecycle/lifecycle-context.d.ts.map +0 -1
  242. package/dist/lifecycle/lifecycle-context.js +0 -2
  243. package/dist/lifecycle/lifecycle-context.js.map +0 -1
  244. package/dist/lifecycle/lifecycle-dispatcher.d.ts +0 -35
  245. package/dist/lifecycle/lifecycle-dispatcher.d.ts.map +0 -1
  246. package/dist/lifecycle/lifecycle-dispatcher.js +0 -64
  247. package/dist/lifecycle/lifecycle-dispatcher.js.map +0 -1
  248. package/dist/lifecycle/lifecycle-driver.d.ts +0 -16
  249. package/dist/lifecycle/lifecycle-driver.d.ts.map +0 -1
  250. package/dist/lifecycle/lifecycle-driver.js +0 -334
  251. package/dist/lifecycle/lifecycle-driver.js.map +0 -1
  252. package/dist/lifecycle/merge-stage-stats.d.ts +0 -62
  253. package/dist/lifecycle/merge-stage-stats.d.ts.map +0 -1
  254. package/dist/lifecycle/merge-stage-stats.js +0 -136
  255. package/dist/lifecycle/merge-stage-stats.js.map +0 -1
  256. package/dist/lifecycle/normalize-output-targets.d.ts +0 -2
  257. package/dist/lifecycle/normalize-output-targets.d.ts.map +0 -1
  258. package/dist/lifecycle/normalize-output-targets.js +0 -14
  259. package/dist/lifecycle/normalize-output-targets.js.map +0 -1
  260. package/dist/lifecycle/perform-implementation.d.ts +0 -3
  261. package/dist/lifecycle/perform-implementation.d.ts.map +0 -1
  262. package/dist/lifecycle/perform-implementation.js +0 -371
  263. package/dist/lifecycle/perform-implementation.js.map +0 -1
  264. package/dist/lifecycle/read-only-subtype-spec.d.ts +0 -18
  265. package/dist/lifecycle/read-only-subtype-spec.d.ts.map +0 -1
  266. package/dist/lifecycle/read-only-subtype-spec.js +0 -2
  267. package/dist/lifecycle/read-only-subtype-spec.js.map +0 -1
  268. package/dist/lifecycle/review-verdict-mapping.d.ts +0 -16
  269. package/dist/lifecycle/review-verdict-mapping.d.ts.map +0 -1
  270. package/dist/lifecycle/review-verdict-mapping.js +0 -24
  271. package/dist/lifecycle/review-verdict-mapping.js.map +0 -1
  272. package/dist/lifecycle/shared-compute.d.ts +0 -14
  273. package/dist/lifecycle/shared-compute.d.ts.map +0 -1
  274. package/dist/lifecycle/shared-compute.js +0 -51
  275. package/dist/lifecycle/shared-compute.js.map +0 -1
  276. package/dist/lifecycle/stage-idle-tracker.d.ts +0 -14
  277. package/dist/lifecycle/stage-idle-tracker.d.ts.map +0 -1
  278. package/dist/lifecycle/stage-idle-tracker.js +0 -17
  279. package/dist/lifecycle/stage-idle-tracker.js.map +0 -1
  280. package/dist/lifecycle/stage-io.d.ts +0 -134
  281. package/dist/lifecycle/stage-io.d.ts.map +0 -1
  282. package/dist/lifecycle/stage-io.js +0 -9
  283. package/dist/lifecycle/stage-io.js.map +0 -1
  284. package/dist/lifecycle/stage-labels.d.ts +0 -7
  285. package/dist/lifecycle/stage-labels.d.ts.map +0 -1
  286. package/dist/lifecycle/stage-labels.js +0 -19
  287. package/dist/lifecycle/stage-labels.js.map +0 -1
  288. package/dist/lifecycle/stage-plan-builder.d.ts +0 -4
  289. package/dist/lifecycle/stage-plan-builder.d.ts.map +0 -1
  290. package/dist/lifecycle/stage-plan-builder.js +0 -157
  291. package/dist/lifecycle/stage-plan-builder.js.map +0 -1
  292. package/dist/lifecycle/stage-plan-types.d.ts +0 -131
  293. package/dist/lifecycle/stage-plan-types.d.ts.map +0 -1
  294. package/dist/lifecycle/stage-plan-types.js +0 -28
  295. package/dist/lifecycle/stage-plan-types.js.map +0 -1
  296. package/dist/lifecycle/stage-progression.d.ts +0 -6
  297. package/dist/lifecycle/stage-progression.d.ts.map +0 -1
  298. package/dist/lifecycle/stage-progression.js +0 -100
  299. package/dist/lifecycle/stage-progression.js.map +0 -1
  300. package/dist/lifecycle/task-executor.d.ts +0 -24
  301. package/dist/lifecycle/task-executor.d.ts.map +0 -1
  302. package/dist/lifecycle/task-executor.js +0 -365
  303. package/dist/lifecycle/task-executor.js.map +0 -1
  304. package/dist/lifecycle/task-runner.d.ts +0 -66
  305. package/dist/lifecycle/task-runner.d.ts.map +0 -1
  306. package/dist/lifecycle/task-runner.js +0 -334
  307. package/dist/lifecycle/task-runner.js.map +0 -1
  308. package/dist/lifecycle/tool-category.d.ts +0 -2
  309. package/dist/lifecycle/tool-category.d.ts.map +0 -1
  310. package/dist/lifecycle/tool-category.js +0 -6
  311. package/dist/lifecycle/tool-category.js.map +0 -1
  312. package/dist/lifecycle/tool-config-types.d.ts +0 -32
  313. package/dist/lifecycle/tool-config-types.d.ts.map +0 -1
  314. package/dist/lifecycle/tool-config-types.js +0 -2
  315. package/dist/lifecycle/tool-config-types.js.map +0 -1
  316. package/dist/lifecycle/warm-followup.d.ts +0 -3
  317. package/dist/lifecycle/warm-followup.d.ts.map +0 -1
  318. package/dist/lifecycle/warm-followup.js +0 -16
  319. package/dist/lifecycle/warm-followup.js.map +0 -1
  320. package/dist/lifecycle/worker-output-contract.d.ts +0 -22
  321. package/dist/lifecycle/worker-output-contract.d.ts.map +0 -1
  322. package/dist/lifecycle/worker-output-contract.js +0 -91
  323. package/dist/lifecycle/worker-output-contract.js.map +0 -1
  324. package/dist/lifecycle/write-goal-lock.d.ts +0 -29
  325. package/dist/lifecycle/write-goal-lock.d.ts.map +0 -1
  326. package/dist/lifecycle/write-goal-lock.js +0 -70
  327. package/dist/lifecycle/write-goal-lock.js.map +0 -1
  328. package/dist/providers/assemble-run-result.d.ts +0 -17
  329. package/dist/providers/assemble-run-result.d.ts.map +0 -1
  330. package/dist/providers/assemble-run-result.js +0 -52
  331. package/dist/providers/assemble-run-result.js.map +0 -1
  332. package/dist/providers/skill-resolver.d.ts +0 -17
  333. package/dist/providers/skill-resolver.d.ts.map +0 -1
  334. package/dist/providers/skill-resolver.js +0 -123
  335. package/dist/providers/skill-resolver.js.map +0 -1
  336. package/dist/reporting/batch-persister.d.ts +0 -4
  337. package/dist/reporting/batch-persister.d.ts.map +0 -1
  338. package/dist/reporting/batch-persister.js +0 -11
  339. package/dist/reporting/batch-persister.js.map +0 -1
  340. package/dist/reporting/commit-stage-runner.d.ts +0 -12
  341. package/dist/reporting/commit-stage-runner.d.ts.map +0 -1
  342. package/dist/reporting/commit-stage-runner.js +0 -43
  343. package/dist/reporting/commit-stage-runner.js.map +0 -1
  344. package/dist/reporting/derive-investigate-status.d.ts +0 -15
  345. package/dist/reporting/derive-investigate-status.d.ts.map +0 -1
  346. package/dist/reporting/derive-investigate-status.js +0 -23
  347. package/dist/reporting/derive-investigate-status.js.map +0 -1
  348. package/dist/reporting/extract-fenced-json.d.ts +0 -7
  349. package/dist/reporting/extract-fenced-json.d.ts.map +0 -1
  350. package/dist/reporting/extract-fenced-json.js +0 -17
  351. package/dist/reporting/extract-fenced-json.js.map +0 -1
  352. package/dist/reporting/findings-headline.d.ts +0 -12
  353. package/dist/reporting/findings-headline.d.ts.map +0 -1
  354. package/dist/reporting/findings-headline.js +0 -40
  355. package/dist/reporting/findings-headline.js.map +0 -1
  356. package/dist/reporting/findings-outcome.d.ts +0 -13
  357. package/dist/reporting/findings-outcome.d.ts.map +0 -1
  358. package/dist/reporting/findings-outcome.js +0 -22
  359. package/dist/reporting/findings-outcome.js.map +0 -1
  360. package/dist/reporting/headline-composer.d.ts +0 -29
  361. package/dist/reporting/headline-composer.d.ts.map +0 -1
  362. package/dist/reporting/headline-composer.js +0 -10
  363. package/dist/reporting/headline-composer.js.map +0 -1
  364. package/dist/reporting/headline-templates/delegate.d.ts +0 -3
  365. package/dist/reporting/headline-templates/delegate.d.ts.map +0 -1
  366. package/dist/reporting/headline-templates/delegate.js +0 -42
  367. package/dist/reporting/headline-templates/delegate.js.map +0 -1
  368. package/dist/reporting/headline-templates/execute-plan.d.ts +0 -3
  369. package/dist/reporting/headline-templates/execute-plan.d.ts.map +0 -1
  370. package/dist/reporting/headline-templates/execute-plan.js +0 -26
  371. package/dist/reporting/headline-templates/execute-plan.js.map +0 -1
  372. package/dist/reporting/headline-templates/investigate.d.ts +0 -13
  373. package/dist/reporting/headline-templates/investigate.d.ts.map +0 -1
  374. package/dist/reporting/headline-templates/investigate.js +0 -53
  375. package/dist/reporting/headline-templates/investigate.js.map +0 -1
  376. package/dist/reporting/headline-templates/journal-recall.d.ts +0 -3
  377. package/dist/reporting/headline-templates/journal-recall.d.ts.map +0 -1
  378. package/dist/reporting/headline-templates/journal-recall.js +0 -9
  379. package/dist/reporting/headline-templates/journal-recall.js.map +0 -1
  380. package/dist/reporting/headline-templates/journal.d.ts +0 -3
  381. package/dist/reporting/headline-templates/journal.d.ts.map +0 -1
  382. package/dist/reporting/headline-templates/journal.js +0 -17
  383. package/dist/reporting/headline-templates/journal.js.map +0 -1
  384. package/dist/reporting/headline-templates/research.d.ts +0 -3
  385. package/dist/reporting/headline-templates/research.d.ts.map +0 -1
  386. package/dist/reporting/headline-templates/research.js +0 -22
  387. package/dist/reporting/headline-templates/research.js.map +0 -1
  388. package/dist/reporting/headline-text.d.ts +0 -36
  389. package/dist/reporting/headline-text.d.ts.map +0 -1
  390. package/dist/reporting/headline-text.js +0 -73
  391. package/dist/reporting/headline-text.js.map +0 -1
  392. package/dist/reporting/report-parser-slots/delegate-report.d.ts +0 -8
  393. package/dist/reporting/report-parser-slots/delegate-report.d.ts.map +0 -1
  394. package/dist/reporting/report-parser-slots/delegate-report.js +0 -12
  395. package/dist/reporting/report-parser-slots/delegate-report.js.map +0 -1
  396. package/dist/reporting/report-parser-slots/execute-plan-report.d.ts +0 -11
  397. package/dist/reporting/report-parser-slots/execute-plan-report.d.ts.map +0 -1
  398. package/dist/reporting/report-parser-slots/execute-plan-report.js +0 -7
  399. package/dist/reporting/report-parser-slots/execute-plan-report.js.map +0 -1
  400. package/dist/reporting/report-parser-slots/investigate-report.d.ts +0 -52
  401. package/dist/reporting/report-parser-slots/investigate-report.d.ts.map +0 -1
  402. package/dist/reporting/report-parser-slots/investigate-report.js +0 -307
  403. package/dist/reporting/report-parser-slots/investigate-report.js.map +0 -1
  404. package/dist/reporting/report-parser-slots/journal-report.d.ts +0 -19
  405. package/dist/reporting/report-parser-slots/journal-report.d.ts.map +0 -1
  406. package/dist/reporting/report-parser-slots/journal-report.js +0 -13
  407. package/dist/reporting/report-parser-slots/journal-report.js.map +0 -1
  408. package/dist/reporting/report-parser-slots/no-structured-report.d.ts +0 -10
  409. package/dist/reporting/report-parser-slots/no-structured-report.d.ts.map +0 -1
  410. package/dist/reporting/report-parser-slots/no-structured-report.js +0 -13
  411. package/dist/reporting/report-parser-slots/no-structured-report.js.map +0 -1
  412. package/dist/reporting/report-parser-slots/research-report.d.ts +0 -31
  413. package/dist/reporting/report-parser-slots/research-report.d.ts.map +0 -1
  414. package/dist/reporting/report-parser-slots/research-report.js +0 -50
  415. package/dist/reporting/report-parser-slots/research-report.js.map +0 -1
  416. package/dist/reporting/response-envelope-builder.d.ts +0 -32
  417. package/dist/reporting/response-envelope-builder.d.ts.map +0 -1
  418. package/dist/reporting/response-envelope-builder.js +0 -26
  419. package/dist/reporting/response-envelope-builder.js.map +0 -1
  420. package/dist/reporting/severity.d.ts +0 -62
  421. package/dist/reporting/severity.d.ts.map +0 -1
  422. package/dist/reporting/severity.js +0 -93
  423. package/dist/reporting/severity.js.map +0 -1
  424. package/dist/reporting/structured-report-parser.d.ts +0 -9
  425. package/dist/reporting/structured-report-parser.d.ts.map +0 -1
  426. package/dist/reporting/structured-report-parser.js +0 -8
  427. package/dist/reporting/structured-report-parser.js.map +0 -1
  428. package/dist/reporting/terminal-block-registrar.d.ts +0 -14
  429. package/dist/reporting/terminal-block-registrar.d.ts.map +0 -1
  430. package/dist/reporting/terminal-block-registrar.js +0 -17
  431. package/dist/reporting/terminal-block-registrar.js.map +0 -1
  432. package/dist/reporting/terminal-report-markdown.d.ts +0 -13
  433. package/dist/reporting/terminal-report-markdown.d.ts.map +0 -1
  434. package/dist/reporting/terminal-report-markdown.js +0 -31
  435. package/dist/reporting/terminal-report-markdown.js.map +0 -1
  436. package/dist/research/research-pre-loop.d.ts +0 -22
  437. package/dist/research/research-pre-loop.d.ts.map +0 -1
  438. package/dist/research/research-pre-loop.js +0 -50
  439. package/dist/research/research-pre-loop.js.map +0 -1
  440. package/dist/routing/read-route-criteria.d.ts +0 -36
  441. package/dist/routing/read-route-criteria.d.ts.map +0 -1
  442. package/dist/routing/read-route-criteria.js +0 -71
  443. package/dist/routing/read-route-criteria.js.map +0 -1
  444. package/dist/stores/batch-cache.d.ts +0 -29
  445. package/dist/stores/batch-cache.d.ts.map +0 -1
  446. package/dist/stores/batch-cache.js +0 -89
  447. package/dist/stores/batch-cache.js.map +0 -1
  448. package/dist/stores/batch-registry.d.ts +0 -138
  449. package/dist/stores/batch-registry.d.ts.map +0 -1
  450. package/dist/stores/batch-registry.js +0 -205
  451. package/dist/stores/batch-registry.js.map +0 -1
  452. package/dist/tool-surface/register-all-tools.d.ts +0 -4
  453. package/dist/tool-surface/register-all-tools.d.ts.map +0 -1
  454. package/dist/tool-surface/register-all-tools.js +0 -35
  455. package/dist/tool-surface/register-all-tools.js.map +0 -1
  456. package/dist/tool-surface/tool-surface-registry.d.ts +0 -28
  457. package/dist/tool-surface/tool-surface-registry.d.ts.map +0 -1
  458. package/dist/tool-surface/tool-surface-registry.js +0 -16
  459. package/dist/tool-surface/tool-surface-registry.js.map +0 -1
  460. package/dist/tools/audit/brief-slot.d.ts +0 -15
  461. package/dist/tools/audit/brief-slot.d.ts.map +0 -1
  462. package/dist/tools/audit/brief-slot.js +0 -69
  463. package/dist/tools/audit/brief-slot.js.map +0 -1
  464. package/dist/tools/audit/implementer-criteria.d.ts +0 -62
  465. package/dist/tools/audit/implementer-criteria.d.ts.map +0 -1
  466. package/dist/tools/audit/implementer-criteria.js +0 -121
  467. package/dist/tools/audit/implementer-criteria.js.map +0 -1
  468. package/dist/tools/audit/plan-audit-criteria.d.ts +0 -35
  469. package/dist/tools/audit/plan-audit-criteria.d.ts.map +0 -1
  470. package/dist/tools/audit/plan-audit-criteria.js +0 -159
  471. package/dist/tools/audit/plan-audit-criteria.js.map +0 -1
  472. package/dist/tools/audit/schema.d.ts +0 -61
  473. package/dist/tools/audit/schema.d.ts.map +0 -1
  474. package/dist/tools/audit/schema.js +0 -21
  475. package/dist/tools/audit/schema.js.map +0 -1
  476. package/dist/tools/audit/skill-audit-criteria.d.ts +0 -9
  477. package/dist/tools/audit/skill-audit-criteria.d.ts.map +0 -1
  478. package/dist/tools/audit/skill-audit-criteria.js +0 -52
  479. package/dist/tools/audit/skill-audit-criteria.js.map +0 -1
  480. package/dist/tools/audit/spec-audit-criteria.d.ts +0 -9
  481. package/dist/tools/audit/spec-audit-criteria.d.ts.map +0 -1
  482. package/dist/tools/audit/spec-audit-criteria.js +0 -55
  483. package/dist/tools/audit/spec-audit-criteria.js.map +0 -1
  484. package/dist/tools/audit/subtypes.d.ts +0 -4
  485. package/dist/tools/audit/subtypes.d.ts.map +0 -1
  486. package/dist/tools/audit/subtypes.js +0 -69
  487. package/dist/tools/audit/subtypes.js.map +0 -1
  488. package/dist/tools/audit/tool-config.d.ts +0 -7
  489. package/dist/tools/audit/tool-config.d.ts.map +0 -1
  490. package/dist/tools/audit/tool-config.js +0 -60
  491. package/dist/tools/audit/tool-config.js.map +0 -1
  492. package/dist/tools/criteria-types.d.ts +0 -27
  493. package/dist/tools/criteria-types.d.ts.map +0 -1
  494. package/dist/tools/criteria-types.js +0 -25
  495. package/dist/tools/criteria-types.js.map +0 -1
  496. package/dist/tools/debug/brief-slot.d.ts +0 -15
  497. package/dist/tools/debug/brief-slot.d.ts.map +0 -1
  498. package/dist/tools/debug/brief-slot.js +0 -10
  499. package/dist/tools/debug/brief-slot.js.map +0 -1
  500. package/dist/tools/debug/implementer-criteria.d.ts +0 -45
  501. package/dist/tools/debug/implementer-criteria.d.ts.map +0 -1
  502. package/dist/tools/debug/implementer-criteria.js +0 -97
  503. package/dist/tools/debug/implementer-criteria.js.map +0 -1
  504. package/dist/tools/debug/schema.d.ts +0 -60
  505. package/dist/tools/debug/schema.d.ts.map +0 -1
  506. package/dist/tools/debug/schema.js +0 -17
  507. package/dist/tools/debug/schema.js.map +0 -1
  508. package/dist/tools/debug/subtypes.d.ts +0 -4
  509. package/dist/tools/debug/subtypes.d.ts.map +0 -1
  510. package/dist/tools/debug/subtypes.js +0 -26
  511. package/dist/tools/debug/subtypes.js.map +0 -1
  512. package/dist/tools/debug/tool-config.d.ts +0 -7
  513. package/dist/tools/debug/tool-config.d.ts.map +0 -1
  514. package/dist/tools/debug/tool-config.js +0 -55
  515. package/dist/tools/debug/tool-config.js.map +0 -1
  516. package/dist/tools/delegate/brief-slot.d.ts +0 -20
  517. package/dist/tools/delegate/brief-slot.d.ts.map +0 -1
  518. package/dist/tools/delegate/brief-slot.js +0 -31
  519. package/dist/tools/delegate/brief-slot.js.map +0 -1
  520. package/dist/tools/delegate/implementer-criteria.d.ts +0 -53
  521. package/dist/tools/delegate/implementer-criteria.d.ts.map +0 -1
  522. package/dist/tools/delegate/implementer-criteria.js +0 -99
  523. package/dist/tools/delegate/implementer-criteria.js.map +0 -1
  524. package/dist/tools/delegate/schema.d.ts +0 -70
  525. package/dist/tools/delegate/schema.d.ts.map +0 -1
  526. package/dist/tools/delegate/schema.js +0 -24
  527. package/dist/tools/delegate/schema.js.map +0 -1
  528. package/dist/tools/delegate/tool-config.d.ts +0 -7
  529. package/dist/tools/delegate/tool-config.d.ts.map +0 -1
  530. package/dist/tools/delegate/tool-config.js +0 -47
  531. package/dist/tools/delegate/tool-config.js.map +0 -1
  532. package/dist/tools/execute-plan/barrel.d.ts +0 -2
  533. package/dist/tools/execute-plan/barrel.d.ts.map +0 -1
  534. package/dist/tools/execute-plan/barrel.js +0 -7
  535. package/dist/tools/execute-plan/barrel.js.map +0 -1
  536. package/dist/tools/execute-plan/brief-slot.d.ts +0 -25
  537. package/dist/tools/execute-plan/brief-slot.d.ts.map +0 -1
  538. package/dist/tools/execute-plan/brief-slot.js +0 -124
  539. package/dist/tools/execute-plan/brief-slot.js.map +0 -1
  540. package/dist/tools/execute-plan/implementer-criteria.d.ts +0 -57
  541. package/dist/tools/execute-plan/implementer-criteria.d.ts.map +0 -1
  542. package/dist/tools/execute-plan/implementer-criteria.js +0 -108
  543. package/dist/tools/execute-plan/implementer-criteria.js.map +0 -1
  544. package/dist/tools/execute-plan/plan-extractor.d.ts +0 -21
  545. package/dist/tools/execute-plan/plan-extractor.d.ts.map +0 -1
  546. package/dist/tools/execute-plan/plan-extractor.js +0 -96
  547. package/dist/tools/execute-plan/plan-extractor.js.map +0 -1
  548. package/dist/tools/execute-plan/tool-config.d.ts +0 -68
  549. package/dist/tools/execute-plan/tool-config.d.ts.map +0 -1
  550. package/dist/tools/execute-plan/tool-config.js +0 -58
  551. package/dist/tools/execute-plan/tool-config.js.map +0 -1
  552. package/dist/tools/index.d.ts +0 -8
  553. package/dist/tools/index.d.ts.map +0 -1
  554. package/dist/tools/index.js +0 -14
  555. package/dist/tools/index.js.map +0 -1
  556. package/dist/tools/investigate/brief-slot.d.ts +0 -15
  557. package/dist/tools/investigate/brief-slot.d.ts.map +0 -1
  558. package/dist/tools/investigate/brief-slot.js +0 -9
  559. package/dist/tools/investigate/brief-slot.js.map +0 -1
  560. package/dist/tools/investigate/implementer-criteria.d.ts +0 -52
  561. package/dist/tools/investigate/implementer-criteria.d.ts.map +0 -1
  562. package/dist/tools/investigate/implementer-criteria.js +0 -106
  563. package/dist/tools/investigate/implementer-criteria.js.map +0 -1
  564. package/dist/tools/investigate/schema.d.ts +0 -62
  565. package/dist/tools/investigate/schema.d.ts.map +0 -1
  566. package/dist/tools/investigate/schema.js +0 -13
  567. package/dist/tools/investigate/schema.js.map +0 -1
  568. package/dist/tools/investigate/subtypes.d.ts +0 -4
  569. package/dist/tools/investigate/subtypes.d.ts.map +0 -1
  570. package/dist/tools/investigate/subtypes.js +0 -26
  571. package/dist/tools/investigate/subtypes.js.map +0 -1
  572. package/dist/tools/investigate/tool-config.d.ts +0 -8
  573. package/dist/tools/investigate/tool-config.d.ts.map +0 -1
  574. package/dist/tools/investigate/tool-config.js +0 -68
  575. package/dist/tools/investigate/tool-config.js.map +0 -1
  576. package/dist/tools/journal/recall/brief-slot.d.ts +0 -7
  577. package/dist/tools/journal/recall/brief-slot.d.ts.map +0 -1
  578. package/dist/tools/journal/recall/brief-slot.js +0 -5
  579. package/dist/tools/journal/recall/brief-slot.js.map +0 -1
  580. package/dist/tools/journal/recall/implementer-criteria.d.ts +0 -9
  581. package/dist/tools/journal/recall/implementer-criteria.d.ts.map +0 -1
  582. package/dist/tools/journal/recall/implementer-criteria.js +0 -23
  583. package/dist/tools/journal/recall/implementer-criteria.js.map +0 -1
  584. package/dist/tools/journal/recall/schema.d.ts +0 -54
  585. package/dist/tools/journal/recall/schema.d.ts.map +0 -1
  586. package/dist/tools/journal/recall/schema.js +0 -10
  587. package/dist/tools/journal/recall/schema.js.map +0 -1
  588. package/dist/tools/journal/recall/subtypes.d.ts +0 -4
  589. package/dist/tools/journal/recall/subtypes.d.ts.map +0 -1
  590. package/dist/tools/journal/recall/subtypes.js +0 -25
  591. package/dist/tools/journal/recall/subtypes.js.map +0 -1
  592. package/dist/tools/journal/recall/tool-config.d.ts +0 -8
  593. package/dist/tools/journal/recall/tool-config.d.ts.map +0 -1
  594. package/dist/tools/journal/recall/tool-config.js +0 -46
  595. package/dist/tools/journal/recall/tool-config.js.map +0 -1
  596. package/dist/tools/journal/record/brief-slot.d.ts +0 -15
  597. package/dist/tools/journal/record/brief-slot.d.ts.map +0 -1
  598. package/dist/tools/journal/record/brief-slot.js +0 -28
  599. package/dist/tools/journal/record/brief-slot.js.map +0 -1
  600. package/dist/tools/journal/record/implementer-criteria.d.ts +0 -6
  601. package/dist/tools/journal/record/implementer-criteria.d.ts.map +0 -1
  602. package/dist/tools/journal/record/implementer-criteria.js +0 -20
  603. package/dist/tools/journal/record/implementer-criteria.js.map +0 -1
  604. package/dist/tools/journal/record/schema.d.ts +0 -55
  605. package/dist/tools/journal/record/schema.d.ts.map +0 -1
  606. package/dist/tools/journal/record/schema.js +0 -12
  607. package/dist/tools/journal/record/schema.js.map +0 -1
  608. package/dist/tools/journal/record/tool-config.d.ts +0 -7
  609. package/dist/tools/journal/record/tool-config.d.ts.map +0 -1
  610. package/dist/tools/journal/record/tool-config.js +0 -47
  611. package/dist/tools/journal/record/tool-config.js.map +0 -1
  612. package/dist/tools/read-route-prompt.d.ts +0 -113
  613. package/dist/tools/read-route-prompt.d.ts.map +0 -1
  614. package/dist/tools/read-route-prompt.js +0 -86
  615. package/dist/tools/read-route-prompt.js.map +0 -1
  616. package/dist/tools/register-context-block/schema.d.ts +0 -8
  617. package/dist/tools/register-context-block/schema.d.ts.map +0 -1
  618. package/dist/tools/register-context-block/schema.js +0 -7
  619. package/dist/tools/register-context-block/schema.js.map +0 -1
  620. package/dist/tools/register-context-block/tool-config.d.ts +0 -6
  621. package/dist/tools/register-context-block/tool-config.d.ts.map +0 -1
  622. package/dist/tools/register-context-block/tool-config.js +0 -39
  623. package/dist/tools/register-context-block/tool-config.js.map +0 -1
  624. package/dist/tools/research/brief-slot.d.ts +0 -37
  625. package/dist/tools/research/brief-slot.d.ts.map +0 -1
  626. package/dist/tools/research/brief-slot.js +0 -68
  627. package/dist/tools/research/brief-slot.js.map +0 -1
  628. package/dist/tools/research/implementer-criteria.d.ts +0 -13
  629. package/dist/tools/research/implementer-criteria.d.ts.map +0 -1
  630. package/dist/tools/research/implementer-criteria.js +0 -109
  631. package/dist/tools/research/implementer-criteria.js.map +0 -1
  632. package/dist/tools/research/schema.d.ts +0 -11
  633. package/dist/tools/research/schema.d.ts.map +0 -1
  634. package/dist/tools/research/schema.js +0 -59
  635. package/dist/tools/research/schema.js.map +0 -1
  636. package/dist/tools/research/subtypes.d.ts +0 -4
  637. package/dist/tools/research/subtypes.d.ts.map +0 -1
  638. package/dist/tools/research/subtypes.js +0 -25
  639. package/dist/tools/research/subtypes.js.map +0 -1
  640. package/dist/tools/research/tool-config.d.ts +0 -8
  641. package/dist/tools/research/tool-config.d.ts.map +0 -1
  642. package/dist/tools/research/tool-config.js +0 -48
  643. package/dist/tools/research/tool-config.js.map +0 -1
  644. package/dist/tools/research/two-turn-driver.d.ts +0 -16
  645. package/dist/tools/research/two-turn-driver.d.ts.map +0 -1
  646. package/dist/tools/research/two-turn-driver.js +0 -41
  647. package/dist/tools/research/two-turn-driver.js.map +0 -1
  648. package/dist/tools/retry/brief-slot.d.ts +0 -7
  649. package/dist/tools/retry/brief-slot.d.ts.map +0 -1
  650. package/dist/tools/retry/brief-slot.js +0 -3
  651. package/dist/tools/retry/brief-slot.js.map +0 -1
  652. package/dist/tools/retry/schema.d.ts +0 -53
  653. package/dist/tools/retry/schema.d.ts.map +0 -1
  654. package/dist/tools/retry/schema.js +0 -12
  655. package/dist/tools/retry/schema.js.map +0 -1
  656. package/dist/tools/retry/tool-config.d.ts +0 -7
  657. package/dist/tools/retry/tool-config.d.ts.map +0 -1
  658. package/dist/tools/retry/tool-config.js +0 -79
  659. package/dist/tools/retry/tool-config.js.map +0 -1
  660. package/dist/tools/review/brief-slot.d.ts +0 -11
  661. package/dist/tools/review/brief-slot.d.ts.map +0 -1
  662. package/dist/tools/review/brief-slot.js +0 -23
  663. package/dist/tools/review/brief-slot.js.map +0 -1
  664. package/dist/tools/review/implementer-criteria.d.ts +0 -48
  665. package/dist/tools/review/implementer-criteria.d.ts.map +0 -1
  666. package/dist/tools/review/implementer-criteria.js +0 -108
  667. package/dist/tools/review/implementer-criteria.js.map +0 -1
  668. package/dist/tools/review/schema.d.ts +0 -64
  669. package/dist/tools/review/schema.d.ts.map +0 -1
  670. package/dist/tools/review/schema.js +0 -17
  671. package/dist/tools/review/schema.js.map +0 -1
  672. package/dist/tools/review/subtypes.d.ts +0 -4
  673. package/dist/tools/review/subtypes.d.ts.map +0 -1
  674. package/dist/tools/review/subtypes.js +0 -27
  675. package/dist/tools/review/subtypes.js.map +0 -1
  676. package/dist/tools/review/tool-config.d.ts +0 -7
  677. package/dist/tools/review/tool-config.d.ts.map +0 -1
  678. package/dist/tools/review/tool-config.js +0 -94
  679. package/dist/tools/review/tool-config.js.map +0 -1
  680. package/dist/tools/shared-output.d.ts +0 -56
  681. package/dist/tools/shared-output.d.ts.map +0 -1
  682. package/dist/tools/shared-output.js +0 -33
  683. package/dist/tools/shared-output.js.map +0 -1
  684. package/dist/types/review-policy.d.ts +0 -2
  685. package/dist/types/review-policy.d.ts.map +0 -1
  686. package/dist/types/review-policy.js +0 -2
  687. package/dist/types/review-policy.js.map +0 -1
@@ -1,121 +0,0 @@
1
- /**
2
- * Audit-specific implementer criteria.
3
- *
4
- * AUDIT'S PURPOSE — read this before adding categories.
5
- * Most audit targets are spec / plan / design / recommendation files that
6
- * will subsequently be EXECUTED BY A LOW-JUDGMENT WORKER (a sub-agent that
7
- * follows the spec literally, with little ability to disambiguate or
8
- * choose between alternatives). The audit's success criterion is:
9
- *
10
- * "After audit + fixes, can a literal-following worker execute this
11
- * artifact without failing, picking wrong, or getting stuck?"
12
- *
13
- * That criterion is what makes a finding load-bearing. Stylistic nits
14
- * don't block execution; ambiguity, contradictions, missing verification,
15
- * unspecified branches, out-of-order steps, and overloaded terms do.
16
- *
17
- * EVIDENCE & SCOPE for prose artifacts.
18
- * Audit examines a prose artifact (spec, design doc, plan, recommendation
19
- * doc, API contract, config, brief). The "thing being examined" is text —
20
- * not source code — so evidence and scope rules differ from review/debug:
21
- *
22
- * - Evidence is a doc quote, OR a precise reference to a section/item
23
- * that *should* address the issue but doesn't (absence-finding), OR
24
- * a doc-claim + contradicting source (wrong-claim finding), OR
25
- * two sections of the doc that contradict each other (internal-
26
- * coherence finding).
27
- * - Scope is the document and what it directly references; cross-section
28
- * reasoning IS the value of an audit.
29
- *
30
- * The failure-mode rubric below tells the worker WHAT KINDS of issues to
31
- * look for in a prose artifact. Without it, workers calibrated on code
32
- * audits collapse to surface-level proofreading on documents.
33
- */
34
- /**
35
- * The orientation block. Goes at the TOP of every audit prompt.
36
- *
37
- * This is the load-bearing addition. Without an explicit purpose statement,
38
- * workers default to "find issues in this doc" — which produces stylistic
39
- * proofreading. With this orientation, they look for issues that would
40
- * BLOCK EXECUTION by a literal-following worker, which is what the caller
41
- * actually needs.
42
- */
43
- export const AUDIT_PURPOSE_ORIENTATION = [
44
- 'Why this audit exists:',
45
- 'The artifact you are auditing is most likely a spec, plan, design doc, or recommendation doc that will subsequently be EXECUTED BY A LOW-JUDGMENT WORKER — a sub-agent that follows instructions literally, has limited ability to disambiguate, and cannot recover from contradictions.',
46
- '',
47
- 'Your job is to find anywhere a literal-following worker would:',
48
- '- get stuck on ambiguity (e.g. "implement the function" with no signature, location, or contract)',
49
- '- pick wrong on an unspecified branch (e.g. "if X then Y" with no "otherwise")',
50
- '- implement contradictions (section A says use X, section B says use Y, both apparently authoritative)',
51
- '- skip a requirement that is implicit or buried (the worker only does what is explicitly stated)',
52
- '- be unable to verify completion (no acceptance criteria, no done condition, no test command)',
53
- '- misinterpret an overloaded term (the same word means two different things in two sections)',
54
- '- execute steps out of order (step 3 needs the output of step 5)',
55
- '- act on an unbounded scope ("fix the bug" with no scope boundary)',
56
- '- need context that is referenced but not provided (a helper, a flag, a file the spec assumes the worker knows)',
57
- '- produce data of an unspecified shape (return value, file format, error envelope)',
58
- '',
59
- 'A finding that points at any of these failure-mode triggers is high-value EVEN IF the prose reads cleanly. Conversely, a stylistic nit that does not block execution is low-priority no matter how clean the wording.',
60
- '',
61
- 'When you have completed this audit and its fixes have been applied, the test is: would a worker that reads only this artifact, follows it literally, and asks no clarifying questions, produce the right outcome? If yes, the audit succeeded.',
62
- ].join('\n');
63
- export const EVIDENCE_RULE_AUDIT = [
64
- 'Evidence grounding (REQUIRED for every finding):',
65
- '- For issues IN the doc: quote the exact passage that demonstrates the issue.',
66
- '- For ABSENCES (the doc is silent on something it should specify): name the section that should address it. Example: "Section 3.2 enumerates failure modes but does not specify queue-overflow behavior." This is an absence-finding and is fully valid evidence.',
67
- '- For WRONG-CLAIM findings: quote the doc\'s claim AND the source that contradicts it (the actual code, the referenced spec, etc.).',
68
- '- For INTERNAL-COHERENCE findings (two parts of the doc conflict, a recommendation contradicts a stated constraint, a fix relies on something the doc forbids): quote both passages OR quote one and name the section ID of the other.',
69
- '- A finding without one of these four forms of evidence is speculation. Note "investigation needed" in your summary instead.',
70
- ].join('\n');
71
- export const SCOPE_RULE_AUDIT = [
72
- 'Scope:',
73
- '- The document itself plus any artifact the document directly references (cited code, linked spec, embedded config).',
74
- '- Cross-section reasoning within the document IS in scope and is often the highest-value kind of finding.',
75
- '- Do NOT enumerate the repository or glob across all source files. If verifying a referenced file or symbol, read or grep for that specific name only — the goal is to evaluate the document, not catalog the codebase.',
76
- '- Out of scope: speculation about content the document does not reference; coding-style nits on inline code examples (those belong in a code review, not an audit).',
77
- ].join('\n');
78
- /**
79
- * The failure-mode rubric for prose-document audits.
80
- *
81
- * This is the load-bearing addition. Without an explicit taxonomy, workers
82
- * calibrated on source-code rubrics (off-by-one, type mismatches, dead code)
83
- * have nothing to look for in a spec/plan/recommendation doc and emit only
84
- * surface nits. The 11 categories below cover what actually goes wrong in
85
- * non-trivial prose artifacts and are independent of the audit-type label.
86
- */
87
- export const DOC_AUDIT_FAILURE_MODES = [
88
- 'Look for these kinds of issues — applicable to ALL prose-document audits regardless of auditType. The auditType (default / security / performance) tells you which lens to weight, but every doc audit should sweep the full taxonomy:',
89
- '',
90
- '1. RECOMMENDATION-COHERENCE — does the proposed fix actually solve the stated problem given the doc\'s own stated constraints? A fix that requires X when the doc forbids X is logically incomplete. **Always check fixes against any explicit principles, constraints, invariants, or "what we won\'t do" sections in the doc itself.** Example: a doc that lists "no persistence" as a principle cannot have a fix that disambiguates "id existed before" from "id never existed" without persistence — that fix is unimplementable.',
91
- '2. INTERNAL CONTRADICTION — does section A say something incompatible with section B? Does a methodology disclaimer ("these numbers are approximations") undercut a load-bearing claim built on those same numbers? Does a "do not auto-X" rule sit next to an "auto-X above threshold" recommendation?',
92
- '3. CROSS-ITEM DUPLICATION — are two items addressing the same root cause without acknowledging each other? Should they be merged or cross-referenced? Look across the WHOLE doc for items that target the same underlying problem from different angles.',
93
- '4. INDEPENDENCE-CLAIMED-WITHOUT-EVIDENCE — is X asserted as independent of Y when the evidence shows correlation, co-occurrence, or shared mechanism?',
94
- '5. ARGUMENT SOUNDNESS — does the evidence chain support the conclusion? Does a headline ("95% wasted") rest on data the doc itself flags as unreliable? Does a severity rating match the evidence depth?',
95
- '6. COMPLETENESS AGAINST CONSTRAINTS — does any constraint stated elsewhere render a recommendation infeasible? Is a fix step that depends on persistence proposed in a doc that forbids persistence? **If the doc has a principles, invariants, or constraints section, walk every recommendation through every constraint and flag mismatches.**',
96
- '7. FIX ACTIONABILITY — is the proposed fix complete enough to implement, or does it stop at "fix it" / vague verbs? Does it leave open which subsystem owns the change? Are step-by-step actions or only goals?',
97
- '8. DRIFT / STALENESS — does any claim in one section contradict more recently revised material in the same doc? **Specifically: count items the doc claims to discuss (e.g. "across all three sessions", "the four highest-impact items", "we have N tools") and verify the count against the actual list elsewhere.** If the count is wrong, that\'s drift. Other drift signals: version labels, renamed sections, references to removed items.',
98
- '9. SCOPE-CREEP / FRAMING — do recommendations exceed what the evidence supports? Does the framing (table title, bucket label, headline) misrepresent what the row contents actually say?',
99
- '10. STRUCTURAL CONSISTENCY — do similar items in a list/table follow the same shape? If one row has a Verification subsection and the others don\'t, that\'s structural inconsistency. If items are numbered "1, 1b, 2, 3" the duplicate "1" is a structural break. If a column is labeled "Fix direction" but one row\'s cell holds verification criteria, that\'s a column-content mismatch.',
100
- '11. METADATA COMPLETENESS — for living/revised documents: is there a "last updated" / "as of" / version stamp? When findings claim "still unfixed in version X", is there a date timeline that supports the claim?',
101
- '',
102
- 'Severity calibration for doc audits:',
103
- '- critical: a recommendation that, if implemented, would fail or cause harm because the doc is internally incoherent (e.g. a fix that depends on something the doc forbids). Or: a contradiction that would silently lead to wrong implementation if a reader followed both passages.',
104
- '- high: a substantive missing recommendation, an incorrect claim of independence between two issues, an evidence chain that does not support a load-bearing conclusion, OR a fix that violates a stated principle/constraint of the doc itself.',
105
- '- medium: argument soundness gap, fix actionability gap, drift between sections (item-count mismatch), structural inconsistency between similar items, scope-creep risk that needs a guardrail.',
106
- '- low: stylistic, labeling, or formatting issues; missing metadata; minor cross-reference fixes.',
107
- ].join('\n');
108
- export const ANNOTATOR_AWARENESS_AUDIT = [
109
- 'After your output, an annotator validates each finding against this audit-specific rubric:',
110
- '- Is the finding about the document (contradiction / absence / ambiguity / wrong claim / scope gap / recommendation-coherence / argument-soundness)?',
111
- '- Is the evidence one of the four valid shapes: doc quote, absence-reference, claim+contradiction, OR internal-coherence cross-section reference?',
112
- '- Is the severity calibrated to actual downstream-execution impact (does following the recommendation as written produce a wrong outcome)?',
113
- '- Is the finding within the document\'s scope, or is it speculation about untouched material?',
114
- 'Self-check before emitting. Findings that fail any check are downgraded or dropped — but logical-coherence and argument-soundness findings backed by section references are FULLY VALID, do NOT downgrade them as "speculation."',
115
- ].join('\n');
116
- import { parseCriteria } from '../criteria-types.js';
117
- /** Structured per-criterion array for parallel-criteria fan-out. Derived
118
- * from DOC_AUDIT_FAILURE_MODES so the prose in the cached prefix and the
119
- * per-sub-worker assignment stay in lockstep. */
120
- export const AUDIT_CRITERIA = parseCriteria(DOC_AUDIT_FAILURE_MODES);
121
- //# sourceMappingURL=implementer-criteria.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"implementer-criteria.js","sourceRoot":"","sources":["../../../src/tools/audit/implementer-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,wBAAwB;IACxB,0RAA0R;IAC1R,EAAE;IACF,gEAAgE;IAChE,mGAAmG;IACnG,gFAAgF;IAChF,wGAAwG;IACxG,kGAAkG;IAClG,+FAA+F;IAC/F,8FAA8F;IAC9F,kEAAkE;IAClE,oEAAoE;IACpE,iHAAiH;IACjH,oFAAoF;IACpF,EAAE;IACF,uNAAuN;IACvN,EAAE;IACF,gPAAgP;CACjP,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,kDAAkD;IAClD,+EAA+E;IAC/E,mQAAmQ;IACnQ,qIAAqI;IACrI,wOAAwO;IACxO,8HAA8H;CAC/H,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ;IACR,sHAAsH;IACtH,2GAA2G;IAC3G,yNAAyN;IACzN,qKAAqK;CACtK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,wOAAwO;IACxO,EAAE;IACF,wgBAAwgB;IACxgB,ySAAyS;IACzS,0PAA0P;IAC1P,uJAAuJ;IACvJ,0MAA0M;IAC1M,mVAAmV;IACnV,iNAAiN;IACjN,kbAAkb;IAClb,0LAA0L;IAC1L,gYAAgY;IAChY,oNAAoN;IACpN,EAAE;IACF,sCAAsC;IACtC,uRAAuR;IACvR,iPAAiP;IACjP,iMAAiM;IACjM,kGAAkG;CACnG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,4FAA4F;IAC5F,sJAAsJ;IACtJ,mJAAmJ;IACnJ,4IAA4I;IAC5I,+FAA+F;IAC/F,kOAAkO;CACnO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,OAAO,EAAE,aAAa,EAAuB,MAAM,sBAAsB,CAAC;AAE1E;;kDAEkD;AAClD,MAAM,CAAC,MAAM,cAAc,GAA8B,aAAa,CAAC,uBAAuB,CAAC,CAAC"}
@@ -1,35 +0,0 @@
1
- /**
2
- * Plan-audit failure-mode taxonomy (4.2.3+).
3
- *
4
- * Drives the parallel-criteria fan-out for `auditType: 'plan'` audits.
5
- * Each numbered entry below becomes one sub-worker assigned to a single
6
- * verification dimension. Sub-workers run on the existing complex tier
7
- * with read-only tools (read_file / grep / glob / list_files); they
8
- * derive source files to verify from the plan itself, then ground each
9
- * finding in actual file-and-line evidence.
10
- *
11
- * A perspective emitting zero findings means "this dimension passes for
12
- * this plan." That is the EXPECTED outcome for several perspectives on
13
- * a clean plan; the merge annotator does NOT inflate severity to fill
14
- * a quota.
15
- *
16
- * Contrast with DOC_AUDIT_FAILURE_MODES (in implementer-criteria.ts):
17
- * those 11 categories are prose-INTERNAL coherence (ambiguity,
18
- * contradiction, drift between sections). The 8 perspectives below are
19
- * EXTERNAL coherence — does the plan match the codebase?
20
- */
21
- import { type CriterionEntry } from '../criteria-types.js';
22
- /** Orientation block — goes at the top of every plan-audit sub-worker
23
- * prompt. Contrast with AUDIT_PURPOSE_ORIENTATION (prose-coherence
24
- * audit): plan-audit sub-workers verify EXTERNAL coherence (plan vs
25
- * codebase), not internal-coherence. */
26
- export declare const PLAN_AUDIT_PURPOSE_ORIENTATION: string;
27
- export declare const EVIDENCE_RULE_PLAN_AUDIT: string;
28
- export declare const SCOPE_RULE_PLAN_AUDIT: string;
29
- export declare const ANNOTATOR_AWARENESS_PLAN_AUDIT: string;
30
- export declare const PLAN_AUDIT_FAILURE_MODES: string;
31
- /** Parsed criterion array for the parallel-criteria fan-out. Eight
32
- * sub-workers, one per verification perspective. Derived from
33
- * PLAN_AUDIT_FAILURE_MODES so prose and dispatcher stay in lockstep. */
34
- export declare const PLAN_AUDIT_CRITERIA: readonly CriterionEntry[];
35
- //# sourceMappingURL=plan-audit-criteria.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plan-audit-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/plan-audit-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE1E;;;yCAGyC;AACzC,eAAO,MAAM,8BAA8B,QAyC/B,CAAC;AAEb,eAAO,MAAM,wBAAwB,QAmBzB,CAAC;AAEb,eAAO,MAAM,qBAAqB,QAMtB,CAAC;AAEb,eAAO,MAAM,8BAA8B,QAO/B,CAAC;AAGb,eAAO,MAAM,wBAAwB,QAmDzB,CAAC;AAEb;;yEAEyE;AACzE,eAAO,MAAM,mBAAmB,EAAE,SAAS,cAAc,EAA4C,CAAC"}
@@ -1,159 +0,0 @@
1
- /**
2
- * Plan-audit failure-mode taxonomy (4.2.3+).
3
- *
4
- * Drives the parallel-criteria fan-out for `auditType: 'plan'` audits.
5
- * Each numbered entry below becomes one sub-worker assigned to a single
6
- * verification dimension. Sub-workers run on the existing complex tier
7
- * with read-only tools (read_file / grep / glob / list_files); they
8
- * derive source files to verify from the plan itself, then ground each
9
- * finding in actual file-and-line evidence.
10
- *
11
- * A perspective emitting zero findings means "this dimension passes for
12
- * this plan." That is the EXPECTED outcome for several perspectives on
13
- * a clean plan; the merge annotator does NOT inflate severity to fill
14
- * a quota.
15
- *
16
- * Contrast with DOC_AUDIT_FAILURE_MODES (in implementer-criteria.ts):
17
- * those 11 categories are prose-INTERNAL coherence (ambiguity,
18
- * contradiction, drift between sections). The 8 perspectives below are
19
- * EXTERNAL coherence — does the plan match the codebase?
20
- */
21
- import { parseCriteria } from '../criteria-types.js';
22
- /** Orientation block — goes at the top of every plan-audit sub-worker
23
- * prompt. Contrast with AUDIT_PURPOSE_ORIENTATION (prose-coherence
24
- * audit): plan-audit sub-workers verify EXTERNAL coherence (plan vs
25
- * codebase), not internal-coherence. */
26
- export const PLAN_AUDIT_PURPOSE_ORIENTATION = [
27
- 'Why this audit exists:',
28
- 'You are auditing a CODE-EXECUTION PLAN against a real codebase AND (when provided) against the upstream requirement spec. The plan will subsequently be dispatched to literal-following workers via mma-execute-plan; if the plan names a method, file, type, or signature that does not match the codebase as it exists today, the worker will freeze on the contradiction or produce broken code. If the plan silently skips a spec requirement, the implementation will ship incomplete. Your job: verify every plan claim against the actual codebase, and (when the spec is available) verify every spec requirement is covered by at least one task.',
29
- '',
30
- 'Your job is NOT prose-quality on the plan itself (that is the default audit\'s job). Your job splits into three groups of perspectives:',
31
- ' • EXTERNAL CODEBASE COHERENCE (perspectives 1–8) — for every named symbol, file path, signature, or import in the plan, the codebase must contain it as described UNLESS the plan task is the one creating it. (See "How to classify a plan\'s mention of X" below.) These perspectives REQUIRE source-side evidence (file:line).',
32
- ' • INTRA-PLAN STRUCTURE (perspectives 9, 11, 12) — task granularity, placeholder language, and required plan skeleton. These perspectives look ONLY at the plan markdown itself; no codebase grounding is needed.',
33
- ' • SPEC ALIGNMENT (perspective 10) — every load-bearing spec requirement maps to ≥1 task in the plan, and no task implements something the spec did not ask for. This perspective requires the reference SPEC to be available in your context (registered as a context block by the caller). If no spec is in context, emit "No findings for this criterion." for perspective 10 ONLY — do NOT skip the other perspectives.',
34
- '',
35
- 'Tool surface: read_file / grep / glob / list_files. The plan itself is in your filePaths input (one file). Source files are NOT pre-listed — you derive them from the plan\'s "Files: Modify:" / "Test:" / "Create:" blocks and from import statements in code blocks, then grep / read them yourself under cwd. The reference SPEC, when provided, lives in the cached prefix above as a registered context block — read it directly from there for perspective 10.',
36
- '',
37
- 'A finding without an actual file-and-line reference for the source side is speculation FOR PERSPECTIVES 1–8 ONLY. Drop those. Perspectives 9, 11, 12 are intra-plan and need only a plan-side quote. Perspective 10 needs a spec-side quote (the requirement) plus a plan-side reference (the task that does or does not cover it). If a perspective has no findings to flag for this plan, that is the correct outcome — say so via the standard "No findings for this criterion." string and move on.',
38
- '',
39
- '— BEFORE FLAGGING — How to classify a plan\'s mention of X (REQUIRED triage step):',
40
- '',
41
- 'Plans contain TWO different kinds of symbol mention. Confusing them is the #1 way plan-audits over-flag and produce false positives. Before any SYMBOL EXISTENCE / SIGNATURE MATCH / IMPORT GRAPH finding, classify the mention:',
42
- '',
43
- '**USE intent** — the plan TREATS X as already existing in the codebase. The task ASSUMES the symbol is there. Examples:',
44
- ' • method calls: `store.register(...)`, `obj.helper(...)`, `await provider.run(...)`',
45
- ' • property/field access: `config.someField`, `result.cost`, `this._ttlMs`',
46
- ' • import statements: `import { X } from "./bar.js"`',
47
- ' • type references: `function f(arg: X)`, `: Promise<X>`, `: ExistingInterface`',
48
- ' • test code calling production code: `expect(store.register(...))`',
49
- '',
50
- '**DEFINE intent** — the plan CREATES X in this task. X is the deliverable. Examples:',
51
- ' • function/method declarations: `function foo()`, `private foo()`, `static foo()`, `async foo()`',
52
- ' • class/interface/type declarations: `class Foo {}`, `interface Bar {}`, `type Q = ...`, `enum E {}`',
53
- ' • exported constants: `export const baz = ...`, `export function ...`',
54
- ' • new fields added to existing types: `interface ExistingType { newField: X }`',
55
- ' • new option keys on existing methods: `register(content: string, opts: { newOpt: X })`',
56
- ' • new test files via "Test: <path> (new)"',
57
- ' • new modules via "New: <path>" or "Create: <path>"',
58
- '',
59
- '**Verification rule by intent:**',
60
- ' • USE intent → the symbol MUST exist in the named source file. If grep returns no match → flag (CRITICAL, "did you mean: <nearest match>").',
61
- ' • DEFINE intent → the symbol MAY NOT exist yet. The task is the one adding it; that is the deliverable. **DO NOT FLAG.** This is the most common false-positive trap in plan audits.',
62
- ' • DEFINE intent + symbol DOES already exist in source → flag MEDIUM "task is obsolete; this deliverable already shipped — plan needs trimming."',
63
- '',
64
- '**Task scope = a unit.** Each `### Task X.Y:` heading + its `Files:` block + its numbered steps + their code blocks form ONE UNIT. Read the unit as a whole before flagging. Do not extract a symbol from a code block in isolation. Specifically: a `private findByContentSha(...) { … }` definition appearing inside Task A1.4\'s code block, where the task\'s `Files:` block names the implementation file as `Modify:`, is the task INTRODUCING that helper — not the task ASSUMING it already exists. Look at the task\'s intent before flagging the symbol.',
65
- '',
66
- 'Heuristic for fast classification: if the plan\'s code block has a function/method declaration syntax ON THE SAME LINE as the symbol name, it\'s DEFINE intent. If the symbol appears as a callee, an imported name, a type annotation, or a property access, it\'s USE intent.',
67
- ].join('\n');
68
- export const EVIDENCE_RULE_PLAN_AUDIT = [
69
- 'Evidence grounding (REQUIRED for every finding — evidence shape varies by perspective group):',
70
- '',
71
- 'Perspectives 1–8 (EXTERNAL CODEBASE COHERENCE) — both sides REQUIRED:',
72
- '- Plan side: quote the exact line from the plan, with task ID + section reference (e.g. "Plan A1.4 step 3 line: `store.registerBlock(content, opts)`").',
73
- '- Source side: file path + line number + actual content (e.g. "`packages/core/src/stores/file-backed-context-block-store.ts:113` defines `register(content, opts)` — no method named `registerBlock`").',
74
- '- For SYMBOL-EXISTENCE findings: include the nearest match (Levenshtein) the worker found in the source. Example: "did you mean `register`? (Levenshtein distance 5)".',
75
- '- For SIGNATURE-MATCH findings: quote BOTH the plan\'s call (with parameter names/types) AND the source\'s actual signature.',
76
- '- A finding without both sides on perspectives 1–8 is speculation. Drop it.',
77
- '',
78
- 'Perspective 10 (SPEC-COVERAGE) — both sides REQUIRED:',
79
- '- Spec side: quote the exact `shall` / `must` / `should` clause (or the acceptance-criterion line) from the registered spec context block.',
80
- '- Plan side: name the task that does (or does NOT) cover it. For absence findings: "no task in this plan implements <spec clause>". For scope-creep findings: "task X.Y implements <plan-side claim>, which has no corresponding spec requirement".',
81
- '',
82
- 'Perspectives 9, 11, 12 (INTRA-PLAN STRUCTURE) — plan-side quote sufficient:',
83
- '- Quote the exact plan line that demonstrates the issue, with task ID + section reference. No codebase or spec evidence is needed; these are intra-document checks.',
84
- '- For absence findings (e.g. missing Goal/Architecture header, missing Files: block, missing commit step): name the section that SHOULD contain it and confirm it does not.',
85
- '',
86
- 'Severity binding for all perspectives: critical = task BLOCKED at dispatch; high = ambiguous artifact; medium = recoverable with reordering or one-sentence edit; low = cosmetic.',
87
- ].join('\n');
88
- export const SCOPE_RULE_PLAN_AUDIT = [
89
- 'Scope:',
90
- '- The plan markdown (your one filePath input), plus the source files the plan directly references (in "Files: Modify:" / "Test:" / "Create:" lines, or via `import` statements in code blocks), plus the reference SPEC if it was registered as a context block in your cached prefix.',
91
- '- Use grep / read_file targeted at the symbols and paths the plan names. DO NOT do an enumeration of the entire codebase.',
92
- '- For perspective 10 (SPEC-COVERAGE): the spec lives in the registered context block above. Walk its requirement clauses against the plan\'s tasks; do NOT grep the codebase for spec content — that is not the perspective\'s job.',
93
- '- Out of scope: prose-quality issues in the plan beyond placeholder-language scanning (use auditType=default for general prose quality), suggestions for refactoring the plan\'s recommendations, and any source files the plan does not reference.',
94
- ].join('\n');
95
- export const ANNOTATOR_AWARENESS_PLAN_AUDIT = [
96
- 'After your output, an annotator validates each finding against this plan-audit-specific rubric:',
97
- '- Does the finding cite the right evidence shape for its perspective group? (1–8: plan-side quote + source-side file:line; 10: spec-side clause quote + plan-side task reference; 9/11/12: plan-side quote alone, no codebase grounding needed.)',
98
- '- Is the finding categorized correctly by perspective (1 PATH / 2 SYMBOL / 3 SIGNATURE / 4 IMPORT / 5 TEST HARNESS / 6 STEP SEQUENCE / 7 CROSS-TASK / 8 VERIFY CMD / 9 TASK GRANULARITY / 10 SPEC COVERAGE / 11 PLACEHOLDER LANGUAGE / 12 PLAN SKELETON)?',
99
- '- Is the severity calibrated to actual dispatch impact (CRITICAL only when the task would BLOCK; HIGH for ambiguity that produces wrong artifact; MEDIUM for recoverable; LOW for cosmetic)?',
100
- '- Does the finding name a specific task ID (e.g. "A1.4") so the merge annotator can group findings by task to compute per-task verdicts? For plan-level findings that do not attach to a single task (e.g. missing top-level header, spec requirement with no covering task), use the task ID "META".',
101
- 'Self-check before emitting. Findings on perspectives 1–8 missing source-side evidence are downgraded to LOW or dropped — but findings backed by file:line citations from a real file are FULLY VALID, do NOT downgrade them as "speculation." Findings on perspectives 9, 11, 12 with only a plan-side quote are FULLY VALID — they are intra-plan checks by design.',
102
- ].join('\n');
103
- export const PLAN_AUDIT_FAILURE_MODES = [
104
- 'Plan-audit perspectives — applicable to code-execution plans being audited against a real codebase. Each perspective is one verification dimension; emitting zero findings for a perspective means "this dimension passes for this plan." Do not invent findings to hit a quota — if a perspective has nothing to flag, stay silent for that dimension. Apply each perspective end-to-end across every task in the plan. Use read_file / grep / glob / list_files to ground every finding in actual file-and-line evidence; findings without a real source-side reference are not load-bearing and must be dropped.',
105
- '',
106
- '1. PATH EXISTENCE — every line under a task\'s "Files:" block must resolve correctly per its label. Sub-rules: (a) "Modify: <path>" → file MUST exist on disk; missing = CRITICAL (the task cannot start). (b) "Test: <path>" or "Test: <path> (new)" → parent directory MUST exist; the test file itself may or may not exist. (c) "New: <path>" or "Create: <path>" → parent directory MUST exist AND the file MUST NOT exist (if it does, the task is obsolete — plan needs trimming, MEDIUM). Use list_files / read_file to verify. CRITICAL on missing modify-targets or missing parent dirs. MEDIUM on already-existing create-targets.',
107
- '',
108
- '2. SYMBOL EXISTENCE — for every method / type / class / function / imported identifier appearing inside ```ts``` or ```typescript``` code blocks under a task: FIRST classify the mention as USE or DEFINE intent (see the orientation block above). ONLY flag USE-intent mentions where grep against the named source file returns no match. DEFINE-intent mentions are the task\'s deliverable — DO NOT FLAG. Plan says `store.registerBlock(...)` (USE — method call on existing object) against `file-backed-context-block-store.ts`? grep the file; if not found, CRITICAL with nearest match. Plan defines `private findByContentSha(...) { … }` (DEFINE — declaration syntax) inside a Modify-target code block? skip — the task is creating the helper. Always include the actual nearest match (Levenshtein) on USE-intent findings so the plan can be fixed in one edit.',
109
- '',
110
- '3. SIGNATURE MATCH — when the plan\'s code uses a method with specific parameters or expects a specific return shape, the actual signature in the source must match. Same intent rule applies: ONLY flag for USE-intent mentions (calls or imports). When the plan DEFINES a method or extends an interface signature, that\'s the deliverable — don\'t flag. Plan calls `register(content, { ttlMs: 60_000 })` (USE) but actual signature is `register(content, opts: { id?: string })` with no `ttlMs`? CRITICAL — call would fail at build. Plan ALSO has a step adding `ttlMs?: number` to the interface (DEFINE)? skip the DEFINE; flag only the call site if the call appears BEFORE the interface-extension step within the task\'s numbered sequence (out-of-order — see perspective 6).',
111
- '',
112
- '4. IMPORT GRAPH — every `import { X } from \'…\'` line in code blocks must resolve under the same intent rule. Imports inside test code are USE intent (the imported symbol must exist somewhere). Imports of NEW modules the task creates (e.g. `import { sweepProjectCap } from \'./context-block-project-cap.js\'` when the same task\'s "Files: New:" block lists `context-block-project-cap.ts`) are DEFINE-adjacent — don\'t flag the import itself, but DO flag if the task forgets to also add the corresponding `exports` entry in the workspace package.json (HIGH — the build will fail).',
113
- '',
114
- '5. TEST HARNESS AVAILABILITY — when the plan introduces test code, every helper / factory / fixture the test USES (calls / imports) must exist at the named path. `mockProvider`, `startTestServerWithAgents`, `mkdtempSync`, `mockAdapter`, etc. — verify via grep. **However**: if the task explicitly says it adds a new option to an existing helper (e.g. "extend `startTestServerWithAgents` to accept `configOverrides`"), that\'s DEFINE intent — don\'t flag the new option, but DO flag if the test code uses the new option BEFORE the task\'s numbered step that adds it (out-of-order, perspective 6). Helper truly missing (no path, no related task) = HIGH.',
115
- '',
116
- '6. STEP SEQUENCE WITHIN TASK — within a single task, the numbered steps must be executable in order. Step 4 says "verify the test passes" — was step 3 the implementation that the test exercises? Step 7 references `helper()` — was it defined by an earlier step or in source? No step depends on output from a later step. Severity MEDIUM unless the dependency would actually halt execution (then HIGH).',
117
- '',
118
- '7. CROSS-TASK DEPENDENCIES — when task B\'s code uses something task A introduces (a method, a type, a config field), the plan\'s task ordering must reflect the dependency. Plan A1.5 calls `findByContentSha()` defined by A1.4 but A1.5 appears earlier? CRITICAL — execution would fail. Less severe: dependency exists but is undeclared in the task description (no "depends on A1.4" note). MEDIUM.',
119
- '',
120
- '8. VERIFICATION COMMAND VALIDITY — every "Run: <command>" / "verify" instruction in the plan must work with the project\'s actual tooling. Plan says `npm run validate-things` — does package.json have that script? Plan says `npx vitest run tests/foo.test.ts` — does that path exist (after the task\'s implementation lands)? Plan says `cargo test` in a TypeScript project? CRITICAL. Vague verification ("run the test") with no concrete command? MEDIUM — workable but the worker has to guess.',
121
- '',
122
- '9. TASK GRANULARITY — each task should be implementable in one focused sub-agent run. Flag tasks that are oversized for single-run execution. Concrete signals (any one or in combination): the task touches more than 3 distinct source files; the task\'s code blocks contain more than ~40 net lines of diff; the task mixes unrelated concerns (e.g. extending a config schema AND adding a new module AND wiring a CLI flag in one task heading); the task lists more than ~6 numbered steps. Severity HIGH when the task clearly exceeds standard-tier capacity (would force escalation to complex tier or thrash through review/rework rounds); MEDIUM when borderline. Suggested fix: split into atomic sub-tasks, one per file or one per concept, each with its own "Files:" block and numbered steps. The audit-fix loop iterates: author re-runs plan-audit, sees tasks downsized, re-audits until clean. This perspective is the upstream complement to perspective 6 (STEP SEQUENCE WITHIN TASK) — perspective 6 catches ordering bugs WITHIN a task; this one catches "task is too big to be one task at all."',
123
- '',
124
- '10. SPEC COVERAGE — every load-bearing requirement in the reference SPEC maps to at least one task in this plan, and no task implements a deliverable the spec did not ask for. Requires the spec to be available in your context (registered by the caller as a context block; read it from the cached prefix above). If no spec is in context, emit "No findings for this criterion." — that is the correct outcome when the caller did not provide one. When the spec IS in context, walk each `shall` / `must` / `should` clause (and each named acceptance criterion or architecture component) against the plan\'s task list. For each unmapped requirement: severity CRITICAL when load-bearing (the feature does not work without it), HIGH when supporting (test coverage, observability hook, non-functional requirement that the spec marked as required). For scope-creep (task implements something the spec did not request): severity HIGH if the work is substantive (>1 task or new deliverable), MEDIUM if minor (extra polish that does not affect cost / risk). Implicit mapping (task plausibly covers the requirement but does not say so explicitly) is MEDIUM with the suggested fix: add an explicit "Covers spec requirement: <quote>" line to the task description. Use task ID "META" for findings that point at an uncovered requirement (the task does not exist).',
125
- '',
126
- '11. PLACEHOLDER LANGUAGE — scan every task\'s steps and code blocks for prose patterns that the writing-plans skill classifies as "plan failures" because they leave a literal-following worker unable to act. Concrete signals: bare phrases `TBD`, `TODO`, `implement later`, `fill in details`, `Add appropriate error handling`, `add validation`, `handle edge cases`, `Similar to Task N` (without repeating the code), `Write tests for the above` (without showing the test code); steps that describe what to do without showing how when the step changes code (missing code block); verification instructions like `make sure it works` or `run the test` with no concrete command. Severity HIGH on load-bearing steps that cannot be executed without invention (e.g. an implementation step with no code block, a "TBD" in the middle of a task\'s numbered list); MEDIUM on vague verification instructions (worker has to guess but can recover); LOW on cosmetic placeholders in non-load-bearing prose (e.g. a "TODO: link to design doc" in the plan\'s preamble). Evidence is the exact placeholder quote with task ID + step number; no codebase grounding needed.',
127
- '',
128
- '12. PLAN SKELETON — the plan must carry the required structural scaffolding so a worker knows what the plan is for and where each task fits. Concrete signals to flag: missing or empty top-level header (`Goal:` / `Architecture:` / `Tech Stack:` lines); missing top-level File Structure section that maps the files-to-touch with their responsibilities before the task list begins; a task that has no `Files:` block (so the worker cannot tell which files to Create / Modify / Test); a task that has no commit step at the end (frequent-commits discipline is a writing-plans hard rule). Severity MEDIUM for missing required-header fields and missing per-task `Files:` blocks (worker can still execute but loses framing or has to derive file scope from code blocks); HIGH when the missing structure forces ambiguous file-scope decisions (e.g. a task whose code blocks reference multiple files but has no `Files:` block to say which is the modify target); LOW for missing commit steps and other discipline gaps. Evidence is plan-side: name the section that should contain the structure and confirm it is absent. Use task ID "META" for plan-level skeleton findings; use the specific task ID for per-task skeleton findings.',
129
- '',
130
- 'Severity calibration for plan audits:',
131
- '- critical: plan claim contradicts codebase ground truth in a way that BLOCKS dispatch, OR a load-bearing spec requirement has zero covering tasks. Examples: missing modify-target file (perspective 1), wrong method name (perspective 2), wrong signature/return type (perspective 3), missing module export (perspective 4), out-of-order task dependency (perspective 7), wrong tooling (perspective 8), uncovered load-bearing spec requirement (perspective 10).',
132
- '- high: load-bearing ambiguity that risks wrong implementation. Plan signature is consistent with itself but multiple matching symbols exist in the source and the plan doesn\'t disambiguate. Test harness missing in the form claimed but the worker could synthesize. Step depends on later step in a recoverable but ambiguous way. Oversized task that must be split (perspective 9). Substantive scope-creep with no spec backing (perspective 10). Placeholder language on a load-bearing step (perspective 11). Missing `Files:` block that forces ambiguous file-scope (perspective 12). The task may execute, but produces an ambiguous artifact.',
133
- '- medium: step ordering issue, cross-task dependency unstated but inferable, verify command vague but recoverable, missing parent dirs for create-targets, implicit spec mapping (perspective 10 — task plausibly covers a requirement but does not say so), vague verification instructions (perspective 11), missing required header / Files block on a single task (perspective 12). Fixable by reordering or adding a sentence; doesn\'t block dispatch.',
134
- '- low: stylistic, missing metadata, naming preference, cosmetic placeholder in non-load-bearing prose, missing commit step. Cosmetic.',
135
- '',
136
- 'Per-task verdict (the merge-annotator computes this from all sub-worker findings):',
137
- '- EXECUTABLE: zero CRITICAL or HIGH findings against this task across all 8 perspectives.',
138
- '- PARTIAL: one or more HIGH findings, no CRITICAL. Task may execute but produces an ambiguous result.',
139
- '- BLOCKED: one or more CRITICAL findings. Task cannot be dispatched as written; a literal worker would freeze.',
140
- '',
141
- 'Output format for each finding:',
142
- '- Task ID (e.g., "A1.4") that the finding affects.',
143
- '- Perspective number (1-8) and name.',
144
- '- Plan claim: quote the line + section reference.',
145
- '- Source reality: file path + line number + actual content.',
146
- '- Severity (critical / high / medium / low).',
147
- '- Suggested fix: concrete edit (e.g. "rename `registerBlock` → `register` in plan A1.4 step 3", or "rename source method to match plan").',
148
- '',
149
- 'Anti-patterns to avoid:',
150
- '- Speculation without source-file evidence ON PERSPECTIVES 1–8. If you can\'t open the file and find the line, drop the finding for those perspectives. Perspectives 9, 11, 12 are intra-plan and do not need source evidence — quoting the plan IS the evidence.',
151
- '- Flagging general prose-quality on the plan. That\'s the default audit\'s job. You flag external coherence (perspectives 1–8), plan-vs-spec coverage (perspective 10), task granularity (perspective 9), the specific placeholder-language patterns in perspective 11, and the specific structural skeleton requirements in perspective 12. Other prose nits (sentence flow, paragraph organization, tone) are out of scope.',
152
- '- Flagging perspective 10 (SPEC COVERAGE) without a spec in context. If no spec was registered, emit "No findings for this criterion." for perspective 10 — do not invent the spec or grep for it elsewhere.',
153
- '- Inventing findings to fill quota. Zero findings on a perspective is the correct outcome when the dimension passes.',
154
- ].join('\n');
155
- /** Parsed criterion array for the parallel-criteria fan-out. Eight
156
- * sub-workers, one per verification perspective. Derived from
157
- * PLAN_AUDIT_FAILURE_MODES so prose and dispatcher stay in lockstep. */
158
- export const PLAN_AUDIT_CRITERIA = parseCriteria(PLAN_AUDIT_FAILURE_MODES);
159
- //# sourceMappingURL=plan-audit-criteria.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plan-audit-criteria.js","sourceRoot":"","sources":["../../../src/tools/audit/plan-audit-criteria.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,aAAa,EAAuB,MAAM,sBAAsB,CAAC;AAE1E;;;yCAGyC;AACzC,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,wBAAwB;IACxB,4nBAA4nB;IAC5nB,EAAE;IACF,yIAAyI;IACzI,qUAAqU;IACrU,oNAAoN;IACpN,8ZAA8Z;IAC9Z,EAAE;IACF,scAAsc;IACtc,EAAE;IACF,yeAAye;IACze,EAAE;IACF,oFAAoF;IACpF,EAAE;IACF,kOAAkO;IAClO,EAAE;IACF,yHAAyH;IACzH,uFAAuF;IACvF,6EAA6E;IAC7E,uDAAuD;IACvD,kFAAkF;IAClF,sEAAsE;IACtE,EAAE;IACF,sFAAsF;IACtF,oGAAoG;IACpG,wGAAwG;IACxG,yEAAyE;IACzE,kFAAkF;IAClF,2FAA2F;IAC3F,6CAA6C;IAC7C,uDAAuD;IACvD,EAAE;IACF,kCAAkC;IAClC,+IAA+I;IAC/I,wLAAwL;IACxL,mJAAmJ;IACnJ,EAAE;IACF,oiBAAoiB;IACpiB,EAAE;IACF,iRAAiR;CAClR,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,+FAA+F;IAC/F,EAAE;IACF,uEAAuE;IACvE,yJAAyJ;IACzJ,yMAAyM;IACzM,wKAAwK;IACxK,8HAA8H;IAC9H,6EAA6E;IAC7E,EAAE;IACF,uDAAuD;IACvD,4IAA4I;IAC5I,qPAAqP;IACrP,EAAE;IACF,6EAA6E;IAC7E,qKAAqK;IACrK,6KAA6K;IAC7K,EAAE;IACF,mLAAmL;CACpL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ;IACR,wRAAwR;IACxR,2HAA2H;IAC3H,qOAAqO;IACrO,qPAAqP;CACtP,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,iGAAiG;IACjG,kPAAkP;IAClP,2PAA2P;IAC3P,8LAA8L;IAC9L,uSAAuS;IACvS,sWAAsW;CACvW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAGb,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,qlBAAqlB;IACrlB,EAAE;IACF,+mBAA+mB;IAC/mB,EAAE;IACF,o1BAAo1B;IACp1B,EAAE;IACF,kwBAAkwB;IAClwB,EAAE;IACF,skBAAskB;IACtkB,EAAE;IACF,6oBAA6oB;IAC7oB,EAAE;IACF,iZAAiZ;IACjZ,EAAE;IACF,4YAA4Y;IAC5Y,EAAE;IACF,2eAA2e;IAC3e,EAAE;IACF,+jCAA+jC;IAC/jC,EAAE;IACF,k0CAAk0C;IACl0C,EAAE;IACF,ynCAAynC;IACznC,EAAE;IACF,gsCAAgsC;IAChsC,EAAE;IACF,uCAAuC;IACvC,ycAAyc;IACzc,6nBAA6nB;IAC7nB,8bAA8b;IAC9b,uIAAuI;IACvI,EAAE;IACF,oFAAoF;IACpF,2FAA2F;IAC3F,uGAAuG;IACvG,gHAAgH;IAChH,EAAE;IACF,iCAAiC;IACjC,oDAAoD;IACpD,sCAAsC;IACtC,mDAAmD;IACnD,6DAA6D;IAC7D,8CAA8C;IAC9C,2IAA2I;IAC3I,EAAE;IACF,yBAAyB;IACzB,mQAAmQ;IACnQ,+ZAA+Z;IAC/Z,8MAA8M;IAC9M,sHAAsH;CACvH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb;;yEAEyE;AACzE,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CAAC,wBAAwB,CAAC,CAAC"}
@@ -1,61 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const inputSchema: z.ZodObject<{
3
- document: z.ZodOptional<z.ZodString>;
4
- subtype: z.ZodDefault<z.ZodEnum<{
5
- default: "default";
6
- spec: "spec";
7
- plan: "plan";
8
- skill: "skill";
9
- }>>;
10
- filePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
- contextBlockIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
- }, z.core.$strict>;
13
- export type Input = z.infer<typeof inputSchema>;
14
- export declare const outputSchema: z.ZodObject<{
15
- headline: z.ZodString;
16
- results: z.ZodUnion<readonly [z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.ZodObject<{
17
- kind: z.ZodLiteral<"not_applicable">;
18
- reason: z.ZodString;
19
- }, z.core.$strip>]>;
20
- batchTimings: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$loose>, z.ZodObject<{
21
- kind: z.ZodLiteral<"not_applicable">;
22
- reason: z.ZodString;
23
- }, z.core.$strip>]>;
24
- costSummary: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$loose>, z.ZodObject<{
25
- kind: z.ZodLiteral<"not_applicable">;
26
- reason: z.ZodString;
27
- }, z.core.$strip>]>;
28
- structuredReport: z.ZodUnion<readonly [z.ZodObject<{}, z.core.$loose>, z.ZodObject<{
29
- kind: z.ZodLiteral<"not_applicable">;
30
- reason: z.ZodString;
31
- }, z.core.$strip>]>;
32
- error: z.ZodUnion<readonly [z.ZodObject<{
33
- code: z.ZodString;
34
- message: z.ZodString;
35
- details: z.ZodOptional<z.ZodUnknown>;
36
- }, z.core.$strip>, z.ZodObject<{
37
- kind: z.ZodLiteral<"not_applicable">;
38
- reason: z.ZodString;
39
- }, z.core.$strip>]>;
40
- specReviewVerdict: z.ZodOptional<z.ZodEnum<{
41
- error: "error";
42
- approved: "approved";
43
- concerns: "concerns";
44
- changes_required: "changes_required";
45
- annotated: "annotated";
46
- skipped: "skipped";
47
- not_applicable: "not_applicable";
48
- }>>;
49
- qualityReviewVerdict: z.ZodOptional<z.ZodEnum<{
50
- error: "error";
51
- approved: "approved";
52
- concerns: "concerns";
53
- changes_required: "changes_required";
54
- annotated: "annotated";
55
- skipped: "skipped";
56
- not_applicable: "not_applicable";
57
- }>>;
58
- roundsUsed: z.ZodOptional<z.ZodNumber>;
59
- }, z.core.$loose>;
60
- export type Output = z.infer<typeof outputSchema>;
61
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,WAAW;;;;;;;;;;kBAevB,CAAC;AAEF,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,21 +0,0 @@
1
- // packages/core/src/tool-schemas/audit.ts
2
- import { z } from 'zod';
3
- import { buildOutputEnvelopeSchema } from '../shared-output.js';
4
- // Ported verbatim from packages/mcp/src/tools/audit-document.ts (auditDocumentSchema).
5
- // commonToolFields (filePaths + contextBlockIds) are inlined here to avoid
6
- // cross-package coupling.
7
- export const inputSchema = z.object({
8
- document: z.string().optional().describe('Inline document content to audit'),
9
- subtype: z.enum(['default', 'plan', 'spec', 'skill'])
10
- .default('default')
11
- .describe('Audit subtype — which artifact kind is being audited. `default` is the comprehensive prose-coherence sweep for design docs, recommendation docs, post-mortems, READMEs, briefs. `plan` is for code-execution plans audited against the actual codebase (pass the plan as the single filePaths entry; workers grep the codebase to verify every named symbol / path / signature / import). `spec` is for requirement-style prose (testability, scope explicitness, acceptance-criteria coverage). `skill` is for an mma-* skill markdown file (when_to_use specificity, input-shape completeness, anti-pattern coverage). For security or performance focus, include that emphasis in the free-text prompt — it is not a subtype.'),
12
- filePaths: z.array(z.string()).optional()
13
- .describe('Files the sub-agent should focus on. Multiple files are processed in parallel. For subtype=plan, MUST contain exactly one entry — the plan markdown.'),
14
- contextBlockIds: z.array(z.string()).optional()
15
- .describe('IDs from register_context_block to prepend to prompt. Use for delta audits, diff-scoped reviews, or shared specs.'),
16
- }).strict().refine((input) => input.subtype !== 'plan' || (Array.isArray(input.filePaths) && input.filePaths.length === 1), {
17
- message: "Plan audit takes exactly one filePath (the plan markdown). The worker discovers and verifies source files itself via its tool surface — do not pre-list source files.",
18
- path: ['filePaths'],
19
- });
20
- export const outputSchema = buildOutputEnvelopeSchema();
21
- //# sourceMappingURL=schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/tools/audit/schema.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,uFAAuF;AACvF,2EAA2E;AAC3E,0BAA0B;AAC1B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IAC5E,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;SAClD,OAAO,CAAC,SAAS,CAAC;SAClB,QAAQ,CAAC,ksBAAksB,CAAC;IAC/sB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACtC,QAAQ,CAAC,sJAAsJ,CAAC;IACnK,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SAC5C,QAAQ,CAAC,mHAAmH,CAAC;CACjI,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAChB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC,EACvG;IACE,OAAO,EAAE,uKAAuK;IAChL,IAAI,EAAE,CAAC,WAAW,CAAC;CACpB,CACF,CAAC;AAIF,MAAM,CAAC,MAAM,YAAY,GAAG,yBAAyB,EAAE,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { CriterionEntry } from '../criteria-types.js';
2
- import type { RouteSemantics } from '../read-route-prompt.js';
3
- export declare const SKILL_AUDIT_PURPOSE_ORIENTATION: string;
4
- export declare const EVIDENCE_RULE_SKILL_AUDIT: string;
5
- export declare const SCOPE_RULE_SKILL_AUDIT: string;
6
- export declare const ANNOTATOR_AWARENESS_SKILL_AUDIT: string;
7
- export declare const SKILL_AUDIT_CRITERIA: readonly CriterionEntry[];
8
- export declare const SKILL_AUDIT_SEMANTICS: RouteSemantics;
9
- //# sourceMappingURL=skill-audit-criteria.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-audit-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/skill-audit-criteria.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,eAAO,MAAM,+BAA+B,QAShC,CAAC;AAEb,eAAO,MAAM,yBAAyB,QAO1B,CAAC;AAEb,eAAO,MAAM,sBAAsB,QAKvB,CAAC;AAEb,eAAO,MAAM,+BAA+B,QAEhC,CAAC;AAYb,eAAO,MAAM,oBAAoB,EAAE,SAAS,cAAc,EAA6C,CAAC;AAExG,eAAO,MAAM,qBAAqB,EAAE,cAYnC,CAAC"}
@@ -1,52 +0,0 @@
1
- import { parseCriteria } from '../criteria-types.js';
2
- export const SKILL_AUDIT_PURPOSE_ORIENTATION = [
3
- 'Why this audit exists:',
4
- 'A skill is the markdown a caller reads to decide whether to route a request to a tool and how to construct that request. A finding here is a place where the skill, as written, would cause a competent reader to dispatch the wrong call, miss a path of use, or fall for a foreseeable anti-pattern.',
5
- '',
6
- 'For your output to clear that bar, every Finding must answer:',
7
- '- Issue: the gap or ambiguity, quoting the exact skill section (heading + line).',
8
- '- Suggestion: the missing or replacement text the skill needs.',
9
- '',
10
- 'The completion test: would a competent reader given ONLY this skill be able to construct a correct request and avoid the named anti-patterns? 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_SKILL_AUDIT = [
13
- 'Evidence grounding (REQUIRED for every finding):',
14
- '- Quote the exact section heading + offending line (or the absence — name what is missing AND where it should appear).',
15
- '- For when_to_use overlap findings: name the sibling skill that overlaps + quote both `when_to_use` lines.',
16
- '- For input-shape findings: name the field that lacks documentation + quote the schema or surface where the field is exposed.',
17
- '- For link-integrity findings: name the broken link + the file that should exist at that path.',
18
- '- Severity binding: critical = wrong-tool routing; high = wrong-field dispatch; medium = reader hesitation; low = stylistic / metadata fix.',
19
- ].join('\n');
20
- export const SCOPE_RULE_SKILL_AUDIT = [
21
- 'Scope:',
22
- '- In scope: when_to_use specificity, input-shape completeness, output-shape contract, anti-pattern coverage, recipe-vs-skill scope discipline, version frontmatter, link integrity.',
23
- '- Out of scope: implementation details of the tool itself (those belong in source code, not the skill), opinions on the underlying tool design, prose stylistic preferences that do not affect reader effectiveness.',
24
- '- Multi-tool flows (recipes that span 2+ skills) are out of scope for individual skill files and belong in `multi-model-agent` SKILL.md\'s recipes section — flag in-skill recipes as RECIPE-VS-SKILL-SCOPE findings.',
25
- ].join('\n');
26
- export const ANNOTATOR_AWARENESS_SKILL_AUDIT = [
27
- '(N/A — your output is consumed verbatim by the user; there is no downstream annotator dedup step on this subtype.)',
28
- ].join('\n');
29
- const SKILL_AUDIT_FAILURE_MODES = [
30
- '1. WHEN-TO-USE-SPECIFICITY — The `when_to_use` frontmatter cleanly distinguishes this skill from sibling skills. Overlap with another `mma-*` skill without a tiebreaker is a finding.',
31
- '2. INPUT-SHAPE-COMPLETENESS — Required JSON fields are documented with name + type + constraint + example. A reader can write a valid request from the skill text alone. Missing fields, types, or constraints flag.',
32
- '3. OUTPUT-SHAPE-CONTRACT — The terminal envelope shape the caller will consume is described, including the structured-report shape and which fields are guaranteed vs optional.',
33
- '4. ANTI-PATTERN-COVERAGE — Foreseeable misuses are called out with a corrective ("use X instead"). Anti-patterns mentioned without a corrective flag.',
34
- '5. RECIPE-VS-SKILL-SCOPE — The skill documents a single tool, not a multi-step recipe spanning multiple tools. Multi-tool flows belong in `multi-model-agent` SKILL.md\'s recipes section.',
35
- '6. VERSION-FRONTMATTER — `name` / `description` / `when_to_use` / `version` frontmatter is present and well-formed. `version` is the literal string `"0.0.0-unreleased"` before npm publish injection.',
36
- '7. LINK-INTEGRITY — Internal cross-references (`./_shared/...`, `mma-other-skill`) point at files that exist; external links are not load-bearing for the skill\'s correctness.',
37
- ].join('\n');
38
- export const SKILL_AUDIT_CRITERIA = parseCriteria(SKILL_AUDIT_FAILURE_MODES);
39
- export const SKILL_AUDIT_SEMANTICS = {
40
- goalLine: 'Find ALL ways this skill, as written, would cause a competent reader to dispatch the wrong call, miss a path of use, or fall for a foreseeable anti-pattern — viewed through this criterion.',
41
- emptyOutcomeLine: 'If THIS criterion does not surface a real gap in the skill, respond with the literal text "No findings for this criterion." — that is a valid outcome on a clean skill file.',
42
- findingMeaningParagraph: 'A finding is a PLACE WHERE THE SKILL TEXT FAILS THE READER-EFFECTIVENESS TEST viewed through this criterion. Title = the failing section (or its anchor). Severity reflects whether a reader would route to the wrong tool, dispatch with wrong fields, hesitate / re-read, or just notice a stylistic nit.',
43
- severityMeanings: {
44
- critical: 'would route the reader to the wrong tool entirely — e.g. when_to_use overlaps a sibling skill with no tiebreaker, or the description names the wrong tool category.',
45
- high: 'would dispatch with wrong fields — input shape incomplete, required field undocumented, JSON example wrong/missing.',
46
- medium: 'would make a reader hesitate or re-read — anti-pattern mentioned without correction, recipe-vs-skill scope unclear, version frontmatter malformed.',
47
- low: 'stylistic / link / metadata fix; does not affect dispatch correctness.',
48
- },
49
- mustEmitAtLeastOne: false,
50
- legalOutcomes: ['found', 'clean'],
51
- };
52
- //# sourceMappingURL=skill-audit-criteria.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-audit-criteria.js","sourceRoot":"","sources":["../../../src/tools/audit/skill-audit-criteria.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,wBAAwB;IACxB,wSAAwS;IACxS,EAAE;IACF,+DAA+D;IAC/D,kFAAkF;IAClF,gEAAgE;IAChE,EAAE;IACF,wPAAwP;CACzP,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,kDAAkD;IAClD,wHAAwH;IACxH,4GAA4G;IAC5G,+HAA+H;IAC/H,gGAAgG;IAChG,6IAA6I;CAC9I,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,QAAQ;IACR,qLAAqL;IACrL,sNAAsN;IACtN,uNAAuN;CACxN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,oHAAoH;CACrH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,yBAAyB,GAAG;IAChC,wLAAwL;IACxL,sNAAsN;IACtN,iLAAiL;IACjL,uJAAuJ;IACvJ,4LAA4L;IAC5L,wMAAwM;IACxM,iLAAiL;CAClL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,oBAAoB,GAA8B,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAExG,MAAM,CAAC,MAAM,qBAAqB,GAAmB;IACnD,QAAQ,EAAE,8LAA8L;IACxM,gBAAgB,EAAE,8KAA8K;IAChM,uBAAuB,EAAE,6SAA6S;IACtU,gBAAgB,EAAE;QAChB,QAAQ,EAAE,qKAAqK;QAC/K,IAAI,EAAE,qHAAqH;QAC3H,MAAM,EAAE,oJAAoJ;QAC5J,GAAG,EAAE,wEAAwE;KAC9E;IACD,kBAAkB,EAAE,KAAK;IACzB,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,CAAU;CAC3C,CAAC"}
@@ -1,9 +0,0 @@
1
- import type { CriterionEntry } from '../criteria-types.js';
2
- import type { RouteSemantics } from '../read-route-prompt.js';
3
- export declare const SPEC_AUDIT_PURPOSE_ORIENTATION: string;
4
- export declare const EVIDENCE_RULE_SPEC_AUDIT: string;
5
- export declare const SCOPE_RULE_SPEC_AUDIT: string;
6
- export declare const ANNOTATOR_AWARENESS_SPEC_AUDIT: string;
7
- export declare const SPEC_AUDIT_CRITERIA: readonly CriterionEntry[];
8
- export declare const SPEC_AUDIT_SEMANTICS: RouteSemantics;
9
- //# sourceMappingURL=spec-audit-criteria.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec-audit-criteria.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/spec-audit-criteria.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,eAAO,MAAM,8BAA8B,QAS/B,CAAC;AAEb,eAAO,MAAM,wBAAwB,QAQzB,CAAC;AAEb,eAAO,MAAM,qBAAqB,QAKtB,CAAC;AAEb,eAAO,MAAM,8BAA8B,QAE/B,CAAC;AAcb,eAAO,MAAM,mBAAmB,EAAE,SAAS,cAAc,EAA4C,CAAC;AAEtG,eAAO,MAAM,oBAAoB,EAAE,cAYlC,CAAC"}