@zhixuan92/multi-model-agent-core 4.3.1 → 4.4.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 (437) hide show
  1. package/README.md +7 -8
  2. package/dist/bounded-execution/cost-compute.d.ts.map +1 -1
  3. package/dist/bounded-execution/cost-compute.js +10 -0
  4. package/dist/bounded-execution/cost-compute.js.map +1 -1
  5. package/dist/config/config-resolver.d.ts +6 -4
  6. package/dist/config/config-resolver.d.ts.map +1 -1
  7. package/dist/config/config-resolver.js +7 -6
  8. package/dist/config/config-resolver.js.map +1 -1
  9. package/dist/config/schema.d.ts +8 -76
  10. package/dist/config/schema.d.ts.map +1 -1
  11. package/dist/config/schema.js +11 -18
  12. package/dist/config/schema.js.map +1 -1
  13. package/dist/escalation/delegate-with-escalation.d.ts.map +1 -1
  14. package/dist/escalation/delegate-with-escalation.js +35 -38
  15. package/dist/escalation/delegate-with-escalation.js.map +1 -1
  16. package/dist/escalation/escalation-policy.d.ts +1 -1
  17. package/dist/escalation/escalation-policy.d.ts.map +1 -1
  18. package/dist/escalation/escalation-policy.js +0 -1
  19. package/dist/escalation/escalation-policy.js.map +1 -1
  20. package/dist/events/clamp.d.ts.map +1 -1
  21. package/dist/events/clamp.js +17 -6
  22. package/dist/events/clamp.js.map +1 -1
  23. package/dist/events/cloud-events.d.ts +1 -3
  24. package/dist/events/cloud-events.d.ts.map +1 -1
  25. package/dist/events/event-builder.d.ts +1 -1
  26. package/dist/events/event-builder.d.ts.map +1 -1
  27. package/dist/events/event-builder.js +2 -2
  28. package/dist/events/event-builder.js.map +1 -1
  29. package/dist/events/observability-events.d.ts +1 -25
  30. package/dist/events/observability-events.d.ts.map +1 -1
  31. package/dist/events/running-headline-sink.d.ts +2 -1
  32. package/dist/events/running-headline-sink.d.ts.map +1 -1
  33. package/dist/events/running-headline-sink.js.map +1 -1
  34. package/dist/events/telemetry-types.d.ts +20 -23
  35. package/dist/events/telemetry-types.d.ts.map +1 -1
  36. package/dist/events/telemetry-types.js +13 -13
  37. package/dist/events/telemetry-types.js.map +1 -1
  38. package/dist/index.d.ts +2 -5
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +1 -5
  41. package/dist/index.js.map +1 -1
  42. package/dist/intake/source-schema.js +1 -1
  43. package/dist/intake/source-schema.js.map +1 -1
  44. package/dist/intake/types.d.ts +1 -1
  45. package/dist/intake/types.d.ts.map +1 -1
  46. package/dist/intake/verify-command-validator.d.ts +6 -0
  47. package/dist/intake/verify-command-validator.d.ts.map +1 -0
  48. package/dist/intake/verify-command-validator.js +47 -0
  49. package/dist/intake/verify-command-validator.js.map +1 -0
  50. package/dist/lifecycle/findings-parser.d.ts +9 -0
  51. package/dist/lifecycle/findings-parser.d.ts.map +1 -0
  52. package/dist/lifecycle/findings-parser.js +47 -0
  53. package/dist/lifecycle/findings-parser.js.map +1 -0
  54. package/dist/lifecycle/handlers/annotator.d.ts +35 -0
  55. package/dist/lifecycle/handlers/annotator.d.ts.map +1 -0
  56. package/dist/lifecycle/handlers/annotator.js +38 -0
  57. package/dist/lifecycle/handlers/annotator.js.map +1 -0
  58. package/dist/lifecycle/handlers/baseline-handlers.d.ts.map +1 -1
  59. package/dist/lifecycle/handlers/baseline-handlers.js +30 -37
  60. package/dist/lifecycle/handlers/baseline-handlers.js.map +1 -1
  61. package/dist/lifecycle/handlers/git-commit-handler.d.ts +1 -16
  62. package/dist/lifecycle/handlers/git-commit-handler.d.ts.map +1 -1
  63. package/dist/lifecycle/handlers/git-commit-handler.js +147 -53
  64. package/dist/lifecycle/handlers/git-commit-handler.js.map +1 -1
  65. package/dist/lifecycle/handlers/read-route-implementer.d.ts +41 -0
  66. package/dist/lifecycle/handlers/read-route-implementer.d.ts.map +1 -0
  67. package/dist/lifecycle/handlers/read-route-implementer.js +84 -0
  68. package/dist/lifecycle/handlers/read-route-implementer.js.map +1 -0
  69. package/dist/lifecycle/handlers/review-handler.d.ts.map +1 -1
  70. package/dist/lifecycle/handlers/review-handler.js +84 -90
  71. package/dist/lifecycle/handlers/review-handler.js.map +1 -1
  72. package/dist/lifecycle/handlers/rework-handler.d.ts.map +1 -1
  73. package/dist/lifecycle/handlers/rework-handler.js +49 -25
  74. package/dist/lifecycle/handlers/rework-handler.js.map +1 -1
  75. package/dist/lifecycle/handlers/task-executor.d.ts +1 -3
  76. package/dist/lifecycle/handlers/task-executor.d.ts.map +1 -1
  77. package/dist/lifecycle/handlers/task-executor.js +88 -8
  78. package/dist/lifecycle/handlers/task-executor.js.map +1 -1
  79. package/dist/lifecycle/lifecycle-context.d.ts +13 -0
  80. package/dist/lifecycle/lifecycle-context.d.ts.map +1 -1
  81. package/dist/lifecycle/parallel-criteria-routes.d.ts +20 -6
  82. package/dist/lifecycle/parallel-criteria-routes.d.ts.map +1 -1
  83. package/dist/lifecycle/parallel-criteria-routes.js +36 -142
  84. package/dist/lifecycle/parallel-criteria-routes.js.map +1 -1
  85. package/dist/lifecycle/read-only-subtype-spec.d.ts +18 -0
  86. package/dist/lifecycle/read-only-subtype-spec.d.ts.map +1 -0
  87. package/dist/lifecycle/read-only-subtype-spec.js +2 -0
  88. package/dist/lifecycle/read-only-subtype-spec.js.map +1 -0
  89. package/dist/lifecycle/stage-labels.d.ts +22 -0
  90. package/dist/lifecycle/stage-labels.d.ts.map +1 -0
  91. package/dist/lifecycle/stage-labels.js +42 -0
  92. package/dist/lifecycle/stage-labels.js.map +1 -0
  93. package/dist/lifecycle/stage-plan-builder.d.ts.map +1 -1
  94. package/dist/lifecycle/stage-plan-builder.js +25 -54
  95. package/dist/lifecycle/stage-plan-builder.js.map +1 -1
  96. package/dist/lifecycle/stage-plan-types.d.ts +0 -23
  97. package/dist/lifecycle/stage-plan-types.d.ts.map +1 -1
  98. package/dist/lifecycle/stage-progression.js +10 -10
  99. package/dist/lifecycle/stage-progression.js.map +1 -1
  100. package/dist/lifecycle/stage-stats.js +1 -1
  101. package/dist/lifecycle/stage-stats.js.map +1 -1
  102. package/dist/lifecycle/task-executor.d.ts.map +1 -1
  103. package/dist/lifecycle/task-executor.js +20 -17
  104. package/dist/lifecycle/task-executor.js.map +1 -1
  105. package/dist/lifecycle/task-runner.d.ts.map +1 -1
  106. package/dist/lifecycle/task-runner.js +83 -72
  107. package/dist/lifecycle/task-runner.js.map +1 -1
  108. package/dist/lifecycle/tool-config-types.d.ts +1 -2
  109. package/dist/lifecycle/tool-config-types.d.ts.map +1 -1
  110. package/dist/lifecycle/warm-followup.d.ts +3 -0
  111. package/dist/lifecycle/warm-followup.d.ts.map +1 -0
  112. package/dist/lifecycle/warm-followup.js +16 -0
  113. package/dist/lifecycle/warm-followup.js.map +1 -0
  114. package/dist/lifecycle/worker-output-contract.d.ts +26 -0
  115. package/dist/lifecycle/worker-output-contract.d.ts.map +1 -0
  116. package/dist/lifecycle/worker-output-contract.js +73 -0
  117. package/dist/lifecycle/worker-output-contract.js.map +1 -0
  118. package/dist/providers/assemble-run-result.d.ts +17 -0
  119. package/dist/providers/assemble-run-result.d.ts.map +1 -0
  120. package/dist/providers/assemble-run-result.js +76 -0
  121. package/dist/providers/assemble-run-result.js.map +1 -0
  122. package/dist/providers/brief-preamble.d.ts +4 -0
  123. package/dist/providers/brief-preamble.d.ts.map +1 -0
  124. package/dist/providers/brief-preamble.js +39 -0
  125. package/dist/providers/brief-preamble.js.map +1 -0
  126. package/dist/providers/claude-session.d.ts +23 -0
  127. package/dist/providers/claude-session.d.ts.map +1 -0
  128. package/dist/providers/claude-session.js +185 -0
  129. package/dist/providers/claude-session.js.map +1 -0
  130. package/dist/providers/claude.d.ts +4 -0
  131. package/dist/providers/claude.d.ts.map +1 -0
  132. package/dist/providers/claude.js +35 -0
  133. package/dist/providers/claude.js.map +1 -0
  134. package/dist/providers/codex-cli-event.d.ts +44 -0
  135. package/dist/providers/codex-cli-event.d.ts.map +1 -0
  136. package/dist/providers/codex-cli-event.js +43 -0
  137. package/dist/providers/codex-cli-event.js.map +1 -0
  138. package/dist/providers/codex-cli-launch.d.ts +26 -0
  139. package/dist/providers/codex-cli-launch.d.ts.map +1 -0
  140. package/dist/providers/codex-cli-launch.js +47 -0
  141. package/dist/providers/codex-cli-launch.js.map +1 -0
  142. package/dist/providers/codex-cli-session.d.ts +55 -0
  143. package/dist/providers/codex-cli-session.d.ts.map +1 -0
  144. package/dist/providers/codex-cli-session.js +417 -0
  145. package/dist/providers/codex-cli-session.js.map +1 -0
  146. package/dist/providers/codex.d.ts +4 -0
  147. package/dist/providers/codex.d.ts.map +1 -0
  148. package/dist/providers/codex.js +28 -0
  149. package/dist/providers/codex.js.map +1 -0
  150. package/dist/providers/index.d.ts +0 -12
  151. package/dist/providers/index.d.ts.map +1 -1
  152. package/dist/providers/index.js +1 -13
  153. package/dist/providers/index.js.map +1 -1
  154. package/dist/providers/normalize-claude.d.ts +10 -0
  155. package/dist/providers/normalize-claude.d.ts.map +1 -0
  156. package/dist/providers/normalize-claude.js +89 -0
  157. package/dist/providers/normalize-claude.js.map +1 -0
  158. package/dist/providers/provider-factory.d.ts +1 -9
  159. package/dist/providers/provider-factory.d.ts.map +1 -1
  160. package/dist/providers/provider-factory.js +35 -167
  161. package/dist/providers/provider-factory.js.map +1 -1
  162. package/dist/providers/runner-adapter.d.ts +5 -16
  163. package/dist/providers/runner-adapter.d.ts.map +1 -1
  164. package/dist/providers/runner-adapter.js +6 -0
  165. package/dist/providers/runner-adapter.js.map +1 -1
  166. package/dist/providers/runner-types.d.ts +20 -2
  167. package/dist/providers/runner-types.d.ts.map +1 -1
  168. package/dist/reporting/report-parser-slots/research-report.d.ts +21 -17
  169. package/dist/reporting/report-parser-slots/research-report.d.ts.map +1 -1
  170. package/dist/reporting/report-parser-slots/research-report.js +28 -67
  171. package/dist/reporting/report-parser-slots/research-report.js.map +1 -1
  172. package/dist/review/annotator-engine.d.ts +2 -2
  173. package/dist/review/annotator-engine.d.ts.map +1 -1
  174. package/dist/review/annotator-engine.js +16 -20
  175. package/dist/review/annotator-engine.js.map +1 -1
  176. package/dist/review/annotator-prompt-builder.d.ts +1 -1
  177. package/dist/review/annotator-prompt-builder.d.ts.map +1 -1
  178. package/dist/review/default-engines.d.ts.map +1 -1
  179. package/dist/review/default-engines.js +2 -4
  180. package/dist/review/default-engines.js.map +1 -1
  181. package/dist/review/review-types.d.ts +0 -1
  182. package/dist/review/review-types.d.ts.map +1 -1
  183. package/dist/review/reviewer-engine.d.ts +5 -40
  184. package/dist/review/reviewer-engine.d.ts.map +1 -1
  185. package/dist/review/reviewer-engine.js +19 -49
  186. package/dist/review/reviewer-engine.js.map +1 -1
  187. package/dist/review/reviewer-output-parser.d.ts +1 -6
  188. package/dist/review/reviewer-output-parser.d.ts.map +1 -1
  189. package/dist/review/reviewer-output-parser.js +0 -26
  190. package/dist/review/reviewer-output-parser.js.map +1 -1
  191. package/dist/review/reviewer-prompt-builder.d.ts +1 -6
  192. package/dist/review/reviewer-prompt-builder.d.ts.map +1 -1
  193. package/dist/review/reviewer-prompt-builder.js +0 -6
  194. package/dist/review/reviewer-prompt-builder.js.map +1 -1
  195. package/dist/review/templates/quality-review.d.ts.map +1 -1
  196. package/dist/review/templates/quality-review.js +28 -0
  197. package/dist/review/templates/quality-review.js.map +1 -1
  198. package/dist/review/templates/rework.d.ts.map +1 -1
  199. package/dist/review/templates/rework.js +15 -9
  200. package/dist/review/templates/rework.js.map +1 -1
  201. package/dist/review/templates/shared.d.ts +9 -0
  202. package/dist/review/templates/shared.d.ts.map +1 -1
  203. package/dist/stores/context-block-project-cap.d.ts +1 -1
  204. package/dist/stores/context-block-project-cap.d.ts.map +1 -1
  205. package/dist/stores/context-block-project-cap.js +17 -5
  206. package/dist/stores/context-block-project-cap.js.map +1 -1
  207. package/dist/stores/file-backed-context-block-store.d.ts +7 -0
  208. package/dist/stores/file-backed-context-block-store.d.ts.map +1 -1
  209. package/dist/stores/file-backed-context-block-store.js +8 -0
  210. package/dist/stores/file-backed-context-block-store.js.map +1 -1
  211. package/dist/tool-surface/discover.d.ts +1 -1
  212. package/dist/tool-surface/discover.d.ts.map +1 -1
  213. package/dist/tool-surface/discover.js +0 -1
  214. package/dist/tool-surface/discover.js.map +1 -1
  215. package/dist/tool-surface/openapi-generator.d.ts.map +1 -1
  216. package/dist/tool-surface/openapi-generator.js +0 -2
  217. package/dist/tool-surface/openapi-generator.js.map +1 -1
  218. package/dist/tool-surface/register-all-tools.d.ts.map +1 -1
  219. package/dist/tool-surface/register-all-tools.js +1 -3
  220. package/dist/tool-surface/register-all-tools.js.map +1 -1
  221. package/dist/tools/audit/schema.d.ts +4 -4
  222. package/dist/tools/audit/schema.d.ts.map +1 -1
  223. package/dist/tools/audit/schema.js +4 -4
  224. package/dist/tools/audit/schema.js.map +1 -1
  225. package/dist/tools/audit/skill-audit-criteria.d.ts +9 -0
  226. package/dist/tools/audit/skill-audit-criteria.d.ts.map +1 -0
  227. package/dist/tools/audit/skill-audit-criteria.js +51 -0
  228. package/dist/tools/audit/skill-audit-criteria.js.map +1 -0
  229. package/dist/tools/audit/spec-audit-criteria.d.ts +9 -0
  230. package/dist/tools/audit/spec-audit-criteria.d.ts.map +1 -0
  231. package/dist/tools/audit/spec-audit-criteria.js +52 -0
  232. package/dist/tools/audit/spec-audit-criteria.js.map +1 -0
  233. package/dist/tools/audit/subtypes.d.ts +4 -0
  234. package/dist/tools/audit/subtypes.d.ts.map +1 -0
  235. package/dist/tools/audit/subtypes.js +67 -0
  236. package/dist/tools/audit/subtypes.js.map +1 -0
  237. package/dist/tools/audit/tool-config.d.ts +4 -4
  238. package/dist/tools/audit/tool-config.d.ts.map +1 -1
  239. package/dist/tools/audit/tool-config.js +31 -29
  240. package/dist/tools/audit/tool-config.js.map +1 -1
  241. package/dist/tools/debug/schema.d.ts +3 -0
  242. package/dist/tools/debug/schema.d.ts.map +1 -1
  243. package/dist/tools/debug/schema.js +1 -0
  244. package/dist/tools/debug/schema.js.map +1 -1
  245. package/dist/tools/debug/subtypes.d.ts +4 -0
  246. package/dist/tools/debug/subtypes.d.ts.map +1 -0
  247. package/dist/tools/debug/subtypes.js +25 -0
  248. package/dist/tools/debug/subtypes.js.map +1 -0
  249. package/dist/tools/delegate/tool-config.d.ts.map +1 -1
  250. package/dist/tools/delegate/tool-config.js +0 -1
  251. package/dist/tools/delegate/tool-config.js.map +1 -1
  252. package/dist/tools/execute-plan/tool-config.d.ts.map +1 -1
  253. package/dist/tools/execute-plan/tool-config.js +5 -2
  254. package/dist/tools/execute-plan/tool-config.js.map +1 -1
  255. package/dist/tools/index.d.ts +0 -1
  256. package/dist/tools/index.d.ts.map +1 -1
  257. package/dist/tools/index.js +0 -1
  258. package/dist/tools/index.js.map +1 -1
  259. package/dist/tools/investigate/schema.d.ts +3 -0
  260. package/dist/tools/investigate/schema.d.ts.map +1 -1
  261. package/dist/tools/investigate/schema.js +1 -0
  262. package/dist/tools/investigate/schema.js.map +1 -1
  263. package/dist/tools/investigate/subtypes.d.ts +4 -0
  264. package/dist/tools/investigate/subtypes.d.ts.map +1 -0
  265. package/dist/tools/investigate/subtypes.js +25 -0
  266. package/dist/tools/investigate/subtypes.js.map +1 -0
  267. package/dist/tools/research/implementer-criteria.d.ts +12 -5
  268. package/dist/tools/research/implementer-criteria.d.ts.map +1 -1
  269. package/dist/tools/research/implementer-criteria.js +40 -9
  270. package/dist/tools/research/implementer-criteria.js.map +1 -1
  271. package/dist/tools/research/schema.d.ts +3 -0
  272. package/dist/tools/research/schema.d.ts.map +1 -1
  273. package/dist/tools/research/schema.js +2 -1
  274. package/dist/tools/research/schema.js.map +1 -1
  275. package/dist/tools/research/subtypes.d.ts +4 -0
  276. package/dist/tools/research/subtypes.d.ts.map +1 -0
  277. package/dist/tools/research/subtypes.js +24 -0
  278. package/dist/tools/research/subtypes.js.map +1 -0
  279. package/dist/tools/research/tool-config.js +2 -2
  280. package/dist/tools/research/tool-config.js.map +1 -1
  281. package/dist/tools/review/schema.d.ts +3 -0
  282. package/dist/tools/review/schema.d.ts.map +1 -1
  283. package/dist/tools/review/schema.js +1 -0
  284. package/dist/tools/review/schema.js.map +1 -1
  285. package/dist/tools/review/subtypes.d.ts +4 -0
  286. package/dist/tools/review/subtypes.d.ts.map +1 -0
  287. package/dist/tools/review/subtypes.js +26 -0
  288. package/dist/tools/review/subtypes.js.map +1 -0
  289. package/dist/types/config.d.ts +14 -28
  290. package/dist/types/config.d.ts.map +1 -1
  291. package/dist/types/enums.d.ts +2 -7
  292. package/dist/types/enums.d.ts.map +1 -1
  293. package/dist/types/enums.js +3 -3
  294. package/dist/types/enums.js.map +1 -1
  295. package/dist/types/run-result.d.ts +56 -21
  296. package/dist/types/run-result.d.ts.map +1 -1
  297. package/dist/types/task-spec.d.ts +17 -15
  298. package/dist/types/task-spec.d.ts.map +1 -1
  299. package/dist/types.d.ts +1 -1
  300. package/dist/types.d.ts.map +1 -1
  301. package/package.json +9 -3
  302. package/dist/identity/main-model-resolver.d.ts +0 -14
  303. package/dist/identity/main-model-resolver.d.ts.map +0 -1
  304. package/dist/identity/main-model-resolver.js +0 -100
  305. package/dist/identity/main-model-resolver.js.map +0 -1
  306. package/dist/lifecycle/handlers/annotate-completion-handler.d.ts +0 -9
  307. package/dist/lifecycle/handlers/annotate-completion-handler.d.ts.map +0 -1
  308. package/dist/lifecycle/handlers/annotate-completion-handler.js +0 -200
  309. package/dist/lifecycle/handlers/annotate-completion-handler.js.map +0 -1
  310. package/dist/lifecycle/handlers/annotate-criteria-handler.d.ts +0 -3
  311. package/dist/lifecycle/handlers/annotate-criteria-handler.d.ts.map +0 -1
  312. package/dist/lifecycle/handlers/annotate-criteria-handler.js +0 -79
  313. package/dist/lifecycle/handlers/annotate-criteria-handler.js.map +0 -1
  314. package/dist/lifecycle/handlers/execution-context-builder.d.ts +0 -5
  315. package/dist/lifecycle/handlers/execution-context-builder.d.ts.map +0 -1
  316. package/dist/lifecycle/handlers/execution-context-builder.js +0 -17
  317. package/dist/lifecycle/handlers/execution-context-builder.js.map +0 -1
  318. package/dist/lifecycle/parallel-criteria-dispatcher.d.ts +0 -62
  319. package/dist/lifecycle/parallel-criteria-dispatcher.d.ts.map +0 -1
  320. package/dist/lifecycle/parallel-criteria-dispatcher.js +0 -328
  321. package/dist/lifecycle/parallel-criteria-dispatcher.js.map +0 -1
  322. package/dist/providers/anthropic-messages-adapter.d.ts +0 -26
  323. package/dist/providers/anthropic-messages-adapter.d.ts.map +0 -1
  324. package/dist/providers/anthropic-messages-adapter.js +0 -127
  325. package/dist/providers/anthropic-messages-adapter.js.map +0 -1
  326. package/dist/providers/base/research-tools.d.ts +0 -47
  327. package/dist/providers/base/research-tools.d.ts.map +0 -1
  328. package/dist/providers/base/research-tools.js +0 -67
  329. package/dist/providers/base/research-tools.js.map +0 -1
  330. package/dist/providers/base/result-builders.d.ts +0 -82
  331. package/dist/providers/base/result-builders.d.ts.map +0 -1
  332. package/dist/providers/base/result-builders.js +0 -112
  333. package/dist/providers/base/result-builders.js.map +0 -1
  334. package/dist/providers/base/time-check.d.ts +0 -9
  335. package/dist/providers/base/time-check.d.ts.map +0 -1
  336. package/dist/providers/base/time-check.js +0 -18
  337. package/dist/providers/base/time-check.js.map +0 -1
  338. package/dist/providers/base/types.d.ts +0 -53
  339. package/dist/providers/base/types.d.ts.map +0 -1
  340. package/dist/providers/base/types.js +0 -2
  341. package/dist/providers/base/types.js.map +0 -1
  342. package/dist/providers/base/usage-accumulator.d.ts +0 -9
  343. package/dist/providers/base/usage-accumulator.d.ts.map +0 -1
  344. package/dist/providers/base/usage-accumulator.js +0 -20
  345. package/dist/providers/base/usage-accumulator.js.map +0 -1
  346. package/dist/providers/call-cache.d.ts +0 -16
  347. package/dist/providers/call-cache.d.ts.map +0 -1
  348. package/dist/providers/call-cache.js +0 -28
  349. package/dist/providers/call-cache.js.map +0 -1
  350. package/dist/providers/file-tracker.d.ts +0 -80
  351. package/dist/providers/file-tracker.d.ts.map +0 -1
  352. package/dist/providers/file-tracker.js +0 -125
  353. package/dist/providers/file-tracker.js.map +0 -1
  354. package/dist/providers/injection-type.d.ts +0 -22
  355. package/dist/providers/injection-type.d.ts.map +0 -1
  356. package/dist/providers/injection-type.js +0 -34
  357. package/dist/providers/injection-type.js.map +0 -1
  358. package/dist/providers/make-runner-shell.d.ts +0 -4
  359. package/dist/providers/make-runner-shell.d.ts.map +0 -1
  360. package/dist/providers/make-runner-shell.js +0 -70
  361. package/dist/providers/make-runner-shell.js.map +0 -1
  362. package/dist/providers/openai-chat-adapter.d.ts +0 -15
  363. package/dist/providers/openai-chat-adapter.d.ts.map +0 -1
  364. package/dist/providers/openai-chat-adapter.js +0 -86
  365. package/dist/providers/openai-chat-adapter.js.map +0 -1
  366. package/dist/providers/openai-responses-adapter.d.ts +0 -15
  367. package/dist/providers/openai-responses-adapter.d.ts.map +0 -1
  368. package/dist/providers/openai-responses-adapter.js +0 -137
  369. package/dist/providers/openai-responses-adapter.js.map +0 -1
  370. package/dist/providers/openai-usage-interceptor.d.ts +0 -25
  371. package/dist/providers/openai-usage-interceptor.d.ts.map +0 -1
  372. package/dist/providers/openai-usage-interceptor.js +0 -121
  373. package/dist/providers/openai-usage-interceptor.js.map +0 -1
  374. package/dist/providers/prevention.d.ts +0 -44
  375. package/dist/providers/prevention.d.ts.map +0 -1
  376. package/dist/providers/prevention.js +0 -108
  377. package/dist/providers/prevention.js.map +0 -1
  378. package/dist/providers/runner-shell-types.d.ts +0 -91
  379. package/dist/providers/runner-shell-types.d.ts.map +0 -1
  380. package/dist/providers/runner-shell-types.js +0 -2
  381. package/dist/providers/runner-shell-types.js.map +0 -1
  382. package/dist/providers/runner-shell.d.ts +0 -67
  383. package/dist/providers/runner-shell.d.ts.map +0 -1
  384. package/dist/providers/runner-shell.js +0 -518
  385. package/dist/providers/runner-shell.js.map +0 -1
  386. package/dist/providers/scratchpad-salvager.d.ts +0 -19
  387. package/dist/providers/scratchpad-salvager.d.ts.map +0 -1
  388. package/dist/providers/scratchpad-salvager.js +0 -44
  389. package/dist/providers/scratchpad-salvager.js.map +0 -1
  390. package/dist/providers/supervision.d.ts +0 -108
  391. package/dist/providers/supervision.d.ts.map +0 -1
  392. package/dist/providers/supervision.js +0 -272
  393. package/dist/providers/supervision.js.map +0 -1
  394. package/dist/providers/text-scratchpad.d.ts +0 -28
  395. package/dist/providers/text-scratchpad.d.ts.map +0 -1
  396. package/dist/providers/text-scratchpad.js +0 -49
  397. package/dist/providers/text-scratchpad.js.map +0 -1
  398. package/dist/providers/tool-definitions.d.ts +0 -6
  399. package/dist/providers/tool-definitions.d.ts.map +0 -1
  400. package/dist/providers/tool-definitions.js +0 -236
  401. package/dist/providers/tool-definitions.js.map +0 -1
  402. package/dist/providers/tool-implementations.d.ts +0 -38
  403. package/dist/providers/tool-implementations.d.ts.map +0 -1
  404. package/dist/providers/tool-implementations.js +0 -254
  405. package/dist/providers/tool-implementations.js.map +0 -1
  406. package/dist/providers/tool-tracker.d.ts +0 -14
  407. package/dist/providers/tool-tracker.d.ts.map +0 -1
  408. package/dist/providers/tool-tracker.js +0 -13
  409. package/dist/providers/tool-tracker.js.map +0 -1
  410. package/dist/reporting/headline-templates/verify.d.ts +0 -3
  411. package/dist/reporting/headline-templates/verify.d.ts.map +0 -1
  412. package/dist/reporting/headline-templates/verify.js +0 -29
  413. package/dist/reporting/headline-templates/verify.js.map +0 -1
  414. package/dist/reporting/report-parser-slots/verify-report.d.ts +0 -27
  415. package/dist/reporting/report-parser-slots/verify-report.d.ts.map +0 -1
  416. package/dist/reporting/report-parser-slots/verify-report.js +0 -51
  417. package/dist/reporting/report-parser-slots/verify-report.js.map +0 -1
  418. package/dist/review/templates/annotator-verify.d.ts +0 -3
  419. package/dist/review/templates/annotator-verify.d.ts.map +0 -1
  420. package/dist/review/templates/annotator-verify.js +0 -21
  421. package/dist/review/templates/annotator-verify.js.map +0 -1
  422. package/dist/review/templates/quality-review-verify.d.ts +0 -3
  423. package/dist/review/templates/quality-review-verify.d.ts.map +0 -1
  424. package/dist/review/templates/quality-review-verify.js +0 -10
  425. package/dist/review/templates/quality-review-verify.js.map +0 -1
  426. package/dist/tools/verify/implementer-criteria.d.ts +0 -61
  427. package/dist/tools/verify/implementer-criteria.d.ts.map +0 -1
  428. package/dist/tools/verify/implementer-criteria.js +0 -125
  429. package/dist/tools/verify/implementer-criteria.js.map +0 -1
  430. package/dist/tools/verify/schema.d.ts +0 -56
  431. package/dist/tools/verify/schema.d.ts.map +0 -1
  432. package/dist/tools/verify/schema.js +0 -16
  433. package/dist/tools/verify/schema.js.map +0 -1
  434. package/dist/tools/verify/tool-config.d.ts +0 -14
  435. package/dist/tools/verify/tool-config.d.ts.map +0 -1
  436. package/dist/tools/verify/tool-config.js +0 -146
  437. package/dist/tools/verify/tool-config.js.map +0 -1
