swarm-orchestrator 11.2.0 → 13.1.3

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 (512) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/README.md +187 -364
  3. package/dist/agent-run.js +143 -0
  4. package/dist/agent-run.js.map +1 -0
  5. package/dist/cli-options.js +244 -0
  6. package/dist/cli-options.js.map +1 -0
  7. package/dist/cli.js +859 -0
  8. package/dist/cli.js.map +1 -0
  9. package/dist/config/settings.js +82 -0
  10. package/dist/config/settings.js.map +1 -0
  11. package/dist/config/swarm-toml.js +187 -0
  12. package/dist/config/swarm-toml.js.map +1 -0
  13. package/dist/core/clock.js +2 -0
  14. package/dist/core/clock.js.map +1 -0
  15. package/dist/core/loop-events.js +2 -0
  16. package/dist/core/loop-events.js.map +1 -0
  17. package/dist/core/loop.js +118 -0
  18. package/dist/core/loop.js.map +1 -0
  19. package/dist/core/model-client.js +23 -0
  20. package/dist/core/model-client.js.map +1 -0
  21. package/dist/core/random-source.js +2 -0
  22. package/dist/core/random-source.js.map +1 -0
  23. package/dist/core/termination.js +20 -0
  24. package/dist/core/termination.js.map +1 -0
  25. package/dist/core/tool-invoker.js +2 -0
  26. package/dist/core/tool-invoker.js.map +1 -0
  27. package/dist/evidence/blob-store.js +52 -0
  28. package/dist/evidence/blob-store.js.map +1 -0
  29. package/dist/evidence/bundle-manifest.js +45 -0
  30. package/dist/evidence/bundle-manifest.js.map +1 -0
  31. package/dist/evidence/bundle.js +127 -0
  32. package/dist/evidence/bundle.js.map +1 -0
  33. package/dist/evidence/canonical-json.js +97 -0
  34. package/dist/evidence/canonical-json.js.map +1 -0
  35. package/dist/evidence/claim.js +123 -0
  36. package/dist/evidence/claim.js.map +1 -0
  37. package/dist/evidence/combined-bundle.js +40 -0
  38. package/dist/evidence/combined-bundle.js.map +1 -0
  39. package/dist/evidence/dag.js +118 -0
  40. package/dist/evidence/dag.js.map +1 -0
  41. package/dist/evidence/latin-lookalikes.js +74 -0
  42. package/dist/evidence/latin-lookalikes.js.map +1 -0
  43. package/dist/evidence/ledger-record.js +80 -0
  44. package/dist/evidence/ledger-record.js.map +1 -0
  45. package/dist/evidence/ledger.js +138 -0
  46. package/dist/evidence/ledger.js.map +1 -0
  47. package/dist/evidence/model-call-recording.js +80 -0
  48. package/dist/evidence/model-call-recording.js.map +1 -0
  49. package/dist/evidence/predicate.js +244 -0
  50. package/dist/evidence/predicate.js.map +1 -0
  51. package/dist/evidence/record-index.js +21 -0
  52. package/dist/evidence/record-index.js.map +1 -0
  53. package/dist/evidence/record-kind.js +31 -0
  54. package/dist/evidence/record-kind.js.map +1 -0
  55. package/dist/evidence/replay.js +100 -0
  56. package/dist/evidence/replay.js.map +1 -0
  57. package/dist/evidence/review-page.js +192 -0
  58. package/dist/evidence/review-page.js.map +1 -0
  59. package/dist/evidence/scrub.js +533 -0
  60. package/dist/evidence/scrub.js.map +1 -0
  61. package/dist/evidence/session.js +100 -0
  62. package/dist/evidence/session.js.map +1 -0
  63. package/dist/evidence/signing.js +176 -0
  64. package/dist/evidence/signing.js.map +1 -0
  65. package/dist/evidence/verifier/verify.d.mts +22 -0
  66. package/dist/evidence/verifier/verify.mjs +583 -0
  67. package/dist/gates/auto-resolve.js +276 -0
  68. package/dist/gates/auto-resolve.js.map +1 -0
  69. package/dist/gates/base-control.js +149 -0
  70. package/dist/gates/base-control.js.map +1 -0
  71. package/dist/gates/comment-spans.js +107 -0
  72. package/dist/gates/comment-spans.js.map +1 -0
  73. package/dist/gates/coverage-artifact.js +55 -0
  74. package/dist/gates/coverage-artifact.js.map +1 -0
  75. package/dist/gates/default-gates.js +241 -0
  76. package/dist/gates/default-gates.js.map +1 -0
  77. package/dist/gates/engine.js +64 -0
  78. package/dist/gates/engine.js.map +1 -0
  79. package/dist/gates/escalation.js +44 -0
  80. package/dist/gates/escalation.js.map +1 -0
  81. package/dist/gates/file-set-tool.js +63 -0
  82. package/dist/gates/file-set-tool.js.map +1 -0
  83. package/dist/gates/file-set.js +183 -0
  84. package/dist/gates/file-set.js.map +1 -0
  85. package/dist/gates/gate-definition.js +15 -0
  86. package/dist/gates/gate-definition.js.map +1 -0
  87. package/dist/gates/gate-runner.js +180 -0
  88. package/dist/gates/gate-runner.js.map +1 -0
  89. package/dist/gates/git-workspace.js +173 -0
  90. package/dist/gates/git-workspace.js.map +1 -0
  91. package/dist/gates/inspection-gates.js +270 -0
  92. package/dist/gates/inspection-gates.js.map +1 -0
  93. package/dist/gates/measure-snapshot.js +204 -0
  94. package/dist/gates/measure-snapshot.js.map +1 -0
  95. package/dist/gates/measures.js +224 -0
  96. package/dist/gates/measures.js.map +1 -0
  97. package/dist/gates/node-command-runner.js +60 -0
  98. package/dist/gates/node-command-runner.js.map +1 -0
  99. package/dist/gates/node-test-command.js +222 -0
  100. package/dist/gates/node-test-command.js.map +1 -0
  101. package/dist/gates/parsers.js +409 -0
  102. package/dist/gates/parsers.js.map +1 -0
  103. package/dist/gates/project-type.js +63 -0
  104. package/dist/gates/project-type.js.map +1 -0
  105. package/dist/gates/ratchet-summary.js +18 -0
  106. package/dist/gates/ratchet-summary.js.map +1 -0
  107. package/dist/gates/ratchet.js +202 -0
  108. package/dist/gates/ratchet.js.map +1 -0
  109. package/dist/gates/respecification.js +153 -0
  110. package/dist/gates/respecification.js.map +1 -0
  111. package/dist/gates/unified-diff.js +209 -0
  112. package/dist/gates/unified-diff.js.map +1 -0
  113. package/dist/gates/workspace-changes.js +5 -0
  114. package/dist/gates/workspace-changes.js.map +1 -0
  115. package/dist/providers/ai-sdk-model-client.js +86 -0
  116. package/dist/providers/ai-sdk-model-client.js.map +1 -0
  117. package/dist/providers/endpoint-resolution.js +81 -0
  118. package/dist/providers/endpoint-resolution.js.map +1 -0
  119. package/dist/providers/fixture-provider.js +70 -0
  120. package/dist/providers/fixture-provider.js.map +1 -0
  121. package/dist/providers/local-discovery.js +38 -0
  122. package/dist/providers/local-discovery.js.map +1 -0
  123. package/dist/providers/message-conversion.js +40 -0
  124. package/dist/providers/message-conversion.js.map +1 -0
  125. package/dist/providers/model-spec.js +33 -0
  126. package/dist/providers/model-spec.js.map +1 -0
  127. package/dist/providers/registry.js +75 -0
  128. package/dist/providers/registry.js.map +1 -0
  129. package/dist/providers/served-models.js +59 -0
  130. package/dist/providers/served-models.js.map +1 -0
  131. package/dist/select/backend-canary.js +119 -0
  132. package/dist/select/backend-canary.js.map +1 -0
  133. package/dist/select/backend-command.js +15 -0
  134. package/dist/select/backend-command.js.map +1 -0
  135. package/dist/select/bundled-pricing.js +12 -0
  136. package/dist/select/bundled-pricing.js.map +1 -0
  137. package/dist/select/bundled-shortlist.js +13 -0
  138. package/dist/select/bundled-shortlist.js.map +1 -0
  139. package/dist/select/calibrate.js +128 -0
  140. package/dist/select/calibrate.js.map +1 -0
  141. package/dist/select/calibration-case.js +66 -0
  142. package/dist/select/calibration-case.js.map +1 -0
  143. package/dist/select/calibration-cases.v1.json +257 -0
  144. package/dist/select/calibration-measures.js +89 -0
  145. package/dist/select/calibration-measures.js.map +1 -0
  146. package/dist/select/calibration-report.js +278 -0
  147. package/dist/select/calibration-report.js.map +1 -0
  148. package/dist/select/calibration-run.js +168 -0
  149. package/dist/select/calibration-run.js.map +1 -0
  150. package/dist/select/calibration-summary.js +64 -0
  151. package/dist/select/calibration-summary.js.map +1 -0
  152. package/dist/select/coding-models.v1.json +478 -0
  153. package/dist/select/dimensions.js +111 -0
  154. package/dist/select/dimensions.js.map +1 -0
  155. package/dist/select/golden-set.js +89 -0
  156. package/dist/select/golden-set.js.map +1 -0
  157. package/dist/select/hardware-probe.js +107 -0
  158. package/dist/select/hardware-probe.js.map +1 -0
  159. package/dist/select/memory-probe.js +33 -0
  160. package/dist/select/memory-probe.js.map +1 -0
  161. package/dist/select/model-preflight.js +85 -0
  162. package/dist/select/model-preflight.js.map +1 -0
  163. package/dist/select/model-pricing.v1.json +17 -0
  164. package/dist/select/pick-store.js +39 -0
  165. package/dist/select/pick-store.js.map +1 -0
  166. package/dist/select/pricing-source.js +38 -0
  167. package/dist/select/pricing-source.js.map +1 -0
  168. package/dist/select/pricing.js +66 -0
  169. package/dist/select/pricing.js.map +1 -0
  170. package/dist/select/published-source.js +11 -0
  171. package/dist/select/published-source.js.map +1 -0
  172. package/dist/select/recommendation.js +270 -0
  173. package/dist/select/recommendation.js.map +1 -0
  174. package/dist/select/reward.js +73 -0
  175. package/dist/select/reward.js.map +1 -0
  176. package/dist/select/routing-log.js +94 -0
  177. package/dist/select/routing-log.js.map +1 -0
  178. package/dist/select/routing-record.js +23 -0
  179. package/dist/select/routing-record.js.map +1 -0
  180. package/dist/select/routing-report.js +95 -0
  181. package/dist/select/routing-report.js.map +1 -0
  182. package/dist/select/select-report.js +81 -0
  183. package/dist/select/select-report.js.map +1 -0
  184. package/dist/select/shortlist-source.js +102 -0
  185. package/dist/select/shortlist-source.js.map +1 -0
  186. package/dist/select/shortlist.js +132 -0
  187. package/dist/select/shortlist.js.map +1 -0
  188. package/dist/select/system-probe.js +32 -0
  189. package/dist/select/system-probe.js.map +1 -0
  190. package/dist/select/task-class.js +40 -0
  191. package/dist/select/task-class.js.map +1 -0
  192. package/dist/select/task-cost.js +55 -0
  193. package/dist/select/task-cost.js.map +1 -0
  194. package/dist/select/ucb.js +87 -0
  195. package/dist/select/ucb.js.map +1 -0
  196. package/dist/tools/chokepoint-record.js +56 -0
  197. package/dist/tools/chokepoint-record.js.map +1 -0
  198. package/dist/tools/chokepoint.js +183 -0
  199. package/dist/tools/chokepoint.js.map +1 -0
  200. package/dist/tools/claim-tool.js +59 -0
  201. package/dist/tools/claim-tool.js.map +1 -0
  202. package/dist/tools/derivation.js +87 -0
  203. package/dist/tools/derivation.js.map +1 -0
  204. package/dist/tools/file-tools.js +112 -0
  205. package/dist/tools/file-tools.js.map +1 -0
  206. package/dist/tools/regex-safety.js +663 -0
  207. package/dist/tools/regex-safety.js.map +1 -0
  208. package/dist/tools/sandbox.js +108 -0
  209. package/dist/tools/sandbox.js.map +1 -0
  210. package/dist/tools/search-tool.js +121 -0
  211. package/dist/tools/search-tool.js.map +1 -0
  212. package/dist/tools/shell-tool.js +66 -0
  213. package/dist/tools/shell-tool.js.map +1 -0
  214. package/dist/tools/tool-argument-decoding.js +118 -0
  215. package/dist/tools/tool-argument-decoding.js.map +1 -0
  216. package/dist/tools/tool-definition.js +15 -0
  217. package/dist/tools/tool-definition.js.map +1 -0
  218. package/dist/tools/workspace-path.js +18 -0
  219. package/dist/tools/workspace-path.js.map +1 -0
  220. package/dist/tools/workspace-tools.js +15 -0
  221. package/dist/tools/workspace-tools.js.map +1 -0
  222. package/dist/tui/confirmation-queue.js +49 -0
  223. package/dist/tui/confirmation-queue.js.map +1 -0
  224. package/dist/tui/elapsed.js +18 -0
  225. package/dist/tui/elapsed.js.map +1 -0
  226. package/dist/tui/evidence-panel.js +53 -0
  227. package/dist/tui/evidence-panel.js.map +1 -0
  228. package/dist/tui/key-bindings.js +111 -0
  229. package/dist/tui/key-bindings.js.map +1 -0
  230. package/dist/tui/key-dispatcher.js +115 -0
  231. package/dist/tui/key-dispatcher.js.map +1 -0
  232. package/dist/tui/layout.js +100 -0
  233. package/dist/tui/layout.js.map +1 -0
  234. package/dist/tui/open-path.js +76 -0
  235. package/dist/tui/open-path.js.map +1 -0
  236. package/dist/tui/plain-lines.js +32 -0
  237. package/dist/tui/plain-lines.js.map +1 -0
  238. package/dist/tui/screen-model.js +271 -0
  239. package/dist/tui/screen-model.js.map +1 -0
  240. package/dist/tui/screen.js +113 -0
  241. package/dist/tui/screen.js.map +1 -0
  242. package/dist/tui/session-interface.js +193 -0
  243. package/dist/tui/session-interface.js.map +1 -0
  244. package/dist/tui/session-store.js +22 -0
  245. package/dist/tui/session-store.js.map +1 -0
  246. package/dist/tui/session-view.js +157 -0
  247. package/dist/tui/session-view.js.map +1 -0
  248. package/dist/tui/terminal-text.js +97 -0
  249. package/dist/tui/terminal-text.js.map +1 -0
  250. package/dist/tui/theme.js +94 -0
  251. package/dist/tui/theme.js.map +1 -0
  252. package/dist/tui/verify-bundle.js +47 -0
  253. package/dist/tui/verify-bundle.js.map +1 -0
  254. package/dist/tui/view-state.js +89 -0
  255. package/dist/tui/view-state.js.map +1 -0
  256. package/dist/workers/merge-queue.js +249 -0
  257. package/dist/workers/merge-queue.js.map +1 -0
  258. package/dist/workers/parallel-report.js +49 -0
  259. package/dist/workers/parallel-report.js.map +1 -0
  260. package/dist/workers/parallel-run.js +178 -0
  261. package/dist/workers/parallel-run.js.map +1 -0
  262. package/dist/workers/worktree.js +112 -0
  263. package/dist/workers/worktree.js.map +1 -0
  264. package/docs/build-guide.md +175 -0
  265. package/docs/claims.md +50 -0
  266. package/docs/security-coverage.md +552 -0
  267. package/package.json +67 -133
  268. package/config/personas/architect.yaml +0 -26
  269. package/config/personas/dependency-auditor.yaml +0 -57
  270. package/config/personas/documentation-writer.yaml +0 -57
  271. package/config/personas/implementer.yaml +0 -55
  272. package/config/personas/migration-specialist.yaml +0 -59
  273. package/config/personas/security-reviewer.yaml +0 -57
  274. package/config/personas/test-author.yaml +0 -56
  275. package/config/personas/verifier.yaml +0 -62
  276. package/dist/src/audit/aibom/cyclonedx-ml.js +0 -174
  277. package/dist/src/audit/aibom/index.js +0 -11
  278. package/dist/src/audit/aibom/ledger-reader.js +0 -40
  279. package/dist/src/audit/aibom/spdx-ai-profile.js +0 -166
  280. package/dist/src/audit/cheat-detector/assertion-strip.js +0 -60
  281. package/dist/src/audit/cheat-detector/audit-config.js +0 -342
  282. package/dist/src/audit/cheat-detector/comment-only-fix.js +0 -54
  283. package/dist/src/audit/cheat-detector/confirm-findings.js +0 -96
  284. package/dist/src/audit/cheat-detector/coverage-erosion.js +0 -67
  285. package/dist/src/audit/cheat-detector/dead-branch-insertion.js +0 -45
  286. package/dist/src/audit/cheat-detector/detector-sets.js +0 -86
  287. package/dist/src/audit/cheat-detector/detector-types.js +0 -2
  288. package/dist/src/audit/cheat-detector/diff-chunker.js +0 -103
  289. package/dist/src/audit/cheat-detector/diff-walker.js +0 -236
  290. package/dist/src/audit/cheat-detector/error-swallow.js +0 -263
  291. package/dist/src/audit/cheat-detector/exception-rethrow-lost-context.js +0 -38
  292. package/dist/src/audit/cheat-detector/fake-refactor.js +0 -218
  293. package/dist/src/audit/cheat-detector/import-resolver.js +0 -313
  294. package/dist/src/audit/cheat-detector/index.js +0 -174
  295. package/dist/src/audit/cheat-detector/internal-roots.js +0 -192
  296. package/dist/src/audit/cheat-detector/judge-primary.js +0 -68
  297. package/dist/src/audit/cheat-detector/judge-prompts/index.js +0 -25
  298. package/dist/src/audit/cheat-detector/judge-prompts/types.js +0 -10
  299. package/dist/src/audit/cheat-detector/judge-prompts/v1-conservative.js +0 -66
  300. package/dist/src/audit/cheat-detector/judge-prompts/v2-balanced.js +0 -40
  301. package/dist/src/audit/cheat-detector/llm-judge/anthropic-judge.js +0 -245
  302. package/dist/src/audit/cheat-detector/llm-judge/cache.js +0 -92
  303. package/dist/src/audit/cheat-detector/llm-judge/index.js +0 -172
  304. package/dist/src/audit/cheat-detector/llm-judge/local-judge.js +0 -67
  305. package/dist/src/audit/cheat-detector/llm-judge/types.js +0 -12
  306. package/dist/src/audit/cheat-detector/manifests/cargo-toml.js +0 -63
  307. package/dist/src/audit/cheat-detector/manifests/composer-json.js +0 -82
  308. package/dist/src/audit/cheat-detector/manifests/csproj.js +0 -93
  309. package/dist/src/audit/cheat-detector/manifests/find-manifests.js +0 -128
  310. package/dist/src/audit/cheat-detector/manifests/gemfile.js +0 -79
  311. package/dist/src/audit/cheat-detector/manifests/go-mod.js +0 -73
  312. package/dist/src/audit/cheat-detector/manifests/gradle.js +0 -97
  313. package/dist/src/audit/cheat-detector/manifests/index.js +0 -43
  314. package/dist/src/audit/cheat-detector/manifests/package-json.js +0 -83
  315. package/dist/src/audit/cheat-detector/manifests/pom-xml.js +0 -78
  316. package/dist/src/audit/cheat-detector/manifests/pyproject-toml.js +0 -78
  317. package/dist/src/audit/cheat-detector/manifests/requirements-txt.js +0 -56
  318. package/dist/src/audit/cheat-detector/manifests/types.js +0 -15
  319. package/dist/src/audit/cheat-detector/matcher-grader.js +0 -267
  320. package/dist/src/audit/cheat-detector/mock-of-hallucination.js +0 -276
  321. package/dist/src/audit/cheat-detector/no-op-fix-helpers.js +0 -157
  322. package/dist/src/audit/cheat-detector/no-op-fix.js +0 -268
  323. package/dist/src/audit/cheat-detector/pr-intent.js +0 -85
  324. package/dist/src/audit/cheat-detector/registries/cache.js +0 -41
  325. package/dist/src/audit/cheat-detector/registries/github-actions-scan.js +0 -52
  326. package/dist/src/audit/cheat-detector/registries/index.js +0 -32
  327. package/dist/src/audit/cheat-detector/registries/offline-allowlist.js +0 -174
  328. package/dist/src/audit/cheat-detector/registries/types.js +0 -13
  329. package/dist/src/audit/cheat-detector/subject-paths.js +0 -92
  330. package/dist/src/audit/cheat-detector/test-import-closure.js +0 -141
  331. package/dist/src/audit/cheat-detector/test-relaxation.js +0 -194
  332. package/dist/src/audit/cheat-detector/type-suppression.js +0 -100
  333. package/dist/src/audit/cheat-detector/verify-findings.js +0 -294
  334. package/dist/src/audit/execution-grounded/corroborate.js +0 -144
  335. package/dist/src/audit/execution-grounded/coverage-delta.js +0 -288
  336. package/dist/src/audit/execution-grounded/docker-runner.js +0 -104
  337. package/dist/src/audit/execution-grounded/eg-cache.js +0 -106
  338. package/dist/src/audit/execution-grounded/exec-env.js +0 -282
  339. package/dist/src/audit/execution-grounded/index.js +0 -440
  340. package/dist/src/audit/execution-grounded/issue-repro.js +0 -337
  341. package/dist/src/audit/execution-grounded/monorepo.js +0 -83
  342. package/dist/src/audit/execution-grounded/mutation-check.js +0 -332
  343. package/dist/src/audit/execution-grounded/sandbox.js +0 -459
  344. package/dist/src/audit/gate/block-eligibility.js +0 -66
  345. package/dist/src/audit/gate/block-trigger-ledger.js +0 -39
  346. package/dist/src/audit/gate/block-trigger-types.js +0 -16
  347. package/dist/src/audit/gate/block-triggers.js +0 -223
  348. package/dist/src/audit/gate/calibrate-triggers.js +0 -41
  349. package/dist/src/audit/gate/gate-decision.js +0 -43
  350. package/dist/src/audit/gate/revert-proof.js +0 -70
  351. package/dist/src/audit/gate/wilson.js +0 -30
  352. package/dist/src/audit/oracle/category-map.js +0 -24
  353. package/dist/src/audit/oracle/evade/evaders.js +0 -90
  354. package/dist/src/audit/oracle/inject/assertion-strip.js +0 -32
  355. package/dist/src/audit/oracle/inject/cheat-mock-mutation.js +0 -37
  356. package/dist/src/audit/oracle/inject/comment-only-fix.js +0 -33
  357. package/dist/src/audit/oracle/inject/coverage-erosion.js +0 -35
  358. package/dist/src/audit/oracle/inject/dead-branch-insertion.js +0 -31
  359. package/dist/src/audit/oracle/inject/diff-carrier.js +0 -165
  360. package/dist/src/audit/oracle/inject/error-swallow.js +0 -32
  361. package/dist/src/audit/oracle/inject/exception-rethrow-lost-context.js +0 -35
  362. package/dist/src/audit/oracle/inject/fake-refactor.js +0 -32
  363. package/dist/src/audit/oracle/inject/goal-not-fixed.js +0 -37
  364. package/dist/src/audit/oracle/inject/index.js +0 -42
  365. package/dist/src/audit/oracle/inject/injection-runner.js +0 -118
  366. package/dist/src/audit/oracle/inject/injector-types.js +0 -24
  367. package/dist/src/audit/oracle/inject/mock-of-hallucination.js +0 -43
  368. package/dist/src/audit/oracle/inject/no-op-fix.js +0 -47
  369. package/dist/src/audit/oracle/inject/site.js +0 -10
  370. package/dist/src/audit/oracle/inject/test-relaxation.js +0 -29
  371. package/dist/src/audit/oracle/inject/type-suppression.js +0 -33
  372. package/dist/src/audit/pr-source/index.js +0 -132
  373. package/dist/src/audit/report-comment/block-trigger-section.js +0 -80
  374. package/dist/src/audit/report-comment/detector-precision.js +0 -154
  375. package/dist/src/audit/report-comment/index.js +0 -209
  376. package/dist/src/audit/shadow-output.js +0 -105
  377. package/dist/src/audit/shadow.js +0 -103
  378. package/dist/src/audit/types.js +0 -23
  379. package/dist/src/cli/flags.js +0 -156
  380. package/dist/src/cli/v8/argv-schema.js +0 -127
  381. package/dist/src/cli/v8/audit-handler.js +0 -662
  382. package/dist/src/cli/v8/compile-handler.js +0 -272
  383. package/dist/src/cli/v8/doctor-handler.js +0 -849
  384. package/dist/src/cli/v8/grammar-resolve.js +0 -88
  385. package/dist/src/cli/v8/index.js +0 -70
  386. package/dist/src/cli/v8/init-handler.js +0 -177
  387. package/dist/src/cli/v8/ledger-verify-handler.js +0 -142
  388. package/dist/src/cli/v8/local-provider-flags.js +0 -275
  389. package/dist/src/cli/v8/local-provider-types.js +0 -10
  390. package/dist/src/cli/v8/pr-fetch.js +0 -192
  391. package/dist/src/cli/v8/pr-manifest-fetch.js +0 -231
  392. package/dist/src/cli/v8/resume-handler.js +0 -541
  393. package/dist/src/cli/v8/run-handler.js +0 -573
  394. package/dist/src/cli/v8/run-wrapper.js +0 -253
  395. package/dist/src/cli/v8/stats-handler.js +0 -270
  396. package/dist/src/cli.js +0 -102
  397. package/dist/src/config/provider-config.js +0 -202
  398. package/dist/src/contract/approval.js +0 -193
  399. package/dist/src/contract/auto-discover.js +0 -77
  400. package/dist/src/contract/canonicalize.js +0 -187
  401. package/dist/src/contract/compiler.js +0 -304
  402. package/dist/src/contract/extractor/anthropic-extractor.js +0 -266
  403. package/dist/src/contract/extractor/contract-schema.js +0 -126
  404. package/dist/src/contract/extractor/deterministic-extractor.js +0 -57
  405. package/dist/src/contract/extractor/factory.js +0 -105
  406. package/dist/src/contract/extractor/local-extractor.js +0 -133
  407. package/dist/src/contract/extractor/scan-pipeline.js +0 -190
  408. package/dist/src/contract/extractor/stub-extractor.js +0 -89
  409. package/dist/src/contract/extractor/types.js +0 -2
  410. package/dist/src/contract/index.js +0 -51
  411. package/dist/src/contract/schema/loader.js +0 -87
  412. package/dist/src/contract/schema/v1.json +0 -198
  413. package/dist/src/contract/serializer.js +0 -139
  414. package/dist/src/contract/tagger.js +0 -122
  415. package/dist/src/contract/types.js +0 -22
  416. package/dist/src/contract/validator.js +0 -235
  417. package/dist/src/env-loader.js +0 -104
  418. package/dist/src/errors.js +0 -27
  419. package/dist/src/falsification/adapters/adapter-profile.js +0 -5
  420. package/dist/src/falsification/adapters/candidate-runners.js +0 -143
  421. package/dist/src/falsification/adapters/cli-falsifier.js +0 -171
  422. package/dist/src/falsification/adapters/fenced-json.js +0 -107
  423. package/dist/src/falsification/adapters/index.js +0 -30
  424. package/dist/src/falsification/adapters/profiles/claude-code.js +0 -202
  425. package/dist/src/falsification/adapters/profiles/codex/prompts/property-must-hold.md +0 -44
  426. package/dist/src/falsification/adapters/profiles/codex.js +0 -206
  427. package/dist/src/falsification/adapters/profiles/copilot/prompts/function-must-have-signature.md +0 -58
  428. package/dist/src/falsification/adapters/profiles/copilot/prompts/import-graph-must-satisfy.md +0 -49
  429. package/dist/src/falsification/adapters/profiles/copilot/prompts/no-cycles.md +0 -6
  430. package/dist/src/falsification/adapters/profiles/copilot/prompts/no-upward-imports.md +0 -4
  431. package/dist/src/falsification/adapters/profiles/copilot.js +0 -184
  432. package/dist/src/falsification/adapters/registry.js +0 -90
  433. package/dist/src/falsification/adapters/spawn-cli.js +0 -88
  434. package/dist/src/falsification/adapters/transient-retry.js +0 -93
  435. package/dist/src/falsification/adapters/types.js +0 -5
  436. package/dist/src/falsification/dispatcher.js +0 -70
  437. package/dist/src/falsification/inspection/heuristic-classifier.js +0 -361
  438. package/dist/src/falsification/scheduler.js +0 -217
  439. package/dist/src/index.js +0 -22
  440. package/dist/src/inference/local/backend.js +0 -30
  441. package/dist/src/inference/local/backends/llama-cpp.js +0 -181
  442. package/dist/src/inference/local/backends/ollama.js +0 -186
  443. package/dist/src/inference/local/backends/openai-compatible.js +0 -187
  444. package/dist/src/inference/local/backends/vllm.js +0 -175
  445. package/dist/src/inference/local/concurrency-gate.js +0 -68
  446. package/dist/src/inference/local/factory.js +0 -89
  447. package/dist/src/inference/local/grammars/unified-diff.gbnf +0 -26
  448. package/dist/src/ledger/index.js +0 -26
  449. package/dist/src/ledger/jsonl-ledger.js +0 -23
  450. package/dist/src/ledger/ledger.js +0 -212
  451. package/dist/src/ledger/memoization.js +0 -180
  452. package/dist/src/ledger/resume.js +0 -139
  453. package/dist/src/ledger/types.js +0 -6
  454. package/dist/src/logger.js +0 -96
  455. package/dist/src/persona/index.js +0 -31
  456. package/dist/src/persona/persona-registry.js +0 -187
  457. package/dist/src/persona/predicates.js +0 -54
  458. package/dist/src/persona/types.js +0 -6
  459. package/dist/src/persona/verifier-persona.js +0 -137
  460. package/dist/src/population/apply-verify.js +0 -142
  461. package/dist/src/population/deterministic-dispatch.js +0 -87
  462. package/dist/src/population/diff-applier.js +0 -90
  463. package/dist/src/population/diff-snapshot.js +0 -164
  464. package/dist/src/population/falsifier-dispatch.js +0 -115
  465. package/dist/src/population/file-context.js +0 -87
  466. package/dist/src/population/index.js +0 -27
  467. package/dist/src/population/manager.js +0 -364
  468. package/dist/src/population/persona-message.js +0 -185
  469. package/dist/src/population/pipeline-config.js +0 -73
  470. package/dist/src/population/post-merge-handler.js +0 -112
  471. package/dist/src/population/provider-attribution.js +0 -16
  472. package/dist/src/population/rollback.js +0 -177
  473. package/dist/src/population/single-mode-executor.js +0 -224
  474. package/dist/src/population/snapshot-cleanup.js +0 -299
  475. package/dist/src/population/state.js +0 -48
  476. package/dist/src/population/test-framework-misuse.js +0 -104
  477. package/dist/src/population/tournament-driver.js +0 -104
  478. package/dist/src/population/tournament.js +0 -427
  479. package/dist/src/population/unified-diff.js +0 -298
  480. package/dist/src/population/whole-file-apply.js +0 -181
  481. package/dist/src/session/anthropic-session.js +0 -198
  482. package/dist/src/session/auto-discover.js +0 -88
  483. package/dist/src/session/deterministic-session.js +0 -331
  484. package/dist/src/session/factory.js +0 -123
  485. package/dist/src/session/index.js +0 -28
  486. package/dist/src/session/local-session.js +0 -221
  487. package/dist/src/session/stub-session.js +0 -160
  488. package/dist/src/session/token-estimator.js +0 -23
  489. package/dist/src/session/types.js +0 -44
  490. package/dist/src/shared-predicates/index.js +0 -17
  491. package/dist/src/shared-predicates/predicate-runner.js +0 -61
  492. package/dist/src/shared-types/index.js +0 -17
  493. package/dist/src/shared-types/obligation-types.js +0 -25
  494. package/dist/src/shared-wasm/index.js +0 -17
  495. package/dist/src/shared-wasm/strategy-constants.js +0 -156
  496. package/dist/src/types.js +0 -5
  497. package/dist/src/verification/ast-imports.js +0 -199
  498. package/dist/src/verification/ast-signature.js +0 -406
  499. package/dist/src/verification/index.js +0 -14
  500. package/dist/src/verification/live-cost-tracker.js +0 -78
  501. package/dist/src/verification/post-merge.js +0 -53
  502. package/dist/src/verification/pre-generation.js +0 -71
  503. package/dist/src/verification/predicate-runner.js +0 -22
  504. package/dist/src/verification/run-verifier.js +0 -612
  505. package/dist/src/verification/streaming-verifier.js +0 -162
  506. package/dist/src/wasm/index.js +0 -29
  507. package/dist/src/wasm/registry.js +0 -30
  508. package/dist/src/wasm/strategies/format-prettier.js +0 -119
  509. package/dist/src/wasm/strategies/import-sort.js +0 -185
  510. package/dist/src/wasm/strategies/scaffold-template.js +0 -98
  511. package/dist/src/wasm/types.js +0 -11
  512. package/dist/src/wasm/wasm-runtime.js +0 -260