@@ -1,15 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  export declare const inputSchema: z.ZodObject<{
3
3
  document: z.ZodOptional<z.ZodString>;
4
- auditType: z.ZodDefault<z.ZodEnum<{
4
+ subtype: z.ZodDefault<z.ZodEnum<{
5
5
  default: "default";
6
- security: "security";
7
- performance: "performance";
6
+ spec: "spec";
7
+ skill: "skill";
8
8
  plan: "plan";
9
9
  }>>;
10
10
  filePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
11
  contextBlockIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
- }, z.core.$strip>;
12
+ }, z.core.$strict>;
13
13
  export type Input = z.infer<typeof inputSchema>;
14
14
  export declare const outputSchema: z.ZodObject<{
15
15
  headline: z.ZodString;
@@ -1 +1 @@
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;;;;;;;;;;iBAevB,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
+ {"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"}
@@ -6,14 +6,14 @@ import { buildOutputEnvelopeSchema } from '../shared-output.js';
6
6
  // cross-package coupling.
7
7
  export const inputSchema = z.object({
8
8
  document: z.string().optional().describe('Inline document content to audit'),
9
- auditType: z.enum(['default', 'security', 'performance', 'plan'])
9
+ subtype: z.enum(['default', 'plan', 'spec', 'skill'])
10
10
  .default('default')
11
- .describe('Audit focus. `default` is the comprehensive prose-coherence sweep — recommended for specs, designs, recommendation docs, post-mortems (the requirement / what-we-want-to-do prose). `security` / `performance` narrow the lens to that one dimension (threat models, scaling designs). `plan` is for code-execution PLANS being audited against a real codebase: pass the plan file as the single filePaths entry; workers grep the codebase under cwd to verify every named symbol / path / signature / import. Use `default` to check spec quality; use `plan` to check whether a plan can actually dispatch.'),
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
12
  filePaths: z.array(z.string()).optional()
13
- .describe('Files the sub-agent should focus on. Multiple files are processed in parallel. For auditType=plan, MUST contain exactly one entry — the plan markdown.'),
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
14
  contextBlockIds: z.array(z.string()).optional()
15
15
  .describe('IDs from register_context_block to prepend to prompt. Use for delta audits, diff-scoped reviews, or shared specs.'),
16
- }).refine((input) => input.auditType !== 'plan' || (Array.isArray(input.filePaths) && input.filePaths.length === 1), {
16
+ }).strict().refine((input) => input.subtype !== 'plan' || (Array.isArray(input.filePaths) && input.filePaths.length === 1), {
17
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
18
  path: ['filePaths'],
19
19
  });
@@ -1 +1 @@
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,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,CAAC,CAAC;SAC9D,OAAO,CAAC,SAAS,CAAC;SAClB,QAAQ,CAAC,ilBAAilB,CAAC;IAC9lB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SACtC,QAAQ,CA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AAC,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"}
@@ -0,0 +1,9 @@
1
+ import type { CriterionEntry } from '../criteria-types.js';
2
+ import type { RouteSemantics } from '../parallel-criteria-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
@@ -0,0 +1 @@
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,gCAAgC,CAAC;AAErE,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,cAWnC,CAAC"}
@@ -0,0 +1,51 @@
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
+ };
51
+ //# sourceMappingURL=skill-audit-criteria.js.map
@@ -0,0 +1 @@
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;CAC1B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { CriterionEntry } from '../criteria-types.js';
2
+ import type { RouteSemantics } from '../parallel-criteria-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
@@ -0,0 +1 @@
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,gCAAgC,CAAC;AAErE,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;AAYb,eAAO,MAAM,mBAAmB,EAAE,SAAS,cAAc,EAA4C,CAAC;AAEtG,eAAO,MAAM,oBAAoB,EAAE,cAWlC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { parseCriteria } from '../criteria-types.js';
2
+ export const SPEC_AUDIT_PURPOSE_ORIENTATION = [
3
+ 'Why this audit exists:',
4
+ 'A spec is the prose that says what the system shall do. A finding here is a place where the prose, executed literally, would produce the wrong outcome or paralyze the executor. The completion test: would a downstream worker reading only this spec be able to build the right thing without coming back for clarification?',
5
+ '',
6
+ 'For your output to clear that bar, every Finding must answer:',
7
+ '- Issue: the gap or contradiction in one paragraph, quoting the exact prose snippet.',
8
+ '- Suggestion: the missing sentence the spec needs in order to be executable.',
9
+ '',
10
+ 'The completion test: would a downstream executor reading ONLY this spec be able to build the right thing without coming back for clarification? If a Finding does not change that answer from "no" to "yes" when applied, it is below the bar — omit it.',
11
+ ].join('\n');
12
+ export const EVIDENCE_RULE_SPEC_AUDIT = [
13
+ 'Evidence grounding (REQUIRED for every finding):',
14
+ '- Quote the exact `shall` / `must` / `should` clause that contains the gap (or the heading the gap sits under).',
15
+ '- For requirement conflicts: quote BOTH conflicting clauses.',
16
+ '- For assumption-exposure findings: quote the hidden assumption + name what would break if it does not hold.',
17
+ '- For acceptance-criteria-coverage findings: name the requirement that lacks a mapping AND state whether the spec calls out a reason it is non-testable.',
18
+ '- A "the spec seems to imply" claim without a quoted clause is NOT evidence — drop it.',
19
+ '- Severity binding: critical = literal execution silently ships wrong behavior; high = executor blocked; medium = clarification round forced; low = stylistic / metadata gap.',
20
+ ].join('\n');
21
+ export const SCOPE_RULE_SPEC_AUDIT = [
22
+ 'Scope:',
23
+ '- In scope: requirement testability, scope explicitness, acceptance-criteria coverage, non-functional capture, requirement conflicts, decision trace, hidden assumptions.',
24
+ '- Out of scope: implementation details (those belong in a plan, not a spec), stylistic prose preferences, opinions on whether the spec is "good", lens-style audits (security or performance focus belongs in free-text prompt, not in spec subtype).',
25
+ '- IMPLICIT requirements embedded inside a clause ARE in scope. Example: "shall validate the token" implicitly requires "what counts as valid" — if that is undefined, flag it as REQUIREMENT-TESTABILITY (do not split into two findings).',
26
+ ].join('\n');
27
+ export const ANNOTATOR_AWARENESS_SPEC_AUDIT = [
28
+ '(N/A — your output is consumed verbatim by the user; there is no downstream annotator dedup step on this subtype.)',
29
+ ].join('\n');
30
+ const SPEC_AUDIT_FAILURE_MODES = [
31
+ '1. REQUIREMENT-TESTABILITY — Every "shall" / "must" / "should" requirement has a concrete, observable outcome that a test can assert. Vague verbs ("supports", "handles", "is reliable") without a measurable outcome flag as findings.',
32
+ '2. SCOPE-EXPLICITNESS — In-scope and out-of-scope items are explicit. Implied scope (mentioned-once-then-dropped, or referenced without definition) is a finding.',
33
+ '3. ACCEPTANCE-CRITERIA-COVERAGE — Every requirement maps to at least one acceptance criterion (or the spec calls out it is non-acceptance-testable and says why). Missing mapping is a finding.',
34
+ '4. NON-FUNCTIONAL-CAPTURED — Non-functional constraints (latency, security, observability, accessibility, scale) are stated where load-bearing, not assumed silently. Silent assumption is a finding.',
35
+ '5. REQUIREMENT-CONFLICT — Two requirements that cannot simultaneously hold (e.g. "respond in <50ms" + "validate against the remote registry on every call") are surfaced.',
36
+ '6. DECISION-TRACE — Decisions that affect downstream implementation (algorithm choice, data shape, integration point) are stated with the reasoning, not just the outcome. Outcome-only is a finding.',
37
+ '7. ASSUMPTION-EXPOSURE — Hidden assumptions about caller behaviour, environment, or pre-existing state are made explicit so the executor can verify them.',
38
+ ].join('\n');
39
+ export const SPEC_AUDIT_CRITERIA = parseCriteria(SPEC_AUDIT_FAILURE_MODES);
40
+ export const SPEC_AUDIT_SEMANTICS = {
41
+ goalLine: 'Find ALL ways this spec, executed literally by a downstream worker, would produce the wrong outcome or paralyze the executor — viewed through this criterion.',
42
+ emptyOutcomeLine: 'If THIS criterion does not surface a real gap in the spec, respond with the literal text "No findings for this criterion." — that is a valid outcome on a clean spec.',
43
+ findingMeaningParagraph: 'A finding is a PLACE WHERE THE SPEC PROSE FAILS THE EXECUTABILITY TEST viewed through this criterion. Title = the failing prose snippet (or its anchor). Severity reflects whether the failure would silently ship wrong behavior, block the executor, force a clarification round, or just leave a stylistic gap.',
44
+ severityMeanings: {
45
+ critical: 'literal execution would silently produce the wrong outcome — e.g. a requirement whose stated test would pass on broken behavior, or two requirements that contradict in a way the executor cannot detect.',
46
+ high: 'would block the executor — vague verb without a measurable outcome on a load-bearing requirement, missing acceptance criterion on a critical path, undeclared assumption that downstream code depends on.',
47
+ medium: 'would force a clarification round — implicit scope, decision without trace, non-functional constraint hinted but not stated.',
48
+ low: 'stylistic / metadata gap; minor inconsistency that does not affect executability.',
49
+ },
50
+ mustEmitAtLeastOne: false,
51
+ };
52
+ //# sourceMappingURL=spec-audit-criteria.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-audit-criteria.js","sourceRoot":"","sources":["../../../src/tools/audit/spec-audit-criteria.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,wBAAwB;IACxB,gUAAgU;IAChU,EAAE;IACF,+DAA+D;IAC/D,sFAAsF;IACtF,8EAA8E;IAC9E,EAAE;IACF,0PAA0P;CAC3P,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,kDAAkD;IAClD,iHAAiH;IACjH,8DAA8D;IAC9D,8GAA8G;IAC9G,0JAA0J;IAC1J,wFAAwF;IACxF,+KAA+K;CAChL,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ;IACR,2KAA2K;IAC3K,uPAAuP;IACvP,4OAA4O;CAC7O,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,oHAAoH;CACrH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,wBAAwB,GAAG;IAC/B,yOAAyO;IACzO,mKAAmK;IACnK,iMAAiM;IACjM,uMAAuM;IACvM,2KAA2K;IAC3K,uMAAuM;IACvM,2JAA2J;CAC5J,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,mBAAmB,GAA8B,aAAa,CAAC,wBAAwB,CAAC,CAAC;AAEtG,MAAM,CAAC,MAAM,oBAAoB,GAAmB;IAClD,QAAQ,EAAE,+JAA+J;IACzK,gBAAgB,EAAE,uKAAuK;IACzL,uBAAuB,EAAE,oTAAoT;IAC7U,gBAAgB,EAAE;QAChB,QAAQ,EAAE,2MAA2M;QACrN,IAAI,EAAE,2MAA2M;QACjN,MAAM,EAAE,8HAA8H;QACtI,GAAG,EAAE,mFAAmF;KACzF;IACD,kBAAkB,EAAE,KAAK;CAC1B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ReadOnlySubtypeSpec } from '../../lifecycle/read-only-subtype-spec.js';
2
+ export type AuditSubtype = 'default' | 'plan' | 'spec' | 'skill';
3
+ export declare const AUDIT_SUBTYPES: Record<AuditSubtype, ReadOnlySubtypeSpec>;
4
+ //# sourceMappingURL=subtypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subtypes.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/subtypes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAarF,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAgCjE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,mBAAmB,CAiCpE,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { AUDIT_PURPOSE_ORIENTATION, EVIDENCE_RULE_AUDIT, SCOPE_RULE_AUDIT, ANNOTATOR_AWARENESS_AUDIT, AUDIT_CRITERIA, } from './implementer-criteria.js';
2
+ import { PLAN_AUDIT_PURPOSE_ORIENTATION, EVIDENCE_RULE_PLAN_AUDIT, SCOPE_RULE_PLAN_AUDIT, ANNOTATOR_AWARENESS_PLAN_AUDIT, PLAN_AUDIT_CRITERIA, } from './plan-audit-criteria.js';
3
+ import { SPEC_AUDIT_CRITERIA, SPEC_AUDIT_PURPOSE_ORIENTATION, EVIDENCE_RULE_SPEC_AUDIT, SCOPE_RULE_SPEC_AUDIT, ANNOTATOR_AWARENESS_SPEC_AUDIT, SPEC_AUDIT_SEMANTICS } from './spec-audit-criteria.js';
4
+ import { SKILL_AUDIT_CRITERIA, SKILL_AUDIT_PURPOSE_ORIENTATION, EVIDENCE_RULE_SKILL_AUDIT, SCOPE_RULE_SKILL_AUDIT, ANNOTATOR_AWARENESS_SKILL_AUDIT, SKILL_AUDIT_SEMANTICS } from './skill-audit-criteria.js';
5
+ // Copied verbatim from ROUTE_SEMANTICS.audit in
6
+ // packages/core/src/lifecycle/parallel-criteria-routes.ts (the legacy
7
+ // private const there is removed in Task 8 once dispatch reads from here).
8
+ const SEMANTICS_DEFAULT = {
9
+ goalLine: 'Find ALL issues of THIS specific kind in the artifact above.',
10
+ emptyOutcomeLine: 'If none exist, respond with the literal text "No findings for this criterion." — that is a fully valid outcome. Do NOT pad with low-signal observations to avoid returning empty.',
11
+ findingMeaningParagraph: 'A finding is an ISSUE in the artifact (a contradiction, missing recommendation, fix that violates a constraint, drift, structural inconsistency, etc.). Severity reflects how much the issue blocks the artifact\'s downstream use.',
12
+ severityMeanings: {
13
+ critical: 'a recommendation or claim that, if implemented as written, would fail or cause harm because the artifact is internally incoherent — e.g. a fix that depends on something the doc forbids.',
14
+ high: 'a substantive missing recommendation, an evidence chain that does not support a load-bearing conclusion, OR a fix that violates a stated principle/constraint of the doc.',
15
+ medium: 'argument-soundness gap, fix-actionability gap, drift between sections, structural inconsistency between similar items, scope-creep risk that needs a guardrail.',
16
+ low: 'stylistic / labeling / formatting issue; missing metadata; minor cross-reference fix.',
17
+ },
18
+ mustEmitAtLeastOne: false,
19
+ };
20
+ // Copied verbatim from ROUTE_SEMANTICS.audit_plan.
21
+ const SEMANTICS_PLAN = {
22
+ goalLine: 'Apply THIS verification perspective to every task in the plan above. Each finding is a plan-vs-codebase coherence issue grounded in real file:line evidence. Verify before flagging — use read_file / grep to inspect the source files the plan names.',
23
+ emptyOutcomeLine: 'If your perspective finds no plan-vs-codebase drift after grounding in the actual source files, respond with the literal text "No findings for this criterion." — that is the EXPECTED outcome on a clean plan. Do NOT pad with prose-quality observations (those belong in subtype=default, not here).',
24
+ findingMeaningParagraph: 'A finding is a CONCRETE PLAN-VS-CODEBASE DRIFT viewed through this perspective: the plan names a symbol / path / signature / import / test helper / verify command / cross-task dependency that the actual codebase does not match. Title = "<task ID>: <one-line drift>". Severity reflects whether the task can dispatch.',
25
+ severityMeanings: {
26
+ critical: 'plan would BLOCK dispatch — e.g. wrong method name (perspective 2), missing modify-target file (perspective 1), wrong signature (perspective 3), missing module export (perspective 4), out-of-order task dependency (perspective 7), wrong tooling (perspective 8). A literal worker freezes on this.',
27
+ high: 'load-bearing ambiguity — multiple matching symbols and the plan does not disambiguate, OR test harness missing in claimed shape, OR step depends on later step recoverably. Task may execute but produces an ambiguous artifact.',
28
+ medium: 'step ordering inferable but undeclared, cross-task dependency unstated, verify command vague but recoverable, missing parent dirs for create-targets. Fixable by reordering or adding a sentence; doesn\'t block dispatch.',
29
+ low: 'cosmetic — naming preference, missing metadata, minor cross-reference. Does not affect executability.',
30
+ },
31
+ mustEmitAtLeastOne: false,
32
+ };
33
+ export const AUDIT_SUBTYPES = {
34
+ default: {
35
+ criteria: AUDIT_CRITERIA,
36
+ orientation: AUDIT_PURPOSE_ORIENTATION,
37
+ evidenceRule: EVIDENCE_RULE_AUDIT,
38
+ scopeRule: SCOPE_RULE_AUDIT,
39
+ annotatorAwareness: ANNOTATOR_AWARENESS_AUDIT,
40
+ semantics: SEMANTICS_DEFAULT,
41
+ },
42
+ plan: {
43
+ criteria: PLAN_AUDIT_CRITERIA,
44
+ orientation: PLAN_AUDIT_PURPOSE_ORIENTATION,
45
+ evidenceRule: EVIDENCE_RULE_PLAN_AUDIT,
46
+ scopeRule: SCOPE_RULE_PLAN_AUDIT,
47
+ annotatorAwareness: ANNOTATOR_AWARENESS_PLAN_AUDIT,
48
+ semantics: SEMANTICS_PLAN,
49
+ },
50
+ spec: {
51
+ criteria: SPEC_AUDIT_CRITERIA,
52
+ orientation: SPEC_AUDIT_PURPOSE_ORIENTATION,
53
+ evidenceRule: EVIDENCE_RULE_SPEC_AUDIT,
54
+ scopeRule: SCOPE_RULE_SPEC_AUDIT,
55
+ annotatorAwareness: ANNOTATOR_AWARENESS_SPEC_AUDIT,
56
+ semantics: SPEC_AUDIT_SEMANTICS,
57
+ },
58
+ skill: {
59
+ criteria: SKILL_AUDIT_CRITERIA,
60
+ orientation: SKILL_AUDIT_PURPOSE_ORIENTATION,
61
+ evidenceRule: EVIDENCE_RULE_SKILL_AUDIT,
62
+ scopeRule: SCOPE_RULE_SKILL_AUDIT,
63
+ annotatorAwareness: ANNOTATOR_AWARENESS_SKILL_AUDIT,
64
+ semantics: SKILL_AUDIT_SEMANTICS,
65
+ },
66
+ };
67
+ //# sourceMappingURL=subtypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subtypes.js","sourceRoot":"","sources":["../../../src/tools/audit/subtypes.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,yBAAyB,EAAE,mBAAmB,EAAE,gBAAgB,EAChE,yBAAyB,EAAE,cAAc,GAC1C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,8BAA8B,EAAE,wBAAwB,EAAE,qBAAqB,EAC/E,8BAA8B,EAAE,mBAAmB,GACpD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,wBAAw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c;KAC1B;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,mBAAmB;QAC7B,WAAW,EAAE,8BAA8B;QAC3C,YAAY,EAAE,wBAAwB;QACtC,SAAS,EAAE,qBAAqB;QAChC,kBAAkB,EAAE,8BAA8B;QAClD,SAAS,EAAE,oBAAoB;KAChC;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,oBAAoB;QAC9B,WAAW,EAAE,+BAA+B;QAC5C,YAAY,EAAE,yBAAyB;QACvC,SAAS,EAAE,sBAAsB;QACjC,kBAAkB,EAAE,+BAA+B;QACnD,SAAS,EAAE,qBAAqB;KACjC;CACF,CAAC"}
@@ -4,16 +4,16 @@ import { type AuditReport } from '../../reporting/report-parser-slots/audit-repo
4
4
  import type { ToolConfig } from '../../lifecycle/tool-config-types.js';
5
5
  export declare function registerAudit(registry: ToolSurfaceRegistry): void;
6
6
  export interface ToolAuditBrief {
7
- auditTypeText: string;
7
+ subtypeText: string;
8
8
  done: string;
9
9
  document?: string;
10
10
  filePaths: string[];
11
11
  hasContextBlocks: boolean;
12
12
  contextBlockIds?: string[];
13
13
  perFilePath?: string;
14
- /** A12: pass-through of input.auditType so buildTaskSpec can stamp it
15
- * onto the TaskSpec for the dispatcher to read. */
16
- auditType?: 'default' | 'security' | 'performance' | 'plan';
14
+ /** v4.4.x: subtype is stamped onto the TaskSpec for the parallel-criteria
15
+ * dispatcher to read. */
16
+ subtype?: 'default' | 'plan' | 'spec' | 'skill';
17
17
  }
18
18
  export declare function auditBriefSlot(input: Input): ToolAuditBrief[];
19
19
  export declare const toolConfig: ToolConfig<Input, ToolAuditBrief, AuditReport>;
@@ -1 +1 @@
1
- {"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAqB,KA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AE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;8BAC0B;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACjD;AAgDD,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,cAAc,EAAE,CA4B7D;AAgFD,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,cAAc,EAAE,WAAW,CAwCrE,CAAC"}
@@ -19,36 +19,40 @@ export function registerAudit(registry) {
19
19
  });