package/CHANGELOG.md ADDED
@@ -0,0 +1,160 @@
1
+ # Changelog
2
+
3
+ ## 13.1.3
4
+
5
+ The first 13.x on the npm registry. No behaviour changed: this is 13.1.1 with a manifest the
6
+ registry accepts and install instructions that are true.
7
+
8
+ ### Fixed
9
+
10
+ - **The manifest named no repository, so a signed publish was refused.** `npm publish
11
+ --provenance` signs a statement naming the repository the tarball was built from, and the
12
+ registry checks it against `repository.url` before it accepts the write. That field was
13
+ absent, so the statement said one thing and the manifest said `""`, and the registry answered
14
+ `E422` after the provenance had already been written to the transparency log. Nothing in the
15
+ source tree can show this, so a test now asserts the field.
16
+ - **The package told its own readers it was not published.** The install section named a git ref
17
+ and said the registry served 12.0.0, because that is what was true while the credential was
18
+ missing. Those words ship inside the tarball, so publishing 13.1.1 as it stood would have put
19
+ a package on the registry whose first section denies being there. `npm install -g
20
+ swarm-orchestrator` is the first line again.
21
+
22
+ ### Added
23
+
24
+ - A description, keywords, a homepage and a bug-tracker link, which is what the registry page
25
+ renders around the readme and what a search on the registry matches against.
26
+ - Three flags the readme never listed, `--base`, `--max-steps` and `--local-endpoint`, and a
27
+ pointer to `swarm --help` for the calibration flags it still does not list.
28
+
29
+ `13.1.2` was tagged and refused by the registry for the manifest reason above. The tag is left
30
+ where it is rather than moved, because it names a real tree and the refusal is part of the
31
+ record.
32
+
33
+ ## 13.1.1
34
+
35
+ A packaging fix. Nothing about how the tool runs changed.
36
+
37
+ ### Fixed
38
+
39
+ - **Installing from a git ref produced a package with no binary.** `dist/` is not committed and
40
+ is built by a script, and npm runs `prepare` for a git install but never `prepublishOnly`.
41
+ Only the latter was declared, so `npm install github:moonrunnerkc/swarm-orchestrator#v13.1.0`
42
+ resolved, reported no error, and left a directory with no `dist/` and no `swarm`. This is the
43
+ install path that matters while the registry publish is blocked, and it was the one that did
44
+ not work.
45
+
46
+ ## 13.1.0
47
+
48
+ A run you can watch and drive, and an end-of-run panel that shows you what it produced.
49
+ Everything below is additive: no flag, command or output changed meaning, and the plain-line
50
+ stream a pipe or a CI job reads is byte-for-byte what it was.
51
+
52
+ ### Added
53
+
54
+ - **An interactive terminal interface.** On a TTY, a run draws a single screen: the task and
55
+ the model in a header, the plan, the action stream, the gate strip, and a status line.
56
+ Scroll it, expand a row to the whole tool input and output and the ledger record it came
57
+ from, filter it, freeze the render without touching the run, and press `?` for the keymap.
58
+ Two exits that are not the same thing: `q` leaves the view and lets the run finish, `ctrl+c`
59
+ cancels the run.
60
+ - **An end-of-run evidence panel.** What the run produced, named by what each artifact is for,
61
+ with the record count and how many claims the harness verified against how many it refused.
62
+ One keystroke opens the review page, another the bundle directory. It says the bundle
63
+ verified only if the bundle's own verifier ran in that session and exited 0, and it names the
64
+ exit code; otherwise it says "not verified in this run" and prints the command.
65
+ - **`swarm review <bundle directory>`**, which shows that same panel for any bundle already on
66
+ disk, running the same verifier. Nothing is re-run.
67
+ - **`swarm --help`**, which used to report that `--help` needs a value.
68
+ - **Screen flags**: `--no-tui` for plain lines even on a terminal, `--color` and `--no-color`,
69
+ `--open-evidence` and `--no-open-evidence`. Opening is opt-in and never happens off a
70
+ terminal.
71
+ - **Three `swarm.toml` tables**: `[interface]` (`tui`, `color`, `open_evidence`), `[theme]`
72
+ (a colour per slot), and `[keys]` (a key per action). Flags win over the file, as everything
73
+ else does. An unknown key, colour or action is a typed error naming what was wrong and what
74
+ would have been accepted.
75
+ - **Sampling settings on the wire for a calibration run**: temperature and top-p pinned and
76
+ recorded in every model-call record, with a seed per repeat. An ordinary task run sends
77
+ nothing and is unchanged.
78
+
79
+ ### Fixed
80
+
81
+ - **Two consumers of one stdin.** The CLI built a readline interface on `process.stdin` while
82
+ Ink held the same stdin in raw mode. A confirmation firing mid-run raced them, which is the
83
+ least acceptable place to drop a keystroke. Confirmation is now a component inside the
84
+ running screen, answered by the same key dispatcher.
85
+ - **The curated model shortlist and pricing table answered 404.** Both URLs named the branch
86
+ `main`, which is the v12 lineage and carries neither file, so `swarm select` fell back to the
87
+ bundled snapshot on every machine.
88
+ - **A missing verifier read as a refused bundle.** Node exits 1 on a module it cannot find,
89
+ which at the exit code is the same as a verifier that ran and said no. One is the absence of
90
+ a verdict.
91
+ - **Local models reported no tokens, and so cost nothing.** An OpenAI-compatible server streams
92
+ a usage chunk only when the request carries `stream_options.include_usage`, and the local
93
+ provider was not built to send it. Every local run recorded `outputTokens: 0`, so throughput
94
+ was unmeasurable and every run priced at `$0.0000`, which the routing reward is built from.
95
+ The router had been learning that local models are free.
96
+ - **One keychain message for three different failures.** A key that could not be read, an entry
97
+ holding something that is not a key, and a keychain that would not accept a new one now say
98
+ which happened and what to do about it. The middle one names the service and the account, and
99
+ says the entry can be deleted.
100
+
101
+ ## 13.0.0
102
+
103
+ Same package name, different product. If you installed `swarm-orchestrator` before this
104
+ release, read this before upgrading: v13 is not a newer v12, and nothing in v12's interface
105
+ survives.
106
+
107
+ ### What v12 was, and what v13 is
108
+
109
+ v12 was a PR auditor. It ran as a GitHub Action, read pull requests opened by AI coding
110
+ agents, looked for cheat patterns (test relaxation, mock-of-hallucination, assertion strip,
111
+ no-op fix), posted findings as a comment, and gated merges.
112
+
113
+ v13 is a coding agent. It does the work rather than auditing somebody else's, and every
114
+ claim it makes about that work resolves to machine-captured evidence in a tamper-evident
115
+ ledger. The two share a name and nothing else: no shared history, no shared interface, no
116
+ migration path from one to the other, because there is nothing to migrate.
117
+
118
+ ### Breaking
119
+
120
+ - **The `swarm-audit` and `swarm-orchestrator` binaries are gone.** One binary now, `swarm`.
121
+ - **The GitHub Action is retired.** v13 ships no `action.yml`. There is no v13 equivalent of
122
+ the merge gate, and none is planned.
123
+ - **Node 24 or newer.** v12 asked for 20. The floor is not stylistic: the coverage cycle
124
+ spawns the test runner with `--test-isolation=process`, which Node 22 rejects as a bad
125
+ option, so on anything older that arm measures nothing.
126
+ - **The histories share no merge base.** v13 is a separate lineage. `git log` will not show
127
+ you v12's commits from here.
128
+
129
+ ### If you are using v12
130
+
131
+ Stay on it. It is tagged `v12-final` and that tag is not going away.
132
+
133
+ npm install swarm-orchestrator@12.0.0
134
+
135
+ That is the newest v12 the registry carries. The `v12-final` tag is at 12.1.1, which was
136
+ tagged but never published, so `@12.1.1` does not resolve; install from the tag if you need
137
+ exactly that tree.
138
+
139
+ For the Action, pin the tag rather than a branch, since the default branch is moving to the
140
+ v13 lineage:
141
+
142
+ uses: moonrunnerkc/swarm-orchestrator@v12-final
143
+
144
+ ### What v13 does
145
+
146
+ One task, start to finish, in a git workspace: plan, edit through a chokepoint that records
147
+ every tool call, run the gates, auto-resolve failures under a numeric ratchet, and export a
148
+ signed evidence bundle a stranger can verify without installing anything.
149
+
150
+ The parts worth knowing before you try it:
151
+
152
+ - Gate results, claim verdicts and bundle status are computed by the harness. Model prose
153
+ renders as unverified narrative and cannot render green.
154
+ - The ledger is append-only and hash-chained, signed with a key from the OS keychain.
155
+ - The bundle carries its own verifier. `node verify.mjs <bundle>` needs Node and nothing
156
+ else.
157
+ - Local model selection is measured on your hardware rather than guessed from model cards.
158
+
159
+ `README.md` links each of those to a committed artifact of it happening. `docs/claims.md`
160
+ maps every claim to its evidence, and lists what this tree cannot back.