20
20
  }
21
21
  /**
22
- * Per-audit-type "done" conditions.
22
+ * Per-subtype "done" conditions.
23
23
  *
24
24
  * The audit tool's primary target is prose artifacts: specs, plans,
25
25
  * recommendation docs, design docs, briefs, API contracts, configs.
26
- * A secondary target is source code (when filePaths point at .ts/.py/etc.).
27
- *
28
- * `default` is the comprehensive sweep what 90%+ of audit calls should
29
- * use. `security` and `performance` are narrow opt-in lenses for cases
30
- * where the caller specifically wants ONE dimension (a threat model, a
31
- * scaling design). The full failure-mode taxonomy applies regardless;
32
- * the lens just tells the worker which dimension to weight slightly more.
26
+ * `default` is the comprehensive prose sweep. `plan` audits a code-execution
27
+ * plan against the codebase. `spec` audits requirement-style prose for
28
+ * executability. `skill` audits an mma-* skill markdown file for reader
29
+ * effectiveness. For security or performance focus, include that emphasis
30
+ * in the free-text prompt; it is not a subtype.
33
31
  */
34
32
  const AUDIT_DONE_CONDITIONS = {
35
33
  default: 'Comprehensive audit. Apply the full failure-mode taxonomy through the executability lens (the orientation block above). For prose artifacts (specs, plans, recommendation docs, designs, post-mortems, audits, briefs): emphasize RECOMMENDATION-COHERENCE, INTERNAL CONTRADICTION, ARGUMENT SOUNDNESS, COMPLETENESS AGAINST CONSTRAINTS, FIX ACTIONABILITY, DRIFT, and SCOPE-CREEP — i.e., would a literal-following worker who reads this artifact and follows it without judgment produce the right outcome? Are sections internally consistent? Does each recommendation actually solve its stated problem given the doc\'s own constraints? Sweep style/clarity issues only when they would cause a worker to misinterpret. For source code: logic errors, contract violations, off-by-one bugs, type mismatches, unhandled edge cases. Each finding has severity (critical/high/medium/low), location, and remediation.',
36
- security: 'Narrow lens: security ONLY. Use this only when the caller specifically wants security findings and not general audit findings. For prose artifacts (threat models, security designs, auth specs): identify missing controls, ambiguous trust boundaries, undeclared attack surfaces, leaked-secret patterns in examples, recommendations that introduce new attack surface without mitigation, and threat-model gaps. For source code: injection, auth bypass, data exposure, OWASP top 10. Apply the full failure-mode taxonomy through the security lens. Skip non-security findings. Each finding has severity, location, and remediation.',
37
- performance: 'Narrow lens: performance ONLY. Use this only when the caller specifically wants performance findings and not general audit findings. For prose artifacts (designs, scaling plans, latency-sensitive specs): identify unstated complexity, missing hot-path consideration, unbounded loops in proposed designs, omitted scaling story, recommendations that mandate work that does not scale, and missing latency/throughput targets. For source code: O(n²) loops, unnecessary allocations, missing caching, blocking I/O. Apply the full failure-mode taxonomy through the performance lens. Skip non-performance findings. Each finding has impact level, location, and fix recommendation.',
38
34
  plan: 'PLAN-VS-CODEBASE EXECUTABILITY AUDIT. The single filePath you receive is a code-execution plan; the source files you verify against live under cwd and you discover them yourself by reading the plan\'s "Files: Modify:" / "Test:" / "Create:" blocks and `import` statements in code blocks. Apply the 8 verification perspectives (PATH EXISTENCE, SYMBOL EXISTENCE, SIGNATURE MATCH, IMPORT GRAPH, TEST HARNESS AVAILABILITY, STEP SEQUENCE WITHIN TASK, CROSS-TASK DEPENDENCIES, VERIFICATION COMMAND VALIDITY). For each task in the plan, the merge annotator computes a verdict: EXECUTABLE / PARTIAL / BLOCKED. Use read_file / grep / glob / list_files to ground every finding in real file:line evidence. Findings without source-side citations are speculation — drop them. Zero findings on a perspective is the EXPECTED outcome on a clean plan; do not invent findings to fill quota.',
35
+ spec: 'REQUIREMENT-PROSE EXECUTABILITY AUDIT. A finding is a place where the spec, executed literally by a downstream worker, would produce the wrong outcome or paralyze the executor. Apply the 7 criteria (REQUIREMENT-TESTABILITY, SCOPE-EXPLICITNESS, ACCEPTANCE-CRITERIA-COVERAGE, NON-FUNCTIONAL-CAPTURED, REQUIREMENT-CONFLICT, DECISION-TRACE, ASSUMPTION-EXPOSURE). Quote the exact `shall` / `must` / `should` clause for each finding. A clean spec legitimately produces zero findings — do not invent issues to fill quota.',
36
+ skill: 'SKILL-FILE READER-EFFECTIVENESS AUDIT. A finding 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. Apply the 7 criteria (WHEN-TO-USE-SPECIFICITY, INPUT-SHAPE-COMPLETENESS, OUTPUT-SHAPE-CONTRACT, ANTI-PATTERN-COVERAGE, RECIPE-VS-SKILL-SCOPE, VERSION-FRONTMATTER, LINK-INTEGRITY). Quote the failing section + line for each finding.',
39
37
  };
40
38
  const DELTA_AUDIT_SUFFIX = ' Perform a full audit (do not reduce thoroughness). Verify each prior finding as fixed or unfixed. Omit fixed prior findings from the main report. Include unfixed prior findings and new findings. End with a summary of which prior findings were resolved.';
41
- function resolveAuditTypeText(auditType) {
39
+ function resolveSubtypeText(subtype) {
42
40
  // Defensive: at the HTTP layer Zod's `.default('default')` fires, but
43
41
  // internal callers may still construct Input directly without going
44
42
  // through the schema. Treat undefined as the same as `'default'`.
45
- const t = auditType ?? 'default';
43
+ const t = subtype ?? 'default';
46
44
  if (t === 'default')
47
- return 'comprehensive (executability + correctness + clarity, with security and performance lenses applied)';
48
- return `narrow (${t} only)`;
45
+ return 'comprehensive prose-coherence';
46
+ if (t === 'plan')
47
+ return 'plan-vs-codebase';
48
+ if (t === 'spec')
49
+ return 'requirement-prose executability';
50
+ if (t === 'skill')
51
+ return 'skill-file reader-effectiveness';
52
+ return `subtype=${t}`;
49
53
  }
50
- function resolveDoneCondition(auditType, hasContextBlocks) {
51
- const t = auditType ?? 'default';
54
+ function resolveDoneCondition(subtype, hasContextBlocks) {
55
+ const t = subtype ?? 'default';
52
56
  const base = AUDIT_DONE_CONDITIONS[t] ?? AUDIT_DONE_CONDITIONS.default;
53
57
  return hasContextBlocks ? base + DELTA_AUDIT_SUFFIX : base;
54
58
  }
@@ -57,29 +61,29 @@ function hasContent(value) {
57
61
  }
58
62
  export function auditBriefSlot(input) {
59
63
  const hasContextBlocks = Array.isArray(input.contextBlockIds) && input.contextBlockIds.length > 0;
60
- const auditTypeText = resolveAuditTypeText(input.auditType);
61
- const done = resolveDoneCondition(input.auditType, hasContextBlocks);
64
+ const subtypeText = resolveSubtypeText(input.subtype);
65
+ const done = resolveDoneCondition(input.subtype, hasContextBlocks);
62
66
  const validPaths = (input.filePaths ?? []).filter(p => p.trim().length > 0);
63
67
  // Fan-out: multiple file paths without an inline document
64
68
  if (!hasContent(input.document) && validPaths.length >= 2) {
65
69
  return validPaths.map(fp => ({
66
- auditTypeText,
70
+ subtypeText,
67
71
  done,
68
72
  filePaths: [fp],
69
73
  hasContextBlocks,
70
74
  contextBlockIds: input.contextBlockIds,
71
75
  perFilePath: fp,
72
- auditType: input.auditType,
76
+ subtype: input.subtype,
73
77
  }));
74
78
  }
75
79
  return [{
76
- auditTypeText,
80
+ subtypeText,
77
81
  done,
78
82
  document: input.document,
79
83
  filePaths: validPaths,
80
84
  hasContextBlocks,
81
85
  contextBlockIds: input.contextBlockIds,
82
- auditType: input.auditType,
86
+ subtype: input.subtype,
83
87
  }];
84
88
  }
85
89
  const FINDING_FORMAT_INSTRUCTIONS = [
@@ -137,7 +141,7 @@ function buildFilePathsPrompt(filePaths) {
137
141
  return `Read and analyze these files:\n${filePaths.map(p => `- ${p}`).join('\n')}`;
138
142
  }
139
143
  function buildPrompt(brief) {
140
- const parts = [`Audit for ${brief.auditTypeText} issues.`];
144
+ const parts = [`Audit for ${brief.subtypeText} issues.`];
141
145
  if (brief.perFilePath) {
142
146
  parts.push(`Read and analyze this file:\n- ${brief.perFilePath}`);
143
147
  }
@@ -167,7 +171,7 @@ export const toolConfig = {
167
171
  // pure document/file targets — not buildPrompt's full spec which
168
172
  // embeds the legacy ## Finding format and would compete with the
169
173
  // dispatcher's own format spec.
170
- const targetParts = [`Audit for ${brief.auditTypeText} issues.`];
174
+ const targetParts = [`Audit for ${brief.subtypeText} issues.`];
171
175
  if (brief.document)
172
176
  targetParts.push(`Document:\n\n${brief.document}`);
173
177
  if (brief.filePaths.length > 0) {
@@ -188,11 +192,9 @@ export const toolConfig = {
188
192
  contextBlockIds: brief.contextBlockIds,
189
193
  filePaths: brief.filePaths.length > 0 ? brief.filePaths : undefined,
190
194
  mainModel: ctx.mainModel,
191
- // A12 (4.2.3+): plumb auditType to the dispatcher. The
192
- // parallel-criteria router branches on `task.auditType === 'plan'`
193
- // to use the plan-audit route spec instead of the default audit
194
- // spec (different criteria, orientation, severity semantics).
195
- auditType: brief.auditType,
195
+ // v4.4.x: plumb subtype to the dispatcher. The parallel-criteria
196
+ // router reads `task.subtype` and looks it up in AUDIT_SUBTYPES.
197
+ subtype: brief.subtype,
196
198
  };
197
199
  },
198
200
  reportSchema: auditReportSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/audit/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAoB,MAAM,qDAAqD,CAAC;AAC1G,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAGpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,UAAU,aAAa,CAAC,QAA6B;IACzD,QAAQ,C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AAE,CAAC,CAAC;QACtF,CAAC;QACD,OAAO;YACL,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC;YAC1B,cAAc,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC;YACxC,SAAS,EAAE,SAAS;YACpB,YAAY,EAAE,cAAc;YAC5B,kBAAkB,EAAE,KAAK;YACzB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,IAAI,MAAM;YAC3C,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,IAAI,uBAAuB;YACpE,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,IAAI,EAAE;YACjD,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,IAAI,UAAU;YAC/D,GAAG,EAAE,GAAG,CAAC,cAAc,EAAE,GAAG,IAAI,GAAG,CAAC,GAAG;YACvC,eAAe,EAAE,KAAK,CAAC,eAAe;YACtC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;YACnE,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,iEAAiE;YACjE,iEAAiE;YACjE,OAAO,EAAE,KAAK,CAAC,OAAO;SACX,CAAC;IAChB,CAAC;IACD,YAAY,EAAE,iBAAiB;IAC/B,gBAAgB,EAAE,qBAAqB;IACvC,eAAe,EAAE;QACf,SAAS,EAAE,oBAAoB;KAChC;CACF,CAAC"}
@@ -3,6 +3,9 @@ export declare const inputSchema: z.ZodObject<{
3
3
  problem: z.ZodString;
4
4
  context: z.ZodOptional<z.ZodString>;
5
5
  hypothesis: z.ZodOptional<z.ZodString>;
6
+ subtype: z.ZodDefault<z.ZodEnum<{
7
+ default: "default";
8
+ }>>;
6
9
  filePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
10
  contextBlockIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
11
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,WAAW;;;;;;iBAStB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAExD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,WAAW;;;;;;;;;iBAUtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAExD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -8,6 +8,7 @@ export const inputSchema = z.object({
8
8
  problem: z.string().describe('What is broken'),
9
9
  context: z.string().optional().describe('Background'),
10
10
  hypothesis: z.string().optional().describe('Initial theory'),
11
+ subtype: z.enum(['default']).default('default').describe('Criteria-set selector. Only `default` is wired today; reserved for future per-failure-class subtypes.'),
11
12
  filePaths: z.array(z.string()).optional().describe('Files the sub-agent should focus on. For debug_task, all provided files are investigated together in a single task.'),
12
13
  contextBlockIds: z.array(z.string()).optional()
13
14
  .describe('IDs from register_context_block to prepend to prompt. Use for delta audits, diff-scoped reviews, or shared specs.'),
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/tools/debug/schema.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,+EAA+E;AAC/E,wFAAwF;AACxF,8FAA8F;AAC9F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;IACrD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC5D,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAChD,qHAAqH,CACtH;IACD,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SAC5C,QAAQ,CAAC,mHAAmH,CAAC;CACjI,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,YAAY,GAAG,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/tools/debug/schema.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE,+EAA+E;AAC/E,wFAAwF;AACxF,8FAA8F;AAC9F,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;IACrD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAC5D,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,uGAAuG,CAAC;IACjK,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAChD,qHAAqH,CACtH;IACD,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;SAC5C,QAAQ,CAAC,mHAAmH,CAAC;CACjI,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,YAAY,GAAG,yBAAyB,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ReadOnlySubtypeSpec } from '../../lifecycle/read-only-subtype-spec.js';
2
+ export type DebugSubtype = 'default';
3
+ export declare const DEBUG_SUBTYPES: Record<DebugSubtype, ReadOnlySubtypeSpec>;
4
+ //# sourceMappingURL=subtypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subtypes.d.ts","sourceRoot":"","sources":["../../../src/tools/debug/subtypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAOrF,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC;AAgBrC,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,YAAY,EAAE,mBAAmB,CASpE,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { DEBUG_PURPOSE_ORIENTATION, EVIDENCE_RULE_DEBUG, SCOPE_RULE_DEBUG, ANNOTATOR_AWARENESS_DEBUG, DEBUG_CRITERIA, } from './implementer-criteria.js';
2
+ // Copied verbatim from ROUTE_SEMANTICS.debug.
3
+ const SEMANTICS_DEFAULT = {
4
+ goalLine: 'Apply THIS failure mode as the lens. Each finding is a root-cause hypothesis (or contributing factor), framed against this lens; severity = strength of the evidence chain.',
5
+ emptyOutcomeLine: 'If THIS lens reveals nothing in the failure under investigation, respond with "No findings for this criterion." — valid outcome.',
6
+ findingMeaningParagraph: 'A finding is a ROOT-CAUSE HYPOTHESIS (or contributing factor) for the failure under investigation, viewed through this criterion\'s lens. Title = the proposed cause. Severity reflects how strong the trace from symptom to cause is.',
7
+ severityMeanings: {
8
+ critical: 'root cause definitively identified with reproducible evidence + a concrete fix is implied — the maintainer can act now.',
9
+ high: 'strong root-cause hypothesis with traced upstream evidence (file:line citations along the call/data path), fix path identified.',
10
+ medium: 'likely candidate cause, needs verification — the trace has 1-2 inferred steps, fix scope unclear.',
11
+ low: 'possible contributing factor, low confidence — speculation worth noting but not the primary lead.',
12
+ },
13
+ mustEmitAtLeastOne: true,
14
+ };
15
+ export const DEBUG_SUBTYPES = {
16
+ default: {
17
+ criteria: DEBUG_CRITERIA,
18
+ orientation: DEBUG_PURPOSE_ORIENTATION,
19
+ evidenceRule: EVIDENCE_RULE_DEBUG,
20
+ scopeRule: SCOPE_RULE_DEBUG,
21
+ annotatorAwareness: ANNOTATOR_AWARENESS_DEBUG,
22
+ semantics: SEMANTICS_DEFAULT,
23
+ },
24
+ };
25
+ //# sourceMappingURL=subtypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subtypes.js","sourceRoot":"","sources":["../../../src/tools/debug/subtypes.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,yBAAyB,EAAE,mBAAmB,EAAE,gBAAgB,EAChE,yBAAyB,EAAE,cAA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AM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAoChE,CAAC"}
1
+ {"version":3,"file":"tool-config.d.ts","sourceRoot":"","sources":["../../../src/tools/delegate/tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAIvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAIlF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,IAAI,CAYpE;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,UAAU,GAAG,SAAS,CAAC;IAClC,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAmChE,CAAC"}
@@ -50,7 +50,6 @@ export const toolConfig = {
50
50
  reviewTemplates: {
51
51
  spec: specLintTemplate,
52
52
  qualityAP: qualityLintTemplate,
53
- diff: specLintTemplate, // pipeline-redesign: diff path unused; field retained for type compat
54
53
  },
55
54
  };
56
55
  //# sourceMappingURL=tool-config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-config.js","sourceRoot":"","sources":["../../../src/tools/delegate/tool-config.ts"],"names":[],"mappings":"AACA,OAAO,EA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