@qvac/harness 1.0.0-rc.1 → 1.0.0-rc.11

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 (975) hide show
  1. package/.nvmrc +1 -0
  2. package/CHANGELOG.md +2716 -397
  3. package/NOTICE.md +16 -0
  4. package/README.md +303 -471
  5. package/dist-lib/index.d.ts +141 -172
  6. package/dist-lib/index.js +579 -1513
  7. package/dist-lib/lib/addon-seal.bare.d.ts +1 -0
  8. package/dist-lib/lib/addon-seal.bare.js +3 -0
  9. package/dist-lib/lib/addon-seal.node.d.ts +1 -0
  10. package/dist-lib/lib/addon-seal.node.js +1 -0
  11. package/dist-lib/lib/agent/delegate.d.ts +84 -0
  12. package/dist-lib/lib/agent/delegate.js +263 -0
  13. package/dist-lib/lib/agent/follow.d.ts +37 -0
  14. package/dist-lib/lib/agent/follow.js +164 -0
  15. package/dist-lib/lib/agent/index.d.ts +37 -0
  16. package/dist-lib/lib/agent/index.js +42 -0
  17. package/dist-lib/lib/agent/plan.d.ts +6 -0
  18. package/dist-lib/lib/agent/plan.js +74 -0
  19. package/dist-lib/lib/agent/resolve.d.ts +3 -0
  20. package/dist-lib/lib/agent/resolve.js +90 -0
  21. package/dist-lib/lib/{capabilities → agent}/tool-names.d.ts +0 -1
  22. package/dist-lib/lib/{capabilities → agent}/tool-names.js +0 -1
  23. package/dist-lib/lib/{capabilities → agent}/tool-selection.d.ts +7 -8
  24. package/dist-lib/lib/{capabilities → agent}/tool-selection.js +14 -7
  25. package/dist-lib/lib/agent/tools.d.ts +16 -0
  26. package/dist-lib/lib/agent/tools.js +17 -0
  27. package/dist-lib/lib/agent/transfer.d.ts +7 -0
  28. package/dist-lib/lib/agent/transfer.js +26 -0
  29. package/dist-lib/lib/capabilities/agent-ports.d.ts +3 -0
  30. package/dist-lib/lib/capabilities/agent-ports.js +15 -0
  31. package/dist-lib/lib/capabilities/completion-engine/actors/answering.d.ts +1 -1
  32. package/dist-lib/lib/capabilities/completion-engine/actors/answering.js +25 -9
  33. package/dist-lib/lib/capabilities/completion-engine/actors/batching.d.ts +3 -0
  34. package/dist-lib/lib/capabilities/completion-engine/actors/batching.js +91 -0
  35. package/dist-lib/lib/capabilities/completion-engine/actors/direct-search.d.ts +2 -1
  36. package/dist-lib/lib/capabilities/completion-engine/actors/direct-search.js +16 -5
  37. package/dist-lib/lib/capabilities/completion-engine/actors/execute.d.ts +5 -3
  38. package/dist-lib/lib/capabilities/completion-engine/actors/execute.js +8 -3
  39. package/dist-lib/lib/capabilities/completion-engine/actors/executing.d.ts +29 -2
  40. package/dist-lib/lib/capabilities/completion-engine/actors/executing.js +163 -40
  41. package/dist-lib/lib/capabilities/completion-engine/actors/execution-plan.d.ts +11 -10
  42. package/dist-lib/lib/capabilities/completion-engine/actors/execution-plan.js +31 -22
  43. package/dist-lib/lib/capabilities/completion-engine/actors/finishing.js +2 -2
  44. package/dist-lib/lib/capabilities/completion-engine/actors/inspect-prepare.d.ts +4 -0
  45. package/dist-lib/lib/capabilities/completion-engine/actors/inspect-prepare.js +68 -0
  46. package/dist-lib/lib/capabilities/completion-engine/actors/inspecting.d.ts +10 -3
  47. package/dist-lib/lib/capabilities/completion-engine/actors/inspecting.js +59 -17
  48. package/dist-lib/lib/capabilities/completion-engine/actors/loading-skill.d.ts +7 -3
  49. package/dist-lib/lib/capabilities/completion-engine/actors/loading-skill.js +40 -32
  50. package/dist-lib/lib/capabilities/completion-engine/actors/preparing.d.ts +3 -2
  51. package/dist-lib/lib/capabilities/completion-engine/actors/preparing.js +177 -120
  52. package/dist-lib/lib/capabilities/completion-engine/actors/rejecting.d.ts +1 -1
  53. package/dist-lib/lib/capabilities/completion-engine/actors/rejecting.js +30 -8
  54. package/dist-lib/lib/capabilities/completion-engine/actors/rejection.d.ts +4 -2
  55. package/dist-lib/lib/capabilities/completion-engine/actors/rejection.js +8 -8
  56. package/dist-lib/lib/capabilities/completion-engine/actors/resolving.d.ts +1 -1
  57. package/dist-lib/lib/capabilities/completion-engine/actors/resolving.js +129 -19
  58. package/dist-lib/lib/capabilities/completion-engine/actors/retrieving.d.ts +10 -0
  59. package/dist-lib/lib/capabilities/completion-engine/actors/retrieving.js +65 -0
  60. package/dist-lib/lib/capabilities/completion-engine/actors/run-prepare.d.ts +4 -0
  61. package/dist-lib/lib/capabilities/completion-engine/actors/run-prepare.js +88 -0
  62. package/dist-lib/lib/capabilities/completion-engine/actors/skill-step.d.ts +2 -0
  63. package/dist-lib/lib/capabilities/completion-engine/actors/skill-step.js +114 -0
  64. package/dist-lib/lib/capabilities/completion-engine/actors/stream.d.ts +9 -4
  65. package/dist-lib/lib/capabilities/completion-engine/actors/stream.js +55 -3
  66. package/dist-lib/lib/capabilities/completion-engine/actors/streaming.d.ts +6 -2
  67. package/dist-lib/lib/capabilities/completion-engine/actors/streaming.js +140 -35
  68. package/dist-lib/lib/capabilities/completion-engine/actors/wrap-up.d.ts +3 -2
  69. package/dist-lib/lib/capabilities/completion-engine/actors/wrap-up.js +52 -17
  70. package/dist-lib/lib/capabilities/completion-engine/actors.d.ts +11 -0
  71. package/dist-lib/lib/capabilities/completion-engine/actors.js +216 -0
  72. package/dist-lib/lib/capabilities/completion-engine/driver.d.ts +12 -5
  73. package/dist-lib/lib/capabilities/completion-engine/driver.js +142 -37
  74. package/dist-lib/lib/capabilities/completion-engine/durable.d.ts +3 -1
  75. package/dist-lib/lib/capabilities/completion-engine/durable.js +11 -5
  76. package/dist-lib/lib/capabilities/completion-engine/engine.d.ts +68 -0
  77. package/dist-lib/lib/{machine → capabilities/completion-engine}/engine.js +80 -130
  78. package/dist-lib/lib/capabilities/completion-engine/index.d.ts +34 -0
  79. package/dist-lib/lib/capabilities/completion-engine/index.js +47 -0
  80. package/dist-lib/lib/capabilities/completion-engine/loop.d.ts +75 -0
  81. package/dist-lib/lib/capabilities/completion-engine/loop.js +69 -0
  82. package/dist-lib/lib/capabilities/completion-engine/metrics.d.ts +11 -0
  83. package/dist-lib/lib/capabilities/completion-engine/metrics.js +67 -0
  84. package/dist-lib/lib/capabilities/completion-engine/model-round.d.ts +60 -0
  85. package/dist-lib/lib/capabilities/completion-engine/model-round.js +97 -0
  86. package/dist-lib/lib/capabilities/completion-engine/operations.d.ts +5 -2
  87. package/dist-lib/lib/capabilities/completion-engine/operations.js +84 -15
  88. package/dist-lib/lib/capabilities/completion-engine/ports.d.ts +25 -2
  89. package/dist-lib/lib/capabilities/completion-engine/ports.js +26 -21
  90. package/dist-lib/lib/capabilities/completion-engine/prepare-step.d.ts +27 -0
  91. package/dist-lib/lib/{machine → capabilities/completion-engine}/replay-output.d.ts +1 -1
  92. package/dist-lib/lib/{machine → capabilities/completion-engine}/replay-output.js +1 -1
  93. package/dist-lib/lib/capabilities/completion-engine/round.d.ts +74 -0
  94. package/dist-lib/lib/capabilities/completion-engine/round.js +817 -0
  95. package/dist-lib/lib/capabilities/completion-engine/session.d.ts +28 -14
  96. package/dist-lib/lib/capabilities/completion-engine/session.js +40 -6
  97. package/dist-lib/lib/capabilities/completion-engine/splice.d.ts +2 -0
  98. package/dist-lib/lib/capabilities/completion-engine/splice.js +7 -0
  99. package/dist-lib/lib/capabilities/completion-engine/stages.d.ts +23 -0
  100. package/dist-lib/lib/capabilities/completion-engine/tool-caller.d.ts +10 -0
  101. package/dist-lib/lib/capabilities/completion-engine/tool-caller.js +152 -0
  102. package/dist-lib/lib/capabilities/completion-engine/tool-execution.d.ts +78 -0
  103. package/dist-lib/lib/capabilities/{completion-loop → completion-engine}/tool-execution.js +103 -35
  104. package/dist-lib/lib/capabilities/completion-engine/tool-sets.d.ts +24 -0
  105. package/dist-lib/lib/capabilities/completion-engine/tool-sets.js +15 -0
  106. package/dist-lib/lib/capabilities/completion-engine/turns.d.ts +32 -0
  107. package/dist-lib/lib/capabilities/completion-engine/turns.js +215 -0
  108. package/dist-lib/lib/capabilities/detect-language.d.ts +2 -1
  109. package/dist-lib/lib/capabilities/detect-language.js +14 -2
  110. package/dist-lib/lib/capabilities/download.d.ts +10 -8
  111. package/dist-lib/lib/capabilities/download.js +1 -1
  112. package/dist-lib/lib/capabilities/enhance.d.ts +2 -2
  113. package/dist-lib/lib/capabilities/enhance.js +23 -10
  114. package/dist-lib/lib/capabilities/invoke.d.ts +1 -1
  115. package/dist-lib/lib/capabilities/kv-cache.d.ts +1 -1
  116. package/dist-lib/lib/capabilities/preview-model-source.d.ts +8 -10
  117. package/dist-lib/lib/capabilities/preview-model-source.js +83 -21
  118. package/dist-lib/lib/capabilities/prompt-prefix.d.ts +1 -1
  119. package/dist-lib/lib/capabilities/sdk-tool.d.ts +19 -0
  120. package/dist-lib/lib/capabilities/sdk-tool.js +166 -0
  121. package/dist-lib/lib/capabilities/skill-entry.d.ts +12 -0
  122. package/dist-lib/lib/capabilities/skill-entry.js +41 -0
  123. package/dist-lib/lib/capabilities/tool-plan.d.ts +11 -6
  124. package/dist-lib/lib/capabilities/tool-plan.js +36 -15
  125. package/dist-lib/lib/capabilities/tool-prompt-log.d.ts +1 -1
  126. package/dist-lib/lib/capabilities/tool-prompt-log.js +3 -3
  127. package/dist-lib/lib/capabilities/tool-turns.d.ts +33 -5
  128. package/dist-lib/lib/capabilities/tool-turns.js +151 -19
  129. package/dist-lib/lib/capabilities/usage-breakdown.d.ts +1 -1
  130. package/dist-lib/lib/capabilities/usage-breakdown.js +4 -1
  131. package/dist-lib/lib/client/index.d.ts +19 -0
  132. package/dist-lib/lib/client/index.js +262 -0
  133. package/dist-lib/lib/connect.d.ts +21 -10
  134. package/dist-lib/lib/connect.js +290 -84
  135. package/dist-lib/lib/context-window.d.ts +6 -2
  136. package/dist-lib/lib/context-window.js +33 -16
  137. package/dist-lib/lib/contract/agent.d.ts +73 -0
  138. package/dist-lib/lib/{capabilities/types.d.ts → contract/completion.d.ts} +183 -46
  139. package/dist-lib/lib/contract/drive.d.ts +4 -0
  140. package/dist-lib/lib/contract/egress-proxy.d.ts +13 -0
  141. package/dist-lib/lib/contract/exec.d.ts +134 -0
  142. package/dist-lib/lib/contract/hooks.d.ts +124 -0
  143. package/dist-lib/lib/contract/hooks.js +1 -0
  144. package/dist-lib/lib/contract/index.d.ts +8 -0
  145. package/dist-lib/lib/contract/index.js +1 -0
  146. package/dist-lib/lib/contract/knowledge.d.ts +60 -0
  147. package/dist-lib/lib/contract/knowledge.js +1 -0
  148. package/dist-lib/lib/contract/managed-skills.d.ts +1 -0
  149. package/dist-lib/lib/contract/managed-skills.js +1 -0
  150. package/dist-lib/lib/contract/models.d.ts +60 -0
  151. package/dist-lib/lib/contract/models.js +1 -0
  152. package/dist-lib/lib/contract/policy.d.ts +75 -0
  153. package/dist-lib/lib/contract/policy.js +1 -0
  154. package/dist-lib/lib/contract/run.d.ts +157 -0
  155. package/dist-lib/lib/contract/run.js +1 -0
  156. package/dist-lib/lib/contract/sandbox.d.ts +31 -0
  157. package/dist-lib/lib/contract/sandbox.js +1 -0
  158. package/dist-lib/lib/contract/skill-readiness.d.ts +14 -0
  159. package/dist-lib/lib/contract/skill-readiness.js +1 -0
  160. package/dist-lib/lib/{capabilities/voice.d.ts → contract/speech.d.ts} +12 -17
  161. package/dist-lib/lib/contract/speech.js +1 -0
  162. package/dist-lib/lib/contract/translation.d.ts +20 -0
  163. package/dist-lib/lib/contract/translation.js +1 -0
  164. package/dist-lib/lib/contract-types.d.ts +82 -30
  165. package/dist-lib/lib/docx/index.d.ts +0 -1
  166. package/dist-lib/lib/docx/index.js +15 -24
  167. package/dist-lib/lib/embeddings/index.d.ts +69 -0
  168. package/dist-lib/lib/embeddings/index.js +288 -0
  169. package/dist-lib/lib/errors.d.ts +270 -0
  170. package/dist-lib/lib/errors.js +204 -0
  171. package/dist-lib/lib/fold/index.d.ts +74 -0
  172. package/dist-lib/lib/fold/index.js +189 -0
  173. package/dist-lib/lib/{tools/exec/adapters/python/guarded-fetch.d.ts → guarded-fetch.d.ts} +5 -12
  174. package/dist-lib/lib/{tools/exec/adapters/python/guarded-fetch.js → guarded-fetch.js} +23 -41
  175. package/dist-lib/lib/hardware/cpu-placement.d.ts +8 -0
  176. package/dist-lib/lib/hardware/cpu-placement.js +48 -0
  177. package/dist-lib/lib/hardware/gpu-probe.js +10 -1
  178. package/dist-lib/lib/helpers/completion-params.d.ts +7 -0
  179. package/dist-lib/lib/helpers/completion-params.js +21 -0
  180. package/dist-lib/lib/helpers/copy.d.ts +1 -0
  181. package/dist-lib/lib/helpers/copy.js +5 -0
  182. package/dist-lib/lib/helpers/drain.d.ts +5 -0
  183. package/dist-lib/lib/helpers/drain.js +19 -0
  184. package/dist-lib/lib/{machine/errors.d.ts → helpers/engine-error.d.ts} +8 -10
  185. package/dist-lib/lib/{machine/errors.js → helpers/engine-error.js} +20 -36
  186. package/dist-lib/lib/helpers/failure-result.d.ts +21 -0
  187. package/dist-lib/lib/helpers/failure-result.js +39 -0
  188. package/dist-lib/lib/helpers/goal-check.d.ts +6 -0
  189. package/dist-lib/lib/helpers/goal-check.js +99 -0
  190. package/dist-lib/lib/helpers/head-tail.d.ts +7 -0
  191. package/dist-lib/lib/helpers/head-tail.js +19 -0
  192. package/dist-lib/lib/helpers/image-settings.d.ts +2 -0
  193. package/dist-lib/lib/helpers/image-settings.js +19 -0
  194. package/dist-lib/lib/helpers/load-stall.d.ts +1 -1
  195. package/dist-lib/lib/helpers/load-stall.js +2 -2
  196. package/dist-lib/lib/helpers/markup-stream-filter.d.ts +4 -1
  197. package/dist-lib/lib/helpers/markup-stream-filter.js +20 -6
  198. package/dist-lib/lib/helpers/mcp-methods.d.ts +2 -0
  199. package/dist-lib/lib/helpers/mcp-methods.js +14 -0
  200. package/dist-lib/lib/helpers/race-abort.d.ts +1 -1
  201. package/dist-lib/lib/helpers/race-abort.js +1 -1
  202. package/dist-lib/lib/helpers/repeated-reply.d.ts +2 -0
  203. package/dist-lib/lib/helpers/repeated-reply.js +71 -0
  204. package/dist-lib/lib/helpers/require-peers.d.ts +3 -0
  205. package/dist-lib/lib/helpers/require-peers.js +23 -0
  206. package/dist-lib/lib/helpers/run-outcome.d.ts +5 -4
  207. package/dist-lib/lib/helpers/run-outcome.js +11 -9
  208. package/dist-lib/lib/{machine → helpers}/stable-stringify.js +1 -1
  209. package/dist-lib/lib/helpers/thinking.d.ts +3 -2
  210. package/dist-lib/lib/helpers/thinking.js +19 -0
  211. package/dist-lib/lib/helpers/tool-call-markup.d.ts +1 -0
  212. package/dist-lib/lib/helpers/tool-call-markup.js +9 -5
  213. package/dist-lib/lib/helpers/tool-label.d.ts +2 -2
  214. package/dist-lib/lib/helpers/tool-label.js +3 -3
  215. package/dist-lib/lib/hooks/built-in/arg-repair.d.ts +1 -1
  216. package/dist-lib/lib/hooks/built-in/arg-repair.js +114 -20
  217. package/dist-lib/lib/hooks/built-in/egress.d.ts +1 -1
  218. package/dist-lib/lib/hooks/built-in/egress.js +13 -21
  219. package/dist-lib/lib/hooks/built-in/policy-rules.d.ts +8 -0
  220. package/dist-lib/lib/hooks/built-in/policy-rules.js +192 -0
  221. package/dist-lib/lib/hooks/built-in/sandbox.d.ts +1 -1
  222. package/dist-lib/lib/hooks/built-in/sandbox.js +23 -5
  223. package/dist-lib/lib/hooks/built-in/skill-catalog.d.ts +1 -1
  224. package/dist-lib/lib/hooks/index.d.ts +51 -0
  225. package/dist-lib/lib/hooks/index.js +135 -0
  226. package/dist-lib/lib/hooks/run.d.ts +9 -6
  227. package/dist-lib/lib/hooks/run.js +115 -50
  228. package/dist-lib/lib/{completion-lifecycle.d.ts → lifecycle/completion-run.d.ts} +1 -1
  229. package/dist-lib/lib/{completion-lifecycle.js → lifecycle/completion-run.js} +1 -1
  230. package/dist-lib/lib/lifecycle/index.d.ts +83 -0
  231. package/dist-lib/lib/lifecycle/index.js +336 -0
  232. package/dist-lib/lib/{harness-lifecycle.js → lifecycle/machine.js} +3 -3
  233. package/dist-lib/lib/log.d.ts +26 -5
  234. package/dist-lib/lib/log.js +86 -23
  235. package/dist-lib/lib/machine/completion/actions/completion.d.ts +17 -4
  236. package/dist-lib/lib/machine/completion/actions/completion.js +225 -20
  237. package/dist-lib/lib/machine/completion/actions/prepare.d.ts +9 -0
  238. package/dist-lib/lib/machine/completion/actions/prepare.js +30 -0
  239. package/dist-lib/lib/machine/completion/actions/tools.d.ts +10 -1
  240. package/dist-lib/lib/machine/completion/actions/tools.js +136 -10
  241. package/dist-lib/lib/machine/completion/context.d.ts +7 -2
  242. package/dist-lib/lib/machine/completion/context.js +35 -5
  243. package/dist-lib/lib/machine/completion/guards/retry.d.ts +4 -1
  244. package/dist-lib/lib/machine/completion/guards/retry.js +14 -4
  245. package/dist-lib/lib/machine/completion/implementations.d.ts +48 -14
  246. package/dist-lib/lib/machine/completion/implementations.js +119 -32
  247. package/dist-lib/lib/machine/completion/machine.d.ts +168 -65
  248. package/dist-lib/lib/machine/completion/machine.js +236 -60
  249. package/dist-lib/lib/machine/completion/ports.d.ts +7 -55
  250. package/dist-lib/lib/machine/completion/ports.js +1 -224
  251. package/dist-lib/lib/machine/completion/rules.d.ts +36 -19
  252. package/dist-lib/lib/machine/completion/rules.js +118 -49
  253. package/dist-lib/lib/machine/completion/types.d.ts +160 -187
  254. package/dist-lib/lib/machine/completion/version.d.ts +1 -0
  255. package/dist-lib/lib/machine/completion/version.js +1 -0
  256. package/dist-lib/lib/machine/definition.d.ts +23 -0
  257. package/dist-lib/lib/machine/definition.js +76 -0
  258. package/dist-lib/lib/machine/index.d.ts +494 -20
  259. package/dist-lib/lib/machine/index.js +20 -11
  260. package/dist-lib/lib/models/context-choice.d.ts +15 -0
  261. package/dist-lib/lib/models/context-choice.js +55 -0
  262. package/dist-lib/lib/models/context.d.ts +1 -1
  263. package/dist-lib/lib/models/custom-model-cache.d.ts +1 -0
  264. package/dist-lib/lib/models/custom-model-cache.js +3 -0
  265. package/dist-lib/lib/models/download-gate.d.ts +20 -0
  266. package/dist-lib/lib/models/download-gate.js +73 -0
  267. package/dist-lib/lib/models/gguf-header.d.ts +11 -0
  268. package/dist-lib/lib/models/gguf-header.js +203 -15
  269. package/dist-lib/lib/models/kv-cache.d.ts +2 -0
  270. package/dist-lib/lib/models/kv-cache.js +8 -0
  271. package/dist-lib/lib/models/llm-presets.d.ts +7 -1
  272. package/dist-lib/lib/models/llm-presets.js +6 -5
  273. package/dist-lib/lib/models/load-requests.d.ts +9 -0
  274. package/dist-lib/lib/models/load-requests.js +42 -0
  275. package/dist-lib/lib/models/memory-cap.d.ts +13 -0
  276. package/dist-lib/lib/models/memory-cap.js +21 -0
  277. package/dist-lib/lib/models/model-catalog-constants.d.ts +3 -1
  278. package/dist-lib/lib/models/model-catalog-constants.js +9 -1
  279. package/dist-lib/lib/models/model-catalog.d.ts +34 -5
  280. package/dist-lib/lib/models/model-catalog.js +104 -8
  281. package/dist-lib/lib/models/model-delete.d.ts +1 -1
  282. package/dist-lib/lib/models/model-fit.d.ts +55 -0
  283. package/dist-lib/lib/models/model-fit.js +101 -0
  284. package/dist-lib/lib/models/model-handle.d.ts +12 -1
  285. package/dist-lib/lib/models/model-handle.js +20 -2
  286. package/dist-lib/lib/models/model-list.d.ts +13 -2
  287. package/dist-lib/lib/models/model-list.js +23 -0
  288. package/dist-lib/lib/models/model-pool.d.ts +75 -15
  289. package/dist-lib/lib/models/model-pool.js +195 -55
  290. package/dist-lib/lib/models/model-source.d.ts +3 -2
  291. package/dist-lib/lib/models/model-source.js +23 -5
  292. package/dist-lib/lib/models/music-catalog.d.ts +1 -1
  293. package/dist-lib/lib/models/music-catalog.js +8 -1
  294. package/dist-lib/lib/models/opencl-cache.js +2 -2
  295. package/dist-lib/lib/models/sdk-faults.d.ts +3 -0
  296. package/dist-lib/lib/models/sdk-faults.js +27 -0
  297. package/dist-lib/lib/models/tool-dialect.d.ts +1 -1
  298. package/dist-lib/lib/models/tts-model-default.js +3 -3
  299. package/dist-lib/lib/no-redirect-fetch-bare.js +2 -1
  300. package/dist-lib/lib/no-redirect-fetch-impl.d.ts +1 -0
  301. package/dist-lib/lib/no-redirect-fetch-impl.js +34 -2
  302. package/dist-lib/lib/office/engine/codes.d.ts +62 -0
  303. package/dist-lib/lib/office/engine/codes.js +61 -0
  304. package/dist-lib/lib/office/engine/docx/document.d.ts +216 -0
  305. package/dist-lib/lib/office/engine/docx/document.js +1152 -0
  306. package/dist-lib/lib/office/engine/docx/index.d.ts +7 -0
  307. package/dist-lib/lib/office/engine/docx/index.js +8 -0
  308. package/dist-lib/lib/office/engine/docx/styles.d.ts +31 -0
  309. package/dist-lib/lib/office/engine/docx/styles.js +173 -0
  310. package/dist-lib/lib/office/engine/docx/template.d.ts +18 -0
  311. package/dist-lib/lib/office/engine/docx/template.js +133 -0
  312. package/dist-lib/lib/office/engine/docx/text.d.ts +55 -0
  313. package/dist-lib/lib/office/engine/docx/text.js +538 -0
  314. package/dist-lib/lib/office/engine/drawingml/chart.d.ts +63 -0
  315. package/dist-lib/lib/office/engine/drawingml/chart.js +539 -0
  316. package/dist-lib/lib/office/engine/drawingml/text.d.ts +35 -0
  317. package/dist-lib/lib/office/engine/drawingml/text.js +352 -0
  318. package/dist-lib/lib/office/engine/errors.d.ts +6 -0
  319. package/dist-lib/lib/office/engine/errors.js +12 -0
  320. package/dist-lib/lib/office/engine/image.d.ts +8 -0
  321. package/dist-lib/lib/office/engine/image.js +48 -0
  322. package/dist-lib/lib/office/engine/index.d.ts +12 -0
  323. package/dist-lib/lib/office/engine/index.js +7 -0
  324. package/dist-lib/lib/office/engine/opc/content-types.d.ts +17 -0
  325. package/dist-lib/lib/office/engine/opc/content-types.js +74 -0
  326. package/dist-lib/lib/office/engine/opc/media.d.ts +13 -0
  327. package/dist-lib/lib/office/engine/opc/media.js +11 -0
  328. package/dist-lib/lib/office/engine/opc/package.d.ts +51 -0
  329. package/dist-lib/lib/office/engine/opc/package.js +324 -0
  330. package/dist-lib/lib/office/engine/opc/paths.d.ts +7 -0
  331. package/dist-lib/lib/office/engine/opc/paths.js +46 -0
  332. package/dist-lib/lib/office/engine/opc/properties.d.ts +7 -0
  333. package/dist-lib/lib/office/engine/opc/properties.js +75 -0
  334. package/dist-lib/lib/office/engine/opc/relationships.d.ts +23 -0
  335. package/dist-lib/lib/office/engine/opc/relationships.js +65 -0
  336. package/dist-lib/lib/office/engine/opc/zip.d.ts +15 -0
  337. package/dist-lib/lib/office/engine/opc/zip.js +264 -0
  338. package/dist-lib/lib/office/engine/pptx/fit.d.ts +12 -0
  339. package/dist-lib/lib/office/engine/pptx/fit.js +37 -0
  340. package/dist-lib/lib/office/engine/pptx/index.d.ts +8 -0
  341. package/dist-lib/lib/office/engine/pptx/index.js +8 -0
  342. package/dist-lib/lib/office/engine/pptx/inherit.d.ts +29 -0
  343. package/dist-lib/lib/office/engine/pptx/inherit.js +155 -0
  344. package/dist-lib/lib/office/engine/pptx/notes.d.ts +5 -0
  345. package/dist-lib/lib/office/engine/pptx/notes.js +85 -0
  346. package/dist-lib/lib/office/engine/pptx/picture-area.d.ts +23 -0
  347. package/dist-lib/lib/office/engine/pptx/picture-area.js +84 -0
  348. package/dist-lib/lib/office/engine/pptx/presentation.d.ts +56 -0
  349. package/dist-lib/lib/office/engine/pptx/presentation.js +787 -0
  350. package/dist-lib/lib/office/engine/pptx/read.d.ts +9 -0
  351. package/dist-lib/lib/office/engine/pptx/read.js +66 -0
  352. package/dist-lib/lib/office/engine/pptx/shapes.d.ts +52 -0
  353. package/dist-lib/lib/office/engine/pptx/shapes.js +276 -0
  354. package/dist-lib/lib/office/engine/pptx/slides.d.ts +27 -0
  355. package/dist-lib/lib/office/engine/pptx/slides.js +123 -0
  356. package/dist-lib/lib/office/engine/pptx/template.d.ts +20 -0
  357. package/dist-lib/lib/office/engine/pptx/template.js +391 -0
  358. package/dist-lib/lib/office/engine/pptx/types.d.ts +121 -0
  359. package/dist-lib/lib/office/engine/pptx/types.js +1 -0
  360. package/dist-lib/lib/office/engine/units.d.ts +3 -0
  361. package/dist-lib/lib/office/engine/units.js +12 -0
  362. package/dist-lib/lib/office/engine/utf8.d.ts +2 -0
  363. package/dist-lib/lib/office/engine/utf8.js +103 -0
  364. package/dist-lib/lib/office/engine/xlsx/formula.d.ts +49 -0
  365. package/dist-lib/lib/office/engine/xlsx/formula.js +381 -0
  366. package/dist-lib/lib/office/engine/xlsx/index.d.ts +8 -0
  367. package/dist-lib/lib/office/engine/xlsx/index.js +8 -0
  368. package/dist-lib/lib/office/engine/xlsx/refs.d.ts +22 -0
  369. package/dist-lib/lib/office/engine/xlsx/refs.js +82 -0
  370. package/dist-lib/lib/office/engine/xlsx/reshape.d.ts +21 -0
  371. package/dist-lib/lib/office/engine/xlsx/reshape.js +424 -0
  372. package/dist-lib/lib/office/engine/xlsx/sheet.d.ts +108 -0
  373. package/dist-lib/lib/office/engine/xlsx/sheet.js +662 -0
  374. package/dist-lib/lib/office/engine/xlsx/strings.d.ts +15 -0
  375. package/dist-lib/lib/office/engine/xlsx/strings.js +93 -0
  376. package/dist-lib/lib/office/engine/xlsx/styles.d.ts +38 -0
  377. package/dist-lib/lib/office/engine/xlsx/styles.js +369 -0
  378. package/dist-lib/lib/office/engine/xlsx/template.d.ts +7 -0
  379. package/dist-lib/lib/office/engine/xlsx/template.js +54 -0
  380. package/dist-lib/lib/office/engine/xlsx/workbook.d.ts +162 -0
  381. package/dist-lib/lib/office/engine/xlsx/workbook.js +881 -0
  382. package/dist-lib/lib/office/engine/xlsx/write.d.ts +2 -0
  383. package/dist-lib/lib/office/engine/xlsx/write.js +42 -0
  384. package/dist-lib/lib/office/engine/xml.d.ts +45 -0
  385. package/dist-lib/lib/office/engine/xml.js +258 -0
  386. package/dist-lib/lib/office/extract.d.ts +9 -0
  387. package/dist-lib/lib/office/extract.js +20 -0
  388. package/dist-lib/lib/office/index.d.ts +1 -1
  389. package/dist-lib/lib/office/index.js +77 -21
  390. package/dist-lib/lib/plugins/addons.d.ts +2 -0
  391. package/dist-lib/lib/plugins/addons.js +12 -0
  392. package/dist-lib/lib/plugins/context.d.ts +16 -0
  393. package/dist-lib/lib/plugins/context.js +48 -0
  394. package/dist-lib/lib/plugins/index.d.ts +3 -0
  395. package/dist-lib/lib/plugins/index.js +1 -0
  396. package/dist-lib/lib/plugins/registry.d.ts +121 -0
  397. package/dist-lib/lib/plugins/registry.js +518 -0
  398. package/dist-lib/lib/plugins/runtime.d.ts +27 -0
  399. package/dist-lib/lib/plugins/runtime.js +143 -0
  400. package/dist-lib/lib/plugins/scope.d.ts +17 -0
  401. package/dist-lib/lib/plugins/scope.js +55 -0
  402. package/dist-lib/lib/policy/index.d.ts +11 -0
  403. package/dist-lib/lib/policy/index.js +235 -0
  404. package/dist-lib/lib/prompt.d.ts +9 -8
  405. package/dist-lib/lib/prompt.js +42 -16
  406. package/dist-lib/lib/residency/completion-runtime.d.ts +62 -0
  407. package/dist-lib/lib/residency/completion-runtime.js +87 -0
  408. package/dist-lib/lib/residency/index.d.ts +200 -0
  409. package/dist-lib/lib/residency/index.js +938 -0
  410. package/dist-lib/lib/resolution-detector.js +3 -3
  411. package/dist-lib/lib/round-host.d.ts +12 -0
  412. package/dist-lib/lib/round-host.js +57 -0
  413. package/dist-lib/lib/round-port.d.ts +24 -0
  414. package/dist-lib/lib/round-port.js +81 -0
  415. package/dist-lib/lib/rpc-session.js +2 -1
  416. package/dist-lib/lib/run-log/boundary.d.ts +17 -0
  417. package/dist-lib/lib/run-log/boundary.js +58 -0
  418. package/dist-lib/lib/run-log/history-codec.d.ts +7 -6
  419. package/dist-lib/lib/run-log/history-codec.js +175 -46
  420. package/dist-lib/lib/run-log/index.d.ts +46 -0
  421. package/dist-lib/lib/run-log/index.js +40 -0
  422. package/dist-lib/lib/run-log/inspect.d.ts +53 -0
  423. package/dist-lib/lib/{run-log-inspect.js → run-log/inspect.js} +196 -139
  424. package/dist-lib/lib/run-log/live.d.ts +37 -0
  425. package/dist-lib/lib/run-log/live.js +195 -0
  426. package/dist-lib/lib/run-log/persisted-actor.d.ts +1 -6
  427. package/dist-lib/lib/run-log/persisted-actor.js +4 -3
  428. package/dist-lib/lib/run-log/protocol-types.d.ts +37 -14
  429. package/dist-lib/lib/run-log/protocol.d.ts +1 -2
  430. package/dist-lib/lib/run-log/protocol.js +45 -40
  431. package/dist-lib/lib/{run-log-redact.d.ts → run-log/redact.d.ts} +3 -2
  432. package/dist-lib/lib/{run-log-redact.js → run-log/redact.js} +101 -16
  433. package/dist-lib/lib/run-log/replay.d.ts +3 -2
  434. package/dist-lib/lib/run-log/replay.js +7 -6
  435. package/dist-lib/lib/run-log/request-codec.d.ts +17 -0
  436. package/dist-lib/lib/run-log/request-codec.js +87 -0
  437. package/dist-lib/lib/run-log/run-journal.d.ts +14 -8
  438. package/dist-lib/lib/run-log/run-journal.js +100 -75
  439. package/dist-lib/lib/sdk-loader.d.ts +3 -8
  440. package/dist-lib/lib/sdk-loader.js +51 -28
  441. package/dist-lib/lib/sdk-storage.d.ts +1 -0
  442. package/dist-lib/lib/sdk-storage.js +20 -2
  443. package/dist-lib/lib/serve.js +277 -69
  444. package/dist-lib/lib/sidecar/index.d.ts +39 -0
  445. package/dist-lib/lib/sidecar/index.js +206 -0
  446. package/dist-lib/lib/sidecar/user-plugins.d.ts +9 -0
  447. package/dist-lib/lib/sidecar/user-plugins.js +119 -0
  448. package/dist-lib/lib/skills-host/index.d.ts +61 -0
  449. package/dist-lib/lib/skills-host/index.js +275 -0
  450. package/dist-lib/lib/spawn.d.ts +40 -7
  451. package/dist-lib/lib/spawn.js +24 -20
  452. package/dist-lib/lib/spill.d.ts +12 -0
  453. package/dist-lib/lib/spill.js +86 -0
  454. package/dist-lib/lib/tools/{exec/adapters/python → attachments}/output-policy.d.ts +2 -3
  455. package/dist-lib/lib/tools/{exec/adapters/python/attachments.d.ts → attachments/staging.d.ts} +3 -2
  456. package/dist-lib/lib/tools/{exec/adapters/python/attachments.js → attachments/staging.js} +20 -9
  457. package/dist-lib/lib/tools/catalog.d.ts +1 -1
  458. package/dist-lib/lib/tools/catalog.js +1 -1
  459. package/dist-lib/lib/tools/exec/adapters/shell/shell-adapter.d.ts +5 -7
  460. package/dist-lib/lib/tools/exec/adapters/shell/shell-adapter.js +3 -2
  461. package/dist-lib/lib/tools/exec/bare-runtime.js +2 -4
  462. package/dist-lib/lib/tools/exec/python-source.d.ts +6 -0
  463. package/dist-lib/lib/tools/exec/python-source.js +243 -0
  464. package/dist-lib/lib/tools/exec/runner.d.ts +24 -45
  465. package/dist-lib/lib/tools/exec/runner.js +70 -35
  466. package/dist-lib/lib/tools/exec/scope.d.ts +2 -1
  467. package/dist-lib/lib/tools/exec/scope.js +45 -105
  468. package/dist-lib/lib/tools/exec/shell-guidance.d.ts +11 -9
  469. package/dist-lib/lib/tools/exec/shell-guidance.js +30 -59
  470. package/dist-lib/lib/tools/exec/shell-line.d.ts +26 -0
  471. package/dist-lib/lib/tools/exec/shell-line.js +334 -0
  472. package/dist-lib/lib/tools/exec/video-tools.d.ts +0 -1
  473. package/dist-lib/lib/tools/exec/video-tools.js +0 -5
  474. package/dist-lib/lib/tools/exec.d.ts +10 -14
  475. package/dist-lib/lib/tools/exec.js +253 -468
  476. package/dist-lib/lib/tools/files/edit-file.d.ts +3 -0
  477. package/dist-lib/lib/tools/files/edit-file.js +74 -0
  478. package/dist-lib/lib/tools/files/glob.d.ts +3 -0
  479. package/dist-lib/lib/tools/files/glob.js +65 -0
  480. package/dist-lib/lib/tools/files/grep.d.ts +6 -0
  481. package/dist-lib/lib/tools/files/grep.js +212 -0
  482. package/dist-lib/lib/tools/files/index.d.ts +3 -0
  483. package/dist-lib/lib/tools/files/index.js +23 -0
  484. package/dist-lib/lib/tools/files/list-dir.d.ts +6 -0
  485. package/dist-lib/lib/tools/files/list-dir.js +136 -0
  486. package/dist-lib/lib/tools/files/make-dir.d.ts +3 -0
  487. package/dist-lib/lib/tools/files/make-dir.js +48 -0
  488. package/dist-lib/lib/tools/files/read-file.d.ts +3 -0
  489. package/dist-lib/lib/tools/files/read-file.js +105 -0
  490. package/dist-lib/lib/tools/files/transfer.d.ts +4 -0
  491. package/dist-lib/lib/tools/files/transfer.js +83 -0
  492. package/dist-lib/lib/tools/files/trash-file.d.ts +4 -0
  493. package/dist-lib/lib/tools/files/trash-file.js +62 -0
  494. package/dist-lib/lib/tools/files/write-file.d.ts +3 -0
  495. package/dist-lib/lib/tools/files/write-file.js +56 -0
  496. package/dist-lib/lib/tools/fs/document-text.d.ts +2 -0
  497. package/dist-lib/lib/tools/fs/document-text.js +38 -0
  498. package/dist-lib/lib/tools/fs/drive.d.ts +10 -14
  499. package/dist-lib/lib/tools/fs/drive.js +9 -1
  500. package/dist-lib/lib/tools/fs/edit-match.d.ts +11 -0
  501. package/dist-lib/lib/tools/fs/edit-match.js +153 -0
  502. package/dist-lib/lib/tools/fs/ignore.d.ts +13 -0
  503. package/dist-lib/lib/tools/fs/ignore.js +104 -0
  504. package/dist-lib/lib/tools/fs/local.js +28 -5
  505. package/dist-lib/lib/tools/fs/remote-protocol.d.ts +45 -3
  506. package/dist-lib/lib/tools/fs/remote-protocol.js +1 -1
  507. package/dist-lib/lib/tools/fs/remote.d.ts +3 -11
  508. package/dist-lib/lib/tools/fs/remote.js +24 -14
  509. package/dist-lib/lib/tools/fs/scope.d.ts +6 -1
  510. package/dist-lib/lib/tools/fs/scope.js +13 -5
  511. package/dist-lib/lib/tools/fs/search.d.ts +41 -0
  512. package/dist-lib/lib/tools/fs/search.js +383 -0
  513. package/dist-lib/lib/tools/fs/targets.d.ts +10 -0
  514. package/dist-lib/lib/tools/fs/targets.js +32 -0
  515. package/dist-lib/lib/tools/fs/tool-path.d.ts +27 -0
  516. package/dist-lib/lib/tools/fs/tool-path.js +70 -0
  517. package/dist-lib/lib/tools/fs/walk.d.ts +15 -3
  518. package/dist-lib/lib/tools/fs/walk.js +118 -24
  519. package/dist-lib/lib/tools/http-request/request.d.ts +3 -1
  520. package/dist-lib/lib/tools/http-request/request.js +2 -1
  521. package/dist-lib/lib/tools/http-request/truncate-response.d.ts +16 -1
  522. package/dist-lib/lib/tools/http-request/truncate-response.js +45 -9
  523. package/dist-lib/lib/tools/http-request.d.ts +1 -1
  524. package/dist-lib/lib/tools/http-request.js +26 -8
  525. package/dist-lib/lib/tools/index.d.ts +22 -0
  526. package/dist-lib/lib/tools/index.js +38 -0
  527. package/dist-lib/lib/tools/office/ops.d.ts +14 -0
  528. package/dist-lib/lib/tools/office/ops.js +104 -0
  529. package/dist-lib/lib/tools/office.d.ts +13 -0
  530. package/dist-lib/lib/tools/office.js +672 -0
  531. package/dist-lib/lib/tools/operations/compile.d.ts +3 -3
  532. package/dist-lib/lib/tools/operations/compile.js +6 -5
  533. package/dist-lib/lib/tools/operations/decoders.js +1 -1
  534. package/dist-lib/lib/tools/operations/manifest.d.ts +1 -1
  535. package/dist-lib/lib/tools/outbound-guard.d.ts +3 -1
  536. package/dist-lib/lib/tools/outbound-guard.js +4 -0
  537. package/dist-lib/lib/tools/pdf/build.d.ts +47 -0
  538. package/dist-lib/lib/tools/pdf/build.js +175 -0
  539. package/dist-lib/lib/tools/pdf/images.d.ts +7 -0
  540. package/dist-lib/lib/tools/pdf/images.js +82 -0
  541. package/dist-lib/lib/tools/pdf/request.d.ts +63 -0
  542. package/dist-lib/lib/tools/pdf/request.js +335 -0
  543. package/dist-lib/lib/tools/pdf.d.ts +6 -0
  544. package/dist-lib/lib/tools/pdf.js +318 -0
  545. package/dist-lib/lib/tools/skill.d.ts +2 -4
  546. package/dist-lib/lib/tools/skill.js +29 -28
  547. package/dist-lib/lib/tools/skills/auth-resolver.d.ts +1 -1
  548. package/dist-lib/lib/tools/skills/bundled-dir.js +4 -4
  549. package/dist-lib/lib/tools/skills/catalog.d.ts +11 -2
  550. package/dist-lib/lib/tools/skills/catalog.js +13 -9
  551. package/dist-lib/lib/tools/skills/cli-argv.js +25 -5
  552. package/dist-lib/lib/tools/skills/cli-schema-check.d.ts +1 -0
  553. package/dist-lib/lib/tools/skills/cli-schema-check.js +3 -0
  554. package/dist-lib/lib/tools/skills/cli-schema-load.js +10 -0
  555. package/dist-lib/lib/tools/skills/cli-schema-types.d.ts +2 -0
  556. package/dist-lib/lib/tools/skills/cli-schema.js +7 -4
  557. package/dist-lib/lib/tools/skills/credential-check.d.ts +1 -0
  558. package/dist-lib/lib/tools/skills/credential-check.js +3 -0
  559. package/dist-lib/lib/tools/skills/credential-health.js +3 -3
  560. package/dist-lib/lib/tools/skills/frontmatter-parser.d.ts +4 -0
  561. package/dist-lib/lib/tools/skills/frontmatter-parser.js +6 -0
  562. package/dist-lib/lib/tools/skills/manifest-parse.d.ts +1 -0
  563. package/dist-lib/lib/tools/skills/manifest-parse.js +39 -3
  564. package/dist-lib/lib/tools/skills/manifest.d.ts +1 -0
  565. package/dist-lib/lib/tools/skills/mention-name.d.ts +6 -0
  566. package/dist-lib/lib/tools/skills/mention-name.js +6 -0
  567. package/dist-lib/lib/tools/skills/mention.d.ts +3 -4
  568. package/dist-lib/lib/tools/skills/mention.js +11 -7
  569. package/dist-lib/lib/tools/skills/overlay-crud.js +3 -2
  570. package/dist-lib/lib/tools/skills/scope-key.d.ts +2 -1
  571. package/dist-lib/lib/tools/skills/scope-key.js +2 -3
  572. package/dist-lib/lib/tools/skills/skill-state-constants.d.ts +1 -0
  573. package/dist-lib/lib/tools/skills/skill-state-constants.js +4 -0
  574. package/dist-lib/lib/tools/skills/skill-state.d.ts +2 -2
  575. package/dist-lib/lib/tools/skills/skill-state.js +11 -28
  576. package/dist-lib/lib/tools/toolsets.d.ts +3 -7
  577. package/dist-lib/lib/tools/toolsets.js +5 -9
  578. package/dist-lib/lib/tools/url-guard.d.ts +6 -1
  579. package/dist-lib/lib/tools/url-guard.js +8 -2
  580. package/dist-lib/lib/tools/web-fetch.d.ts +1 -1
  581. package/dist-lib/lib/tools/web-fetch.js +52 -10
  582. package/dist-lib/lib/web-fetch/embedded-state.js +1 -1
  583. package/dist-lib/lib/web-fetch/extract.js +1 -1
  584. package/dist-lib/lib/web-fetch/images.js +1 -1
  585. package/dist-lib/lib/web-fetch/video.js +1 -1
  586. package/dist-lib/lib/wire.d.ts +21 -0
  587. package/dist-lib/lib/wire.js +161 -5
  588. package/dist-lib/plugins/code-mode/index.d.ts +16 -0
  589. package/dist-lib/plugins/code-mode/index.js +43 -0
  590. package/dist-lib/plugins/coding/index.d.ts +15 -0
  591. package/dist-lib/plugins/coding/index.js +40 -0
  592. package/dist-lib/plugins/coding/jobs.d.ts +24 -0
  593. package/dist-lib/plugins/coding/jobs.js +144 -0
  594. package/dist-lib/plugins/coding/read-only.d.ts +1 -0
  595. package/dist-lib/plugins/coding/read-only.js +264 -0
  596. package/dist-lib/plugins/coding/session.d.ts +53 -0
  597. package/dist-lib/plugins/coding/session.js +292 -0
  598. package/dist-lib/plugins/command-hooks/index.d.ts +88 -0
  599. package/dist-lib/plugins/command-hooks/index.js +340 -0
  600. package/dist-lib/plugins/egress-proxy/index.d.ts +53 -0
  601. package/dist-lib/plugins/egress-proxy/index.js +184 -0
  602. package/dist-lib/plugins/external-agents/acp.d.ts +27 -0
  603. package/dist-lib/plugins/external-agents/acp.js +264 -0
  604. package/dist-lib/plugins/external-agents/cli.d.ts +3 -0
  605. package/dist-lib/plugins/external-agents/cli.js +199 -0
  606. package/dist-lib/plugins/external-agents/index.d.ts +25 -0
  607. package/dist-lib/plugins/external-agents/index.js +54 -0
  608. package/dist-lib/plugins/external-agents/process.d.ts +19 -0
  609. package/dist-lib/plugins/external-agents/process.js +92 -0
  610. package/dist-lib/plugins/external-agents/targets.d.ts +32 -0
  611. package/dist-lib/plugins/external-agents/targets.js +66 -0
  612. package/dist-lib/{lib/tools → plugins/image}/edit-image.d.ts +3 -2
  613. package/dist-lib/{lib/tools → plugins/image}/edit-image.js +15 -8
  614. package/dist-lib/{lib/tools → plugins/image}/generate-image.d.ts +11 -15
  615. package/dist-lib/{lib/tools → plugins/image}/generate-image.js +95 -72
  616. package/dist-lib/plugins/image/index.d.ts +25 -0
  617. package/dist-lib/plugins/image/index.js +85 -0
  618. package/dist-lib/plugins/knowledge/index.d.ts +21 -0
  619. package/dist-lib/plugins/knowledge/index.js +47 -0
  620. package/dist-lib/plugins/knowledge/search-tool.d.ts +4 -0
  621. package/dist-lib/plugins/knowledge/search-tool.js +38 -0
  622. package/dist-lib/plugins/knowledge/store.d.ts +42 -0
  623. package/dist-lib/plugins/knowledge/store.js +332 -0
  624. package/dist-lib/plugins/language-hint/index.d.ts +15 -0
  625. package/dist-lib/plugins/language-hint/index.js +54 -0
  626. package/dist-lib/plugins/lsp/index.d.ts +32 -0
  627. package/dist-lib/plugins/lsp/index.js +77 -0
  628. package/dist-lib/plugins/lsp/pool.d.ts +24 -0
  629. package/dist-lib/plugins/lsp/pool.js +73 -0
  630. package/dist-lib/plugins/lsp/rpc.d.ts +37 -0
  631. package/dist-lib/plugins/lsp/rpc.js +145 -0
  632. package/dist-lib/plugins/lsp/server.d.ts +55 -0
  633. package/dist-lib/plugins/lsp/server.js +192 -0
  634. package/dist-lib/plugins/lsp/tool.d.ts +12 -0
  635. package/dist-lib/plugins/lsp/tool.js +366 -0
  636. package/dist-lib/plugins/mcp/call.d.ts +17 -0
  637. package/dist-lib/{lib/tools/mcp-call.js → plugins/mcp/call.js} +92 -84
  638. package/dist-lib/plugins/mcp/index.d.ts +21 -0
  639. package/dist-lib/plugins/mcp/index.js +88 -0
  640. package/dist-lib/{lib/tools → plugins}/mcp/protocol.d.ts +9 -16
  641. package/dist-lib/{lib/tools → plugins}/mcp/protocol.js +3 -16
  642. package/dist-lib/plugins/mcp/server.d.ts +23 -0
  643. package/dist-lib/plugins/mcp/server.js +108 -0
  644. package/dist-lib/{lib/tools → plugins/music}/generate-music.d.ts +11 -17
  645. package/dist-lib/{lib/tools → plugins/music}/generate-music.js +75 -52
  646. package/dist-lib/plugins/music/index.d.ts +24 -0
  647. package/dist-lib/plugins/music/index.js +56 -0
  648. package/dist-lib/{lib/tools/exec → plugins}/obsidian/cli-process.d.ts +2 -2
  649. package/dist-lib/{lib/tools/exec → plugins}/obsidian/cli-process.js +2 -2
  650. package/dist-lib/{lib/tools/exec → plugins}/obsidian/cli.d.ts +1 -1
  651. package/dist-lib/{lib/tools/exec → plugins}/obsidian/cli.js +7 -7
  652. package/dist-lib/{lib/tools/exec → plugins}/obsidian/command.js +2 -2
  653. package/dist-lib/{lib/tools/exec → plugins}/obsidian/guidance.d.ts +0 -1
  654. package/dist-lib/{lib/tools/exec → plugins}/obsidian/guidance.js +0 -7
  655. package/dist-lib/plugins/obsidian/index.d.ts +26 -0
  656. package/dist-lib/plugins/obsidian/index.js +138 -0
  657. package/dist-lib/{lib/tools/exec → plugins}/obsidian/note-name.js +2 -1
  658. package/dist-lib/{lib/tools/skills/obsidian-readiness.d.ts → plugins/obsidian/readiness.d.ts} +1 -0
  659. package/dist-lib/{lib/tools/skills/obsidian-readiness.js → plugins/obsidian/readiness.js} +7 -0
  660. package/dist-lib/{lib/tools/exec → plugins}/obsidian/safe-path.js +5 -4
  661. package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-create.js +3 -2
  662. package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-fs.js +2 -2
  663. package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-paths.js +3 -2
  664. package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-read.js +20 -18
  665. package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-write.js +13 -12
  666. package/dist-lib/plugins/python/guarded-fetch.d.ts +14 -0
  667. package/dist-lib/plugins/python/guarded-fetch.js +36 -0
  668. package/dist-lib/plugins/python/index.d.ts +18 -0
  669. package/dist-lib/plugins/python/index.js +20 -0
  670. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/interrupt-timer.js +3 -3
  671. package/dist-lib/plugins/python/language.d.ts +8 -0
  672. package/dist-lib/plugins/python/language.js +377 -0
  673. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/loader.d.ts +2 -0
  674. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/loader.js +84 -4
  675. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/memfs.js +4 -4
  676. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/module-distributions.js +0 -3
  677. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/pyodide.d.ts +1 -0
  678. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/pyodide.js +12 -11
  679. package/dist-lib/plugins/python/python-adapter.d.ts +41 -0
  680. package/dist-lib/plugins/python/python-adapter.js +517 -0
  681. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/run-session.d.ts +2 -2
  682. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/run-session.js +28 -106
  683. package/dist-lib/plugins/python/shell-redirect.d.ts +8 -0
  684. package/dist-lib/plugins/python/shell-redirect.js +25 -0
  685. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/wheels.js +10 -7
  686. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/active.js +2 -2
  687. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/client.d.ts +1 -0
  688. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/client.js +14 -10
  689. package/dist-lib/plugins/python/worker/entry.d.ts +1 -0
  690. package/dist-lib/plugins/python/worker/entry.js +9 -0
  691. package/dist-lib/plugins/python/worker/interrupt-deadline.d.ts +1 -0
  692. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/interrupt-deadline.js +1 -1
  693. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/protocol.d.ts +2 -0
  694. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/serve.js +24 -5
  695. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/spawn.d.ts +3 -1
  696. package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/spawn.js +9 -1
  697. package/dist-lib/plugins/quickjs/index.d.ts +20 -0
  698. package/dist-lib/plugins/quickjs/index.js +29 -0
  699. package/dist-lib/plugins/quickjs/language.d.ts +3 -0
  700. package/dist-lib/plugins/quickjs/language.js +59 -0
  701. package/dist-lib/plugins/quickjs/runtime.d.ts +38 -0
  702. package/dist-lib/plugins/quickjs/runtime.js +426 -0
  703. package/dist-lib/plugins/quickjs/text-decoder.d.ts +1 -0
  704. package/dist-lib/plugins/quickjs/text-decoder.js +15 -0
  705. package/dist-lib/plugins/run-report/brand.d.ts +1 -0
  706. package/dist-lib/plugins/run-report/brand.js +1 -0
  707. package/dist-lib/plugins/run-report/chain.d.ts +2 -0
  708. package/dist-lib/plugins/run-report/chain.js +73 -0
  709. package/dist-lib/plugins/run-report/flow-view.d.ts +6 -0
  710. package/dist-lib/plugins/run-report/flow-view.js +54 -0
  711. package/dist-lib/plugins/run-report/flow.d.ts +33 -0
  712. package/dist-lib/plugins/run-report/flow.js +253 -0
  713. package/dist-lib/plugins/run-report/index.d.ts +38 -0
  714. package/dist-lib/plugins/run-report/index.js +46 -0
  715. package/dist-lib/plugins/run-report/layout.d.ts +39 -0
  716. package/dist-lib/plugins/run-report/layout.js +175 -0
  717. package/dist-lib/plugins/run-report/meaning.d.ts +6 -0
  718. package/dist-lib/plugins/run-report/meaning.js +43 -0
  719. package/dist-lib/plugins/run-report/model.d.ts +95 -0
  720. package/dist-lib/plugins/run-report/model.js +393 -0
  721. package/dist-lib/plugins/run-report/page.d.ts +22 -0
  722. package/dist-lib/plugins/run-report/page.js +274 -0
  723. package/dist-lib/plugins/run-report/script.d.ts +1 -0
  724. package/dist-lib/plugins/run-report/script.js +935 -0
  725. package/dist-lib/plugins/run-report/story.d.ts +49 -0
  726. package/dist-lib/plugins/run-report/story.js +188 -0
  727. package/dist-lib/plugins/run-report/style.d.ts +1 -0
  728. package/dist-lib/plugins/run-report/style.js +536 -0
  729. package/dist-lib/plugins/run-report/why.d.ts +28 -0
  730. package/dist-lib/plugins/run-report/why.js +170 -0
  731. package/dist-lib/plugins/sandbox-linux/index.d.ts +62 -0
  732. package/dist-lib/plugins/sandbox-linux/index.js +354 -0
  733. package/dist-lib/plugins/sandbox-linux/seccomp.d.ts +2 -0
  734. package/dist-lib/plugins/sandbox-linux/seccomp.js +74 -0
  735. package/dist-lib/plugins/sandbox-macos/index.d.ts +62 -0
  736. package/dist-lib/plugins/sandbox-macos/index.js +370 -0
  737. package/dist-lib/plugins/sandbox-vm/index.d.ts +24 -0
  738. package/dist-lib/plugins/sandbox-vm/index.js +30 -0
  739. package/dist-lib/plugins/sandbox-vm/vm-shell.d.ts +48 -0
  740. package/dist-lib/plugins/sandbox-vm/vm-shell.js +111 -0
  741. package/dist-lib/plugins/sandbox-windows/helper/qvac-sandbox.c +554 -0
  742. package/dist-lib/plugins/sandbox-windows/index.d.ts +53 -0
  743. package/dist-lib/plugins/sandbox-windows/index.js +205 -0
  744. package/dist-lib/plugins/sandbox-windows/prebuilds/win32-arm64/qvac-sandbox.exe +0 -0
  745. package/dist-lib/plugins/sandbox-windows/prebuilds/win32-x64/qvac-sandbox.exe +0 -0
  746. package/dist-lib/{lib/capabilities → plugins/speech}/audio-resample.d.ts +1 -1
  747. package/dist-lib/{lib/capabilities → plugins/speech}/audio-resample.js +8 -8
  748. package/dist-lib/{lib → plugins/speech}/audio-transcode-bare.d.ts +1 -1
  749. package/dist-lib/{lib → plugins/speech}/audio-transcode-bare.js +24 -27
  750. package/dist-lib/{lib → plugins/speech}/audio-transcode-node.d.ts +1 -1
  751. package/dist-lib/{lib → plugins/speech}/audio-transcode-node.js +1 -3
  752. package/dist-lib/plugins/speech/index.d.ts +18 -0
  753. package/dist-lib/plugins/speech/index.js +31 -0
  754. package/dist-lib/plugins/speech/speech-engine.d.ts +23 -0
  755. package/dist-lib/plugins/speech/speech-engine.js +55 -0
  756. package/dist-lib/plugins/speech/speech-runtime.d.ts +22 -0
  757. package/dist-lib/plugins/speech/speech-runtime.js +212 -0
  758. package/dist-lib/{lib/capabilities → plugins/speech}/speech-text.d.ts +1 -0
  759. package/dist-lib/{lib/capabilities → plugins/speech}/speech-text.js +10 -3
  760. package/dist-lib/plugins/speech/voice-lane.d.ts +2 -0
  761. package/dist-lib/plugins/speech/voice-lane.js +9 -0
  762. package/dist-lib/plugins/speech/voice.d.ts +21 -0
  763. package/dist-lib/plugins/speech/voice.js +270 -0
  764. package/dist-lib/plugins/translation/index.d.ts +23 -0
  765. package/dist-lib/plugins/translation/index.js +74 -0
  766. package/dist-lib/{lib/models → plugins/translation}/nmt-catalog.d.ts +0 -1
  767. package/dist-lib/{lib/models → plugins/translation}/nmt-catalog.js +0 -3
  768. package/dist-lib/{lib/tools → plugins/translation}/translate.d.ts +23 -11
  769. package/dist-lib/{lib/tools → plugins/translation}/translate.js +81 -70
  770. package/dist-lib/plugins/walkie-talkie/crew.d.ts +27 -0
  771. package/dist-lib/plugins/walkie-talkie/crew.js +103 -0
  772. package/dist-lib/plugins/walkie-talkie/index.d.ts +127 -0
  773. package/dist-lib/plugins/walkie-talkie/index.js +348 -0
  774. package/dist-lib/plugins/walkie-talkie/wire.d.ts +72 -0
  775. package/dist-lib/plugins/walkie-talkie/wire.js +137 -0
  776. package/dist-lib/plugins/weather/geocode.d.ts +25 -0
  777. package/dist-lib/plugins/weather/geocode.js +102 -0
  778. package/dist-lib/plugins/weather/index.d.ts +15 -0
  779. package/dist-lib/plugins/weather/index.js +17 -0
  780. package/dist-lib/plugins/weather/lookup.d.ts +6 -0
  781. package/dist-lib/plugins/weather/lookup.js +170 -0
  782. package/dist-lib/{lib/tools/weather-lookup → plugins/weather}/place.js +5 -1
  783. package/dist-lib/plugins/web-search/engine-registry.d.ts +44 -0
  784. package/dist-lib/plugins/web-search/engine-registry.js +17 -0
  785. package/dist-lib/{lib → plugins}/web-search/engines/aol.d.ts +1 -0
  786. package/dist-lib/{lib → plugins}/web-search/engines/aol.js +5 -3
  787. package/dist-lib/{lib → plugins}/web-search/engines/bing.d.ts +1 -0
  788. package/dist-lib/{lib → plugins}/web-search/engines/bing.js +11 -5
  789. package/dist-lib/{lib → plugins}/web-search/engines/brave.d.ts +1 -0
  790. package/dist-lib/{lib → plugins}/web-search/engines/brave.js +5 -3
  791. package/dist-lib/{lib → plugins}/web-search/engines/duckduckgo.d.ts +1 -0
  792. package/dist-lib/{lib → plugins}/web-search/engines/duckduckgo.js +5 -2
  793. package/dist-lib/{lib → plugins}/web-search/engines/google.d.ts +1 -0
  794. package/dist-lib/{lib → plugins}/web-search/engines/google.js +8 -5
  795. package/dist-lib/{lib → plugins}/web-search/engines/wikipedia.d.ts +1 -0
  796. package/dist-lib/{lib → plugins}/web-search/engines/wikipedia.js +5 -3
  797. package/dist-lib/{lib → plugins}/web-search/engines/yahoo.d.ts +1 -0
  798. package/dist-lib/{lib → plugins}/web-search/engines/yahoo.js +5 -3
  799. package/dist-lib/{lib → plugins}/web-search/fetch-html.d.ts +5 -5
  800. package/dist-lib/{lib → plugins}/web-search/fetch-html.js +13 -16
  801. package/dist-lib/plugins/web-search/index.d.ts +18 -0
  802. package/dist-lib/plugins/web-search/index.js +33 -0
  803. package/dist-lib/{lib → plugins}/web-search/orchestrator.d.ts +3 -1
  804. package/dist-lib/{lib → plugins}/web-search/orchestrator.js +5 -5
  805. package/dist-lib/plugins/web-search/tool.d.ts +3 -0
  806. package/dist-lib/{lib/tools/web-search.js → plugins/web-search/tool.js} +19 -14
  807. package/dist-lib/plugins/web-search/types.js +1 -0
  808. package/dist-lib/schema/generate.js +5 -2
  809. package/dist-lib/schema/harness.js +214 -10
  810. package/dist-lib/spec/bind.js +29 -4
  811. package/dist-lib/spec/calls.js +7 -0
  812. package/dist-lib/spec/hrpc/hrpc.json +91 -0
  813. package/dist-lib/spec/hrpc/index.js +87 -3
  814. package/dist-lib/spec/hrpc/messages.js +796 -55
  815. package/dist-lib/spec/hyperschema/index.js +796 -55
  816. package/dist-lib/spec/hyperschema/schema.json +601 -17
  817. package/dist-lib/spec/hyperschema/types.d.ts +137 -4
  818. package/package.json +441 -498
  819. package/patches/pyodide@314.0.2.patch +37 -8
  820. package/scripts/addon-externals.cjs +391 -0
  821. package/scripts/addon-externals.d.ts +30 -0
  822. package/wheels/manifest.json +1 -160
  823. package/worker/harness-sidecar.mjs +51 -166
  824. package/dist-lib/lib/capabilities/completion-engine/actors/inspect-preload.d.ts +0 -3
  825. package/dist-lib/lib/capabilities/completion-engine/actors/inspect-preload.js +0 -75
  826. package/dist-lib/lib/capabilities/completion-engine/actors/preload-failure.d.ts +0 -9
  827. package/dist-lib/lib/capabilities/completion-engine/actors/preload-failure.js +0 -11
  828. package/dist-lib/lib/capabilities/completion-engine/actors/preloading.d.ts +0 -3
  829. package/dist-lib/lib/capabilities/completion-engine/actors/preloading.js +0 -114
  830. package/dist-lib/lib/capabilities/completion-loop/index.d.ts +0 -80
  831. package/dist-lib/lib/capabilities/completion-loop/index.js +0 -158
  832. package/dist-lib/lib/capabilities/completion-loop/metrics.d.ts +0 -5
  833. package/dist-lib/lib/capabilities/completion-loop/metrics.js +0 -29
  834. package/dist-lib/lib/capabilities/completion-loop/round.d.ts +0 -33
  835. package/dist-lib/lib/capabilities/completion-loop/round.js +0 -353
  836. package/dist-lib/lib/capabilities/completion-loop/tool-execution.d.ts +0 -60
  837. package/dist-lib/lib/capabilities/completion-loop/turns.d.ts +0 -23
  838. package/dist-lib/lib/capabilities/completion-loop/turns.js +0 -112
  839. package/dist-lib/lib/capabilities/completion-runtime.d.ts +0 -46
  840. package/dist-lib/lib/capabilities/completion-runtime.js +0 -74
  841. package/dist-lib/lib/capabilities/completion.d.ts +0 -18
  842. package/dist-lib/lib/capabilities/completion.js +0 -22
  843. package/dist-lib/lib/capabilities/voice.js +0 -199
  844. package/dist-lib/lib/helpers/recovery-required.d.ts +0 -1
  845. package/dist-lib/lib/helpers/recovery-required.js +0 -1
  846. package/dist-lib/lib/hooks/built-in/index.d.ts +0 -4
  847. package/dist-lib/lib/hooks/built-in/index.js +0 -4
  848. package/dist-lib/lib/hooks/pipeline.d.ts +0 -24
  849. package/dist-lib/lib/hooks/pipeline.js +0 -74
  850. package/dist-lib/lib/hooks/registry.d.ts +0 -2
  851. package/dist-lib/lib/hooks/registry.js +0 -7
  852. package/dist-lib/lib/hooks/types.d.ts +0 -69
  853. package/dist-lib/lib/machine/completion/actions/skills.d.ts +0 -9
  854. package/dist-lib/lib/machine/completion/actions/skills.js +0 -83
  855. package/dist-lib/lib/machine/engine.d.ts +0 -93
  856. package/dist-lib/lib/machine/guards.d.ts +0 -2
  857. package/dist-lib/lib/machine/guards.js +0 -6
  858. package/dist-lib/lib/office/pptx.d.ts +0 -1
  859. package/dist-lib/lib/office/pptx.js +0 -26
  860. package/dist-lib/lib/office/python.d.ts +0 -8
  861. package/dist-lib/lib/office/python.js +0 -32
  862. package/dist-lib/lib/office/xlsx.d.ts +0 -1
  863. package/dist-lib/lib/office/xlsx.js +0 -26
  864. package/dist-lib/lib/run-log-inspect.d.ts +0 -25
  865. package/dist-lib/lib/run-log-protocol.d.ts +0 -2
  866. package/dist-lib/lib/run-log-protocol.js +0 -1
  867. package/dist-lib/lib/tool-call-display.d.ts +0 -1
  868. package/dist-lib/lib/tools/create-documents.d.ts +0 -3
  869. package/dist-lib/lib/tools/create-documents.js +0 -95
  870. package/dist-lib/lib/tools/edit-documents.d.ts +0 -3
  871. package/dist-lib/lib/tools/edit-documents.js +0 -132
  872. package/dist-lib/lib/tools/exec/adapters/adapter.d.ts +0 -31
  873. package/dist-lib/lib/tools/exec/adapters/python/create-effect.d.ts +0 -7
  874. package/dist-lib/lib/tools/exec/adapters/python/create-effect.js +0 -318
  875. package/dist-lib/lib/tools/exec/adapters/python/python-adapter.d.ts +0 -89
  876. package/dist-lib/lib/tools/exec/adapters/python/python-adapter.js +0 -1371
  877. package/dist-lib/lib/tools/exec/adapters/python/worker/entry.js +0 -3
  878. package/dist-lib/lib/tools/exec/obsidian/route.d.ts +0 -17
  879. package/dist-lib/lib/tools/exec/obsidian/route.js +0 -91
  880. package/dist-lib/lib/tools/exec/shell-argv.d.ts +0 -2
  881. package/dist-lib/lib/tools/exec/shell-argv.js +0 -61
  882. package/dist-lib/lib/tools/file-glob.d.ts +0 -14
  883. package/dist-lib/lib/tools/file-glob.js +0 -117
  884. package/dist-lib/lib/tools/grep.d.ts +0 -5
  885. package/dist-lib/lib/tools/grep.js +0 -183
  886. package/dist-lib/lib/tools/mcp-call.d.ts +0 -14
  887. package/dist-lib/lib/tools/rag-search.d.ts +0 -2
  888. package/dist-lib/lib/tools/rag-search.js +0 -105
  889. package/dist-lib/lib/tools/read-files.d.ts +0 -5
  890. package/dist-lib/lib/tools/read-files.js +0 -156
  891. package/dist-lib/lib/tools/weather-lookup.d.ts +0 -8
  892. package/dist-lib/lib/tools/weather-lookup.js +0 -122
  893. package/dist-lib/lib/tools/web-search.d.ts +0 -6
  894. package/dist-lib/lib/web-search/engine-registry.d.ts +0 -7
  895. package/dist-lib/lib/web-search/engine-registry.js +0 -17
  896. package/patches/@qvac%2Finference@0.20.0.patch +0 -67
  897. package/patches/bare-stow@0.1.5.patch +0 -68
  898. package/patches/hypercore-blob-server@1.15.0.patch +0 -15
  899. package/wheels/cffi-2.0.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl +0 -0
  900. package/wheels/cryptography-47.0.0-cp314-abi3-pyemscripten_2026_0_wasm32.whl +0 -0
  901. package/wheels/defusedxml-0.7.1-py2.py3-none-any.whl +0 -0
  902. package/wheels/et_xmlfile-2.0.0-py3-none-any.whl +0 -0
  903. package/wheels/fonttools-4.62.1-py3-none-any.whl +0 -0
  904. package/wheels/fpdf2-2.8.8-py3-none-any.whl +0 -0
  905. package/wheels/lxml-6.0.2-cp314-cp314-pyemscripten_2026_0_wasm32.whl +0 -0
  906. package/wheels/openpyxl-3.1.5-py2.py3-none-any.whl +0 -0
  907. package/wheels/pillow-12.2.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl +0 -0
  908. package/wheels/pycparser-3.0-py3-none-any.whl +0 -0
  909. package/wheels/pypdf-6.15.0-py3-none-any.whl +0 -0
  910. package/wheels/python_docx-1.2.0-py3-none-any.whl +0 -0
  911. package/wheels/python_pptx-1.0.2-py3-none-any.whl +0 -0
  912. package/wheels/six-1.17.0-py2.py3-none-any.whl +0 -0
  913. package/wheels/typing_extensions-4.15.0-py3-none-any.whl +0 -0
  914. package/wheels/xlsxwriter-3.2.9-py3-none-any.whl +0 -0
  915. /package/dist-lib/lib/{tools/skills → agent}/tool-grants.d.ts +0 -0
  916. /package/dist-lib/lib/{tools/skills → agent}/tool-grants.js +0 -0
  917. /package/dist-lib/lib/capabilities/{types.js → completion-engine/prepare-step.js} +0 -0
  918. /package/dist-lib/lib/{hooks/types.js → capabilities/completion-engine/stages.js} +0 -0
  919. /package/dist-lib/lib/{tool-call-display.js → contract/agent.js} +0 -0
  920. /package/dist-lib/lib/{tools/exec/adapters/adapter.js → contract/completion.js} +0 -0
  921. /package/dist-lib/lib/{tools/exec/adapters/python/worker/entry.d.ts → contract/drive.js} +0 -0
  922. /package/dist-lib/lib/{tools/exec/adapters/python/worker/interrupt-deadline.d.ts → contract/egress-proxy.js} +0 -0
  923. /package/dist-lib/lib/{web-search/types.js → contract/exec.js} +0 -0
  924. /package/dist-lib/lib/{capabilities/completion-engine → helpers}/abort-polyfill.d.ts +0 -0
  925. /package/dist-lib/lib/{capabilities/completion-engine → helpers}/abort-polyfill.js +0 -0
  926. /package/dist-lib/lib/{web-search → helpers}/html-helpers.d.ts +0 -0
  927. /package/dist-lib/lib/{web-search → helpers}/html-helpers.js +0 -0
  928. /package/dist-lib/lib/{tools → helpers}/model-args.d.ts +0 -0
  929. /package/dist-lib/lib/{tools → helpers}/model-args.js +0 -0
  930. /package/dist-lib/lib/{machine → helpers}/stable-stringify.d.ts +0 -0
  931. /package/dist-lib/lib/{web-search → helpers}/user-agents.d.ts +0 -0
  932. /package/dist-lib/lib/{web-search → helpers}/user-agents.js +0 -0
  933. /package/dist-lib/lib/{harness-lifecycle.d.ts → lifecycle/machine.d.ts} +0 -0
  934. /package/dist-lib/lib/tools/{exec/adapters/python → attachments}/output-policy.js +0 -0
  935. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/command.d.ts +0 -0
  936. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/note-name.d.ts +0 -0
  937. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/output.d.ts +0 -0
  938. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/output.js +0 -0
  939. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/safe-path.d.ts +0 -0
  940. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-create.d.ts +0 -0
  941. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-fs.d.ts +0 -0
  942. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-paths.d.ts +0 -0
  943. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-read.d.ts +0 -0
  944. /package/dist-lib/{lib/tools/exec → plugins}/obsidian/vault-write.d.ts +0 -0
  945. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/deadline-state.d.ts +0 -0
  946. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/deadline-state.js +0 -0
  947. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/distributions.d.ts +0 -0
  948. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/distributions.js +0 -0
  949. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/interrupt-timer.d.ts +0 -0
  950. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/memfs.d.ts +0 -0
  951. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/module-distributions.d.ts +0 -0
  952. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/named-hosts.d.ts +0 -0
  953. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/named-hosts.js +0 -0
  954. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/net-shim.d.ts +0 -0
  955. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/net-shim.js +0 -0
  956. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/wheels.d.ts +0 -0
  957. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/active.d.ts +0 -0
  958. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/protocol.js +0 -0
  959. /package/dist-lib/{lib/tools/exec/adapters → plugins}/python/worker/serve.d.ts +0 -0
  960. /package/dist-lib/{lib/capabilities → plugins/speech}/speech-lexicon.d.ts +0 -0
  961. /package/dist-lib/{lib/capabilities → plugins/speech}/speech-lexicon.js +0 -0
  962. /package/dist-lib/{lib → plugins/speech}/wav-encode.d.ts +0 -0
  963. /package/dist-lib/{lib → plugins/speech}/wav-encode.js +0 -0
  964. /package/dist-lib/{lib/tools/weather-lookup → plugins/weather}/place.d.ts +0 -0
  965. /package/dist-lib/{lib/tools/weather-lookup → plugins/weather}/report.d.ts +0 -0
  966. /package/dist-lib/{lib/tools/weather-lookup → plugins/weather}/report.js +0 -0
  967. /package/dist-lib/{lib → plugins}/web-search/format-results.d.ts +0 -0
  968. /package/dist-lib/{lib → plugins}/web-search/format-results.js +0 -0
  969. /package/dist-lib/{lib → plugins}/web-search/merge-results.d.ts +0 -0
  970. /package/dist-lib/{lib → plugins}/web-search/merge-results.js +0 -0
  971. /package/dist-lib/{lib → plugins}/web-search/types.d.ts +0 -0
  972. /package/dist-lib/{lib → plugins}/web-search/url-helpers.d.ts +0 -0
  973. /package/dist-lib/{lib → plugins}/web-search/url-helpers.js +0 -0
  974. /package/dist-lib/{lib → plugins}/web-search/url-normalize.d.ts +0 -0
  975. /package/dist-lib/{lib → plugins}/web-search/url-normalize.js +0 -0
package/CHANGELOG.md CHANGED
@@ -6,183 +6,2170 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
  While the major version is `0`, a breaking change bumps the minor version.
8
8
 
9
+ Each entry ends with the issue or pull request that made it. The examples call
10
+ a `Harness` named `harness` (or `spawnHarness` for a sidecar), in the shape the
11
+ API had in that release; a breaking change shows the call before and after.
12
+
9
13
  ## [Unreleased]
10
14
 
15
+ 1.0 makes the harness a small core that plugins extend. Speech, translation,
16
+ image, music, weather, web search, Obsidian, Python and MCP are now plugins a
17
+ host composes as instances, and the harness builds `exec` from what they
18
+ declare. Runs gain handoffs, plans and goals, steering, deferred tools, a fold
19
+ for long chats and parallel decoding. [README.md](README.md) is the tour; every
20
+ breaking change is listed under Changed and Removed.
21
+
22
+ ### Added
23
+
24
+ - `isLoading` covers image and music models, and a reply waiting for room. An
25
+ image or music row reads `true` from the request, through any wait for a
26
+ download or for room, until the model is resident or the load fails, and the
27
+ `loading` and `ready` or `error` edges carry `catalogChanged` as a pooled
28
+ load's do. A reply's model, and the chat model a translation runs on, read
29
+ `true` from the request too, so the wait for room before the load shows: with
30
+ no memory cap that wait can run minutes while another reply holds the one
31
+ chat model. The request and the load each send `loading`. A plugin that loads
32
+ its own models counts them through `ModelHost.requests`. Translation pack,
33
+ speech, transcription and embedding rows still read `false`. (#649)
34
+ - The macOS and Linux sandboxes take `writable`: absolute folders every shell line may write on
35
+ top of the run's policy, for a toolchain cache outside the project such as Go's build cache.
36
+ The file tools never see them, they are made at setup if missing, and a denied root still wins.
37
+ `Policy.withWrites(policy, roots)` returns a compiled policy that may also write those roots.
38
+ - A call that fails three times in a row, such as a test command the model
39
+ keeps patching against, comes back with a note telling the model to step
40
+ back: re-read the output and the requirements, find what the failures share
41
+ and change approach. The note repeats every third failure and a success
42
+ clears the streak. `wording.toolFailing` replaces the text; `{count}` is the
43
+ streak length.
44
+ - `Tools.product` takes `files: false` to leave the file tools out, for a host
45
+ with no folder to share, such as a phone entry that composes its tools with
46
+ the mcp, web-search and weather plugins. `isDeviceSharedCredentialKey` from
47
+ `@qvac/harness/skill-state` names the first-party plugins' device-shared
48
+ credential keys for a client that has no skill readiness to read them from.
49
+ - `CompletionContext.modelRound` sends each `generating` and
50
+ `wrapping` model round to another device. It gets the request the local
51
+ round would send and streams `content` and `thinking` back through `emit`;
52
+ tools, the stop hook and `answering` stay on the run owner.
53
+ A run started with it pauses for it on resume. A paused or cancelled round,
54
+ local or remote, now ends at once even when the model sends nothing. See the
55
+ [decision record](docs/decisions/2026-10-19-a-remote-host-serves-the-model-round.md).
56
+ (#493)
57
+ - `ModelRoundIo.retake()` restarts a remote round when another host takes it:
58
+ the run emits `round-reset` for the round and the returned emitter carries
59
+ the new taker's chunks, while the earlier taker's late chunks are dropped.
60
+ The port resolves with the new taker's result. (#497)
61
+ - `harness.serveModelRound(request, io)` serves a model round on the model
62
+ host: it leases `request.modelId` and runs the same round a local
63
+ run does, with the context ladder and the forced-call fallback, and is
64
+ refused with `HARNESS_SUSPENDED` while suspended. Core sends it the
65
+ `ModelRoundRequest` whole. A remote round now answers an unclosed think from
66
+ the host's replay, and its request carries `unforced`. See the
67
+ [decision record](docs/decisions/2026-10-19-a-remote-host-serves-the-model-round.md).
68
+ (#541)
69
+ - A remote round crosses the wire on both sides. A `RemoteHarness` from
70
+ `spawnHarness`, `connectHarness` or `harnessChild` (the mobile worker) takes
71
+ `modelRound` and `roundCut` on the run owner, and serves
72
+ `serveModelRound(request, io)` on the model host, so neither device embeds a
73
+ second `Harness` beside its sidecar or worker. They ride the `completion`
74
+ stream as `model-round-*` and `round-cut` frames, and an abort crosses it as
75
+ the run's does. The `CAPABILITY_UNSUPPORTED` refusal from #542 is gone.
76
+ See the
77
+ [decision record](docs/decisions/2026-10-19-a-remote-host-serves-the-model-round.md).
78
+ (#542, #616)
79
+
80
+ ```js
81
+ const owner = spawnHarness(options)
82
+ owner.completion({ ...run, modelRound: (request, io) => host.serveModelRound(request, io) })
83
+ ```
84
+
85
+ - `ToolSets` names a round's tool set by hash, so a shared chat carries each
86
+ set's schemas once. A remote round's request now carries `toolSet`, the
87
+ `ToolSets.hash` of its `tools`, on every round that has tools. The run
88
+ owner writes the schemas only when its `ToolSets` cannot `resolve` the
89
+ hash, and a model host replays the chat into a `ToolSets` and resolves
90
+ each request's `toolSet` (#495).
91
+
92
+ ```js
93
+ const tools = toolSets.resolve(request.toolSet)
94
+ ```
95
+
96
+ - A turn's context is data the host can replay. A run reports what it added to
97
+ each user turn (its time, the knowledge it retrieved, a `promptSubmit` hook's
98
+ context) once, as a `context` event. A host stores it and sends it back as
99
+ that message's `context`, and the harness renders the turn byte for byte as
100
+ it was sent. With `replaysContext: true` such a run keeps its `cacheKey`. A
101
+ steer's or follow-up's `input` event now carries the words as typed (#494).
102
+
103
+ ```js
104
+ { role: 'user', content: 'How cold is it?', context: event.context }
105
+ ```
106
+
107
+ - The `HarnessLog` class is the log's API, through statics:
108
+ `HarnessLog.warn('unload failed')`, `HarnessLog.setSink(sink)`,
109
+ `HarnessLog.setLevel('warn')`. The root names `hlog`, `harnessLog`,
110
+ `setHarnessLog`, `setHarnessLogLevel` and `setHarnessLogSink` stay and
111
+ call the statics; `hlog` logs at `info`. (#532)
112
+ - `LanguageHint` (`@qvac/harness/plugins/language-hint`): a prompt that is not
113
+ in English reaches the model with its language and its English, translated on
114
+ device, so a small model can route and call tools from it. It needs
115
+ `TranslationPlugin`, which now provides the `translation` service (#407).
116
+
117
+ ```js
118
+ new Harness({ plugins: [new TranslationPlugin(), new LanguageHint()] })
119
+ ```
120
+
121
+ - An access policy: one optional `AccessPolicy` for files, network, Unix
122
+ sockets, exec, env and rules, with the presets `read-only`,
123
+ `workspace-write` and `full`. `HarnessOptions.policy` is the ceiling;
124
+ `AgentConfig.policy` (one `json` field on the wire) and
125
+ `CompletionContext.policy` (in-process only) only narrow it. The harness
126
+ compiles the three layers at run start; a grant outside the policy fails the
127
+ run before round 1. `files.write` bounds the write grants and grants
128
+ nothing itself. `Policy`, exported from `@qvac/harness`, narrows and
129
+ compiles one. (#388)
130
+ - Policy rules decide per call. A rule is
131
+ `{ decision, tool?, command?, paths?, hosts? }`: `command` is an argv
132
+ prefix matched against each simple command of a parsed shell line, `paths`
133
+ are globs and `hosts` are exact hosts or `*.example.com`. Any deny wins, a
134
+ line a rule cannot read asks, and a compound line is allowed only when
135
+ every part matches an `allow` rule. A tool with no rule for it is
136
+ unchanged. The built-in `PolicyRulesHook` evaluates them, appended after the
137
+ host's and the plugins' hooks of a run with rules; a tool exposes what it
138
+ matches through the new `ToolDefinition.command` and
139
+ `ToolDefinition.paths`. A malformed rule fails the run at start. (#390)
140
+
141
+ ```js
142
+ const policy = {
143
+ rules: [
144
+ { decision: 'allow', command: ['git', 'status'] },
145
+ { decision: 'deny', command: ['rm'] },
146
+ { decision: 'ask', tool: 'read_files', paths: ['/Users/u/.ssh/**'] }
147
+ ]
148
+ }
149
+ harness.completion({ model, messages, agent: { ...agent, policy } })
150
+ ```
151
+
152
+ - `network.mode: 'hosts'` runs. `web_fetch`, `http_request`, a plugin tool's
153
+ fetch (MCP included) and Python reach only the hosts in `network.hosts`, on
154
+ every redirect hop; delegate's external targets need `mode: 'on'`. The new
155
+ `EgressProxy` plugin (`@qvac/harness/plugins/egress-proxy`) gives
156
+ `SeatbeltSandbox` a loopback proxy per call, and the profile allows no other
157
+ remote socket, so `SeatbeltSandbox` holds `hosts` while it is loaded and
158
+ names it in the refusal otherwise. The host shell refuses `hosts`.
159
+ `Policy.allowsHost` is the one matcher (exact or `*.example.com`) for rules
160
+ and `network.hosts`, and host lists narrow by coverage. A plugin may now
161
+ `wants` a service it uses only when present. (#389)
162
+
163
+ ```js
164
+ const harness = new Harness({
165
+ exec: true,
166
+ policy: { network: { mode: 'hosts', hosts: ['pypi.org', '*.pythonhosted.org'] } },
167
+ plugins: [new SeatbeltSandbox(), new EgressProxy()]
168
+ })
169
+ ```
170
+
171
+ - Plugins. `HarnessOptions.plugins` takes `HarnessPlugin` instances that add
172
+ tools, hooks, services, `exec` languages, routes and a shell, and tools only
173
+ `invoke` reaches (`PluginSetup.capabilities`). Setup gets `ctx.services`,
174
+ `ctx.onDispose`, `ctx.deniedRoots` and, for a tool that declares `egress`,
175
+ `ctx.fetch`; it may `need` the core's `models` service (`ModelHost`) and
176
+ return `unload()` and `unloadIdle()`. A plugin tool is a write unless the
177
+ host grants it in `read`.
178
+ `@qvac/harness/plugins` exports `PluginRegistry`. Every plugin but
179
+ `code-mode`, `lsp` and `python` has a `qvac-plugin-<name>` manifest to pack
180
+ on its own (none published yet); the export keys the plugins import are
181
+ internals, not a stable API. See [Plugins](README.md#plugins), the
182
+ [plugin framework](lib/plugins/README.md) and
183
+ [a custom plugin](examples/custom-plugin/README.md). (#171, #187, #284, #296,
184
+ #299)
185
+ - Agents that hand off. `CompletionContext.agents` holds the agents a run may
186
+ hand to; `transfer_to_agent` emits a `transfer` event (`TransferEvent`) and
187
+ the run goes on as the next agent's, each hop a run of its own, at most three
188
+ transfers. `AgentConfig.model` runs an agent on its own model, and `input`
189
+ reaches whichever hop is running. See
190
+ [Agents that hand off](README.md#agents-that-hand-off) and
191
+ [examples/handoffs](examples/handoffs/README.md). (#233, #247, #318)
192
+ - External agents on the user's own login. `login: 'user'` on an
193
+ `ExternalAgents` target runs a CLI the user signed in to, with no API key;
194
+ `'isolated'` stays the default. See
195
+ [Hand the hard parts to Claude Code](README.md#hand-the-hard-parts-to-claude-code)
196
+ and [plugins/external-agents](plugins/external-agents/README.md). (#319,
197
+ #328)
198
+ - MCP servers. `McpPlugin` from `@qvac/harness/plugins/mcp` adds each server's
199
+ tools as `<server>__<tool>`, each asking for approval; a server that fails or
200
+ does not answer in 10 s adds none. `auth: { tokenCredentialKey }` sends a
201
+ credential to that server only, and `generic: true` adds `mcp_call` and the
202
+ skill catalog's mcp operations. See [plugins/mcp](plugins/mcp/README.md).
203
+ (#277)
204
+ - Deferred tools. A `ToolDefinition` with `defer: true` (and an optional
205
+ `group`) is listed by name in `tool_search` until the model loads it, so the
206
+ prompt prefix stays cached as the tool list grows; `McpServerConfig.defer`
207
+ defers a whole server. See
208
+ [Large tool sets, on demand](README.md#large-tool-sets-on-demand). (#311)
209
+ - Coding on macOS. `CodingPlugin` adds `shell` (keeps cwd and exports between
210
+ calls) and `shell_jobs` (background jobs) in a `coding` toolset; file
211
+ writes come from the files toolset's `write_file`. They run in a `sandbox` service provider (`SandboxService`).
212
+ `SeatbeltSandbox` from `@qvac/harness/plugins/sandbox-macos` provides it, and
213
+ runs `exec`'s shell under `sandbox-exec` with a `read-only` or
214
+ `workspace-write` preset. It is not isolated, so every coding call asks. See
215
+ [Sandboxed code](README.md#sandboxed-code),
216
+ [plugins/coding](plugins/coding/README.md) and
217
+ [plugins/sandbox-macos](plugins/sandbox-macos/README.md). (#179, #254, #279,
218
+ #296, #320, #329)
219
+ - Exec confined on Windows. `AppContainerSandbox` runs `exec`'s shell lines in
220
+ an AppContainer through a small C helper, under the run's access policy:
221
+ writes only to the write roots, reads only what is granted, and the network
222
+ on or off. Loopback stays closed, and the helper's grants stay on the
223
+ granted folders. See [plugins/sandbox-windows](plugins/sandbox-windows/README.md).
224
+ (#386)
225
+ - Exec confined on Linux. `LinuxSandbox` runs `exec`'s shell lines under
226
+ bubblewrap, with mounts built from the run's access policy: writes only to
227
+ the write roots, reads only what a `files.read` list names, denied roots
228
+ masked, and with the network off a seccomp filter that closes every socket
229
+ connect. It provides the `sandbox` service `CodingPlugin` runs in. See
230
+ [plugins/sandbox-linux](plugins/sandbox-linux/README.md). (#385)
231
+ - More places to run code. `QuickJs` runs `exec` with `language: "javascript"`
232
+ in QuickJS WASM, with no files or network. `CodeMode` adds `run_code`, a
233
+ script that calls the run's other tools, for `mid` models and up
234
+ (`ToolDefinition.callsTools`, `minCapabilityProfile`). `VmShell` runs exec's
235
+ shell in a barevisor VM, and `Python` adds Pyodide. See
236
+ [plugins/quickjs](plugins/quickjs/README.md),
237
+ [plugins/code-mode](plugins/code-mode/README.md),
238
+ [plugins/sandbox-vm](plugins/sandbox-vm/README.md) and
239
+ [plugins/python](plugins/python/README.md). (#174, #178, #232, #237)
240
+ - Language servers. `LspPlugin` adds a read tool, `lsp` (`definition`,
241
+ `references`, `hover`, `symbols`, `diagnostics`), over the servers a host
242
+ configures. See [plugins/lsp](plugins/lsp/README.md). (#202)
243
+ - Knowledge. The `Knowledge` plugin keeps one index the host feeds through
244
+ `knowledgeUpsert`, `knowledgeRemove`, `knowledgeSearch` and
245
+ `knowledgeStatus`; `CompletionContext.knowledge = { scopes }` injects the hits
246
+ into the last user turn, and `tool: true` adds `knowledge_search`. See
247
+ [plugins/knowledge](plugins/knowledge/README.md). (#197)
248
+ - MOSS text-to-speech. `new Speech({ tts: 'moss' })` streams, clones a voice
249
+ from a 24 kHz `voice` wav, or speaks a `dialogue` of up to five speakers.
250
+ `Parakeet-TDT-1.1B-Q8_0` is a curated English-only transcription model; the
251
+ 0.6B stays the default. A plugin that provides `speech` implements
252
+ `SpeechService.defaultModel(profile)`, which the core calls to pick the voice
253
+ model for a `speak` that names none. See
254
+ [plugins/speech](plugins/speech/README.md). (#312, #315)
255
+ - A `base` music choice runs the undistilled ACE-Step 1.5 base DiT, set as
256
+ `modelChoice` in the `generate_music` tool-config or `musicModel` when
257
+ spawning. It needs a GPU and is the slowest. See
258
+ [plugins/music](plugins/music/README.md). (#315)
259
+ - Plugin options for a spawned harness. `spawnHarness` and `harnessChild` take
260
+ `pluginOptions: { speech?, mcp?: { servers? } }` (`HarnessPluginOptions`), so
261
+ a sidecar host reaches MOSS and deferred MCP tools. See the
262
+ [decision record](docs/decisions/2026-10-07-a-spawned-harness-takes-plugin-options-in-one-slot.md).
263
+ (#322, #325)
264
+ - A spawned harness loads a third-party plugin. `@qvac/harness/sidecar`
265
+ exports `HarnessSidecar`, the sidecar's boot, and
266
+ `@qvac/harness/worker/harness-sidecar.mjs` exports `firstPartyPlugins`. A
267
+ host stows its own entry with both and its plugin, whose options travel
268
+ under its name in `pluginOptions`. See
269
+ [a custom plugin](examples/custom-plugin/README.md#a-spawned-harness). (#359)
270
+
271
+ ```js
272
+ export default (ipc, ready) =>
273
+ HarnessSidecar.start(ipc, ready, (ctx) => {
274
+ const notes = ctx.pluginOptions.notes
275
+ return [...firstPartyPlugins(ctx), ...(notes ? [new Notes(notes)] : [])]
276
+ })
277
+ ```
278
+
279
+ - Hooks reach further. New phases `promptSubmit`, `toolFailure`, `stop` and
280
+ `preFold`; `HarnessHook.matcher` and `timeoutMs`; results
281
+ `{ permission: 'allow' | 'deny' | 'ask' }`, `{ context }` and `{ halt }`
282
+ (a `HookHalt` failure). `CommandHooks` runs the command hooks of a Claude
283
+ Code `settings.json` as they are. See
284
+ [plugins/command-hooks](plugins/command-hooks/README.md). (#260, #261)
285
+ - Approval quote. `ToolDefinition.quote(args, ctx)` returns the confirmation a
286
+ person reads before an approvable call, such as its cost, and `ApproveFn`
287
+ receives it as `quote`. (#183)
288
+ - Plans and goals. The agent knob `plan` offers `update_plan`, a checklist kept
289
+ in the run; `planMode` refuses writes until a submitted plan is approved; and
290
+ `goal: { objective, rounds?, ms?, tokens? }` keeps a run going until every
291
+ step is done, emitting `goal` events whose `text` the host stores as a turn.
292
+ See [Plans and goals](README.md#plans-and-goals). (#234, #240)
293
+ - `RunGoal.checksProve`. A host whose `checks` prove the goal sets it, and the
294
+ goal is met once the plan is done and those checks pass, without asking the
295
+ model for a check of its own. Without `checks` it has no effect. (#599)
296
+ - Steering. `CompletionContext.input` sends `steer` and `follow-up` turns to a
297
+ running run, single or chained; each delivery emits an `input` event. See
298
+ [Steer a run while it works](README.md#steer-a-run-while-it-works). (#186,
299
+ #247)
300
+ - Fold. When the context runs short, older turns become one summary turn, and
301
+ `fold` `{ phase: 'done', summary, throughId, foldedTurns }` tells the host
302
+ what to store. It needs the new `ChatMessage.id`; a history without ids does
303
+ not fold; a host with a fold of its own, as qvac-core, turns it off. See the
304
+ [decision record](docs/decisions/2026-10-03-the-harness-decides-and-runs-the-fold.md).
305
+ (#241) A run also folds its own earlier rounds after the last user turn,
306
+ keeping the task, the latest plan, every `tool_search` and skill load and
307
+ the last two rounds. A round cut off at `length` forces a fold before the
308
+ next send, the wrap-up included. A fold of the run's own rounds emits no
309
+ `fold` event, and each one costs one cold prime of the folded history. The
310
+ wrap-up now carries `args.messages`, so in a multi-turn chat it can also fold
311
+ the host's turns (`foldChat`) and emit a host `fold` event (`start`, `done`),
312
+ at this new point in the run. See the
313
+ [decision record](docs/decisions/2026-10-13-a-run-folds-its-own-rounds.md).
314
+ (#446, #452)
315
+ - Exec output over `maxOutputChars` spills to a run-scoped file, and the marker
316
+ names it for `read_files`, when the run has `read_files`. `deniedRootsFor`
317
+ returns two roots, the storage root and the spill root. (#238)
318
+ - Run log. `RunLog.watch()` follows a run live as views or an inspector page,
319
+ and `RunLog.requests(core)` rebuilds every request the model saw. See
320
+ [examples/run-log](examples/run-log/README.md) and
321
+ [Resuming a completion](docs/resuming.md). (#235, #236)
322
+ - `bun run example run-log` is one CLI that opens a run from its run log file
323
+ or from the key of a run someone shares over Hyperswarm: `report` opens the
324
+ run report in the browser, `inspect` prints the raw log (`--html` for a
325
+ page, `--follow` to watch it grow), and `share` serves a run and prints its
326
+ key. It replaces `examples/run-log/report.ts`, `view.ts`, `live.ts` and
327
+ `inspect.ts`. (#408)
328
+ - `bun run example --report <file>` writes a run report page for each run an
329
+ example makes (its run log when the file ends in `.json`). `bun run example
330
+ --share` prints a key first, then streams every run to it as it goes, so
331
+ `run-log report <key>` or `run-log inspect <key> --follow` open it live.
332
+ `run-log report --live` serves a live run report on localhost that updates
333
+ in place, follows the newest step and run, and has a tab per run
334
+ (`RunReport.live`, `RunReport.parts`). Each example parses its own args, and
335
+ `bun run example <name> --help` lists them.
336
+ - Parallel. `ToolDefinition.concurrent` runs up to four opted-in reads of a
337
+ round together (`read_files`, `grep` and `file_glob` opt in). `slots` (or
338
+ `llm.slots` when spawned) lets one loaded model decode several completions at
339
+ once. See [Parallel](README.md#parallel) and
340
+ [examples/parallel](examples/parallel/README.md). (#193, #316, #333)
341
+ - `maxToolRounds` (default 10, in process and on the wire) sets a run's round
342
+ limit. `wording` (`toolContinuation`, `toolDenied`, `toolCutOff`,
343
+ `toolContextBoundary`, `toolRepeated`, `toolUnchanged`, `fileDelivered`,
344
+ `goalContinuation`) sets its model-facing text, in process only. A run that
345
+ wraps up after a delivered file ends with the `delivered` outcome. (#159,
346
+ #240, #317, #450, #453, #463)
347
+ - Speed. `metrics` adds `rounds[]`, `tools[]`, `modelMs` and `toolMs`. See
348
+ [Speed stats](docs/speed-stats.md). (#195) `metrics.outcome` names how the
349
+ run ended (its `RunOutcome`), and `rounds[].overflows` counts the prefills
350
+ the context overflowed before a round landed. (#442, #444)
351
+ `rounds[].contextBoundary` marks a round cut at the context window (#450),
352
+ and `rounds[].reasoningDeltas` counts its reasoning deltas, a cancelled round
353
+ included (#461, #484). A cancelled round carries `rawContentChars` and
354
+ `kind` (`streaming` or `wrap-up`). (#476, #480)
355
+ - `CompletionContext.budgetMs` sets one run's wall-clock budget, in process
356
+ only. A goal's `ms` wins, and a resume keeps the budget the run started
357
+ with. See the
358
+ [decision record](docs/decisions/2026-10-13-run-time-budget.md). (#442)
359
+ - `CompletionContext.roundCut` hands the host a `cut(note)`
360
+ that stops the tool round streaming now and keeps the run. The round's whole
361
+ calls run, a call it may have truncated is answered with
362
+ `wording.toolRoundCut`, and the note is the next user turn, acked by an
363
+ `input` event. The second cut in a row ends the run as `mute`. The bench
364
+ bridge cuts a round at its deadline instead of ending the run. See the
365
+ [decision record](docs/decisions/2026-10-15-a-host-cuts-a-round-and-the-run-goes-on.md).
366
+ (#462)
367
+ - `CompletionSdkResult.toolCallStream`, optional, streams a round's calls
368
+ before `final`. With it, a round that streams one call 3 times or 32 calls
369
+ is cancelled mid-stream. (#453)
370
+ - Model fit. `LoadedModel.fit` reports the engine's fit verdict, plan and bytes
371
+ in `diagnostics().models` and `model` events, and `list()` rows of curated
372
+ chat models not loaded carry `fit`, `fitBasis` and `fitEvidence`. A curated
373
+ chat model with no set context steps down to 32768, 16384 or 8192 when its
374
+ tier would not fit, and an embedding load that would not fit unloads idle
375
+ chat models. `llmLoad` passes llama.cpp load knobs. See
376
+ [Know how fast it is](README.md#know-how-fast-it-is) and
377
+ [examples/model-residency](examples/model-residency/README.md). (#194, #196,
378
+ #314)
379
+ - Tool replay. An assistant message may carry `toolCalls` and a `tool` message
380
+ `toolCallId` and `name`, so a follow-up is answered from an earlier turn's
381
+ results. Opt in; delete each chat's KV cache when it switches. See the
382
+ [decision record](docs/decisions/2026-10-02-a-host-replays-tool-turns-the-harness-renders-them.md).
383
+ (#169)
384
+ - Host building blocks. `Tools` from `@qvac/harness/tools` (`product`,
385
+ `deniedRoots`, `bundledSkillsDir`, `stageInputs`); `credentialSlots` from
386
+ `@qvac/harness/skill-manifest`; `@qvac/harness/addon-externals` with
387
+ `deferredAddonPackages`; and an `outbound` option on `CompletionEngine`. See
388
+ [Product tools and skills](docs/hosting.md#product-tools-and-skills) and
389
+ [Install](docs/hosting.md#install). (#166, #228, #273, #283, #317)
390
+ - `grep` runs on the host that holds a hyperdrive. A `grantedDrives` entry with
391
+ `search: true` gets a `search` op from `driveOp` and returns its hits inline,
392
+ so file bytes never cross to the harness. The host answers it with
393
+ `DriveSearch.answer(drive, request)`, where `drive` is the `Drive` its `list`
394
+ op already serves: a shallow list yields each subdirectory as
395
+ `{ key, dir: true }` and honours `skip`. Without the flag, `grep`
396
+ streams the drive as before; a failed search is the tool's error, never a
397
+ fallback. The host searches whole files, so results match streaming for
398
+ files under 8 MB; a line over 1 MB is searched in its first 1 MB on either
399
+ side. The regex runs in the host's process: a host that serves
400
+ untrusted regex calls the helper from a worker. On a sparse replica the
401
+ host still pulls the blocks from its peers. (#393)
402
+
403
+ ```js
404
+ import { DriveSearch } from '@qvac/harness/lib/tools/fs/search.ts'
405
+
406
+ harness.completion({
407
+ grantedDrives: [{ key, writable: false, search: true }],
408
+ driveOp: (request) =>
409
+ request.op === 'search' ? DriveSearch.answer(drive, request) : other(request)
410
+ })
411
+ ```
412
+
413
+ - A Node lane: `bun run test:node` runs the brittle suite under Node, and CI
414
+ runs it beside the Bare lane. (#535)
415
+ - The types a host needs to serve a granted drive and to manage skills are
416
+ exported from `@qvac/harness`: `GrantedDrive`, `DriveOpFn`, `DriveRequest`
417
+ and each request it unions, `DriveResponse`, `DriveEntry`, `DriveDir` and
418
+ `SearchHit`, and `ManagedSkill`, `SkillFileContent`, `CopyBaseResult` and
419
+ `DeleteOverlayResult`. The contract already takes or returns each of them,
420
+ but a host could only reach them through `./lib/tools/*`, which 1.0 no
421
+ longer exports. (#591)
422
+
423
+ ```ts
424
+ import type { DriveOpFn, GrantedDrive, ManagedSkill } from '@qvac/harness'
425
+ ```
426
+
427
+ - `grep` takes `output` (`content`, the default; `files`, the matching paths;
428
+ `count`, per file), and `limit` and `offset` to page past a cut-off answer.
429
+ A plain-text pattern can name alternatives as `a|b`, and a miss on a pattern
430
+ that looks like a regular expression says to set `regex: true`. (#628)
431
+ - `edit_file` answers a miss with the file's closest lines, numbered as
432
+ `read_file` shows them, so the next try can copy them; when the new text is
433
+ already in the file it says the edit looks done. Old text copied with
434
+ `read_file`'s line numbers matches without them. (#628)
435
+ - The coding plugin runs a shell line that only reads, such as `rg`, `grep`,
436
+ `sed -n` or `cat` with files inside the shared folder, without asking. Each
437
+ reader allows only flags known to shape output, and a run whose shell may
438
+ have moved (an earlier line other than a reader, or a `cwd`) asks again.
439
+ (#628)
440
+ - `generationParams.reasoning_rounds: 'plan'` thinks only where a plan is made
441
+ or remade: after the user speaks and after a round whose call failed. (#628)
442
+ - A host that runs the sidecar names a module in `QVAC_HARNESS_HOST_MODULE`,
443
+ an absolute path, whose `configureHarness(harness, log)` the sidecar calls
444
+ after the user plugins load; a module that fails stops the sidecar.
445
+ `QVAC_SDK_OPTIONS` names a JSON file of SDK options the sidecar adds to the
446
+ SDK config it writes. The `drive`, `remote`, `remote-protocol` and five skill
447
+ leaves under `@qvac/harness/lib/tools/` are exported for such a host. See the
448
+ [decision record](docs/decisions/2026-10-25-a-host-shapes-the-harness-through-a-named-module.md).
449
+ (#629)
450
+ - `ToolDefinition.deliversMany`, for a tool one request may call several times
451
+ for several files. A file it delivers gets the delivered-file nudge but does
452
+ not end the run one tool round later, so "draw a cat, a dog and a bird" made
453
+ one image per round still gets all three. `generate_image` and `edit_image`
454
+ set it. (#610)
455
+ - A skill whose oauth setup route has a `verify` probe and a `credentialKey`
456
+ gets that probe as its `requires.credentialChecks` entry for the key, when
457
+ the skill declares none, so a dead token reads as rejected instead of
458
+ needs-setup. A hand-written check still wins. A credential check may now
459
+ carry a `body`. A `verify` rule keyed on a response field (Spotify Premium)
460
+ still marks the token rejected in the health probe only on 401 or 403.
461
+
462
+ ### Changed
463
+
464
+ - A host reaches the drive protocol it serves, the skill catalog and the
465
+ user-plugin import map through named entries: `@qvac/harness/drive`
466
+ (`DriveRequest`, `DriveResponse`, `DriveEntry`, `GrantedDrive`, `DriveOpFn`,
467
+ `MAX_DRIVE_BYTES`), `@qvac/harness/skill-catalog` (`loadSkillCatalog`,
468
+ `availableSkills`) and `@qvac/harness/user-plugins` (`sharedImports`), and
469
+ `@qvac/harness/skill-manifest` adds `readSkillSetup`. `test/entry-weight.ts`
470
+ holds every named entry to a ceiling on the files importing it loads, so a
471
+ host that imports a constant never parses the engine. (#636)
472
+
473
+ - Every host that runs python, on Bare or Node, recopies
474
+ `patches/pyodide@314.0.2.patch` into its `patchedDependencies`. Guest Python
475
+ sees: `ctypes` calls to `emscripten_run_script*` do nothing and return 0, a
476
+ side module with `EM_JS` or `EM_ASM` is refused with `OSError`, `pyodide_js`
477
+ holds only the allowlisted members, and `loadPackage` takes lockfile names
478
+ only. A worker that boots an unpatched pyodide logs one line per process.
479
+ (#567, #586)
480
+ - **Breaking:** a plugin's dependencies are optional peer dependencies of
481
+ `@qvac/harness`, so installing the harness no longer installs any plugin's
482
+ native addons or libraries. A host installs the peers of the plugins it
483
+ imports; importing a plugin without them throws one error that names the
484
+ plugin and the packages. The shipped sidecar entry composes speech, image,
485
+ music, translation and python, so a host that spawns it installs their
486
+ peers; a host that wants fewer writes its own entry. See
487
+ [Plugin dependencies](docs/hosting.md#plugin-dependencies). (#626)
488
+
489
+ | Plugin | Peers |
490
+ | --------------- | ---------------------------------------------------------------------- |
491
+ | `speech` | `@qvac/asr-ggml`, `@qvac/tts-ggml`, `bare-ffmpeg` |
492
+ | `image` | `@qvac/diffusion-cpp`, `bare-image-resample`, `bare-media` |
493
+ | `music` | `@qvac/audiogen-ggml` |
494
+ | `translation` | `@qvac/translation-nmtcpp` |
495
+ | `python` | `pyodide` |
496
+ | `quickjs` | `@jitl/quickjs-singlefile-mjs-release-sync`, `quickjs-emscripten-core` |
497
+ | `egress-proxy` | `bare-net` |
498
+ | `run-report` | `elkjs` |
499
+ | `walkie-talkie` | `hyperswarm`, `hypercore-crypto` |
500
+ | `sandbox-vm` | `barevisor` |
501
+
502
+ ```sh
503
+ # before: the harness installed every plugin's dependencies
504
+ npm i @qvac/harness
505
+ # after: a host spawning the shipped sidecar entry
506
+ npm i @qvac/harness @qvac/asr-ggml @qvac/tts-ggml bare-ffmpeg @qvac/diffusion-cpp \
507
+ bare-image-resample bare-media @qvac/audiogen-ggml @qvac/translation-nmtcpp pyodide
508
+ ```
509
+
510
+ - **Breaking:** `@qvac/sdk` and the model addons are optional peer
511
+ dependencies of `@qvac/harness`, so installing the harness installs no model
512
+ engine. Each belongs to the capability that loads it: on Bare, completion
513
+ needs `@qvac/llm-llamacpp` and `@qvac/langdetect-text`, embeddings and the
514
+ `knowledge` plugin need `@qvac/embed-llamacpp`; on Node every capability
515
+ needs `@qvac/sdk`, which brings its own addons. A missing one throws where
516
+ the capability loads, naming the capability and the packages; the harness
517
+ entry imports without any of them. Speech and music add `@qvac/decoder-audio`
518
+ to their peers, and translation and `language-hint` add
519
+ `@qvac/langdetect-text`. The core and the plugins import the engine's
520
+ plugins and model catalog from `@qvac/inference`, a dependency, not through
521
+ `@qvac/sdk`. See [Model dependencies](docs/hosting.md#model-dependencies).
522
+ (#630)
523
+
524
+ ```sh
525
+ # a desktop host on Node
526
+ npm i @qvac/harness @qvac/sdk @qvac/llm-llamacpp @qvac/embed-llamacpp @qvac/langdetect-text
527
+ # a phone app running completion on a Bare thread
528
+ npm i @qvac/harness @qvac/llm-llamacpp @qvac/langdetect-text
529
+ ```
530
+
531
+ - **Breaking:** `harness.detectLanguage` returns a promise, since it loads the
532
+ detector on first use. (#630)
533
+
534
+ ```js
535
+ // before
536
+ const [best] = harness.detectLanguage({ text })
537
+ // after
538
+ const [best] = await harness.detectLanguage({ text })
539
+ ```
540
+
541
+ - `bare-worker` is pinned to 4.5.0 and `bare-module` is a dependency at
542
+ `~7.1.0`, so a host's install resolves a `bare-module` that runs on Bare
543
+ 1.34: `bare-worker` 4.5.3 asks for `bare-module` 7.4, and npm gives it 7.5,
544
+ which needs Bare 1.35. (#630)
545
+ - The `sandbox-vm` plugin (`VmShell`, `./plugins/sandbox-vm`) is back, with
546
+ `barevisor` an optional peer instead of a dependency every host installed.
547
+ (#626)
548
+ - Every skill-gated tool (`docx`, `pptx`, `xlsx`, `pdf`, `generate_image`, …),
549
+ `http_request` and every MCP server's tools are deferred behind
550
+ `tool_search`. The sent tool set is fixed per chat, so a skill load no longer
551
+ re-primes the prompt cache: it appends the loads of the tools it grants. A
552
+ direct call to a deferred tool loads it and runs in the same round instead of
553
+ being refused. An MCP server sets `defer: false` to send its schemas whole.
554
+ `skill-eval` gains `--defer`. (#566)
555
+ - **Breaking:** `engines.node` is `^22.21.0 || >=24.9.0`. A Node host outside
556
+ that range crashed with `SIGSEGV` in `spawnHarness`; npm now warns at install.
557
+ See [On Node](docs/hosting.md#on-node). (#553)
558
+ - **Breaking** for guest Python that imports from `js`: the `js` module holds
559
+ only the names in `JS_GLOBALS`, and the python worker seals the `Function`,
560
+ `AsyncFunction` and generator constructors after boot. `pyodide_js` holds
561
+ only what pyodide's Python and micropip import, with no `FS` or
562
+ `mountNodeFS`, and the pyodide patch turns the `emscripten_run_script*` and
563
+ `EM_JS`/`EM_ASM` routes into no-ops or refusals. `pyodide.code.run_js` raises
564
+ in the guest. See
565
+ [the decision record](docs/decisions/2026-10-20-guest-python-sees-only-allowlisted-js-globals.md).
566
+ (#554, #567)
567
+ - **Breaking** for a TypeScript host that reads it: `inference-sent` no longer
568
+ carries `messages`. `@qvac/inference` 0.22 does not report the slice it
569
+ pushed, so the field was always empty; a prompt inspector reads the payload
570
+ from `inference-call` and the cached share from `tokens.cached`. (#557)
571
+ - **Breaking** for a host that injects an SDK through `HarnessOptions.sdkLoader`:
572
+ `CompletionSdkResult` carries `events`, an `AsyncIterable` of the SDK's own
573
+ `CompletionEvent`, in place of the deprecated `tokenStream`. The harness
574
+ reads its `contentDelta` events as the reply text. (#510)
575
+ - **Breaking** for a caller that matches a fetch refusal as a `TypeError`:
576
+ every plugin fetch refusal (the guarded fetch, the Python sandbox's, and the
577
+ network-off and no-fetch refusals) is a `HarnessError('FETCH_REFUSED')`.
578
+ Match with `instanceof` or the code. (#506)
579
+ - **Breaking:** `isHarnessError(err, name)`, `harnessErrorCode(name)` and
580
+ `harnessErrorCodes()` from `@qvac/harness/errors` are the `HarnessError`
581
+ statics `HarnessError.is`, `HarnessError.code` and `HarnessError.codes`.
582
+ (#512)
583
+ - **Breaking:** the message constants `CONTEXT_OVERFLOW_MESSAGE`,
584
+ `IMAGE_LOAD_STALL_ERROR`, `TRANSLATION_LOAD_STALL_ERROR` and
585
+ `NO_STORAGE_ROOT` are `HarnessError` statics. `@qvac/harness/errors`,
586
+ `@qvac/harness/plugins/image` and the fs scope module no longer export them.
587
+ The package root keeps `CONTEXT_OVERFLOW_MESSAGE`. The text is unchanged.
588
+
589
+ ```js
590
+ // before
591
+ import { IMAGE_LOAD_STALL_ERROR } from '@qvac/harness/plugins/image'
592
+ if (result.error === IMAGE_LOAD_STALL_ERROR) retry()
593
+
594
+ // after
595
+ import { HarnessError } from '@qvac/harness/errors'
596
+ if (result.error === HarnessError.IMAGE_LOAD_STALL_ERROR) retry()
597
+ ```
598
+
599
+ (#552)
600
+
601
+ - `SeatbeltSandbox.setup()` runs `/usr/bin/getconf DARWIN_USER_TEMP_DIR` and
602
+ throws when it fails. A copy of the user's xcrun cache into a scratch `TMPDIR`
603
+ that fails for any reason but a missing cache fails that exec call, or the
604
+ workspace `open`. See the
605
+ [decision record](docs/decisions/2026-10-14-seatbelt-seeds-tmpdir-with-a-copy-of-the-xcrun-cache.md).
606
+ (#467)
607
+ - Identical calls in one round run once, writes included: two `echo x >> f`
608
+ in one round append once. One tool turn worded by `wording.toolRepeated`
609
+ tells the model. A runaway round, 3 repeats of one call or 32 calls, is
610
+ cancelled on its calls. `<tool_call>` markup left in a round's content, as in
611
+ a wrap-up or a frame the SDK did not parse, counts toward the same limits.
612
+ See the
613
+ [decision record](docs/decisions/2026-10-13-a-round-runs-each-call-once.md).
614
+ (#453, #480)
615
+ - A response cut off by the length limit runs its complete calls; only the
616
+ call the cut truncated is answered, and a truncated call to a tool that is
617
+ not loaded is answered as cut. A cut at a `predict` cap gets
618
+ `wording.toolCutOff`; any other `length` cut gets
619
+ `wording.toolContextBoundary`, which says the context window filled before
620
+ the arguments were complete. (#155, #450, #454, #458)
621
+ - With tools on, a prose round cut at the context window is retried with the
622
+ history folded, or wrapped up, instead of answered with its fragment. A cut
623
+ at a `predict` cap (`contextBoundary: false`), or a round with
624
+ no tools, keeps the fragment. `round-reset` fires only when the round is
625
+ retried or wrapped. (#456, #483)
626
+ - The round sets `contextBoundary` on every `length` stop: `true` at the
627
+ context window, `false` at a `predict` cap. Every round, the wrap-up
628
+ included, reads a stop flagged `false` as the output cap and any other
629
+ `length` stop as the context window: a cut call gets
630
+ `wording.toolContextBoundary`, a cut prose round with tools on is retried
631
+ with a fold, a wrap-up answers with the fallback and emits `round-reset`, and
632
+ `RoundSpeed.contextBoundary` is `true`. A stop flagged as the cap no longer
633
+ makes the next round fold. (#450, #481, #485, #488, #647)
634
+ - A host that runs python on Node recopies `patches/pyodide@314.0.2.patch`
635
+ into its `patchedDependencies`. Pyodide now loads `child-process-stub.cjs`
636
+ by path, so guest `os.system` cannot spawn a process on Node either. A Bare
637
+ host needs nothing: the old patch already gave it the stub. #554 later closed
638
+ the `js` route to the host realm, and #567 changed the patch again for every
639
+ host. (#535)
640
+ - A call whose result is the same as its last result in the run is not
641
+ progress: its result carries `wording.toolUnchanged`, and 3 such calls send
642
+ the run to the wrap-up with the `exhausted` outcome. A round whose sent
643
+ history rewrote earlier turns (a fold, a ladder drop, a compaction) clears
644
+ what the run settled, so a re-read after it is new. The result digest is
645
+ keyed by the run key, so digests in run logs written before this change
646
+ differ. See the
647
+ [decision record](docs/decisions/2026-10-14-an-unchanged-result-is-not-progress.md).
648
+ (#463, #464, #465)
649
+ - One call that returns the same result 4 times in a row ends the run in the
650
+ wrap-up with the `exhausted` outcome, even when other calls progressed in
651
+ between. The unchanged note counts the runs: `wording.toolUnchanged` replaces
652
+ `{count}`. A goal run ends after this wrap-up with the new `GoalStatus`
653
+ `stalled`, instead of taking another goal turn. See the
654
+ [decision record](docs/decisions/2026-10-15-a-call-that-keeps-returning-the-same-result-ends-the-run.md).
655
+ (#499)
656
+ - A new result from any call restarts the unchanged count of every call, and a
657
+ result that prints nothing is never unchanged. An edit between two runs of one
658
+ check no longer counts toward the stop. (#508)
659
+ - A goal can name `checks`, the commands its result is judged by. The goal is
660
+ met only when the plan is done and the latest run of each check exited 0; a
661
+ run that names the check in a call's `command` with only `&&` after it counts.
662
+ Until then each goal turn names the checks not run yet and carries the output
663
+ tail of a failed one, and a run that spends its budget with a check failing
664
+ ends `rounds`, `time` or `tokens`, not `met`. The Terminal-Bench agent sends
665
+ the verify scripts and test runners its instruction names that the container
666
+ has, and returns `exitCode`, so a failing command is a failed call; its log
667
+ rows keep `return_code`, and the report adds `checkerRan` and
668
+ `checkerPassed`. (#530)
669
+ - A goal with no `checks` is no longer met on the model's word when the run
670
+ offers a tool that takes a `command`. Before its first turn, and on each goal
671
+ turn until it does, the model is asked to name the commands that prove the
672
+ task done under a `Checks:` line; the first turn that names them sets the
673
+ goal's checks, and the goal is met only once each ran and exited 0. A model
674
+ that names none runs the goal to its budget. The Terminal-Bench agent, when
675
+ its instruction names no check it can find, sends `test -s <path>` for each
676
+ absolute path the instruction asks it to write. A `goal` event names the
677
+ goal's checks in `checks` once it has some, the bench bridge's done frame
678
+ carries them in `goal.checks`, and the Terminal-Bench trial row keeps them as
679
+ `checks`. (#550)
680
+ - Breaking for hosts that send `checks`: passing host checks alone no longer
681
+ meet a checkable goal. The model must name a check of its own under a
682
+ `Checks:` line, and one that repeats a host check does not count. A host
683
+ whose checks do prove the task, such as qvac-core, sets
684
+ `goal.checksProve: true` (#599). (#595)
685
+ - A round of unchanged calls counts once toward the stop for runs with no new
686
+ result, not once per call. Three such rounds in a row end the run, so one
687
+ sweep of re-checks with nothing new no longer ends a goal run as `stalled`. (#509)
688
+ - A fold, a forced fold, a ladder drop or a compaction no longer restarts the
689
+ unchanged count. A call that returns the same result and folds every few rounds
690
+ now ends the run at its fourth identical run. The re-read after a fold carries
691
+ no unchanged note and no progress credit. (#507)
692
+ - A stall no longer ends a goal run that has rounds, time and tokens left. The
693
+ round ends, every unchanged and blocked count restarts, and the goal goes on
694
+ with a turn that adds `wording.goalStalled` to the goal turn; `{call}` names
695
+ the stuck call. Only a met goal or a spent budget ends a goal run, and the
696
+ `GoalStatus` is `stalled` only when a stall came with no budget left. A run
697
+ with no goal still ends on a stall. See the
698
+ [decision record](docs/decisions/2026-10-26-a-stall-continues-a-goal-run-until-its-budget-ends.md).
699
+ (#651)
700
+ - A wrap-up cut off at the context window answers with the fallback instead of
701
+ its fragment and emits `round-reset` for what it streamed; a wrap-up
702
+ cut at its `predict` cap (`contextBoundary: false`) keeps its
703
+ text as the answer. The run's outcome does not
704
+ change. The wrap-up sends `predict` as `reasoning_budget + 4096`; a host
705
+ `predict` wins. (#452, #480)
706
+ - The bench bridge sends `thinkingDefault: 'enabled'`, so a model without a
707
+ preset gets the 8192 reasoning cap. (#461)
708
+ - A wrap-up's answer no longer overwrites why the run wrapped: `hook:runEnd`
709
+ and the persisted context keep `exhausted`, `time-capped` or `mute`. (#442)
710
+ - The default `goalContinuation` nudge says to mark a step done only once a
711
+ tool result shows it, and to make the last step a check of the whole result
712
+ with a tool. (#447)
713
+ - `exec` refuses an unterminated quote and `let`, `declare`, `typeset`,
714
+ `local`, `export`, `readonly`, `read`, `unset` or `printf -v` given `$` or a
715
+ backtick, whose subscript bash evaluates. With the network off it also
716
+ refuses a program name the shell still expands, such as `{curl,x}`. (#390)
717
+
718
+ - **Breaking:** a `driveOp` host answers the new `recursive` field of a `list`
719
+ request. With `recursive: false` it lists only the folder's direct children,
720
+ each subdirectory as `{ key, dir: true }` in `entries`, and `skip` names a
721
+ child to leave out. The walk behind `grep` and `file_glob` lists one
722
+ directory at a time this way, so it never lists an ignored tree. (#391)
723
+
724
+ ```js
725
+ // before
726
+ { op: 'list', driveKey, folder, skip, limit, cursor }
727
+ // after
728
+ { op: 'list', driveKey, folder, skip, recursive: false, limit, cursor }
729
+ ```
730
+
731
+ - `grep` and `file_glob` skip what `.gitignore` and `.ignore` files exclude,
732
+ and the `.hg`, `.svn`, `.venv`, `.cache` and `.next` directories, so an
733
+ ignored build tree no longer fills the walk's entry cap. `includeIgnored: true`
734
+ searches them too; `.git` and `node_modules` stay skipped. POSIX classes such
735
+ as `[[:alpha:]]`, `.git/info/exclude` and global excludes are not read. (#391)
736
+ - `grep` searches raw bytes and decodes only the line around a hit, runs its
737
+ queries as one regex, and reads up to 8 files at once; hits keep the walk's
738
+ order and the match cap stops at the same hit. A trailing newline no longer
739
+ adds an empty last line for `^$` or `.*` to match, a NUL in the first 1024
740
+ bytes marks a file binary before any hit counts, and case-insensitive
741
+ literals fold as the regex `i` flag does: ASCII as before, but the Kelvin
742
+ sign no longer matches `k`. (#392)
743
+ - **Breaking:** `network: { mode: 'off' }` in the agent's or the run's policy
744
+ replaces `sandboxMode`. It withholds the network toolsets and keeps exec,
745
+ python, plugin fetches and external delegate targets offline, as before.
746
+ A tool reads the compiled policy in `ctx.policy`, an exec shell in
747
+ `ExecutionContext.policy`, and a `preToolCall` hook reads `ctx.network`.
748
+ `agent-knobs.sandboxMode` stays on the wire, never read or written. (#388)
749
+
750
+ ```js
751
+ // before
752
+ harness.completion({ model, messages, agent: { ...agent, sandboxMode: true } })
753
+ // after
754
+ harness.completion({ model, messages, agent: { ...agent, policy: { network: { mode: 'off' } } } })
755
+ ```
756
+
757
+ - **Breaking:** `SeatbeltSandbox` takes only `{ sandboxExec }`. What a line may
758
+ touch comes from the run's compiled policy, per call and at
759
+ `SandboxService.open(dir, policy)`: the write grants (`files.write` only
760
+ bounds them), `files.deny`, the network, and with the network off the listed `sockets`,
761
+ `localhost` and `bind`; `env` drops names from the spawn allowlist. Its shell
762
+ is named `seatbelt`. A provider declares `enforces` on its `ExecShell` or
763
+ `SandboxService`, and the harness refuses a run whose policy one cannot hold
764
+ before round 1: Seatbelt refuses a `files.read` list, a `hosts` network
765
+ mode, and `localhost: false`, `bind: false` or `sockets` under `on`, and the host shell an `env` or `exec` list. `VmShell` holds any
766
+ policy. `ExecutionContext.writeRoots` and `deniedRoots` moved into
767
+ `ExecutionContext.policy`. (#388)
768
+
769
+ ```js
770
+ // before
771
+ new Harness({
772
+ exec: true,
773
+ plugins: [new SeatbeltSandbox({ preset: 'workspace-write', network: false })]
774
+ })
775
+ // after
776
+ new Harness({
777
+ exec: true,
778
+ policy: { preset: 'workspace-write' },
779
+ plugins: [new SeatbeltSandbox()]
780
+ })
781
+ ```
782
+
783
+ - **Breaking:** plugins are an array of instances, and the harness builds
784
+ `exec` from what they declare. `PluginEntry`, `{ plugin, config, read }` and
785
+ the `config` argument of `validate` and `setup` are gone: options and the
786
+ `read` grant go to the constructor. With `exec: true` and `sdkHome`, the
787
+ harness builds `exec` from each plugin's `PluginSetup.exec`; two shells, or a
788
+ host `exec` tool beside a contributing plugin, fail the start. (#269, #273)
789
+
790
+ ```js
791
+ // before
792
+ new Harness({
793
+ tools: [createExecTool({ deniedRoots, skillsDir, languages, routes }), ...tools],
794
+ plugins: [
795
+ { plugin: python.plugin },
796
+ { plugin: weatherPlugin, read: ['weather_lookup'] },
797
+ { plugin: imagePlugin, config: { model, clamps }, read: ['generate_image'] }
798
+ ]
799
+ })
800
+
801
+ // after
802
+ new Harness({
803
+ tools,
804
+ exec: true, // or { spawn, killProcess, realpath, policyVersion }
805
+ skillsDir,
806
+ sdkHome: sdkStorage.home,
807
+ plugins: [
808
+ new Python(),
809
+ new ObsidianRoute({ credentialStore }),
810
+ new Weather({ read: ['weather_lookup'] }),
811
+ new Image({ model, clamps, read: ['generate_image'] })
812
+ ]
813
+ })
814
+ ```
815
+
816
+ `Speech`, `Weather`, `Image`, `Music` and `Knowledge` replace the
817
+ `speechPlugin`, `weatherPlugin`, `imagePlugin`, `musicPlugin` and
818
+ `knowledgePlugin` objects, and `Python` replaces `createPython()`.
819
+ `ObsidianRoute`, `VmShell`, `SeatbeltSandbox`, `QuickJs` and `CodeMode` have
820
+ no `.plugin` pair. `SeatbeltSandbox.name` is `sandbox-macos` (the label is
821
+ `.shell.name`), `CommandHooks` takes `(hooks, { cwd })`, and `LspPlugin` and
822
+ `ExternalAgents` take their options in the constructor.
823
+
824
+ - **Breaking:** these built-ins are now plugins. A host that builds `Harness`
825
+ itself composes them; the bundled sidecar passes them all, so a
826
+ `spawnHarness` host needs no change. See [Plugins](README.md#plugins).
827
+ - Speech: `new Speech()`. Without it `transcribe`, `speak`, `speakStream` and
828
+ a voice model load reject with `speech needs the speech plugin`. (#173)
829
+ - Translation: `new TranslationPlugin()`. Without it `invoke` of `translate`
830
+ errors. (#275)
831
+ - Image and music: `new Image({ model, clamps })` and
832
+ `new Music({ model: musicModelSet(choice), clamps })`. `HarnessOptions`
833
+ loses `imageModel`, `imageClamps`, `musicModel` and `musicClamps`, and the
834
+ tools sit in new `image` and `music` toolsets. (#175)
835
+ - Weather: `new Weather({ read: ['weather_lookup'] })`.
836
+ `createWeatherLookupTool` is gone, a refused fetch is a plain `{ error }`,
837
+ and the 400 KB body cap is dropped. (#176)
838
+ - Web search: `new WebSearchPlugin({ read: ['web_search'] })`;
839
+ `Tools.product` no longer includes it. Its engines fetch through
840
+ `ctx.fetch`, so a redirect to an undeclared host fails that call. (#276)
841
+ - Obsidian: `new ObsidianRoute({ credentialStore })` with `exec: true`.
842
+ `ExecToolOptions.credentialStore` is gone. (#223)
843
+ - Python: `new Python({ loadPyodide, network })`. `createExecTool()` without
844
+ `languages` runs shell lines only, and `disablePyodide`, `loadPyodide` and
845
+ `pythonNetwork` are gone. (#174)
846
+ - MCP: see Removed.
847
+
848
+ - **Breaking:** every module's entry exports one class and its types.
849
+ (#216 to #221, #229)
850
+ - `completion()` is `CompletionEngine.run(sdk, args, options)`, and the
851
+ `./lib/capabilities/completion.ts` subpath is gone; its helpers and types
852
+ are root exports, except `trustedSourcesFrom`.
853
+ - `defaultHooks()` is `HookPipeline.defaults()`; `EgressGuardHook` and
854
+ `SkillCatalogGuardHook` are statics of `HookPipeline`.
855
+ - The contract type `Agent` is `AgentConfig`. `./agent` exports the `Agent`
856
+ class: `resolveAgent` and `agentPolicy` are `Agent.resolve` and
857
+ `Agent.policy`, and the other functions and constants keep their names as
858
+ statics.
859
+ - `createPluginRegistry(entries, options)` is
860
+ `new PluginRegistry(plugins, options)`.
861
+ - `./run-log` and `./run-log-inspect` export `RunLog`: `RUN_LOG_VERSION`,
862
+ `RUN_LOG_PROTOCOL_VERSION`, `inspectRun` and `renderRunLogHtml` are
863
+ `RunLog.VERSION`, `RunLog.PROTOCOL_VERSION`, `RunLog.inspect` and
864
+ `RunLog.renderHtml`, and the engine-boot functions are statics.
865
+ `./run-log` no longer exports the `Operation` and `RunBudget` types.
866
+ - `./machine` exports `CompletionMachine` (`create`, `definition`,
867
+ `emptyContext`, `VERSION`) and no longer re-exports the run log, the error
868
+ classes, `tagError`, `rehydrateError`, the failure-result helpers or the
869
+ stage payload types. The shared run types are root exports, and the
870
+ `./lib/tool-call-display.ts` subpath is gone.
871
+ - **Breaking:** `@qvac/harness/plugins/speech` exports only `Speech` and its
872
+ option types. `buildWavBuffer`, `packSamples`, `speakOnce`,
873
+ `speakStreamOnce`, `transcribeStreaming`, `normalizeForSpeech`,
874
+ `SPEECH_LEXICON`, `needsResample`, `resampleForTranscription`, `wavFormat`
875
+ and `TARGET_SAMPLE_RATE` are internal; speak and transcribe through the
876
+ harness. (#217, #312)
877
+ - **Breaking:** the translation catalog is static on `TranslationPlugin`, and
878
+ the root no longer exports it: `NMT_TO_ENGLISH`, `NMT_FROM_ENGLISH`,
879
+ `EURONANO_LANGUAGES`, `SLM_LANGUAGE_CODES` and `SLM_LANGUAGE_NAMES` are
880
+ `TranslationPlugin.<name>`, and `translationPlanFor` is
881
+ `TranslationPlugin.planFor`. `TranslationPlan` and `TranslationRefusal` come
882
+ from `@qvac/harness/plugins/translation`. (#275)
883
+ - **Breaking:** a tool that reaches the network declares `egress(args)`.
884
+ `HookPipeline.EgressGuardHook` checks every tool that declares it and none
885
+ that does not, so a host tool named `http_request`, `web_fetch` or
886
+ `mcp_call` without it loses the pre-call check. The v0.7.3 guarded-fetch
887
+ exports have no public path; a plugin tool uses `ctx.fetch`. (#172, #224)
888
+ - **Breaking:** nothing a run does can load a new native addon: the sidecar
889
+ seals addon loading once the harness is ready. A plugin or tool that imports
890
+ a native addon lazily declares it in `HarnessPlugin.addons` or
891
+ `ToolDefinition.addons`. A `QVAC_PYODIDE_WORKER_ENTRY` must exit when
892
+ `workerData.preload` is true. See the
893
+ [decision record](docs/decisions/2026-10-02-the-sidecar-seals-addon-loading-after-boot.md).
894
+ (#177)
895
+ - **Breaking:** `SandboxWorkspace` gains `start(command, { cwd? })`, returning a
896
+ `SandboxJob`, which a custom `SandboxService` must implement.
897
+ `SeatbeltSandbox` declares `provides: ['sandbox']`, so it fails beside
898
+ another sandbox provider. (#320, #329)
899
+ - **Breaking:** the run log records every model request as a `request` record.
900
+ A host run-log codec that allows only known record types must accept
901
+ `request`; `EngineOperationPort` gains `recordRequest`. (#235)
902
+ - **Breaking:** `CompletionEvent` gains `input-rejected`, and `HookPhase` and
903
+ `HookRejection.phase` gain `promptSubmit`, `toolFailure`, `stop` and
904
+ `preFold`; exhaustive switches handle them. Every steer and follow-up passes
905
+ the `promptSubmit` hooks. (#260, #264)
906
+ - **Breaking:** `PreToolCallPayload.effect` and `.resource` are required; a
907
+ host that calls `HookPipeline#runPreToolFold` itself passes both. (#183)
908
+ - **Breaking:** a plugin can own a skill's readiness through
909
+ `PluginSetup.skills` (`SkillReadiness`), and the obsidian readiness moved
910
+ into `ObsidianRoute`. `SkillStateInputs.obsidianProbe` and the
911
+ `credentialStore` option of `createSkillTool` are gone, the core shares no
912
+ credential key by default, and `versionProbeSkills` takes
913
+ `{ installedTools, platform, readiness }`. (#227)
914
+ - **Breaking:** `Tools.stageInputs` and `ExecInput` come from
915
+ `@qvac/harness/tools`, no longer `./plugins/python`, and
916
+ `ExecLanguage.validate` takes an `ExecValidateScope`. (#317)
917
+ - **Breaking:** `MAX_TOOL_ROUNDS`, `TOOL_CONTINUATION_NUDGE`,
918
+ `TOOL_DENIED_MESSAGE` and `TOOL_CUT_OFF_MESSAGE` come from
919
+ `./lib/capabilities/tool-turns.ts`, not `lib/machine`, and
920
+ `CompletionMachine.emptyContext` requires a `policy`. (#159)
921
+ - **Breaking:** the completion graph has no skill states: a skill preload runs
922
+ as a generic prepare step. Context `skills` is `activated`, `skillPreload` is
923
+ `prepareStep`, `tools.loadingSkill` is gone, and `ToolExecutionSnapshot` has
924
+ `origin` in place of `kind: 'skill'` and `skillName`. (#170)
925
+ - **Breaking:** `resolveScriptRun` returns `{ args, trusted: false }` for a
926
+ call that is not a script run, and is no longer exported. (#163, #174)
927
+ - **Breaking:** `metrics.durationMs` and the `runEnd` hook's `stats.durationMs`
928
+ are the run's wall time, not decode time, and `promptTokensPerSecond` is
929
+ weighted over every round. (#195)
930
+ - **Breaking:** `CompletionMachine.VERSION` and `RunLog.VERSION` are 1 until
931
+ 1.0.0 ships. A run saved with `1.0.0-rc.0` or `1.0.0-rc.1` does not resume,
932
+ and `./run-log-inspect` no longer reads v4 or rc logs. (#205)
933
+ - **Breaking:** a run paused before the upgrade does not resume when its
934
+ policy or hook identity changed: exec calls (#174, #178, #223), `delegate`
935
+ calls with external targets (#319, #328), `web_search` calls (#276), runs
936
+ past a pre-tool hook (#183) and runs under the obsidian hook (#227).
937
+ - **Breaking:** the contract types match `Harness`. (#353)
938
+ - `ChatMessage.attachments` was `{ path: string }[] | null` and is now
939
+ `{ path: string }[]`; omit it instead of sending `null`.
940
+ - A contract context's `signal` was a structural
941
+ `{ aborted?, addEventListener?, removeEventListener? }` and is now
942
+ `bare-abort-controller`'s `AbortSignal`. A host that passes a global
943
+ `AbortSignal` types its input as `HostContext<CompletionContext>` (the
944
+ signal alone is `HostSignal`); `RemoteHarness` and `HarnessClient` take a
945
+ `HostContext`.
946
+ - `HarnessContract.on`/`off` took `'model' | 'status'` with
947
+ `(...args: never[]) => void` and now take `'model'` with
948
+ `(state: ModelState) => void`; the `'status'` event is gone.
949
+ - `bare-process` moves to 4.5.1, which adds the native addon `bare-posix`.
950
+ (#178)
951
+ - The plugins' addons follow the SDK's peer ranges, and
952
+ `collectRuntimeClosure` follows the per-platform `@qvac/fabric-<os>-<cpu>`
953
+ packages. (#302)
954
+ - A chat with no system message no longer gets
955
+ `'You are a helpful assistant.'`; every completion modelId changes once.
956
+ (#194)
957
+ - Each chat's first turn after the upgrade misses the prefix cache once: tool
958
+ descriptions spell out nested fields (#157), the exec schema reorders with
959
+ Python (#174), and `web_search` and `mcp_call` move after `exec` (#276,
960
+ #277).
961
+ - `tools()` waits for `ready()`, and `toolNames` and `diagnostics()` list
962
+ plugin tools only after it. Plugin service registration rejects `undefined`
963
+ and names reserved by the context, and `HarnessPlugin` is the only plugin
964
+ shape. (#171)
965
+ - Long tool output keeps its first and last `maxOutputChars`, joined by a
966
+ marker counting what was dropped, instead of ending in `… [truncated]`.
967
+ (#180)
968
+ - `exec` refuses a `language` that no composed language claims, instead of
969
+ running it as a shell line. (#232)
970
+ - A translation pack is freed on the idle sweeps instead of staying resident.
971
+ (#275)
972
+ - Arg repair converts a string argument to the schema's scalar type when the
973
+ conversion is lossless, so a tool may receive `3` for `"3"`. (#156)
974
+ - The exec approval labels inline Python as `python[ · network: …]: …`, and
975
+ `command` with `script` is rejected. (#163)
976
+ - A round whose only tool calls were malformed gets one re-ask carrying each
977
+ error. (#190)
978
+ - The narrated and malformed-call re-asks force a call with
979
+ `tool_choice: 'required'`. `LlmGenerationParams.tool_choice` admits
980
+ `'required'`; do not set it for a whole run, or the wrap-up fails. Narrated
981
+ intent counts in the last two sentences of a reply's last paragraph. (#191,
982
+ #213, #455)
983
+ - Reasoning that is on is capped at 8192 tokens a round instead of running
984
+ unbounded: the presets and `agent.reasoning: 'enabled'` send that cap where
985
+ they sent `-1`. `LlmGenerationParams.reasoning_budget` takes `-1`, `0` or a
986
+ positive token cap, and a host's `generationParams` still wins, so `-1` lifts
987
+ the cap. `'inherit'` still sends nothing. (#440)
988
+ - The `pdf` tool declares `bare-pdfium` in its `addons`. (#317)
989
+ - **Breaking for hosts:** a skill named with `@` or in prose reaches the model
990
+ as it did in 0.8.7 (#374): the user's turn as typed, then a `skill` call
991
+ (`preload-<name>`), its body as the result and the continuation nudge, not
992
+ written into the user's message. The run stays on the chat's KV cache key, so
993
+ its rounds and the turn after it read the cached prefix, and the preload no
994
+ longer opts its run out of the cache. The host must replay each run's turns as
995
+ it sent them (`@qvac/core` does from 0.7.0, tetherto/qvac-core#338): a host
996
+ that collapses a run to its request and answer leaves the cache's message
997
+ count stale, and the next turn's whole history is appended to the cache
998
+ again. The load is reported on every mention, not once per chat, so a replay
999
+ holds the turns the run sent; an edit to the skill reaches the chat on its
1000
+ next mention. A host that groups a run's events by `round` still puts the
1001
+ preload with round 0's calls: the harness renders it as its own round first.
1002
+ A skill that fails to load is noted in the user's turn, sends no call, and
1003
+ that run is not cached. (#511)
1004
+ - **Breaking** for a host that reads `attachmentId` off a `generate_image` or
1005
+ `edit_image` result, in a chat or from `invoke` with the `image` capability:
1006
+ the image is now `attachments[0]`, `{ attachmentId, fileName, byteLength }`,
1007
+ the shape a delivered file has everywhere else. (#610)
1008
+
1009
+ ### Removed
1010
+
1011
+ - The eight file exports 1.0.0-rc.7 added for hosts:
1012
+ `./lib/tools/fs/drive.ts`, `remote.ts` and `remote-protocol.ts`, and
1013
+ `./lib/tools/skills/skill-state.ts`, `credential-slots.ts`,
1014
+ `manifest-parse.ts`, `overlay-crud.ts` and `scope-key.ts`. Import
1015
+ `@qvac/harness/drive`, `@qvac/harness/skill-state` (`SKILL_STATE`,
1016
+ `isDeviceSharedCredentialKey`), `@qvac/harness/skill-manifest`
1017
+ (`credentialSlots`, `readSkillSetup`), and the `ManagedSkill` and
1018
+ `SkillFileContent` types from `@qvac/harness`. (#636)
1019
+
1020
+ - **Breaking:** `harnessLogEnabled` from `./lib/log.ts`: use
1021
+ `HarnessLog.enabled(level)` or `HarnessLog.level()`. (#471, #506, #532)
1022
+ - **Breaking:** `./lib/log.ts` exports the `HarnessLog` class in place of the
1023
+ free functions it had in 1.0.0-rc.2 and rc.3: `setHarnessLog`,
1024
+ `setHarnessLogSink`, `hlog` and `hdiag` are `HarnessLog.enable`,
1025
+ `HarnessLog.setSink`, `HarnessLog.info` and `HarnessLog.diag`. The root
1026
+ names keep working. The `HarnessLog` type, an interface for the
1027
+ `harnessLog` object since 0.8.10, now names the class: annotate a value with
1028
+ `typeof HarnessLog`. (#532)
1029
+
1030
+ ```js
1031
+ // before
1032
+ import { hlog, setHarnessLogSink } from '@qvac/harness/lib/log.ts'
1033
+ setHarnessLogSink(sink)
1034
+ hlog('open')
1035
+ // after
1036
+ import { HarnessLog } from '@qvac/harness/lib/log.ts'
1037
+ HarnessLog.setSink(sink)
1038
+ HarnessLog.info('open')
1039
+ ```
1040
+
1041
+ - **Breaking:** `Tools.product` no longer offers `mcp_call` or the skill
1042
+ catalog's mcp operations (`notion_create_page`, `notion_insert_content`).
1043
+ Use `new McpPlugin({ generic: true })` with the same `skillCatalog` and
1044
+ `credentialStore`, and `read: ['mcp_call']`. (#277)
1045
+ - **Breaking:** the `./lib/tools/*` wildcard export and the tool factories
1046
+ `createHttpRequestTool`, `createWebFetchTool`, `createSkillTool`,
1047
+ `createMcpCallTool` and `createWebSearchTool` are gone. Use `Tools.product`
1048
+ (with `skillsDir` for `skill`), `McpPlugin` and `WebSearchPlugin`.
1049
+ `credentialSlots` comes from `@qvac/harness/skill-manifest`,
1050
+ `ensureBundledSkillsDir` is `Tools.bundledSkillsDir()`, and
1051
+ `isDeviceSharedCredentialKey` comes from `@qvac/harness/skill-state` (a
1052
+ plugin declares its own in `SkillReadiness.deviceSharedKeys`). Only `./lib/tools/exec.ts`,
1053
+ `./lib/tools/toolsets.ts`, `./lib/tools/skills/index.ts`, `mention.ts` and
1054
+ `mention-name.ts` keep their keys. (#273, #283)
1055
+ - **Breaking:** `./plugins` no longer exports the contract types: import
1056
+ `AddonLoaders`, `ExecLanguage`, `ExecRoute` and `ExecShell` from the root.
1057
+ (#284)
1058
+ - **Breaking:** the `./docx` export is gone; read a `.docx` with
1059
+ `extractOfficeText` from `@qvac/harness/office`. (#269)
1060
+ - **Breaking:** `lib/team`, `Team`, `TeamConfig`, `TeamRequest`, `TeamHost` and
1061
+ `TeamEvent` are gone; pass `agents` to `harness.completion()`. (#233)
1062
+ - **Breaking:** `rag_search`, `ragSearch` (on `CompletionArgs`,
1063
+ `CompletionContext` and `ToolExecuteContext`), `RagSearchFn`,
1064
+ `RagSearchResult` and `./lib/tools/rag-search.ts` are gone; knowledge reaches
1065
+ the model by injection. (#162)
1066
+ - **Breaking:** the module-level `harnessHooks` array is gone; pass
1067
+ `new Harness({ hooks: [...HookPipeline.defaults(), mine] })`. (#158)
1068
+ - **Breaking:** `./lib/capabilities/tool-selection.ts` and `tool-names.ts` are
1069
+ `@qvac/harness/agent` (`Agent` statics). `isSelected`, `skillsAreSelected`,
1070
+ `MCP_CALL_TOOL_NAME`, `ToolGrant`, `ToolGrantSource`, `ToolGrants`,
1071
+ `SelectableTool` and `ToolGateInputs` are no longer exported. (#165, #206)
1072
+ - **Breaking:** `./lib/tools/model-args.ts` (`unquoteArg`) is gone, with no
1073
+ replacement. (#166)
1074
+ - The sidecar bundle no longer ships `@qvac/ocr-ggml`, and ships only the
1075
+ addons the bundle defers. (#226)
1076
+ - **Breaking:** `skillPreloadMessage` and `withoutSkillLoadTurns`
1077
+ (`lib/capabilities/tool-turns.ts`). Nothing writes a skill body into the
1078
+ user's message any more, so no earlier load turn is dropped to keep the two
1079
+ from contradicting each other. (#511)
1080
+
1081
+ ### Fixed
1082
+
1083
+ - A tool call whose arguments a model wrote as something other than an object, such as a
1084
+ string, no longer fails the run with a raw `TypeError`. The call is answered with an error
1085
+ the model reads, and the tool never runs.
1086
+ - A user plugin loads from the published package: `sharedImports` resolved the harness's own
1087
+ files by their `.ts` names, which the compiled `dist-lib` does not ship, so every host that
1088
+ loads user plugins from npm failed with `MODULE_NOT_FOUND`. It now names them with its own
1089
+ extension, and a test keeps shipped code from resolving its files by a `.ts` name.
1090
+ - A host needs neither `@qvac/sdk` nor a patch of `@qvac/inference`. The
1091
+ published types import `@qvac/inference`, so a Bare host type-checks
1092
+ without the SDK or a `tsconfig` path, and the round tells a `length` stop at
1093
+ the context window from one at a `predict` cap from the `predict` it sent.
1094
+ A host drops its copy of `patches/@qvac%2Finference@0.22.0.patch`; one that
1095
+ keeps it sees the same behaviour. (#647)
1096
+
1097
+ - A message keeps the wire layout 0.8.13 shipped: `sentAt` is its fourth
1098
+ field again, ahead of `toolCalls`, `toolCallId`, `name`, `id` and `context`.
1099
+ Up to rc.6 a 1.0 harness could not decode a message from a 0.8.13 host that
1100
+ carried a send time. A host built against an earlier 1.0 rc must be rebuilt
1101
+ with this one, since those fields moved. (#623)
1102
+ - The wrap-up round a run ends on keeps the tool block in the prompt and
1103
+ forbids a call with `tool_choice: "none"`, instead of dropping the block.
1104
+ Under `@qvac/sdk` 0.22 the dropped block rewrote the chat's one cache file,
1105
+ so that round and the next turn each re-read the whole chat (19.6 s to first
1106
+ token on Qwen3.5-2B after a 12-turn chat). (#605)
1107
+ - A `skill` call that names a skill by its display name, in another case, or by
1108
+ the one tool it grants (`pptx`) loads that skill. (#528)
1109
+ - On Node, the Python plugin finds pyodide and the vendored wheels without
1110
+ `import.meta.asset`: it resolves both with `import.meta.resolve`. (#535)
1111
+ - A skill's tools are reselected on the turn the skill loads, so a run
1112
+ resumed after a skill load no longer fails with
1113
+ `Tools changed since this run paused`, and a resumed run hashes the system
1114
+ turn it sent. (#516)
1115
+ - On Linux and Windows, a `Harness` made in the host's own process no longer
1116
+ relaunches the host's entry with `--gpu-probe`, which ran the host program a
1117
+ second time and held each first model load for 5 seconds. Only an entry that
1118
+ imports the probe hook first, as the sidecar entries do, is relaunched; any
1119
+ other reads its memory budget from `nvidia-smi`, `rocm-smi`, sysfs or the
1120
+ registry. (#539)
1121
+ - An aborted run's metrics count the round the abort stopped: it is in
1122
+ `rounds[]` with `stopReason: 'cancelled'`, and the metrics event's
1123
+ `stopReason` is `cancelled`. See [Speed stats](docs/speed-stats.md). (#476,
1124
+ #479)
1125
+ - `serveHarness(ipc, new Harness(...))` compiles with no cast: a `Harness` is a
1126
+ `HarnessContract`. `ChatMessage.attachments` no longer takes `null`, and the
1127
+ contract's contexts take a bare `AbortSignal`; `RemoteHarness` and
1128
+ `HarnessClient` still take any host signal (`HostSignal`). (#353)
1129
+ - A reply that says it will act but asks the user something ends the turn,
1130
+ instead of a forced round making up the answer. (#252, #272, #292)
1131
+ - Under `SeatbeltSandbox`, a shell line can no longer read or write the app
1132
+ storage root, and `SeatbeltSandbox.profile` takes
1133
+ `(policy, { roots, denied, ancestors })`. (#293)
1134
+ - Under `SeatbeltSandbox`, the `/usr/bin` xcrun shims (`git`, `python3`) no
1135
+ longer run `xcodebuild` on every call when full Xcode is selected. Each call's
1136
+ and each workspace's `TMPDIR` starts with a copy of the user's xcrun cache, and
1137
+ a lookup that misses is saved to the copy only. (#467)
1138
+ - A call to a skill name the turn does not have is refused with the names of
1139
+ the skills shown that turn (`The skills are: weather, ...`), so a small model
1140
+ loads one by its exact name instead of guessing. With no skills list shown,
1141
+ the refusal is unchanged. (#473)
1142
+ - On Node, reaching the SDK no longer fails with `Bare is not defined`: the
1143
+ core and the speech, translation, image and music plugins leave SDK plugin
1144
+ registration to the SDK's own Bare worker. (#362)
1145
+ - On Node, exec's default shell no longer fails every command with
1146
+ `require.addon is not a function`. (#274)
1147
+ - On Node, a shell line under `SeatbeltSandbox` no longer fails with
1148
+ `require.addon is not a function`. (#281)
1149
+ - A completion event the hrpc schema cannot encode ends the run with an
1150
+ `error` event instead of killing the harness process. (#267)
1151
+ - `modelEvents`, `download`, `speakStream` and host `completion` frames that
1152
+ cannot encode report an error instead of killing the process. (#278)
1153
+ - `copyAddonExternals` ships a dependency nested under a package when the root
1154
+ copy is out of its range. (#228)
1155
+ - On the last tool round, an empty response wraps up instead of re-asking one
1156
+ round past `maxToolRounds`. (#167)
1157
+ - A `FAIL` sent while a run was finishing no longer runs the finishing step and
1158
+ its `runEnd` hook again. (#167)
1159
+ - After `generate_image` or `edit_image`, the next round is told the image is
1160
+ attached and shown to the user, as it is after `pdf`, the office tools and
1161
+ `exec`, instead of "call the next tool, or answer". On that nudge Qwen3.5-4B
1162
+ sometimes called `generate_image` again to show the image it had just made,
1163
+ and the chat got two. (#610)
1164
+ - A custom model whose head width a quantized KV block does not divide loads
1165
+ with an `f16` cache instead of failing with "Failed to initialize context"
1166
+ (BeeLLM, head width 40, under the hosts' `q8_0`). (QVAC-27064)
1167
+ - A custom model whose chat template has no `<think>` tag no longer starts its
1168
+ reply inside a think block, so the reply stops streaming as thinking and then
1169
+ repeating as the answer (Qwen2.5-Coder with thinking on). Its reasoning
1170
+ budget is unchanged. (QVAC-27064)
1171
+ - An `http_request` body, or a shaped skill operation response, is cut at a
1172
+ share of the context window instead of a fixed 8 KB: half the room the last
1173
+ round left, at a character per token so Chinese or Japanese text cannot
1174
+ overflow it, and shared by every call in the round. With 11k tokens used of
1175
+ a 51k window that is 20,000 characters where it was 8,192. A cut result
1176
+ carries `truncated`, with the characters kept, the total, the share read and
1177
+ a note that the reply must say so. A Google Doc export came back as its
1178
+ first fragment and the model summarized that as the whole document. See
1179
+ [the decision record](./docs/decisions/2026-10-23-a-tool-response-is-cut-to-the-window-and-says-so.md).
1180
+ - `http_request` gives up once no byte has arrived for 10 seconds, at any
1181
+ point in the request, instead of 10 seconds for the whole response. A body
1182
+ that keeps arriving gets up to 30 seconds, so a large Google Doc export on a
1183
+ slow link finishes, while a server that stops answering still fails as fast
1184
+ as before.
1185
+ - `pptx` skips look-only keys, an invented theme, a body a layout cannot hold
1186
+ and a picture with no upload, listing them in `skipped`, instead of
1187
+ refusing the whole deck. (#527)
1188
+ - A loaded skill's body reaches the model as text under its `[Tool: skill …]`
1189
+ header, with only `name` and `file` on the JSON line, instead of stringified
1190
+ whole. Qwen3.5-4B copied the escaped quotes of `A[\"First step\"]` into its
1191
+ own Mermaid block, which the app then could not render (QVAC-24502). Turns
1192
+ an older harness stringified whole still read as loaded; an existing chat
1193
+ with a replayed skill stub re-reads once after the update. (#639)
1194
+ - A new user-added overlay skill no longer runs a credential health check, so
1195
+ a key it holds is never sent to a probe host it chose. An overlay that
1196
+ shadows a bundled skill keeps its checks, still bound to the bundled
1197
+ allow-list. (#654)
1198
+ - A skill picked with `@` that cannot serve the request, or whose input is not
1199
+ in the chat, now makes the model say so in one sentence instead of calling
1200
+ tools to force it. (#643)
1201
+
1202
+ ## [0.8.12] - 2026-10-21
1203
+
1204
+ ### Added
1205
+
1206
+ - A custom GGUF the catalog does not know is sized by the engine fitter from
1207
+ its header and tensor list, so its preview gives a fit verdict instead of
1208
+ "Fit unknown". Split models stay unknown. (#562)
1209
+
1210
+ ### Changed
1211
+
1212
+ - `http_request`, `mcp_call` and every skill-gated tool (`docx`, `pptx`,
1213
+ `xlsx`, `pdf`, `generate_image`, `weather_lookup`, compiled skill operations,
1214
+ …) are deferred behind `tool_search`: their schemas stay out of the prompt
1215
+ until searched, called or loaded with their skill. The tool set is fixed per
1216
+ chat, so a skill load no longer re-primes the prompt cache. `skill-eval`
1217
+ gains `--defer`. (#566)
1218
+ - `@qvac/sdk` and `@qvac/inference` move to `^0.22.0`. Loads are sized on the
1219
+ fitter's `floorBytes`, so more models fit under a memory cap before one is
1220
+ unloaded. (#564)
1221
+
1222
+ ### Fixed
1223
+
1224
+ - A model name that is not an exact catalog or registry name never resolves
1225
+ to a vision projector (`QVAC_MODEL=Qwen3.5-4B` loaded the `mmproj` file and
1226
+ failed to initialize). (#551)
1227
+ - The device `thinkingDefault` reaches the Qwen3.5 presets, so turning
1228
+ thinking off works for 2B and 4B when the agent inherits. (#548)
1229
+ - A GGUF header read that drops its connection, or gets a 408, 429 or 5xx, is
1230
+ retried up to 3 times, and each failure is logged with its host and cause.
1231
+ Add no longer fails after a good preview on a flaky CDN. (#561)
1232
+ - A GGUF that names no architecture is no longer offered as a chat model: in
1233
+ an `sd.cpp` repo it reads as image generation, otherwise it is refused as
1234
+ `not-a-model`. (#529)
1235
+ - Small models read an attached PDF with `pdf` instead of `web_fetch` on a
1236
+ made-up link, and a text-less page the host already rendered as an image is
1237
+ pointed at that image instead of "no OCR here". (#525)
1238
+ - A `pptx`, `docx` or `xlsx` call that builds a new file without `output` is
1239
+ saved and attached instead of refused. The file is named after
1240
+ `create.title` (`Climate Change` → `climate_change.docx`), or
1241
+ `presentation.pptx`, `document.docx` or `workbook.xlsx` without one, the way
1242
+ the `pdf` tool names a new PDF. A 2B model often left `output` off, and the
1243
+ refusal sent it guessing attachment ids until the turn ended with no file.
1244
+ A call whose ops only read (`read`, `sheets`, `paragraphStyles`, …) returns
1245
+ their results and saves nothing, so it never attaches a blank file.
1246
+ (QVAC-26944)
1247
+ - A new Word document takes two more of a small model's slips instead of
1248
+ refusing the whole call: a block position past the end of what the call has
1249
+ built so far lands at the end, and `appendParagraphs` with an `at` inserts
1250
+ the paragraphs there. An attached document keeps the strict checks. In any
1251
+ `pptx`, `docx` or `xlsx` call, an `{ "op": "output", … }` entry is dropped
1252
+ instead of refused, and a file name in it names the file unless `output` is
1253
+ already set. (QVAC-26944)
1254
+ - In Obsidian vault folder mode, "what's in my vault" lists the notes with
1255
+ `obsidian files` instead of passing the vault folder to `read` or guessing
1256
+ commands, and a `read` that still names a folder is told to list it with
1257
+ `obsidian files` instead of failing with a raw file system error.
1258
+ (QVAC-27069)
1259
+
1260
+ ## [0.8.11] - 2026-10-16
1261
+
1262
+ ### Fixed
1263
+
1264
+ - A skill CLI call the schema rejects names what the command accepts: an
1265
+ `unknown parameter`, `unknown flag` or `unexpected argument` error now ends
1266
+ with the node's parameters or subcommands, e.g.
1267
+ `unknown parameter "title"; create takes: name, path, …`. The message
1268
+ prefixes are unchanged. (#523)
1269
+
1270
+ ## [0.8.10] - 2026-10-16
1271
+
1272
+ ### Added
1273
+
1274
+ - Harness log lines carry a level, `error`, `warn`, `info` or `debug`, and run
1275
+ on `@qvac/logging`. A sink set with `setHarnessLogSink` receives the level as
1276
+ its second argument, `(line, level) => …`, and `harnessLog`,
1277
+ `setHarnessLogLevel` and the `HarnessLog` and `LogLevel` types are exported.
1278
+ `hlog` keeps working and logs at `info`. (#471)
1279
+ - `@qvac/harness/errors`: every runtime failure the harness detects throws a
1280
+ `HarnessError`, a `@qvac/error` error with a code in 102001–104000, and its
1281
+ message is unchanged. `isHarnessError(err, name)` matches the code, also once
1282
+ bare-rpc has turned it into a string, and `harnessErrorCode(name)` and
1283
+ `harnessErrorCodes()` give the numbers. A code reaches a host on a unary RPC
1284
+ call; completion, model and download events still carry only the message.
1285
+ (#472)
1286
+
1287
+ ### Changed
1288
+
1289
+ - `QVAC_LOG_LEVEL` (the app's `--log-level`) now filters harness lines too. At
1290
+ `info`, round stats and `sdk tool definitions`, which are `debug`, leave
1291
+ `harness.log`. With it unset, an enabled log keeps every line, as before.
1292
+ (#471)
1293
+ - The `logger` a host passes to `spawnHarness` or `harnessChild` sets harness's
1294
+ log level, in the sidecar's `harness.log` as well as in the host's process,
1295
+ when it has `getLevel()`; `QVAC_LOG_LEVEL` still wins when set. The lines
1296
+ harness writes in the host's process go to that logger at their level, not to
1297
+ stdout, whose unread pipe can halt Bare on Windows. A sink set with
1298
+ `setHarnessLogSink` still takes them first. (#471)
1299
+ - **Breaking** for a caller that reads `.name`: `AbortedError`, `TimeoutError`,
1300
+ `AbortError`, `JsonParseError` and `DriveReadTruncatedError` now extend
1301
+ `HarnessError` and carry its registry name (`AbortedError` is `ABORTED`,
1302
+ `TimeoutError` is `FETCH_TIMED_OUT`), and the Python sandbox's
1303
+ `fetch refused: …` errors are no longer `TypeError`s. Match with `instanceof`
1304
+ or the code. (#472)
1305
+ - **Breaking** for a host that names file tools: with a folder grant, ten
1306
+ flat tools replace `read_files`, `file_glob`, `grep`, `create_documents` and
1307
+ `edit_documents`: `read_file`, `list_dir`, `glob`, `grep`, `write_file`,
1308
+ `edit_file`, `move_file`, `copy_file`, `make_dir` and `trash_file`. Each call
1309
+ names one file with plain string arguments, and `grep` takes one `pattern`
1310
+ instead of `queries[]`. A relative path resolves inside the shared folder,
1311
+ the first read grant or else the first write grant, and a write outside the
1312
+ write grant is refused. `read_file` numbers its lines, takes a range, caps a
1313
+ read at 20,000 characters and reads PDF, Word and PowerPoint as text.
1314
+ Creating a file, `copy_file` and `make_dir` run unprompted; overwriting,
1315
+ editing, moving and trashing ask first, and `trash_file` moves the file into
1316
+ the folder's own `.trash`. All ten belong to the `files` toolset. A host that
1317
+ labels, groups or describes tools by name needs the new names; old
1318
+ tool-activity records keep the old ones. A run without a folder grant sends
1319
+ the same prompt as before. (#490)
1320
+ - `@qvac/sdk` is `^0.21.0`, not `0.21.0`, so a host resolves the newest 0.21.x
1321
+ patch. (#520)
1322
+
1323
+ ### Removed
1324
+
1325
+ - **Breaking:** the `lib/tools/read-files.ts`, `file-glob.ts`, `grep.ts`,
1326
+ `create-documents.ts` and `edit-documents.ts` subpaths, which `./lib/tools/*`
1327
+ exposed. Their tools left the sidecar in #490; the new ones are under
1328
+ `lib/tools/files/`. (#491)
1329
+
1330
+ ## [0.8.9] - 2026-10-15
1331
+
1332
+ ### Changed
1333
+
1334
+ - A skill with a `display_name` answers only to that handle; a skill without
1335
+ one still answers to its folder name. `@documents` resolves the word skill
1336
+ and `@word` no longer does, which replaces the 0.8.8 note that both resolve.
1337
+ Implicit preload skips a leading `@name`, so a handle that resolves to no
1338
+ skill loads nothing, while a plain "make an excel sheet" still preloads
1339
+ Spreadsheets. A paired device on an older app build still sends `@word` and
1340
+ `@excel`; once the skills package declares `display_name`, a host on this
1341
+ version answers those requests without the skill. (#505)
1342
+ - `@qvac/skills` 0.1.15: the Word and Excel skills declare `display_name`, so
1343
+ their handles are `@documents` and `@spreadsheets`. The browser skill hands a
1344
+ CAPTCHA, interstitial or login page to the user instead of clicking through
1345
+ or waiting, and keeps its Chrome cookies and logins across chats. (#513)
1346
+
1347
+ ## [0.8.8] - 2026-10-15
1348
+
1349
+ ### Added
1350
+
1351
+ - A skill's manifest may declare `display_name`, the `@` handle users see and
1352
+ type, as one word (letters, digits, `-` or `_`); a `display_name` that is
1353
+ not one word is ignored. The Word and Excel skills are shown as Documents
1354
+ and Spreadsheets, and their folder names are trademarks, so a host needs a
1355
+ handle other than the name. Once the word skill's manifest declares
1356
+ `display_name: Documents`, `@documents` resolves it, and `@word` still does,
1357
+ so an app that sends the folder name keeps working. The catalog entry and
1358
+ the `skills` wire carry `displayName`, a customized copy of a skill keeps
1359
+ the shipped one, and `skillMentionHandle` gives a host the same rule the
1360
+ harness matches on. The folder name stays the skill's key everywhere else.
1361
+ (#469)
1362
+
1363
+ ### Fixed
1364
+
1365
+ - A replayed tool call keeps its markup when history is rendered from scratch.
1366
+ Every assistant turn lost its tool-call markup on the way in, so a retry,
1367
+ compaction, a dropped chat cache, an overflow candidate or another device
1368
+ showed the model an empty assistant turn followed by a result answering
1369
+ nothing. Only an assistant turn that no tool result follows is stripped now,
1370
+ which still keeps markup leaked into a final answer out of the prompt. (#402)
1371
+ - A web search the harness runs for "search the web" now ends on the same
1372
+ continuation nudge as a search the model makes. Without it, the round after
1373
+ the search often failed on Qwen3.5-9B with thinking on instead of answering.
1374
+ (#486)
1375
+ - An identical call to a read tool that already succeeded this turn is
1376
+ answered with a note pointing at the earlier result instead of running
1377
+ again, and counts as a strike. A small model could repeat the same call
1378
+ hundreds of times in one round until the context filled. Any other tool
1379
+ that runs clears the memo, and a round is cut to its first 16 calls. (#377)
1380
+ - Asking the `skill` tool for a file a loaded skill does not have returns
1381
+ guidance listing its real files instead of an error, so the app no longer
1382
+ shows a failed tool call for it. A file asked of an unknown skill returns
1383
+ `skill not found`. (#383)
1384
+
1385
+ ## [0.8.7] - 2026-10-12
1386
+
1387
+ ### Added
1388
+
1389
+ - A skill's manifest may declare `env`, the variables its `exec` commands run
1390
+ with. The child process env is an allowlist, so this is the only way a
1391
+ skill's binary sees a setting of its own. The value `${session}` expands to
1392
+ the chat the run belongs to, which lets a long-lived tool such as a browser
1393
+ daemon keep one instance per chat; a run with no session drops that variable.
1394
+ An overlay skill keeps the base skill's `env`, so an edit never widens what
1395
+ a command can reach. `completion()` takes an optional `session`, in process
1396
+ and over hrpc, and falls back to the first segment of `cacheKey`. (#341)
1397
+
1398
+ ```yaml
1399
+ metadata:
1400
+ env:
1401
+ AGENT_BROWSER_SESSION: '${session}'
1402
+ AGENT_BROWSER_HEADED: '1'
1403
+ ```
1404
+
1405
+ - A verb in a skill's `cli.schema.json` may carry `x-max-output-chars`, the
1406
+ most output `exec` returns for that command. The ceiling wins over the
1407
+ model's own `maxOutputChars`, the truncation note says which limit applied,
1408
+ and a schema whose cap is not a positive integer fails to load. Page
1409
+ snapshots and other verbose read verbs stay inside the context this way.
1410
+ (#342)
1411
+
1412
+ - The `browser` skill ships with `@qvac/skills` 0.1.14: an agent drives a
1413
+ Chromium through the `agent-browser` CLI, scoped to `exec(agent-browser)`,
1414
+ with one browser session per chat. (#405)
1415
+
1416
+ - A chat model's context climbs as far as the device and the SDK allow when
1417
+ neither the agent nor the host sets one: 262,144, then 131,072, then 65,536,
1418
+ before the default. The device class caps the climb, the trained window from
1419
+ the weight's GGUF header bounds it, and each rung must pass `assessModelFit`
1420
+ with its own config. The choice is kept per pool key for the life of the
1421
+ process. See the
1422
+ [decision record](https://github.com/tetherto/qvac-harness/blob/v0.8.7/docs/decisions/2026-10-08-the-device-class-sets-how-far-the-context-climbs.md).
1423
+ (#382)
1424
+
1425
+ ### Changed
1426
+
1427
+ - **Breaking for hosts:** a skill named with `@` or in prose now reaches the
1428
+ model as a `skill` call, its result and the continuation nudge right after the
1429
+ request, exactly the round a load the model makes itself leaves, instead of
1430
+ being written into the user's message. The user's turn is sent as typed and
1431
+ the run stays on the chat's KV cache key, so its rounds and the turn after it
1432
+ read the cached prefix; the child key 0.8.6 ran these turns under (#305) and
1433
+ its delete are gone. The host must replay each run's turns as it sent them
1434
+ (`@qvac/core` does from 0.7.0, tetherto/qvac-core#338): a host that collapses
1435
+ a run to its request and answer leaves the cache's message count stale, and
1436
+ the next turn's whole history is appended to the cache again. Because the body
1437
+ is replayed as sent, an edit to the skill reaches such a chat on its next
1438
+ mention of the skill, not on the next turn.
1439
+
1440
+ - `bare-stow` 0.1.7, with the patches it made stale dropped. (#396)
1441
+ - `lunte` 1.8.6 and `lunte-plugin-qvac` 0.2.0. (#397)
1442
+
1443
+ ### Fixed
1444
+
1445
+ - **Breaking:** a skill switched off on the agent can no longer be used. Naming
1446
+ it with `@` or in prose loads nothing and unlocks nothing, and a chat that
1447
+ loaded it earlier loses it as soon as it is switched off (QVAC-25357).
1448
+ `skillIsActive` reads the agent's `enabledSkills` alone, and
1449
+ `SkillActivation` drops its `mention` and `loadedSkills` fields. A host that
1450
+ relied on a mention to grant a skill must enable it on the agent first. (#338)
1451
+ - A round that says nothing and calls nothing is re-asked on a history that
1452
+ keeps that round's turn. The re-ask used to resend the history without it,
1453
+ which the SDK, having cached the turn, read as stale: it sent the whole
1454
+ history again and the addon appended it to the KV cache. (#403)
1455
+ - A model loaded by hand when nothing else is in memory is no longer refused,
1456
+ even when its estimate is above the memory cap. Beside another model a
1457
+ manual load is still refused, so it never piles a second model into memory.
1458
+ (#394)
1459
+
1460
+ - When llama.cpp overruns its grammar mid-round and a complete
1461
+ `<function=…></function>` call has already streamed, the round ends on that
1462
+ text and markup recovery runs the call, instead of the turn failing with
1463
+ "Unexpected empty grammar stack". The held-back prose is flushed before any
1464
+ rethrow, and the inference inspector reports the recovered round as
1465
+ `completed` with the grammar error as its `reason`. (#370)
1466
+
1467
+ - `@mention`s, the implicit skill preload and the explicit web-search check
1468
+ read the turn as the user typed it (`CompletionContext.said`, carried in the
1469
+ start frame's existing payload), so a host that rewrites the stored turn no
1470
+ longer hides a mention. Hosts that do not send `said` behave as before.
1471
+ (#372)
1472
+
1473
+ - Office files keep their pictures off the text: in a deck a picture fills an
1474
+ empty placeholder, sits below the text when there is room, and otherwise
1475
+ takes the right half; an op aimed at a slide a later `addSlide` creates is
1476
+ refused rather than moved. In a workbook `addImage` without a `cell` lands
1477
+ beside the data, as `addChart` does, and a second picture or chart stacks
1478
+ below the first. A nested op is named as its own entry in a tool error, and
1479
+ the tool result says when an attached image went unused. (#406)
1480
+
1481
+ ### Removed
1482
+
1483
+ - **Breaking:** `skillPreloadMessage` (`lib/tools/skills/mention.ts`) and
1484
+ `withoutSkillLoadTurns` (`lib/capabilities/tool-turns.ts`). Nothing writes a
1485
+ skill body into the user's message any more, so no earlier load turn has to
1486
+ be dropped to keep the two from contradicting each other.
1487
+ - `CompletionSdk.deleteCache`. Nothing calls it now that the child key (#305)
1488
+ and the chat-cache drop after a model-loaded skill (#373, reverted in #400)
1489
+ are gone.
1490
+
1491
+ ## [0.8.6] - 2026-10-08
1492
+
1493
+ ### Added
1494
+
1495
+ - `setModelMemoryCap(percent)` keeps several models loaded side by side. Loaded
1496
+ models may fill that share of the device's memory budget, so chat models a
1497
+ request loaded stay loaded while they fit, and a chat switching between them
1498
+ loads neither again.
1499
+
1500
+ A load that would not fit unloads idle models one at a time, least recently
1501
+ used first within each group: image and music models first, then embedding,
1502
+ speech and transcription models, then chat models a request loaded, then
1503
+ those loaded by hand. A manual `loadModel` of any kind never unloads another
1504
+ model.
1505
+
1506
+ Each load is sized by `assessModelFit`. `list()` rows of loaded models carry
1507
+ the estimate as `memoryBytes`, and `memoryUsage()` answers their total. `0`,
1508
+ a mobile device, and a host that never sets a cap keep one chat model a
1509
+ request loaded, as before (QVAC-25735). See
1510
+ [Keeping several models in memory](https://github.com/tetherto/qvac-harness/blob/v0.8.6/README.md#keeping-several-models-in-memory)
1511
+ and the
1512
+ [decision record](https://github.com/tetherto/qvac-harness/blob/v0.8.6/docs/decisions/2026-10-07-loaded-models-share-a-memory-budget.md).
1513
+
1514
+ ```js
1515
+ await harness.setModelMemoryCap(85)
1516
+
1517
+ const { usedBytes } = await harness.memoryUsage()
1518
+ const loaded = (await harness.list({ cachedOnly: true })).filter((m) => m.isLoaded)
1519
+ // each loaded row carries memoryBytes, the estimate its load was sized by
1520
+ ```
1521
+
1522
+ (#358)
1523
+
1524
+ - `setDownloadsAllowed({ allowed })`, in process and over hrpc, lets a host hold
1525
+ model downloads, for example while a phone is on cellular, so a request
1526
+ cannot pull several GB without asking. Downloads are allowed by default, and
1527
+ `download()` itself is never held: it is how the host fetches a held model
1528
+ once the user approves.
1529
+
1530
+ While downloads are not allowed, a load whose model is not on the device
1531
+ emits a `model` event with `status: 'held'`, the model's download name and
1532
+ its `addon`, then waits. It goes ahead once a `download()` puts the model on
1533
+ the device or downloads are allowed again. Aborting the caller's signal ends
1534
+ it with `AbortedError`, and a wait that ends without loading reports `error`
1535
+ with `message: 'aborted'`. This covers the image, music and translation
1536
+ runtimes and every pooled load (chat, embedding, speech, transcription).
1537
+
1538
+ Over hrpc, every model event frame now carries an `addon` field, which is
1539
+ `null` unless the event is `held` or the `error` that ends a held wait. See
1540
+ [Holding model downloads](https://github.com/tetherto/qvac-harness/blob/v0.8.6/README.md#holding-model-downloads)
1541
+ and the
1542
+ [decision record](https://github.com/tetherto/qvac-harness/blob/v0.8.6/docs/decisions/2026-10-07-a-load-waits-for-a-download-the-host-holds.md).
1543
+
1544
+ ```js
1545
+ await harness.setDownloadsAllowed({ allowed: false })
1546
+
1547
+ harness.on('model', (state) => {
1548
+ if (state.status === 'held') askToDownload(state.model, state.addon)
1549
+ })
1550
+
1551
+ // later, once the user agrees
1552
+ await harness.setDownloadsAllowed({ allowed: true })
1553
+ ```
1554
+
1555
+ (#340)
1556
+
1557
+ - Ternary Bonsai 2 27B joins the curated catalog in two builds,
1558
+ `Ternary-Bonsai-2-27B-PQ2_0` (7.2 GB) and `Ternary-Bonsai-2-27B-PTQ1_0`
1559
+ (5.9 GB), each with its vision projection. Both sit in the `high` tier, by
1560
+ their memory footprint rather than their parameter count.
1561
+
1562
+ It is a Qwen3.8-27B fine-tune whose name the SDK's dialect router does not
1563
+ recognise, so it parses tool calls as `qwen35`; a catalog entry can now name
1564
+ its tool dialect.
1565
+
1566
+ ```js
1567
+ import { BONSAI_2_27B_PTQ1 } from '@qvac/harness/model-catalog'
1568
+
1569
+ await harness.loadModel({ model: BONSAI_2_27B_PTQ1, agent: { ctxSize: 8192 } })
1570
+ ```
1571
+
1572
+ (#303)
1573
+
1574
+ ### Changed
1575
+
1576
+ - `@qvac/sdk` and `@qvac/inference` 0.21.0, with `@qvac/llm-llamacpp` 0.55.0.
1577
+ A host that packages the addons exempts `@qvac/fabric-<os>-<cpu>` from any
1578
+ install age gate: `@qvac/fabric` now ships its prebuilds as those
1579
+ per-platform packages. `@qvac/model-fit` leaves the native graph. The fit
1580
+ check passes the model's source to the SDK's new `loadModel`-shaped
1581
+ `assessModelFit` input. (#302)
1582
+ - Transcribing long audio no longer needs memory in proportion to its length.
1583
+ It streams the audio to the model in 300 s segments instead of decoding the
1584
+ whole clip first: a 3.8 h clip peaked at about 0.9 GB above baseline, down
1585
+ from 1.8 GB. Clips under 60 s are transcribed as before. (#291)
1586
+
1587
+ ### Fixed
1588
+
1589
+ - A run that preloads a skill (`@skill`, or a skill named in prose) no longer
1590
+ prefills the whole prompt on every round of a tool loop. It caches its prompt
1591
+ under a child of the chat's key for the length of the run, and the child key
1592
+ is deleted when the run ends. (#305)
1593
+
1594
+ ## [0.8.5] - 2026-10-06
1595
+
1596
+ ### Added
1597
+
1598
+ - The model can now read, edit and create PowerPoint, Word and Excel files
1599
+ without Python, on Bare and Node: skill-gated `pptx`, `docx` and `xlsx`
1600
+ tools on the office engine. These are the tools the presentations, word and
1601
+ excel skills in `@qvac/skills` 0.1.12 call.
1602
+
1603
+ A call takes an `attachmentId` (or `create` options), `ops` that name engine
1604
+ methods with named arguments, and an `output` file name; with an
1605
+ `attachmentId` alone it returns the file's contents. The first failing op
1606
+ saves nothing and returns the engine's error.
1607
+
1608
+ An edit is never saved under the attached file's own name. Saving the same
1609
+ file again in one turn answers with the one already attached, and a changed
1610
+ file under that name is refused. The one-line answer comes back as `reply`.
1611
+ See the
1612
+ [office engine](https://github.com/tetherto/qvac-harness/blob/v0.8.5/lib/office/engine/README.md)
1613
+ for the methods an op can name.
1614
+
1615
+ ```js
1616
+ // the arguments a model passes to the pptx tool
1617
+ {
1618
+ create: { title: 'Q3 review' },
1619
+ ops: [{ op: 'addSlide', title: 'Revenue', body: 'Up 12% on Q2' }],
1620
+ output: 'q3-review.pptx'
1621
+ }
1622
+ ```
1623
+
1624
+ (#286)
1625
+
1626
+ ### Changed
1627
+
1628
+ - **Breaking:** `@qvac/skills` is now 0.1.12, whose office and pdf skills run on
1629
+ the `pptx`, `docx`, `xlsx` and `pdf` tools instead of Python. A host that
1630
+ passes its own `skillsDir` needs 0.1.12 as well: older office skills import
1631
+ Python libraries this release no longer ships. A host on the bundled skills
1632
+ has nothing to do.
1633
+
1634
+ ```sh
1635
+ # a host whose own skillsDir comes from @qvac/skills
1636
+ # before
1637
+ npm install @qvac/skills@0.1.11
1638
+ # after
1639
+ npm install @qvac/skills@0.1.12
1640
+ ```
1641
+
1642
+ (#286)
1643
+
1644
+ - `extractOfficeText` and `extractDocxText` no longer start Pyodide: they read
1645
+ .docx, .xlsx and .pptx in process on the engine, and read at most 1M cells
1646
+ across a workbook. Extracted workbook booleans read `true`/`false` instead of
1647
+ `True`/`False`. `closeOfficeWorker` and `closeDocxWorker` remain as no-ops.
1648
+ (#286)
1649
+ - `exec` refuses Python that imports `pptx`, `docx` or `openpyxl`, or declares
1650
+ their packages, before it runs. The refusal names the tool (or the skill
1651
+ that grants it) to use instead, so the model moves to the office tools
1652
+ rather than trying to install the package. (#287)
1653
+ - **Breaking:** Python run through `exec` asks for approval like any other
1654
+ write, including a run that only builds a new PDF. Those runs used to
1655
+ skip `approve`; now the user is asked. The `pdf` tool, which builds PDFs now,
1656
+ counts as a read and does not ask.
1657
+
1658
+ ```js
1659
+ // before: exec running Python that only built a new PDF skipped approve
1660
+ // after: it reaches approve as a write, like any other Python run
1661
+ const context = {
1662
+ model,
1663
+ agent,
1664
+ messages,
1665
+ approve: async ({ name, effect }) => (effect === 'write' ? askUser(name) : true)
1666
+ }
1667
+ ```
1668
+
1669
+ (#289)
1670
+
1671
+ ### Removed
1672
+
1673
+ - **Breaking:** the vendored Python wheels for python-pptx, python-docx,
1674
+ openpyxl, fpdf2 and pypdf, and their dependencies. Only micropip is still
1675
+ seeded; any other package installs from PyPI, which sandbox mode refuses.
1676
+ Use the office and `pdf` tools.
1677
+
1678
+ ```js
1679
+ // before: exec built a PDF offline with the vendored fpdf2
1680
+ { language: 'python', command: 'from fpdf import FPDF\n...', outputs: ['report.pdf'] }
1681
+ // after: the pdf tool builds it
1682
+ { action: 'create', markdown: '# Report\n...', output: 'report.pdf' }
1683
+ ```
1684
+
1685
+ (#286, #289)
1686
+
1687
+ - The `exec` guidance written for python-pptx, python-docx and fpdf2 code:
1688
+ their error hints and source checks, and the shrink-to-fit pass on saved
1689
+ decks. (#288, #289)
1690
+
1691
+ ## [0.8.0] - 2026-10-05
1692
+
1693
+ ### Added
1694
+
1695
+ - The model can read, create and change PDFs without Python: a skill-gated
1696
+ `pdf` tool on `bare-pdfium` 1.6.0. The pdf skill in the next `@qvac/skills`
1697
+ release uses it instead of Python. On Node it reports that the device cannot
1698
+ open PDFs.
1699
+
1700
+ With an `attachmentId` and no `action` it reads a PDF: the page count, each
1701
+ page's text and the form fields. With an `action` it saves a new file named
1702
+ `output` and attaches it: `create` from Markdown (chat images placed with
1703
+ `![caption](attachmentId)`), `merge`, `split`, `rotate`, `watermark`, `fill`,
1704
+ `encrypt`, `decrypt` and `text`.
1705
+
1706
+ Errors name what exists, a locked PDF takes its password on any action, and
1707
+ the one-line answer comes back as `reply`.
1708
+
1709
+ ```js
1710
+ // the arguments a model passes to the pdf tool
1711
+ { attachmentId, action: 'rotate', degrees: 90, pages: [2], output: 'scan-rotated.pdf' }
1712
+ ```
1713
+
1714
+ (#256)
1715
+
1716
+ - An office engine in `lib/office/engine/` reads, edits and creates `.pptx`,
1717
+ `.docx` and `.xlsx` files in TypeScript on Bare and Node, so office editing
1718
+ no longer needs Python and can run on mobile. It is internal in this release:
1719
+ the tools that drive it come in 0.8.5.
1720
+
1721
+ It keeps untouched parts byte for byte, fails with a `DocsError` whose code
1722
+ names the problem, and moves Excel references when rows and columns change.
1723
+ It adds `@xmldom/xmldom`, makes `bare-zlib` a direct dependency and maps
1724
+ `#zlib` to `bare-zlib` or `zlib`. See the
1725
+ [engine's README](https://github.com/tetherto/qvac-harness/blob/v0.8.0/lib/office/engine/README.md)
1726
+ and the
1727
+ [decision record](https://github.com/tetherto/qvac-harness/blob/v0.8.0/docs/decisions/2026-09-28-office-files-are-edited-by-the-harness-engine.md).
1728
+ (#150)
1729
+
1730
+ ### Fixed
1731
+
1732
+ - Qwen3.5-family models no longer stall several tool calls into a turn. A tool
1733
+ call that ran goes back into the chat history in the Qwen3.5 template's own
1734
+ format (`<tool_call>` wrapper, one line per tag, string values as written)
1735
+ instead of a compact `<function=…>` line.
1736
+
1737
+ A model several calls into a turn copied the compact form, the tool grammar
1738
+ rejected it, and the run ended in "This didn't finish". Models with another
1739
+ tool format (e.g. MedPsy) still get a format that is not their own, until
1740
+ the SDK accepts structured tool calls in history. (QVAC-23092, #146)
1741
+
1742
+ - A skill's gated tools now appear when the model first asks the skill for a
1743
+ file it does not have. Loaded with such a `file` before its instructions were
1744
+ loaded, the skill returns those instructions with a line naming the files it
1745
+ has, so it counts as loaded. Before, a one-file skill answered that the model
1746
+ already had its instructions, and its tools stayed hidden. (#257)
1747
+ - Small models no longer keep calling tools on their own output until the round
1748
+ cap. After a tool attaches a file, the loop tells the model the file is shown
1749
+ and to answer, allows one more tool round, then writes the answer in a
1750
+ tool-less round. (#258)
1751
+ - `exec`: text like `$1,299` in a shell command runs on the first try. A `$`
1752
+ before a digit, a space or punctuation is escaped instead of rejected. Real
1753
+ shell expansion is still refused, now with a hint to single-quote the text.
1754
+ (#208)
1755
+
1756
+ ## [0.7.3] - 2026-10-01
1757
+
1758
+ ### Added
1759
+
1760
+ - A tool can now end the turn with its own answer. A tool result may carry
1761
+ `answer: true` beside a non-empty `content`, and that content becomes the
1762
+ reply without another round through the model. The `tool-result` event still
1763
+ fires.
1764
+
1765
+ `weather_lookup` uses it for an ambiguous or unknown place: the question that
1766
+ lists the namesakes, or the not-found line, is the reply.
1767
+
1768
+ ```js
1769
+ const harness = new Harness({
1770
+ tools: [
1771
+ {
1772
+ name: 'store_hours',
1773
+ description: 'Opening hours of the store',
1774
+ parameters: { type: 'object', properties: {} },
1775
+ toolset: null,
1776
+ effect: () => 'read',
1777
+ execute: async () => ({ content: 'Open 9 to 5, Monday to Saturday.', answer: true })
1778
+ }
1779
+ ]
1780
+ })
1781
+ ```
1782
+
1783
+ (#153)
1784
+
1785
+ ### Fixed
1786
+
1787
+ - `weather_lookup` reports the place that was asked about: a bare "Nassau" now
1788
+ reports Nassau, Bahamas. It used to ask wttr.in by name, whose own geocoder
1789
+ put it in Westbury, New York.
1790
+
1791
+ It now finds the place before it asks for the weather. It looks the city up
1792
+ on Open-Meteo's geocoder, `geocoding-api.open-meteo.com`, a new outbound
1793
+ host, and asks wttr.in for the forecast at the coordinates of the place it
1794
+ picked, which leads the report. The resource label names both hosts.
1795
+
1796
+ A name that places of a similar size share, such as Springfield, gets a
1797
+ question listing up to four of them instead of a forecast: any namesake with
1798
+ a tenth of the largest one's population counts. A country or state in the
1799
+ request picks among them. When the geocoder is blocked, slow or failing, or
1800
+ knows no such place, the lookup asks wttr.in by name, as before. See the
1801
+ [decision record](https://github.com/tetherto/qvac-harness/blob/v0.7.3/docs/decisions/2026-09-16-a-lookup-reports-the-place-it-resolved.md).
1802
+ (#153)
1803
+
1804
+ ## [0.7.2] - 2026-10-01
1805
+
1806
+ ### Added
1807
+
1808
+ - A plain-text file `web_fetch` fetched (.txt, .csv, .json…) is now attached
1809
+ to the chat besides its text being returned, so the user can open or save
1810
+ it and `exec` can stage it to read past the returned text. The result
1811
+ carries its `attachmentId`, `fileName` and `byteLength`.
1812
+
1813
+ A body cut at the fetch cap is not attached, and a host that cannot store
1814
+ files gets the text alone, as with page images.
1815
+
1816
+ ```js
1817
+ for await (const event of harness.completion(context)) {
1818
+ if (event.type === 'tool-result' && event.name === 'web_fetch') {
1819
+ const { attachmentId, fileName, byteLength } = event.result
1820
+ // attachmentId is undefined when nothing was attached
1821
+ }
1822
+ }
1823
+ ```
1824
+
1825
+ (#147, #148)
1826
+
1827
+ ### Changed
1828
+
1829
+ - Speech sounds cleaner on desktops. Devices on the `mid` profile and up now
1830
+ speak with Supertonic 3 FP16 (`Supertonic3-FP16`, 207 MB) instead of Q8_0
1831
+ (127 MB), at 16 inference steps instead of 5, which removes the artifacts
1832
+ the 5-step output had.
1833
+
1834
+ Synthesis takes about 2.7× as long, still around 7× faster than real time on
1835
+ an M-series Mac. Phones (`low`) and `tiny` devices keep Q4_0 at 5 steps.
1836
+
1837
+ A host that prefetches `infraModelsFor` downloads the FP16 model once;
1838
+ `Supertonic3-Q8_0` stays in the catalog, and now also runs at 16 steps when a
1839
+ host asks for it by name.
1840
+
1841
+ ```js
1842
+ import { defaultTtsModelName } from '@qvac/harness/model-defaults'
1843
+
1844
+ defaultTtsModelName('mid') // 'Supertonic3-FP16', was 'Supertonic3-Q8_0'
1845
+ ```
1846
+
1847
+ (#149)
1848
+
11
1849
  ## [0.7.1] - 2026-09-30
12
1850
 
13
1851
  ### Added
14
1852
 
15
- - `list()` rows carry `isLoading`: true from the moment a load of that model
16
- starts, whoever asked for it, until it is ready or the load fails. It is read
17
- off the pool, so a host shows a model as loading without counting loads
18
- itself. A model loading again under other settings while a copy of it is
19
- resident reads `isLoaded` and `isLoading` both true. Chat models read it
20
- today: image, music and translation models load for each generation, and
21
- speech, transcription and embedding pools key by source, so those rows read
22
- `false` for now. An optional field on the wire; a row from an older harness
23
- reads `false`. (#143)
1853
+ - A host can show a model as loading without counting loads itself. `list()`
1854
+ rows carry `isLoading`: true from the moment a load of that model starts,
1855
+ whoever asked for it (a request, `warmModel` or `loadModel`), until it is
1856
+ ready or the load fails. It is read off the pool.
1857
+
1858
+ A model loading again under other settings while a copy of it is resident
1859
+ reads `isLoaded` and `isLoading` both true. Chat models read it today. Image,
1860
+ music and translation models load for each generation, and speech,
1861
+ transcription and embedding pools key by source, so those rows read `false`
1862
+ for now. It is an optional field on the wire; a row from an older harness
1863
+ reads `false`. See
1864
+ [Load and unload a model](https://github.com/tetherto/qvac-harness/blob/v0.7.1/README.md#load-and-unload-a-model).
24
1865
 
25
1866
  ```js
26
1867
  const loading = (await harness.list({ cachedOnly: true })).filter((row) => row.isLoading)
27
1868
  ```
28
1869
 
1870
+ (#143)
1871
+
29
1872
  ### Changed
30
1873
 
31
- - The `model` event carries `catalogChanged` at every edge a `list()` re-read
32
- would show: the `loading` that starts a load and the `ready` or `error` that
33
- ends it, beside `unloaded`. Progress ticks still do not. A host that re-reads
34
- the list on `catalogChanged` sees a model turn loading, then loaded, with no
35
- bookkeeping of its own. The served event stream never drops a frame that
36
- carries it, so two `ready` frames of one model under two keys both cross. (#143)
1874
+ - A host that re-reads `list()` on `catalogChanged` sees a model turn loading,
1875
+ then loaded, with no bookkeeping of its own. The `model` event carries
1876
+ `catalogChanged` at every edge a re-read would show: the `loading` that
1877
+ starts a load and the `ready` or `error` that ends it, beside `unloaded`.
1878
+ Progress ticks still do not.
1879
+
1880
+ The served event stream never drops a frame that carries it, so two `ready`
1881
+ frames of one model under two keys both cross.
1882
+
1883
+ ```js
1884
+ harness.on('model', async (state) => {
1885
+ if (state.catalogChanged) render(await harness.list({ cachedOnly: true }))
1886
+ })
1887
+ ```
1888
+
1889
+ (#143)
1890
+
37
1891
  - `ModelInfo` requires `isLoading`, and `listModels`, `customModelRows` and
38
1892
  `mergeCustomRows` return `CatalogRow`, the row before the pools are asked. A
39
- typed fake `list()` adds the field. (#143)
1893
+ typed fake `list()` adds the field.
1894
+
1895
+ ```js
1896
+ // before
1897
+ list: async () => [{ ...row, isLoaded: false }]
1898
+
1899
+ // after
1900
+ list: async () => [{ ...row, isLoaded: false, isLoading: false }]
1901
+ ```
1902
+
1903
+ (#143)
1904
+
40
1905
  - A custom model's row reads `isLoaded` only once its load has landed; it used
41
1906
  to read `true` from the first attempt. (#143)
42
1907
 
43
1908
  ### Fixed
44
1909
 
45
- - A load that ends without the model in memory emits `model` with `error` and
46
- the reason: it failed, or a suspend or close cancelled it. It used to end in
47
- silence, so a host could not tell a failed load from one still running. The
48
- `error` also refreshes the cached `isCached`, since a load may have downloaded
49
- the weights before it failed. (#143)
1910
+ - A host can tell a failed load from one still running. A load that ends
1911
+ without the model in memory emits `model` with `error` and the reason in
1912
+ `message`: it failed, or a suspend or close cancelled it. It used to end in
1913
+ silence. The `error` also refreshes the cached `isCached`, since a load may
1914
+ have downloaded the weights before it failed. (#143)
50
1915
 
51
1916
  ## [0.7.0] - 2026-09-29
52
1917
 
53
1918
  ### Added
54
1919
 
55
- - `list()` rows carry `taskType`, what the model is for: `llm`, `embeddings`,
56
- `speech-to-text`, `text-to-speech`, `image-generation`, `audio-generation`,
57
- `translation`, `text-recognition` or `other`. It is decided from the addon in
58
- one place, `lib/models/model-task.ts`, on each side of the wire rather than
59
- sent over it. `ModelTaskType` is exported, and grows the four new values a
60
- preview never returns. (#140)
1920
+ - A host can tell what each model is for without keeping its own table.
1921
+ `list()` rows carry `taskType`: `llm`, `embeddings`, `speech-to-text`,
1922
+ `text-to-speech`, `image-generation`, `audio-generation`, `translation`,
1923
+ `text-recognition` or `other`.
1924
+
1925
+ It is decided from the addon in one place, `lib/models/model-task.ts`, on
1926
+ each side of the wire rather than sent over it. `ModelTaskType` is exported,
1927
+ and grows the four new values a preview never returns.
61
1928
 
62
- - `modelsForAgent(agent, host)` lists every model an agent runs on a device,
1929
+ ```js
1930
+ const rows = await harness.list({ cachedOnly: true })
1931
+ const transcribers = rows.filter((row) => row.taskType === 'speech-to-text')
1932
+ ```
1933
+
1934
+ (#140)
1935
+
1936
+ - `modelsForAgent(agent, host)` answers which models an agent runs on a device,
63
1937
  each with its `use`: the chat model, clamped by `runnableModelName`, then the
64
1938
  image and music models its skills need. A host deciding what to download, or
65
1939
  which agents a model delete affects, asks this instead of working it out.
66
- `runnableModelName(requested, host)` and `isMobilePlatform(platform)` move here
67
- from `@qvac/core`: on a phone a pick above the device's profile runs as its
68
- recommended model. Whether the host is a phone is the required `mobile` on
69
- `HostCapability`, which `capability()` now reports, so its answer passes
70
- straight in; a host built by hand has to say. Both functions are on the
71
- browser-safe `@qvac/harness/model-catalog` entry too. (#141)
1940
+
1941
+ `runnableModelName(requested, host)` and `isMobilePlatform(platform)` move
1942
+ here from `@qvac/core`: on a phone, a pick above the device's profile runs as
1943
+ its recommended model. Whether the host is a phone is the required `mobile`
1944
+ on `HostCapability`, which `capability()` now reports, so its answer passes
1945
+ straight in; a host built by hand has to say. `runnableModelName` and
1946
+ `isMobilePlatform` are on the browser-safe `@qvac/harness/model-catalog`
1947
+ entry too.
72
1948
 
73
1949
  ```js
74
- const chat = modelsForAgent(agent, await harness.capability()).find((m) => m.use === 'chat')
1950
+ import { modelsForAgent, QWEN_35_9B } from '@qvac/harness'
1951
+
1952
+ const agent = {
1953
+ modelName: QWEN_35_9B,
1954
+ installedSkills: ['image-generation'],
1955
+ skillsScope: 'all'
1956
+ }
1957
+ const models = modelsForAgent(agent, await harness.capability())
1958
+ // [{ name, addon: 'llm', use: 'chat' }, { name, addon, use: 'image' }]
75
1959
  ```
76
1960
 
77
- - `capability()` answers `mobile`, whether the harness runs on a phone, read off
78
- the platform it probes. It rides `capability-response` as an optional field;
79
- a response from an older harness reads as `false`. (#141)
1961
+ ```js
1962
+ import { runnableModelName, QWEN_35_4B, QWEN_35_9B } from '@qvac/harness/model-catalog'
80
1963
 
81
- - `musicModelChoiceFrom(settings)` reads the music model pick out of an agent's
82
- `generate_music` tool settings, so a host no longer knows what `modelChoice`
83
- means there. `isMusicModelChoice` is exported beside it. (#141)
1964
+ const host = { capabilityProfile: 'mid', recommendedModelName: QWEN_35_4B, mobile: true }
1965
+ runnableModelName(QWEN_35_9B, host) // QWEN_35_4B
1966
+ ```
1967
+
1968
+ (#141)
1969
+
1970
+ - `capability()` answers `mobile`, whether the harness runs on a phone, read
1971
+ off the platform it probes. It rides `capability-response` as an optional
1972
+ field; a response from an older harness reads as `false`.
1973
+
1974
+ ```js
1975
+ const { mobile } = await harness.capability()
1976
+ ```
1977
+
1978
+ (#141)
1979
+
1980
+ - A host no longer needs to know what `modelChoice` means in an agent's
1981
+ `generate_music` tool settings. `musicModelChoiceFrom(settings)` reads the
1982
+ music model pick out of them, and `isMusicModelChoice` is exported beside it.
1983
+
1984
+ ```js
1985
+ import { musicModelChoiceFrom } from '@qvac/harness/music-catalog'
1986
+
1987
+ musicModelChoiceFrom({ modelChoice: 'turbo-hq' }) // 'turbo-hq'
1988
+ musicModelChoiceFrom({}) // undefined
1989
+ ```
1990
+
1991
+ (#141)
84
1992
 
85
1993
  ### Changed
86
1994
 
87
- - **Breaking:** the package no longer publishes a prebuilt sidecar:
1995
+ - **Breaking:** the package no longer publishes a prebuilt sidecar.
88
1996
  `dist/harness.bundle`, `dist/harness.cjs`, `dist/prebuilds-manifest.json` and
89
1997
  the `./dist/harness.cjs` export are gone. A host stows
90
1998
  `worker/harness-sidecar.mjs` itself, as desktop and mobile already do, or
91
- spawns `worker/stow-entry.mjs` straight from its install. (#127)
92
- - **Breaking:** a stowed harness runs python in a worker rather than in-process.
93
- A host that stows the harness stops deferring `pyodide`, keeps
94
- `QVAC_PYODIDE_CACHE_DIR` writable, no longer stages a separate worker bundle,
95
- and ships what stow offloads beside the bundle, which now includes pyodide's
96
- wasm, stdlib and lock file and the vendored wheels. A target that embeds
97
- assets instead of offloading them cannot run python, since `fs` cannot read
98
- inside a bundle. (#127)
99
- - A bundle of the package root carries neither pyodide nor the vendored wheels.
100
- Only an entry that runs python, the exec tool or `@qvac/harness/docx` and
101
- `/office`, pulls them in. (#127)
1999
+ spawns `worker/stow-entry.mjs` straight from its install. See
2000
+ [The published package](https://github.com/tetherto/qvac-harness/blob/v0.7.0/README.md#the-published-package)
2001
+ and [Spawning](https://github.com/tetherto/qvac-harness/blob/v0.7.0/README.md#spawning).
2002
+
2003
+ ```js
2004
+ // before
2005
+ const harness = require('@qvac/harness/dist/harness.cjs')
2006
+ const { ipc, sidecar, exit } = await harness.start(args)
2007
+
2008
+ // after
2009
+ import { spawnHarness } from '@qvac/harness'
2010
+
2011
+ const harness = spawnHarness({
2012
+ entry: require.resolve('@qvac/harness/worker/stow-entry.mjs'),
2013
+ sdkStorage
2014
+ })
2015
+ ```
2016
+
2017
+ (#127)
2018
+
2019
+ - **Breaking:** a stowed harness runs python in a worker rather than
2020
+ in-process. A host that stows the harness:
2021
+
2022
+ - stops deferring `pyodide`
2023
+ - keeps `QVAC_PYODIDE_CACHE_DIR` writable
2024
+ - no longer stages a separate worker bundle
2025
+ - ships what stow offloads beside the bundle, which now includes pyodide's
2026
+ wasm, stdlib and lock file and the vendored wheels
2027
+
2028
+ A target that embeds assets instead of offloading them cannot run python,
2029
+ since `fs` cannot read inside a bundle. See
2030
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.7.0/docs/decisions/2026-09-25-the-python-worker-runs-on-bare-worker.md).
2031
+ (#127)
2032
+
2033
+ - A bundle of the package root carries neither pyodide nor the vendored
2034
+ wheels. Only an entry that runs python pulls them in: the exec tool, or
2035
+ `@qvac/harness/docx` and `/office`. (#127)
102
2036
  - `SandboxHook` no longer checks `packages`. The exec tool refuses an install
103
2037
  the vendored wheels do not hold in full in sandbox mode, whether declared in
104
2038
  `packages` or on a pip line, with the same message as before. (#127)
105
2039
  - The vendored wheels are the `#pyodide-wheels` directory asset on Bare;
106
2040
  `QVAC_PYTHON_WHEELS_DIR` still overrides it. (#127)
107
2041
  - The python worker and the in-process deadline are spawned through
108
- `worker_threads`, which the package maps to `bare-worker`;
2042
+ `worker_threads`, which the package maps to `bare-worker`.
109
2043
  `#pyodide-worker-spawn` is gone. (#127)
110
- - **Breaking:** `engines.bare` is `>=1.34.0`, so Bare refuses to load the
111
- package on older runtimes. `bare-runtime` is pinned to 1.34.0 and
112
- `bare-sidecar` to 0.5.7 (Bare 1.34.0) across the tree, `bare-supervisor`'s copy
113
- included, with `bare-thread` at least 1.2.7 and `bare-module` 7.1.0 for
114
- `bare-worker`'s copy. (#127)
2044
+ - **Breaking:** Bare refuses to load the package on runtimes older than 1.34.0:
2045
+ `engines.bare` is `>=1.34.0`. `bare-runtime` is pinned to 1.34.0 and
2046
+ `bare-sidecar` to 0.5.7 (Bare 1.34.0) across the tree, `bare-supervisor`'s
2047
+ copy included, with `bare-thread` at least 1.2.7 and `bare-module` 7.1.0 for
2048
+ `bare-worker`'s copy. A host upgrades its Bare to 1.34.0 or later. (#127)
115
2049
  - `bare-module` is no longer a dependency or an override, and
116
- `bare-module-traverse` is overridden to 2.5.8: earlier versions drop the
2050
+ `bare-module-traverse` is overridden to `~2.5.8`: earlier versions drop the
117
2051
  `asset` condition on `bare-sidecar`'s binary, and a stowed harness then fails
118
2052
  to boot on Bare 1.33 and later. (#127)
119
2053
  - `skillModelsForAgent` rows carry `use`, `image` or `music`, so a caller can
120
- tell which skill a model is for without looking the name up in the catalogs. (#141)
121
- - `CapabilityInfo` has a required `mobile`, so a `HarnessContract` whose
122
- `capability()` builds its own answer, a test stub included, returns it too. (#141)
2054
+ tell which skill a model is for without looking the name up in the catalogs.
2055
+ (#141)
2056
+ - `CapabilityInfo` has a required `mobile`. A `HarnessContract` whose
2057
+ `capability()` builds its own answer, a test stub included, returns it too.
2058
+
2059
+ ```js
2060
+ // before
2061
+ capability: async () => ({ capabilityProfile: 'mid', recommendedModelName: QWEN_35_4B })
2062
+
2063
+ // after
2064
+ capability: async () => ({
2065
+ capabilityProfile: 'mid',
2066
+ recommendedModelName: QWEN_35_4B,
2067
+ mobile: false
2068
+ })
2069
+ ```
2070
+
2071
+ (#141)
123
2072
 
124
2073
  ### Removed
125
2074
 
126
- - **Breaking:** `bareRuntime` is no longer exported from `./lib/tools/exec.ts`.
127
- It is at `./lib/tools/exec/bare-runtime.ts`, so the package root no longer
128
- loads the exec tool to reach it. (#127)
129
- - **Breaking:** `QVAC_PYODIDE_TEST_LOADER`: tests point
130
- `QVAC_PYODIDE_WORKER_ENTRY` at an entry that serves their fake interpreter. (#127)
2075
+ - **Breaking:** `bareRuntime` is no longer exported from `./lib/tools/exec.ts`,
2076
+ so the package root no longer loads the exec tool to reach it. It is at
2077
+ `./lib/tools/exec/bare-runtime.ts`.
2078
+
2079
+ ```js
2080
+ // before
2081
+ import { bareRuntime } from '@qvac/harness/lib/tools/exec.ts'
2082
+
2083
+ // after
2084
+ import { bareRuntime } from '@qvac/harness/lib/tools/exec/bare-runtime.ts'
2085
+ ```
2086
+
2087
+ (#127)
2088
+
2089
+ - **Breaking:** `QVAC_PYODIDE_TEST_LOADER` is gone. A test points
2090
+ `QVAC_PYODIDE_WORKER_ENTRY` at an entry that serves its fake interpreter.
2091
+
2092
+ ```sh
2093
+ # before
2094
+ QVAC_PYODIDE_TEST_LOADER=/path/to/fake-loader.js
2095
+ # after
2096
+ QVAC_PYODIDE_WORKER_ENTRY=/path/to/fake-worker-entry.js
2097
+ ```
2098
+
2099
+ (#127)
131
2100
 
132
2101
  ### Fixed
133
2102
 
134
- - Python runs start on Bare 1.34, whose threads cannot read a module off disk,
135
- including in a stowed harness. The worker is spawned through `worker_threads`,
136
- which the package maps to `bare-worker` on Bare, pyodide is handed its asm
137
- module as `createPyodideModule`, and the files pyodide reads are named as
138
- assets, so a bundler carries them beside the bundle. (#127)
2103
+ - Python runs start on Bare 1.34, including in a stowed harness. Threads there
2104
+ cannot read a module off disk, so the worker is spawned through
2105
+ `worker_threads`, which the package maps to `bare-worker` on Bare. Pyodide is
2106
+ handed its asm module as `createPyodideModule`, and the files pyodide reads
2107
+ are named as assets, so a bundler carries them beside the bundle. (#127)
139
2108
 
140
2109
  ## [0.6.0] - 2026-09-28
141
2110
 
142
2111
  ### Added
143
2112
 
144
- - `loadModel({ model, agent })` loads a downloaded chat, embedding, speech or
145
- transcription model ahead of use, under the key a request for it would load
146
- under, so the first request finds it loaded. `unloadModel({ model })` unloads
147
- every copy of a model once the requests holding it finish, and says whether it
148
- could. Image and music models load for each generation and are refused. A load
149
- or an unload counts as a call in flight for `setModelIdleTimeout`, and one that
150
- lands during an idle unload waits for it. Also on the wire as `load-model` and
151
- `unload-model`. (#133)
2113
+ - A host can load a model before anyone asks for it, and unload it on demand.
2114
+ `loadModel({ model, agent })` loads a downloaded chat, embedding, speech or
2115
+ transcription model under the key a request for it would load under, so the
2116
+ first request finds it loaded. Pass the agent a chat model will run for: its
2117
+ context size and KV cache types are part of that key.
2118
+
2119
+ `unloadModel({ model })` unloads every copy of a model once the requests
2120
+ holding it finish, and says whether it could. Image and music models load for
2121
+ each generation and are refused.
2122
+
2123
+ A load or an unload counts as a call in flight for `setModelIdleTimeout`, and
2124
+ one that lands during an idle unload waits for it. Both are on the wire as
2125
+ `load-model` and `unload-model`. See
2126
+ [Load and unload a model](https://github.com/tetherto/qvac-harness/blob/v0.6.0/README.md#load-and-unload-a-model).
152
2127
 
153
2128
  ```js
2129
+ import { QWEN_35_4B } from '@qvac/harness'
2130
+
154
2131
  const { loaded } = await harness.loadModel({ model: QWEN_35_4B, agent: { ctxSize: 8192 } })
155
2132
  const { unloaded } = await harness.unloadModel({ model: QWEN_35_4B })
156
2133
  ```
157
2134
 
158
- - A chat model loaded with `loadModel` is pinned: it does not count against
159
- `completionModelCap`, so several stay loaded at once and a request for
160
- another model leaves them in place. A manual load never unloads another model
161
- to fit; it returns `{ loaded: false, reason: 'memory' }` when the SDK's
162
- `assessModelFit` says it would not fit beside what is loaded. A request always
163
- gets its model: pinned models no reply is using give way oldest first when it would not fit,
164
- and a request or a manual load for a model under other settings replaces its idle copy. Image and
165
- music generation and an idle unload still clear every idle chat model. (#134)
2135
+ (#133)
2136
+
2137
+ - Several chat models can stay loaded at once. A chat model loaded with
2138
+ `loadModel` is pinned: it does not count against `completionModelCap`, and a
2139
+ request for another model leaves it in place.
2140
+
2141
+ A manual load never unloads another model to fit. It returns
2142
+ `{ loaded: false, reason: 'memory' }` when the SDK's `assessModelFit` says it
2143
+ would not fit beside what is loaded, so the host unloads one first. A request
2144
+ always gets its model: when it would not fit, pinned models no reply is using
2145
+ give way oldest first. A request or a manual load for a model under other
2146
+ settings replaces its idle copy. Image and music generation and an idle
2147
+ unload still clear every idle chat model, pinned or not. See
2148
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.6.0/docs/decisions/2026-09-25-a-model-loaded-ahead-of-use-lands-where-its-request-looks.md).
166
2149
 
167
2150
  ```js
2151
+ import { QWEN_35_9B } from '@qvac/harness'
2152
+
168
2153
  const { loaded, reason } = await harness.loadModel({ model: QWEN_35_9B })
169
2154
  if (reason === 'memory') showNotice('Unload a model first')
170
2155
  ```
171
2156
 
2157
+ (#134)
2158
+
172
2159
  ### Changed
173
2160
 
174
- - A model loading or unloading in any pool emits `model` with `catalogChanged`,
175
- not only a chat model, so `list()` reports a fresh `isLoaded` for embedding,
176
- speech and transcription models too. (#133)
177
- - Speech, transcription and embedding requests key their pool entry by the
178
- model's registry src however the caller names it, so a model named once by
179
- its catalog name and once by its src is one copy in memory. (#133)
2161
+ - `list()` reports a fresh `isLoaded` for embedding, speech and transcription
2162
+ models, not only chat models. A model loading or unloading in any pool now
2163
+ emits `model` with `catalogChanged`. (#133)
2164
+ - A speech, transcription or embedding model named once by its catalog name and
2165
+ once by its src is one copy in memory. Those requests key their pool entry by
2166
+ the model's registry src however the caller names it. (#133)
180
2167
 
181
2168
  ### Fixed
182
2169
 
183
2170
  - A chat model loads when the host passes no `llmDevice`. 0.5.0 sent `device`,
184
2171
  `gpu_layers`, `main-gpu` and `openclCacheDir` to the SDK as `undefined`,
185
- which the SDK spreads over its defaults: with no device the load failed with
2172
+ which the SDK spreads over its defaults. With no device the load failed with
186
2173
  "must specify a device: 'gpu' or 'cpu'", and with a device but no
187
2174
  `llmGpuLayers` the default of 99 GPU layers was lost. Unset fields are left
188
2175
  out again. (#137)
@@ -191,25 +2178,39 @@ While the major version is `0`, a breaking change bumps the minor version.
191
2178
 
192
2179
  ### Added
193
2180
 
194
- - `setModelIdleTimeout(ms)` frees memory once the device has been idle that
195
- long: with no `completion`, `invoke`, `embed`, `transcribe`, `speak`,
2181
+ - `setModelIdleTimeout(ms)` frees memory on a device that has sat idle that
2182
+ long. With no `completion`, `invoke`, `embed`, `transcribe`, `speak`,
196
2183
  `speakStream` or `warmModel` call in flight, every idle resident model is
197
- unloaded, including the image, music and translation runtimes. The next call
198
- loads what it needs again. `0`, the default, is Never, and arms no timer. A
199
- turn waiting on a tool or an approval between rounds counts as busy, so it
200
- keeps its model. Also on the wire as `set-model-idle-timeout`. (#131)
2184
+ unloaded, including the image, music and translation runtimes, and the next
2185
+ call loads what it needs again.
2186
+
2187
+ The clock is device-wide: any call resets it, whichever model it uses. `0`,
2188
+ the default, is Never and arms no timer. A turn waiting on a tool or an
2189
+ approval between rounds counts as busy, so it keeps its model. The call is on
2190
+ an in-process `Harness`, on the `RemoteHarness` client, and on the wire as
2191
+ `set-model-idle-timeout`. See
2192
+ [Freeing memory when idle](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#freeing-memory-when-idle)
2193
+ and
2194
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.5.0/docs/decisions/2026-09-25-idle-unload-is-opt-in-and-device-wide.md).
201
2195
 
202
2196
  ```js
203
- await harness.setModelIdleTimeout(30 * 60_000)
2197
+ await harness.setModelIdleTimeout(30 * 60_000) // 0 turns it off
204
2198
  ```
205
2199
 
2200
+ (#131)
2201
+
206
2202
  - `setCustomModels` entries take an optional `label`, the name the user gave
207
- the model, and `list()` rows carry it as `label`. The tool-call format is
208
- matched against the label as well as the file name, so a custom model
209
- registered under an opaque id still gets its family's format. (#124)
2203
+ the model, and `list()` rows carry it back as `label`.
2204
+
2205
+ The label also picks the tool-call format: the model family (Qwen, Gemma,
2206
+ LFM and so on) is matched against the label as well as the file name, with
2207
+ spaces read as hyphens, so a custom model registered under an opaque id
2208
+ still gets its family's format. (#124)
210
2209
 
211
2210
  - `setCustomModels` entries take an optional `contextLength`, the model's
212
- trained window. (#124)
2211
+ trained window, which caps the context it loads with by default (see
2212
+ Changed). Pass the preview's `contextLength` straight through. See
2213
+ [Register the set](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#register-the-set).
213
2214
 
214
2215
  ```js
215
2216
  await harness.setCustomModels([
@@ -220,23 +2221,39 @@ While the major version is `0`, a breaking change bumps the minor version.
220
2221
  contextLength: preview.contextLength
221
2222
  }
222
2223
  ])
2224
+
2225
+ const [row] = (await harness.list({ type: 'llm' })).filter(
2226
+ (model) => model.name === 'custom-7f3a'
2227
+ )
2228
+ row.label // 'Gemma 4 E4B'
223
2229
  ```
224
2230
 
2231
+ (#124)
2232
+
225
2233
  ### Changed
226
2234
 
227
2235
  - A custom model loads with a context of the smaller of 51,200 tokens and its
228
- trained `contextLength`, instead of the default. An asked-for context size
2236
+ trained `contextLength`, where it always took 51,200 before. A model trained
2237
+ on 40,960 tokens now loads with 40,960. A context size the caller asks for
229
2238
  still wins. (#124)
230
2239
 
231
2240
  ### Fixed
232
2241
 
233
2242
  - `previewModelSource` takes a direct link to one shard of a split `.gguf` as
234
- the whole set: `src` is the first part, `sizeBytes` adds up every part, and
235
- the label names the count, as in `model.gguf (3 parts)`. A missing part
236
- refuses with `not-found` or `unreachable`. (#124)
237
-
238
- - `isCached` reports a sharded custom download once every shard is on disk,
239
- and `deleteModel` removes all of its shards. (#124)
2243
+ the whole set. `src` is the first part, which holds the metadata, and
2244
+ `sizeBytes` adds up every part, so `isCached` can match the finished
2245
+ download. Every part is checked with a `HEAD` request, and a missing part
2246
+ refuses with `not-found` or `unreachable`, naming the part. See
2247
+ [Preview a source before adding it](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#preview-a-source-before-adding-it).
2248
+ (#124)
2249
+
2250
+ - `isCached` reports a sharded custom download once every shard is on disk in
2251
+ the folder the SDK keeps them in; it always read false before. `deleteModel`
2252
+ removes all of its shards, where it left them behind. See
2253
+ [List them](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#list-them)
2254
+ and
2255
+ [Delete a download](https://github.com/tetherto/qvac-harness/blob/v0.5.0/README.md#delete-a-download).
2256
+ (#124)
240
2257
 
241
2258
  ## [0.4.0] - 2026-09-24
242
2259
 
@@ -245,27 +2262,48 @@ While the major version is `0`, a breaking change bumps the minor version.
245
2262
  - `previewModelSource({ src, mmprojSrc })` checks a Hugging Face link, a direct
246
2263
  `.gguf` link or a local path before a host adds it as a custom model. It
247
2264
  reads the Hugging Face metadata and the file's GGUF header, never the whole
248
- model. The answer is a file to register (`src`, `sizeBytes`,
249
- `contextLength`, `architecture`, `sizeLabel`, `taskType`, `license`, `fit`
250
- and `fitReasons`), a list of `files` to pick from for a repo that holds
251
- several, or `ok: false` with a `refusal` code and a `reason` to show. It is
252
- served on the `RemoteHarness` client and on an in-process `Harness`, and its
253
- types are exported from the package root. (#121)
2265
+ model.
2266
+
2267
+ The answer is one of three:
2268
+
2269
+ - a file to register: `ok: true` with `src`, `sizeBytes`, `contextLength`,
2270
+ `architecture`, `sizeLabel`, `taskType`, `license`, `fit` and
2271
+ `fitReasons`;
2272
+ - a choice: `ok: true` with a list of `files` and no `src`, for a repo that
2273
+ holds several weights;
2274
+ - a refusal: `ok: false` with a `refusal` code and a `reason` to show.
2275
+
2276
+ It is served on the `RemoteHarness` client and on an in-process `Harness`,
2277
+ and its types (`ModelSourcePreview`, `ModelSourceFile`,
2278
+ `ModelSourceRefusal`, `ModelFitVerdict`, `PreviewModelSourceContext`) are
2279
+ exported from the package root. See
2280
+ [Preview a source before adding it](https://github.com/tetherto/qvac-harness/blob/v0.4.0/README.md#preview-a-source-before-adding-it)
2281
+ and
2282
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.4.0/docs/decisions/2026-09-22-a-model-source-is-previewed-before-it-is-added.md).
254
2283
 
255
2284
  ```js
256
2285
  const preview = await harness.previewModelSource({ src: link })
257
2286
 
258
2287
  if (!preview.ok) return showError(preview.reason)
259
- if (!preview.src) return pickOneOf(preview.files) // then preview files[i].src
260
- if (preview.taskType !== 'llm') return showError('Only an llm runs as a custom model')
2288
+ if (!preview.src) return pickOneOf(preview.files) // preview the pick next
2289
+ if (preview.taskType !== 'llm') {
2290
+ return showError('Only an llm runs as a custom model')
2291
+ }
261
2292
  ```
262
2293
 
263
- - `setCustomModels` entries take `taskType` and `expectedSize`, and `list()`
264
- returns the registered custom models after the catalog rows, with
265
- `registrySource: 'custom'`, `isLoaded`, and an `isCached` that is false
266
- until every file is on disk and, when `expectedSize` is set, adds up to it.
267
2294
  (#121)
268
2295
 
2296
+ - `setCustomModels` entries take `taskType` and `expectedSize`, and `list()`
2297
+ returns the registered custom models after the catalog rows, under the same
2298
+ `type` and `cachedOnly` filters.
2299
+
2300
+ A custom row has `registrySource: 'custom'` and `isLoaded`. Its `isCached`
2301
+ is false until every file is on disk and, when `expectedSize` is set, their
2302
+ sizes add up to it, so a partial download is not cached. See
2303
+ [Register the set](https://github.com/tetherto/qvac-harness/blob/v0.4.0/README.md#register-the-set)
2304
+ and
2305
+ [List them](https://github.com/tetherto/qvac-harness/blob/v0.4.0/README.md#list-them).
2306
+
269
2307
  ```js
270
2308
  await harness.setCustomModels([
271
2309
  {
@@ -281,56 +2319,90 @@ While the major version is `0`, a breaking change bumps the minor version.
281
2319
  const custom = models.filter((model) => model.registrySource === 'custom')
282
2320
  ```
283
2321
 
2322
+ (#121)
2323
+
284
2324
  - A `modelsDir` Harness option says where downloads live, so `list()` and
285
2325
  `deleteModel` can find a custom model's files. The spawned sidecar sets it
286
- from its SDK storage; an in-process `Harness` has to pass it. (#121)
2326
+ from its SDK storage; an in-process `Harness` has to pass it. See
2327
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.4.0/docs/decisions/2026-09-24-a-custom-download-is-found-at-the-sdk-cache-path.md).
287
2328
 
288
2329
  ```js
289
2330
  const harness = new Harness({ modelsDir })
290
2331
  ```
291
2332
 
2333
+ (#121)
2334
+
292
2335
  ### Changed
293
2336
 
294
- - `deleteModel(name)` removes the weight and projection a custom model
295
- downloaded, where it used to remove nothing. It never touches a local path
296
- the user pointed at, and the model stays registered, listed as not cached.
297
- (#121)
2337
+ - `deleteModel(name)` frees the disk a custom model's download took: it
2338
+ removes the weight and projection the model downloaded, where it used to
2339
+ remove nothing.
2340
+
2341
+ It never touches a local path the user pointed at, since those are the
2342
+ user's files. The model stays registered and lists as not cached, ready to
2343
+ download again. See
2344
+ [Delete a download](https://github.com/tetherto/qvac-harness/blob/v0.4.0/README.md#delete-a-download).
298
2345
 
299
2346
  ```js
300
2347
  const { removed, freedBytes } = await harness.deleteModel('nanbeige-3b')
301
2348
  ```
302
2349
 
2350
+ (#121)
2351
+
303
2352
  - A custom model name resolves only where an `llm` is loaded, never for
304
- another task, and a `setCustomModels` entry whose `taskType` is anything
305
- other than `llm` is not registered. An entry without `taskType` is an `llm`,
306
- as before. (#121)
2353
+ another task. A `setCustomModels` entry whose `taskType` is anything other
2354
+ than `llm` is not registered. An entry without `taskType` is an `llm`, as
2355
+ before, so a host that registers only text models changes nothing. (#121)
307
2356
 
308
2357
  ### Fixed
309
2358
 
310
- - A turn that preloads a skill with `@skill`, or names an active skill in its
311
- prompt, no longer caches the inlined SKILL.md body under the chat's KV key.
312
- Each such turn left about 7k tokens stranded in the cache, until a later turn
313
- overflowed the context window and failed. (#120)
2359
+ - A chat no longer fails with a context overflow after turns that load a
2360
+ skill up front. A turn that preloads a skill with `@skill`, or names an
2361
+ active skill in its prompt, used to cache the inlined SKILL.md body under
2362
+ the chat's KV key. Each such turn left about 7k tokens stranded in the
2363
+ cache, until a later turn overflowed the context window and failed. (#120)
314
2364
 
315
2365
  ## [0.3.3] - 2026-09-24
316
2366
 
317
2367
  ### Changed
318
2368
 
319
- - `@qvac/sdk` and `@qvac/inference` 0.20.0. Some addons now ship their
320
- prebuilds as per-platform packages (`@qvac/<addon>-<os>-<cpu>`, for
321
- `audiogen-ggml` 0.4 and `tts-ggml` 0.9), which the addon names in its
322
- `#host-addon` import map, and `@qvac/model-fit` and `@qvac/fabric` join the
323
- native graph as deferred addons. A host that packages the addons resolves
324
- prebuilds through that map, and exempts the new package names from any
325
- install age gate: bun skips a blocked optional dependency without a word,
326
- and the prebuild goes missing. (#85)
2369
+ - `@qvac/sdk` and `@qvac/inference` 0.20.0. A host that packages the addons
2370
+ has packaging work to do.
2371
+
2372
+ Some addons now ship their prebuilds as per-platform packages
2373
+ (`@qvac/<addon>-<os>-<cpu>`, for `asr-ggml` 0.5, `audiogen-ggml` 0.4 and
2374
+ `tts-ggml` 0.9), which the addon names in its `#host-addon` import map, and
2375
+ `@qvac/model-fit` and `@qvac/fabric` join the native graph as deferred
2376
+ addons. The harness no longer pins `@qvac/asr-ggml` and lets the SDK resolve
2377
+ it.
2378
+
2379
+ A host that packages the addons resolves prebuilds through that map, and
2380
+ exempts the new package names from any install age gate: bun skips a blocked
2381
+ optional dependency without a word, and the prebuild goes missing. See
2382
+ [The published package](https://github.com/tetherto/qvac-harness/blob/v0.3.3/README.md#the-published-package).
2383
+
2384
+ ```toml
2385
+ # bunfig.toml, for each host the app ships to
2386
+ [install]
2387
+ minimumReleaseAgeExcludes = [
2388
+ "@qvac/model-fit",
2389
+ "@qvac/asr-ggml-darwin-arm64",
2390
+ "@qvac/audiogen-ggml-darwin-arm64",
2391
+ "@qvac/tts-ggml-darwin-arm64"
2392
+ ]
2393
+ ```
2394
+
2395
+ (#85)
2396
+
327
2397
  - A user message with several images reaches the SDK as one turn again. The
328
2398
  per-image split added for QVAC-24156 is gone, since SDK 0.20 carries the
329
2399
  upstream fix (llama.cpp #27348) and equal-size still images no longer merge
330
- as video frames and abort the encode. This release must not be paired with
331
- SDK 0.19, where that crash comes back. `<key>-vision-history-v1` cache
332
- directories left by the split are no longer read, and clearing all caches
333
- removes them. (#116)
2400
+ as video frames and abort the encode.
2401
+
2402
+ This release must not be paired with SDK 0.19, where that crash comes back.
2403
+ `<key>-vision-history-v1` cache directories left by the split are no longer
2404
+ read, and clearing all caches removes them. (#116)
2405
+
334
2406
  - `@qvac/skills` 0.1.9. The diagrams skill carries every recipe inline, so a 2B
335
2407
  model no longer loops on loading a reference file it cannot name. The excel
336
2408
  skill routes a chat image to create rather than edit, the Google OAuth routes
@@ -348,16 +2420,21 @@ While the major version is `0`, a breaking change bumps the minor version.
348
2420
 
349
2421
  ### Changed
350
2422
 
351
- - A networked Python run's approval label leads with the hosts its source names
352
- in a URL, as `python · network: www.youtube.com …`, or says
2423
+ - A person approving a networked Python run now sees where it will connect,
2424
+ and any other host is asked about as the run reaches it.
2425
+
2426
+ The approval label leads with the hosts the source names in a URL, as
2427
+ `python · network: www.youtube.com …`, or says
353
2428
  `network: no host named in the code`. On an approved run those hosts, and
354
- their `www.` form, are reached without asking; a subdomain is not. Any other
355
- host, such as a CDN a library fans out to, a redirect or a URL built at
356
- runtime, pauses the run and is asked about through the completion's
2429
+ their `www.` form, are reached without asking; a subdomain is not.
2430
+
2431
+ Any other host, such as a CDN a library fans out to, a redirect or a URL
2432
+ built at runtime, pauses the run and is asked about through the completion's
357
2433
  `askUser` before its name is looked up. A host allowed once stays allowed
358
2434
  for that run, and silence past a minute counts as a no. A host that does not
359
2435
  wire `askUser` refuses every unnamed host, and a skip-all run asks nothing.
360
- (#109)
2436
+ See
2437
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.2/docs/decisions/2026-09-22-python-reaches-the-network-through-the-guarded-fetch.md).
361
2438
 
362
2439
  ```js
363
2440
  for await (const event of harness.completion({
@@ -372,52 +2449,85 @@ While the major version is `0`, a breaking change bumps the minor version.
372
2449
  }
373
2450
  ```
374
2451
 
2452
+ (#109)
2453
+
375
2454
  ### Fixed
376
2455
 
377
- - A timed-out Python run spun at full CPU until the process was killed when
378
- Pyodide had no worker thread, as for a stowed bundle whose host does not set
379
- `QVAC_PYODIDE_WORKER_ENTRY`. It is now interrupted at the deadline, rejects
380
- with `Command timed out after <ms>ms`, and the interpreter keeps its state. A
2456
+ - A timed-out Python run no longer spins at full CPU until the process is
2457
+ killed when Pyodide has no worker thread, as for a stowed bundle whose host
2458
+ does not set `QVAC_PYODIDE_WORKER_ENTRY`.
2459
+
2460
+ It is now interrupted at the deadline, rejects with
2461
+ `Command timed out after <ms>ms`, and the interpreter keeps its state. A
381
2462
  blocking call such as a long `time.sleep` still sees the interrupt only once
382
- it returns. (#104)
383
- - A timed-out Python run on the worker thread could miss its SIGINT, so the
384
- worker was killed after the grace window along with the interpreter's state.
385
- The interrupt is resent every 100 ms until the run settles. (#112)
386
- - A Python run that failed partway through a save attached the half-written
387
- file, and each failing retry attached another copy under the same name. A
388
- non-zero exit now attaches nothing and reports every declared output in
389
- `missingOutputs`. (#110)
2463
+ it returns. See
2464
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.2/docs/decisions/2026-08-11-pyodide-worker-thread.md).
2465
+ (#104)
2466
+
2467
+ - A timed-out Python run on the worker thread keeps its interpreter state. It
2468
+ could miss its SIGINT, so the worker was killed after the grace window along
2469
+ with the interpreter's state. The interrupt is now resent every 100 ms until
2470
+ the run settles. (#112)
2471
+
2472
+ - A Python run that fails no longer attaches a broken file. A run that failed
2473
+ partway through a save attached the half-written file, and each failing
2474
+ retry attached another copy under the same name. A non-zero exit now
2475
+ attaches nothing and reports every declared output in `missingOutputs`, so
2476
+ the retry writes it again. (#110)
390
2477
 
391
2478
  ### Security
392
2479
 
393
2480
  - Python in `exec` reached the network whenever the runtime allowed it,
394
2481
  including a call that auto-ran as a read with no approval prompt, so a
395
2482
  document build that loads an image from a URL could reach the web without
396
- anyone seeing it. The network now opens only to a call a person approved or
397
- that skip-all let through, and sandbox mode stays offline. 0.3.1 is affected.
2483
+ anyone seeing it.
2484
+
2485
+ The network now opens only to a call a person approved or that skip-all let
2486
+ through, and sandbox mode stays offline. 0.3.1 is affected; upgrade from it.
2487
+ See
2488
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.2/docs/decisions/2026-09-22-python-reaches-the-network-through-the-guarded-fetch.md).
398
2489
  (#108)
399
2490
 
400
2491
  ## [0.3.1] - 2026-09-23
401
2492
 
402
2493
  ### Added
403
2494
 
404
- - Python in `exec` reaches the network on Bare: `urllib`, `http.client` and
405
- what is built on them, yt-dlp included, work unchanged, and `requests` works
406
- through urllib3's emscripten backend. Every request goes through the guarded
407
- fetch the web tools use, so each hop is checked before it is sent,
408
- credentials do not follow a redirect to another origin, and a response is
409
- capped at 100 MB. Where the global `fetch` is not the guarded one, as on
410
- Node, Python stays offline, and sandbox mode keeps it offline everywhere. A
411
- Python run may now declare `.mp4`, `.webm`, `.m4a` and `.mp3` outputs, each
412
- checked by its file signature. (#94)
413
- - `SkillOAuthConfig.verify`, parsed from a skill manifest's
414
- `setup.routes[].oauth.verify` and carried over the wire, so a host can probe a
415
- fresh token before saving it. A probe is an https `url` on the same site as
416
- the route's `tokenUrl`, an optional `GET` or `POST` `method` and JSON `body`,
417
- and `reject` rules. A rule matches a listed `status`, or a 2xx JSON body whose
418
- `field` is not `notEqual`, and its `error` names the rejection. A probe that
419
- breaks these rules is dropped and the route kept. `SkillOAuthVerify` and
420
- `SkillOAuthVerifyRule` are exported. (#105)
2495
+ - Python in `exec` reaches the network on Bare. `urllib`, `http.client` and
2496
+ what is built on them, yt-dlp included, work unchanged, and `requests`
2497
+ works through urllib3's emscripten backend.
2498
+
2499
+ Every request goes through the guarded fetch the web tools use: each hop is
2500
+ checked before it is sent, credentials do not follow a redirect to another
2501
+ origin, and a response is capped at 100 MB. Where the global `fetch` is not
2502
+ the guarded one, as on Node, Python stays offline, and `sandboxMode` keeps
2503
+ it offline everywhere. A Python run may now declare `.mp4`, `.webm`, `.m4a`
2504
+ and `.mp3` outputs, each checked by its file signature. See
2505
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.1/docs/decisions/2026-09-22-python-reaches-the-network-through-the-guarded-fetch.md).
2506
+ (#94)
2507
+
2508
+ ```js
2509
+ // exec arguments a model can now send on Bare
2510
+ {
2511
+ language: 'python',
2512
+ command:
2513
+ "import urllib.request\n" +
2514
+ "urllib.request.urlretrieve('https://example.com/talk.mp3', 'talk.mp3')",
2515
+ outputs: ['talk.mp3']
2516
+ }
2517
+ ```
2518
+
2519
+ - A host can probe a fresh OAuth token before saving it.
2520
+ `SkillOAuthConfig.verify` is parsed from a skill manifest's
2521
+ `setup.routes[].oauth.verify` and carried over the wire;
2522
+ `SkillOAuthVerify` and `SkillOAuthVerifyRule` are exported. The harness
2523
+ only parses the probe; the host runs it.
2524
+
2525
+ A probe is an https `url` on the same site as the route's `tokenUrl`, an
2526
+ optional `GET` or `POST` `method` and JSON `body`, and `reject` rules. A
2527
+ rule matches a listed `status`, or a 2xx JSON body whose `field` is not
2528
+ `notEqual` (a rule with both needs both), and its `error` names the
2529
+ rejection. A probe that breaks these rules is dropped and the route kept.
2530
+ (#105)
421
2531
 
422
2532
  ```js
423
2533
  const skills = await harness.skills()
@@ -432,63 +2542,95 @@ While the major version is `0`, a breaking change bumps the minor version.
432
2542
  ```
433
2543
 
434
2544
  - A skill operation may name `response.decode` to turn a provider's JSON body
435
- into a compact shape before the model sees it, starting with
436
- `gmail-message`: the ids and labels, the From, To, Subject, Date, Message-ID
437
- and References headers, the snippet, and the body as text, capped at 4000
438
- characters. A `gmail-get` request builder joins it. A manifest naming both
439
- `pick` and `decode`, or a builder or decoder this harness does not have, is
440
- rejected. (#69)
2545
+ into a compact shape before the model sees it. The first decoder is
2546
+ `gmail-message`: the ids and labels, the From, To, Subject, Date,
2547
+ Message-ID and References headers, the snippet, and the body as text,
2548
+ capped at 4000 characters. A `gmail-get` request builder goes with it.
2549
+
2550
+ A manifest naming both `pick` and `decode`, or a builder or decoder this
2551
+ harness does not have, is rejected. See
2552
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.1/docs/decisions/2026-09-01-skill-operation-manifests.md).
2553
+ (#69)
2554
+
2555
+ ```js
2556
+ // an operation in a skill's operations.json (gmail, @qvac/skills 0.1.7)
2557
+ {
2558
+ tool: 'gmail_get',
2559
+ request: {
2560
+ method: 'GET',
2561
+ url: 'https://gmail.googleapis.com/gmail/v1/users/me/messages/{id}',
2562
+ query: { metadataHeaders: 'Subject,From,To,Date,Message-ID,References' },
2563
+ builder: 'gmail-get'
2564
+ },
2565
+ response: { decode: 'gmail-message' }
2566
+ }
2567
+ ```
441
2568
 
442
2569
  ### Changed
443
2570
 
444
- - A compiled skill operation whose HTTP method is `GET`, `HEAD` or `OPTIONS` is
445
- a read: it auto-runs without an approval prompt, like the same request through
446
- `http_request`, and takes no `intent` argument. MCP operations and every other
447
- method are still writes that ask. (#69)
448
- - `@qvac/skills` 0.1.7, now pinned exactly: Gmail reads a message with
2571
+ - A compiled skill operation whose HTTP method is `GET`, `HEAD` or `OPTIONS`
2572
+ now runs without an approval prompt. It is a read, like the same request
2573
+ through `http_request`, and takes no `intent` argument. MCP operations and
2574
+ every other method are still writes that ask. (#69)
2575
+ - `@qvac/skills` 0.1.7, now pinned exactly. Gmail reads a message with
449
2576
  `gmail_get` instead of telling the model to decode base64, which needs this
450
2577
  release's decoder, and Asana rejects a non-MCP app at connect time through
451
2578
  a `verify` probe. (#105)
452
2579
 
453
2580
  ### Fixed
454
2581
 
455
- - A malformed `<tool_call>` left its JSON arguments in the reply. The whole span
456
- is now stripped, and an unclosed one is stripped to the end of the text.
457
- (#100)
2582
+ - A malformed `<tool_call>` left its JSON arguments in the reply. The whole
2583
+ span is now stripped, and an unclosed one is stripped to the end of the
2584
+ text. (#100)
458
2585
  - A misspelt, placeholder or repeated `skill` load returned an error the model
459
2586
  retried until the turn ran out. A placeholder or the skill's own name now
460
- reads the body, a near miss of one of its files loads that file, and a repeat
461
- is acknowledged without re-reading it. (#101)
2587
+ reads the body, a near miss of one of its files loads that file, and a
2588
+ repeat is acknowledged without re-reading it. (#101)
462
2589
  - When the model reached for `pip` or a video tool on the shell path, it was
463
2590
  only told what the path is not, and retried the same call. Each refusal now
464
2591
  names the call that works, such as `packages: ["requests"]` with the pin a
465
- vendored package installs offline under. A missing import names the package
466
- that provides it, and `python -c`, a heredoc or bare Python source runs as
467
- Python instead of being sent back for a `language` argument. (#71)
2592
+ vendored package installs offline under.
2593
+
2594
+ A missing import names the package that provides it, and `python -c`, a
2595
+ heredoc or bare Python source runs as Python instead of being sent back for
2596
+ a `language` argument. See
2597
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.1/docs/decisions/2026-09-21-exec-names-the-call-that-works.md).
2598
+ (#71)
468
2599
 
469
2600
  ## [0.3.0] - 2026-09-23
470
2601
 
471
2602
  ### Added
472
2603
 
473
- - A `translate` capability for `invoke`: it translates text without loading an
474
- LLM. The language pair picks the route before anything loads. English and
475
- one of nine European languages go through the TranslatePsy-EuroNano packs,
476
- the other 43 languages Bergamot serves go through their per-pair models
477
- (pivoting through English when neither side is English), and 16 languages
478
- Bergamot has no model for go through TranslatePsy-AfriSLM, named by ISO 639-1
479
- or FLORES-200 code. An omitted `from` is detected from the text, except for
480
- the AfriSLM languages, which need it named. The `tool-result` carries the
481
- text, the pair and the `engine` that answered. (#76)
2604
+ - A `translate` capability for `invoke`: text translation without loading an
2605
+ LLM. The language pair picks the route before anything loads:
2606
+
2607
+ - English and one of nine European languages go through the
2608
+ TranslatePsy-EuroNano packs.
2609
+ - The other 43 languages Bergamot serves go through their per-pair models,
2610
+ pivoting through English when neither side is English.
2611
+ - 16 languages Bergamot has no model for go through TranslatePsy-AfriSLM,
2612
+ named by ISO 639-1 or FLORES-200 code.
2613
+
2614
+ An omitted `from` is detected from the text, except for the AfriSLM
2615
+ languages, which need it named. The `tool-result` carries the text, the pair
2616
+ and the `engine` that answered (`nmt`, `slm`, or `none` when the text is
2617
+ already in the target language). A pair no route serves, or a source that
2618
+ cannot be detected, comes back as `result.error`. See
2619
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.0/docs/decisions/2026-09-21-translation-pivots-through-english.md).
2620
+ (#76)
482
2621
 
483
2622
  ```js
484
2623
  for await (const event of harness.invoke({
485
2624
  capability: 'translate',
486
2625
  args: { text: 'The weather is nice today.', to: 'de' }
487
2626
  })) {
488
- if (event.type === 'tool-result') show(event.result.text)
2627
+ if (event.type === 'tool-result') {
2628
+ if (event.result.error) showError(event.result.error)
2629
+ else show(event.result.text)
2630
+ }
489
2631
  if (event.type === 'error') showError(event.message)
490
2632
  }
491
- // result: { text, from, to: 'de', engine: 'nmt', pivoted: false }
2633
+ // result: { text, from: 'en', to: 'de', engine: 'nmt', pivoted: false }
492
2634
  ```
493
2635
 
494
2636
  - `translationPlanFor`, `NMT_TO_ENGLISH`, `NMT_FROM_ENGLISH`,
@@ -505,18 +2647,23 @@ While the major version is `0`, a breaking change bumps the minor version.
505
2647
  if ('error' in plan) showError(plan.error)
506
2648
  ```
507
2649
 
508
- - `enhance: 'never' | 'auto'` on `invoke`. With `'auto'`, an image prompt is
509
- rewritten by a model already resident on the device, and never triggers a
510
- load: with nothing resident, or a rewrite that fails, the run goes direct.
2650
+ - `enhance: 'never' | 'auto'` on `invoke`, for the `image` capability. With
2651
+ `'auto'`, the prompt is rewritten by a model already resident on the
2652
+ device, and never triggers a load: with nothing resident, or a rewrite that
2653
+ fails, the run goes direct. Omitting `enhance` behaves as `'never'`, which
2654
+ passes the arguments through untouched.
2655
+
511
2656
  `metrics` reports the `route` taken (`direct` or `enhanced`), the
512
- `routeModel` used and the tokens the rewrite spent. Omitting `enhance`
513
- behaves as `'never'`, which passes the arguments through untouched. (#77)
2657
+ `routeModel` used and the tokens the rewrite spent. See
2658
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.3.0/docs/decisions/2026-09-21-a-caller-states-constraints-not-mechanisms.md).
2659
+ (#77)
514
2660
 
515
2661
  ```js
516
2662
  for await (const event of harness.invoke({
517
2663
  capability: 'image',
518
2664
  args: { prompt: 'funny meme' },
519
- enhance: 'auto'
2665
+ enhance: 'auto',
2666
+ attach
520
2667
  })) {
521
2668
  if (event.type === 'metrics') log(event.route, event.routeModel)
522
2669
  }
@@ -524,33 +2671,56 @@ While the major version is `0`, a breaking change bumps the minor version.
524
2671
 
525
2672
  ### Changed
526
2673
 
527
- - The bundle defers `@qvac/translation-nmtcpp` like the other inference
528
- addons, so `prebuilds-manifest.json` now names its prebuilds and a host that
529
- assembles them beside the bundle has to include it. It is already a
530
- dependency of `@qvac/sdk`. (#76)
2674
+ - A host that assembles the native prebuilds beside the bundle now has to
2675
+ include `@qvac/translation-nmtcpp`. The bundle defers it like the other
2676
+ inference addons, so `prebuilds-manifest.json` names its prebuilds. It is
2677
+ already a dependency of `@qvac/sdk`, so it is in the host's
2678
+ `node_modules`. See
2679
+ [The published package](https://github.com/tetherto/qvac-harness/blob/v0.3.0/README.md#the-published-package).
2680
+ (#76)
531
2681
 
532
2682
  ## [0.2.12] - 2026-09-22
533
2683
 
2684
+ The first published release with the 0.2.11 changes (`invoke`,
2685
+ `detectLanguage`, `SkillOAuthConfig`), plus the fix below.
2686
+
534
2687
  ### Fixed
535
2688
 
536
- - Sandbox mode refused every `exec` call that installs packages, which broke
537
- the pdf, presentations, word and excel skills. A request whose packages are
538
- all vendored now installs from the shipped wheels; one that would fall back
539
- to PyPI is still refused. (#91)
2689
+ - The pdf, presentations, word and excel skills work again under
2690
+ `sandboxMode`. Sandbox mode refused every `exec` call that installs
2691
+ packages, including installs that never leave the device.
2692
+
2693
+ A request whose packages are all vendored, each pinned to the version the
2694
+ shipped wheels carry, now installs from those wheels. One unvendored
2695
+ package, an unpinned version, or a host that ships no wheels would fall
2696
+ back to PyPI, and is still refused. See
2697
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.12/docs/decisions/2026-09-21-sandbox-mode-no-network.md#consequences).
2698
+ (#91)
540
2699
 
541
2700
  ## [0.2.11] - 2026-09-22
542
2701
 
543
2702
  Tagged but never published to npm; these changes first shipped in 0.2.12.
2703
+ Install 0.2.12 or later to get them.
544
2704
 
545
2705
  ### Added
546
2706
 
547
2707
  - `invoke({ capability, args })` runs one capability on its own, with no
548
2708
  model, no dispatch and no approval callback: the caller already decided.
549
- `image` is the first capability. It is a frame on the existing `completion`
550
- stream, so it takes the same `attach`, `progress` and abort signal and emits
551
- the same `tool-call`, `tool-result`, `metrics`, `error` and `aborted` events.
552
- `metrics` reports `totalTokens: 0`. It is on `Harness` and `RemoteHarness`
553
- alike, and optional on `HarnessContract`. (#74)
2709
+ `image` is the first capability, and `CAPABILITIES` and `isCapability` list
2710
+ and check the names.
2711
+
2712
+ It is a frame on the existing `completion` stream, so it takes the same
2713
+ `attach`, `progress` and abort signal, and emits the same `tool-call`,
2714
+ `tool-result`, `metrics`, `error` and `aborted` events. `metrics` reports
2715
+ `totalTokens: 0`. An optional `agent` supplies the image defaults (model,
2716
+ steps, size). A failure inside the tool, such as a missing `attach`, comes
2717
+ back as `result.error` on the `tool-result`; the `error` event is for a
2718
+ capability the device lacks or a tool that threw.
2719
+
2720
+ It is on `Harness` and `RemoteHarness` alike, and optional on
2721
+ `HarnessContract`. See
2722
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.11/docs/decisions/2026-09-21-a-run-that-loads-no-model.md).
2723
+ (#74)
554
2724
 
555
2725
  ```js
556
2726
  for await (const event of harness.invoke({
@@ -560,14 +2730,20 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
560
2730
  progress,
561
2731
  signal
562
2732
  })) {
563
- if (event.type === 'tool-result') showImage(event.result)
2733
+ if (event.type === 'tool-result') {
2734
+ // { attachmentId, fileName, byteLength, width, height } or { error }
2735
+ if (event.result.error) showError(event.result.error)
2736
+ else showImage(event.result.attachmentId)
2737
+ }
564
2738
  if (event.type === 'error') showError(event.message)
565
2739
  }
566
2740
  ```
567
2741
 
568
- - `detectLanguage({ text, topK })`, served over hrpc as `detect-language` and
569
- on `RemoteHarness`: language detection with no model to load. Without
570
- `topK`, or with 1, it answers with the single best match and no
2742
+ - `detectLanguage({ text, topK })`: language detection with no model to load.
2743
+ It is on `Harness`, served over hrpc as `detect-language`, and on
2744
+ `RemoteHarness`.
2745
+
2746
+ Without `topK`, or with 1, it answers with the single best match and no
571
2747
  probability. Above that it returns ranked candidates with their
572
2748
  probabilities, best first, and may return fewer than asked. Text it cannot
573
2749
  place answers `und`. (#75)
@@ -580,15 +2756,31 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
580
2756
  // [{ code, language, probability }, ...]
581
2757
  ```
582
2758
 
583
- - `SkillOAuthConfig` on `SkillSetupRoute.oauth`, parsed from a skill
584
- manifest's `setup.routes[].oauth` and carried over the wire, so a host can
585
- run a skill's OAuth setup from its manifest instead of its own provider
586
- table. A route missing `stateKey`, `authUrl`, `tokenUrl` or `tokenAuth`
587
- carries no `oauth`. (#88)
2759
+ - A host can run a skill's OAuth setup from its manifest instead of its own
2760
+ provider table. `SkillSetupRoute.oauth` carries a `SkillOAuthConfig` parsed
2761
+ from `setup.routes[].oauth` and sent over the wire, and `SkillOAuthConfig`
2762
+ is exported.
2763
+
2764
+ `stateKey`, an https `authUrl` and `tokenUrl`, and `tokenAuth`
2765
+ (`pkce-only`, `secret-in-body` or `secret-in-basic`) are required; an
2766
+ `oauth` route without a valid config is dropped. `extraAuthParams` may not
2767
+ override the parameters the flow owns, such as `redirect_uri` or `state`.
2768
+ (#88)
2769
+
2770
+ ```js
2771
+ const skills = await harness.skills()
2772
+ const route = skills
2773
+ .find((skill) => skill.name === 'spotify')
2774
+ ?.setup?.routes?.find((r) => r.kind === 'oauth')
2775
+
2776
+ // { stateKey, authUrl, tokenUrl, scopes, tokenAuth,
2777
+ // extraAuthParams?, registrationEndpoint?, port?, sharedIosSession? }
2778
+ const oauth = route?.oauth
2779
+ ```
588
2780
 
589
2781
  ### Changed
590
2782
 
591
- - `@qvac/skills` 0.1.6: the eight OAuth skills declare their setup routes'
2783
+ - `@qvac/skills` `^0.1.6`: the eight OAuth skills declare their setup routes'
592
2784
  OAuth config, the Spotify skill always makes the play call after a search,
593
2785
  and the weather skill looks the place up with `weather_lookup`. (#88)
594
2786
 
@@ -605,11 +2797,17 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
605
2797
 
606
2798
  ### Added
607
2799
 
608
- - `sandboxMode` agent option: an agent with no network access. It withholds
609
- every tool that reaches the network (the web search, HTTP request and MCP
610
- toolsets, including skill operations over HTTP or MCP), not just web search.
2800
+ - `sandboxMode` agent option: an agent that cannot reach the network. Set it
2801
+ on the agent and every network tool is withheld before the model sees the
2802
+ catalog: the web search, HTTP request and MCP toolsets, including skill
2803
+ operations compiled over HTTP or MCP, not just web search.
2804
+
611
2805
  `exec` stays, but refuses package installs and well-known network commands
612
- such as `curl`, `git` and `npm`. That is a guard, not an OS-level sandbox.
2806
+ such as `curl`, `git` and `npm`. That is a name-list guard, not an OS-level
2807
+ sandbox: another binary, or Python calling `pyfetch`, can still open a
2808
+ socket. The six toolset switches stay independent; this is the one knob
2809
+ that means "no network". See
2810
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.10/docs/decisions/2026-09-21-sandbox-mode-no-network.md).
613
2811
  (#73)
614
2812
 
615
2813
  ```js
@@ -622,12 +2820,17 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
622
2820
  }
623
2821
  ```
624
2822
 
625
- - `@qvac/harness/office`: XLSX and PPTX text extraction for Knowledge beside
626
- DOCX, through the same bundled Python worker. It keeps sheet names, column
627
- positions, cached formula values, slide text, grouped shapes and tables;
628
- speaker notes, images and charts are left out. The format comes from the
629
- file extension, with `mimeType` as the fallback. `@qvac/harness/docx` is
630
- unchanged. (#83)
2823
+ - `@qvac/harness/office`: XLSX and PPTX text extraction for Knowledge, beside
2824
+ DOCX, through the same bundled Python worker. `extractOfficeText` picks the
2825
+ format from the file extension, with `mimeType` as the fallback.
2826
+
2827
+ XLSX keeps sheet names, column positions, cached formula values (formula
2828
+ text where there is no cached value). PPTX keeps slide text, grouped shapes
2829
+ and tables in slide order; speaker notes, images and charts are left out.
2830
+ Legacy XLS and PPT are not supported. `@qvac/harness/docx` is unchanged and
2831
+ shares the worker. See
2832
+ [Office extraction](https://github.com/tetherto/qvac-harness/blob/v0.2.10/README.md#office-extraction)
2833
+ for the cache and wheel paths a host sets. (#83)
631
2834
 
632
2835
  ```js
633
2836
  import { extractOfficeText, closeOfficeWorker } from '@qvac/harness/office'
@@ -639,43 +2842,57 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
639
2842
 
640
2843
  ### Fixed
641
2844
 
642
- - A small model could loop on the same failing tool call, up to the round
643
- cap. A call that already failed this turn with the same arguments is now
2845
+ - A small model no longer loops on the same failing tool call up to the round
2846
+ cap. A call that already failed this turn with the same arguments is
644
2847
  answered from its first result without running again, until a later round
645
- succeeds. Three such answers end the turn's tool rounds. A failure that may
646
- pass on retry, such as a timeout, a 5xx, 408 or 429, still runs again, and
647
- the tools that can fail that way now say so in a `code` or `status` field on
648
- their result. (#78)
649
- - A guessed `auth.tokenCredentialKey` on `http_request` or `mcp_call` was
650
- refused with an error claiming the skill was not loaded. It now resolves to
651
- the one connected credential allowed for that URL, and when none is
652
- connected the error says so and tells the user to connect it in Skills.
653
- (#72)
2848
+ succeeds. Three such answers end the turn's tool rounds; the tool set is
2849
+ never changed, so the prompt cache is kept.
2850
+
2851
+ A failure that may pass on retry, such as a timeout, a 5xx, 408 or 429,
2852
+ still runs again, and the tools that can fail that way now say so in a
2853
+ `code` or `status` field on their result. See
2854
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.10/docs/decisions/2026-09-21-a-failed-call-is-answered-from-its-own-result.md).
2855
+ (#78)
2856
+
2857
+ - A guessed `auth.tokenCredentialKey` on `http_request` or `mcp_call` now
2858
+ works instead of failing with an error claiming the skill was not loaded.
2859
+ It resolves to the one connected credential allowed for that URL. When
2860
+ none is connected, the error says so and tells the user to connect it in
2861
+ Skills. (#72)
654
2862
 
655
2863
  ## [0.2.9] - 2026-09-22
656
2864
 
657
2865
  ### Added
658
2866
 
659
- - `captureInferenceCalls` on a completion's context: each round then emits an
660
- `inference-call` event with the exact payload it is about to send (model,
661
- messages, tools, generation params, cache key and prompt prefix), and an
662
- `inference-sent` event once it ends, with the tokens it spent, its `outcome`
663
- (`completed`, `overflowed` or `failed`) and, on the bundled patched SDK, the
664
- slice of `messages` the KV cache let through. An attempt the overflow ladder
665
- rejected is still recorded, with its `droppedTurns`. Off unless asked for,
666
- since every record carries a whole prompt. The flag and both events are new on
667
- the hrpc wire, so the host and the spawned harness both need 0.2.9. (#51)
2867
+ - A host can record exactly what each inference round sent. Set
2868
+ `captureInferenceCalls` on a completion's context, and each round emits an
2869
+ `inference-call` event with the payload it is about to send: model,
2870
+ messages, tools, generation params, cache key and prompt prefix.
2871
+
2872
+ An `inference-sent` event follows once the round ends, with the tokens it
2873
+ spent, its `outcome` (`completed`, `overflowed` or `failed`) and, on the
2874
+ bundled patched SDK, the slice of `messages` the KV cache let through. An
2875
+ attempt the overflow ladder rejected is still recorded, with its
2876
+ `droppedTurns`. See
2877
+ [What actually gets sent](https://github.com/tetherto/qvac-harness/blob/v0.2.9/docs/kvcache-reference.md#what-actually-gets-sent).
2878
+
2879
+ Off unless asked for, since every record carries a whole prompt. The flag
2880
+ and both events are new on the hrpc wire, so the host and the spawned
2881
+ harness both need 0.2.9. (#51)
668
2882
 
669
2883
  ```js
670
- for await (const event of harness.completion({ model, messages, captureInferenceCalls: true })) {
671
- if (event.type === 'inference-call') record(event.call.round, event.call.messages)
672
- if (event.type === 'inference-sent') settle(event.round, event.outcome, event.tokens)
2884
+ const context = { model, agent, messages, captureInferenceCalls: true }
2885
+ for await (const event of harness.completion(context)) {
2886
+ if (event.type === 'inference-call') record(event.call)
2887
+ if (event.type === 'inference-sent') settle(event.round, event.outcome)
673
2888
  }
674
2889
  ```
675
2890
 
676
- - The `metrics` event carries the last round's `stopReason`, and leaves it out
677
- when the SDK reports none. A turn cut off by the context window ends cleanly
678
- with `stopReason: 'length'`, so a host can tell it from a complete answer.
2891
+ - A host can tell a cut-off answer from a complete one. The `metrics` event
2892
+ carries the last round's `stopReason`, and leaves it out when the SDK
2893
+ reports none. A turn cut off by the context window ends cleanly with
2894
+ `stopReason: 'length'`. See
2895
+ [Compaction](https://github.com/tetherto/qvac-harness/blob/v0.2.9/docs/kvcache-reference.md#compaction).
679
2896
  (#62)
680
2897
 
681
2898
  ```js
@@ -692,15 +2909,21 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
692
2909
  ### Added
693
2910
 
694
2911
  - `weather_lookup`, a tool that looks weather up on wttr.in by `location` and
695
- leads its report with the place the service actually resolved. When that
696
- place disagrees with the country or state the user named, it refuses instead
697
- of reporting the weather of wherever the geocoder landed: a nonexistent town
698
- no longer gets a forecast, and a bare "Rome" the service places in Togo says
699
- so. It is offered only once the weather skill is loaded, needs no approval,
700
- and the `http-request` toolset switch turns it off. The spawned sidecar
701
- registers it; an in-process host adds it to its tools. (#52)
2912
+ leads its report with the place the service actually resolved.
2913
+
2914
+ When that place disagrees with the country or state the user named, it
2915
+ refuses instead of reporting the weather of wherever the geocoder landed: a
2916
+ nonexistent town no longer gets a forecast, and a bare "Rome" the service
2917
+ places in Togo says so.
2918
+
2919
+ It is offered only once the weather skill is loaded, needs no approval, and
2920
+ the `http-request` toolset switch turns it off. The spawned sidecar registers
2921
+ it; an in-process host adds it to its tools. See
2922
+ [the decision record](https://github.com/tetherto/qvac-harness/blob/v0.2.8/docs/decisions/2026-09-16-a-lookup-reports-the-place-it-resolved.md).
2923
+ (#52)
702
2924
 
703
2925
  ```js
2926
+ import { Harness } from '@qvac/harness'
704
2927
  import { createWeatherLookupTool } from '@qvac/harness/lib/tools/weather-lookup.ts'
705
2928
 
706
2929
  const harness = new Harness({ tools: [...tools, createWeatherLookupTool()] })
@@ -715,20 +2938,25 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
715
2938
  the version. (#55)
716
2939
 
717
2940
  ```js
718
- // 0.2.7
2941
+ // before
2942
+ import { currentReleaseLine } from '@qvac/harness/schema/release-tags'
719
2943
  const line = currentReleaseLine(root) // '0.2'
720
2944
 
721
- // 0.2.8
2945
+ // after
2946
+ import { currentReleaseVersion } from '@qvac/harness/schema/release-tags'
722
2947
  const version = currentReleaseVersion(root) // Version 0.2.8
723
2948
  const line = `${version.major}.${version.minor}`
724
2949
  ```
725
2950
 
726
- - `previousReleaseTags` from the same module now counts the newest shipped tag
727
- on the line being built as a baseline, not only older lines, so a schema
728
- change is checked against the build users are running. Only tags newer than
729
- the package version are left out. A host that regenerates its `spec/`
730
- against it re-derives hyperschema's version counters once, so expect one
731
- regeneration commit after upgrading. (#55, #58)
2951
+ - A schema change is now checked against the build users are running.
2952
+ `previousReleaseTags` from the same module counts the newest shipped tag on
2953
+ the line being built as a baseline, not only older lines; only tags newer
2954
+ than the package version are left out.
2955
+
2956
+ A host that regenerates its `spec/` against it re-derives hyperschema's
2957
+ version counters once, so expect one regeneration commit after upgrading.
2958
+ (#55, #58)
2959
+
732
2960
  - `@qvac/skills` 0.1.4: the Apple Notes create-note operation no longer
733
2961
  renames a note after creating it, which failed on iCloud accounts and left
734
2962
  duplicate notes behind. (#48)
@@ -737,14 +2965,17 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
737
2965
 
738
2966
  ### Added
739
2967
 
740
- - `@qvac/harness/docx`: `extractDocxText` pulls a DOCX file's text for
741
- Knowledge with the bundled Python runtime, keeping paragraphs and tables in
742
- document order, one row per line with cells joined by `' | '`. It takes up to
743
- 20 MiB and only the shipped wheels, never a network install. Set
744
- `QVAC_PYODIDE_CACHE_DIR` to a writable directory first, so the worker seeds
745
- its cache from those wheels and works offline. A bundled host also sets
746
- `QVAC_PYODIDE_WORKER_ENTRY` and `QVAC_PYTHON_WHEELS_DIR` to its staged
747
- worker and wheels. (#46)
2968
+ - `@qvac/harness/docx`: `extractDocxText` gives Knowledge a DOCX file's text,
2969
+ pulled with the bundled Python runtime. Paragraphs and tables keep document
2970
+ order, one table row per line with cells joined by `' | '`.
2971
+
2972
+ It takes up to 20 MiB and only the shipped wheels, never a network install.
2973
+ Set `QVAC_PYODIDE_CACHE_DIR` to a writable directory first, so the worker
2974
+ seeds its cache from those wheels and works offline. A bundled host also
2975
+ sets `QVAC_PYODIDE_WORKER_ENTRY` and `QVAC_PYTHON_WHEELS_DIR` to its staged
2976
+ worker and wheels. See
2977
+ [DOCX extraction](https://github.com/tetherto/qvac-harness/blob/v0.2.7/README.md#docx-extraction).
2978
+ (#46)
748
2979
 
749
2980
  ```js
750
2981
  import { extractDocxText, closeDocxWorker } from '@qvac/harness/docx'
@@ -776,36 +3007,45 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
776
3007
  })
777
3008
  ```
778
3009
 
779
- - `writeClient` and `writeCapabilities` from `@qvac/harness/schema/generate`
780
- take an options argument whose `optionalRequests` names the request types a
781
- caller may omit: the generated client sends `{}` for them and the generated
782
- capability types mark the input optional. Left out, only `@assistant/empty`
783
- is optional, as before. A set you pass replaces that default, so include it
784
- if you still want it. `writeClient` still takes an export name as a string.
785
- (#44)
3010
+ - A caller can declare which hrpc requests may be omitted. `writeClient` and
3011
+ `writeCapabilities` from `@qvac/harness/schema/generate` take an options
3012
+ argument whose `optionalRequests` names those request types: the generated
3013
+ client sends `{}` for them, and the generated capability types mark the input
3014
+ optional.
3015
+
3016
+ Left out, only `@assistant/empty` is optional, as before. A set you pass
3017
+ replaces that default, so include it if you still want it. `writeClient`
3018
+ still takes an export name as a string. (#44)
786
3019
 
787
3020
  ```js
788
3021
  import { writeClient, writeCapabilities } from '@qvac/harness/schema/generate'
789
3022
 
790
3023
  const optionalRequests = new Set(['@assistant/empty', '@assistant/mesh-scope'])
791
- writeClient(builder, 'spec/calls.js', { exportName: 'engineClient', optionalRequests })
3024
+ writeClient(builder, 'spec/calls.js', {
3025
+ exportName: 'engineClient',
3026
+ optionalRequests
3027
+ })
792
3028
  writeCapabilities(builder, 'spec/capabilities.d.ts', { optionalRequests })
793
3029
  ```
794
3030
 
795
3031
  ### Changed
796
3032
 
797
- - A completion that needs a different model no longer loads it beside one a
798
- live run is holding. It waits for that run to release its model, for up to
799
- five minutes, and then loads anyway rather than failing. A `warmModel` call
800
- waits two seconds at most, and skips the warm if no room was made. (#41)
3033
+ - Switching models no longer stacks a second one in memory beside a live run.
3034
+ A completion that needs a different model waits for that run to release its
3035
+ model, for up to five minutes, and then loads anyway rather than failing.
3036
+
3037
+ A `warmModel` call waits two seconds at most, and skips the warm if no room
3038
+ was made. (#41)
801
3039
 
802
3040
  ## [0.2.5] - 2026-09-14
803
3041
 
804
3042
  ### Added
805
3043
 
806
- - A `gpuStats` option on `spawnHarness`, `harnessChild` and `HarnessOptions`.
807
- A host that already has the GPU reading passes it, and the harness skips its
808
- own probe. Left out, the harness probes for itself. (#36)
3044
+ - A host that already has the GPU reading can hand it over: a `gpuStats`
3045
+ option on `spawnHarness`, `harnessChild` and `HarnessOptions`, and the
3046
+ harness skips its own probe. Left out, the harness probes for itself. It
3047
+ takes the `bare-gpu-info` shape: `memory.totalBytes` and `gpu.devices`, each
3048
+ with a `name` and `videoMemoryBytes`. (#36)
809
3049
 
810
3050
  ```js
811
3051
  import { spawnHarness } from '@qvac/harness/lib/spawn.ts'
@@ -815,54 +3055,72 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
815
3055
  sdkStorage,
816
3056
  gpuStats: {
817
3057
  memory: { totalBytes: os.totalmem() },
818
- gpu: { devices: [{ name: 'NVIDIA RTX 4070', videoMemoryBytes: 12884901888 }] }
3058
+ gpu: {
3059
+ devices: [{ name: 'NVIDIA RTX 4070', videoMemoryBytes: 12884901888 }]
3060
+ }
819
3061
  }
820
3062
  })
821
3063
  ```
822
3064
 
823
3065
  ### Fixed
824
3066
 
825
- - On a Linux snap the harness exited about a second after `open`, and the
826
- supervisor respawned it in a loop: the boot-time capability probe created a
827
- second GPU-info instance beside the SDK's own. On Linux and Windows under
828
- Bare, GPUs are now enumerated in a short-lived child process, which gives up
829
- after 5 seconds and reports no GPU. (#36)
830
- - On Windows, asking for an image after a presentation left the chat stuck on
831
- "Loading … into memory". Pyodide's boot opened the process streams from the
832
- Python worker thread, which blocked the image-model loader's progress. Boot
833
- now never touches them; a run's own output capture is unchanged. (#34)
3067
+ - The harness stays up on a Linux snap. It exited about a second after `open`,
3068
+ and the supervisor respawned it in a loop: the boot-time capability probe
3069
+ created a second GPU-info instance beside the SDK's own.
3070
+
3071
+ On Linux and Windows under Bare, GPUs are now enumerated in a short-lived
3072
+ child process, which gives up after 5 seconds and reports no GPU. (#36)
3073
+
3074
+ - On Windows, asking for an image after a presentation no longer leaves the
3075
+ chat stuck on "Loading … into memory". Pyodide's boot opened the process
3076
+ streams from the Python worker thread, which blocked the image-model loader's
3077
+ progress. Boot now never touches them; a run's own output capture is
3078
+ unchanged. (#34)
834
3079
 
835
3080
  ## [0.2.4] - 2026-09-12
836
3081
 
837
3082
  ### Added
838
3083
 
839
- - `@qvac/harness/worker/stow-entry.mjs`: the sidecar entry, published so a
840
- host running from inside `node_modules` spawns the engine without the
841
- prebuilt bundle. Every native addon then resolves beside the JS that calls
842
- it, from one install. With the bundle, the addons come from the host's own
843
- install, and a version skew there hangs the child on boot rather than
844
- throwing: `@qvac/core` 0.1.2 shipped that way. The bundle stays published
845
- for a host that relocates the code out of `node_modules`. (#31)
3084
+ - `@qvac/harness/worker/stow-entry.mjs`: a sidecar entry a host running from
3085
+ inside `node_modules` spawns directly, without the prebuilt bundle. Every
3086
+ native addon then resolves beside the JS that calls it, from one install.
3087
+
3088
+ With the bundle, the addons come from the host's own install, and a version
3089
+ skew there hangs the child on boot rather than throwing: `@qvac/core` 0.1.2
3090
+ shipped that way. The bundle stays published for a host that relocates the
3091
+ code out of `node_modules`. (#31)
846
3092
 
847
3093
  ```js
848
3094
  import { harnessChild } from '@qvac/harness/lib/spawn.ts'
849
3095
 
850
3096
  const entry = new URL(import.meta.resolve('@qvac/harness/worker/stow-entry.mjs')).pathname
851
- const spec = harnessChild(entry, { runner, skillsDir, wheelsDir, sdkStorage: storage.sdk })
3097
+ const spec = harnessChild(entry, {
3098
+ runner,
3099
+ skillsDir,
3100
+ wheelsDir,
3101
+ sdkStorage: storage.sdk
3102
+ })
852
3103
  ```
853
3104
 
854
3105
  ## [0.2.3] - 2026-09-12
855
3106
 
856
3107
  ### Added
857
3108
 
858
- - `schema/generate` emits `writeStream` on the generated `HandlerFrames`, so a
859
- duplex handler's frames type without a local widening. (#29)
3109
+ - A duplex handler's frames now type without a local widening:
3110
+ `schema/generate` emits `writeStream` on the generated `HandlerFrames`.
3111
+ (#29)
3112
+
3113
+ ```js
3114
+ // in a generated spec, a duplex handler can watch its write side close
3115
+ frames.writeStream?.on('close', onClose)
3116
+ ```
860
3117
 
861
3118
  ### Changed
862
3119
 
863
- - On Android and iOS, `resolveStorage` keeps models under the app's own
864
- persistent root instead of the device HOME, which an app cannot write.
865
- Desktop and Snap are unchanged, and `overrides.models` still wins. (#29)
3120
+ - Models download on Android and iOS. `resolveStorage` keeps them under the
3121
+ app's own persistent root there, instead of the device HOME, which an app
3122
+ cannot write. Desktop and Snap are unchanged, and `overrides.models` still
3123
+ wins. (#29)
866
3124
 
867
3125
  ```js
868
3126
  import { resolveStorage } from '@qvac/harness/storage'
@@ -874,37 +3132,41 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
874
3132
 
875
3133
  ### Fixed
876
3134
 
877
- - Every `./lib/tools/*` subpath is published. The tarball listed only the ones
878
- `qvac-core` imports, so the mobile worklet's file tools (`file-glob`, `grep`,
879
- `read-files`, `create-documents`, `edit-documents`, `fs/scope`) failed with
880
- `PACKAGE_PATH_NOT_EXPORTED`. 0.1.1 to 0.2.2 are affected. (#29)
3135
+ - The mobile worklet's file tools load again. Every `./lib/tools/*` subpath is
3136
+ published now; the tarball listed only the ones `qvac-core` imports, so
3137
+ `file-glob`, `grep`, `read-files`, `create-documents`, `edit-documents` and
3138
+ `fs/scope` failed with `PACKAGE_PATH_NOT_EXPORTED`. 0.1.1 to 0.2.2 are
3139
+ affected. (#29)
881
3140
 
882
3141
  ## [0.2.2] - 2026-09-11
883
3142
 
884
3143
  ### Fixed
885
3144
 
886
- - A stale lockfile entry gave `@qvac/sdk` its own nested `@qvac/inference`
887
- 0.19.1, beside the patched 0.19.0 the harness pins. The bundle is built from
888
- the pinned copy alone again. (#27)
3145
+ - The engine bundle runs on the patched `@qvac/inference` 0.19.0 the harness
3146
+ pins, and nothing else. A stale lockfile entry had given `@qvac/sdk` its own
3147
+ nested `@qvac/inference` 0.19.1 beside it. A packaging fix with no API
3148
+ change. (#27)
889
3149
 
890
3150
  ## [0.2.1] - 2026-09-11
891
3151
 
892
3152
  ### Fixed
893
3153
 
894
- - The generated wire spec in 0.2.0 stamped the fields it added (`downloaded`
895
- on a download event and as a model status, and `kvCacheKey`) with schema
896
- version 7, the version 0.1.2 already shipped. They are version 8 now, so the
897
- spec matches the schema it is built from. (#25)
3154
+ - The generated wire spec matches the schema it is built from again. 0.2.0
3155
+ stamped the fields it added (`downloaded` on a download event and as a model
3156
+ status, and `kvCacheKey`) with schema version 7, the version 0.1.2 already
3157
+ shipped. They are version 8 now. Only the generated spec changed; no API
3158
+ change. (#25)
898
3159
 
899
3160
  ## [0.2.0] - 2026-09-11
900
3161
 
901
3162
  ### Added
902
3163
 
903
- - `deleteKvCache(kvCacheKey)` deletes one chat's KV cache, every file kept
904
- under that key, where `clearKvCache()` deletes them all. It is safe on a key
905
- still in use: the next turn under it primes from scratch. It rides a new
906
- `delete-kv-cache` hrpc route, and resolves with `{ status }` like
907
- `clearKvCache`. (#22)
3164
+ - `deleteKvCache(kvCacheKey)` deletes one chat's KV cache: every file kept
3165
+ under that key. `clearKvCache()` still deletes them all.
3166
+
3167
+ It is safe on a key still in use: the next turn under it primes from scratch.
3168
+ It rides a new `delete-kv-cache` hrpc route, and resolves with `{ status }`
3169
+ like `clearKvCache`. (#22)
908
3170
 
909
3171
  ```js
910
3172
  // the cacheKey the chat's completions ran under
@@ -912,11 +3174,13 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
912
3174
  if (result.status !== 'success') log(result.error)
913
3175
  ```
914
3176
 
915
- - A download's `complete` event carries `downloaded`, `true` when bytes were
916
- fetched and `false` when the model was already on disk. An image model's
917
- `model` events report `loading` rather than `downloading` when it is cached,
918
- and a new `downloaded` status once a fetched one has loaded, so a host that
919
- switches over `status` has one more case. (#22)
3177
+ - A host can tell a fresh download from a model already on disk. A download's
3178
+ `complete` event carries `downloaded`: `true` when bytes were fetched,
3179
+ `false` when the model was already there.
3180
+
3181
+ An image model's `model` events report `loading` rather than `downloading`
3182
+ when it is cached, and a new `downloaded` status once a fetched one has
3183
+ loaded, so a host that switches over `status` has one more case. (#22)
920
3184
 
921
3185
  ```js
922
3186
  for await (const event of harness.download({ model })) {
@@ -928,28 +3192,63 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
928
3192
  })
929
3193
  ```
930
3194
 
931
- - `ToolDefinition.prompt`: an optional compact `description` and `parameters`
932
- the model is shown in place of the full ones, which still validate the call.
933
- `exec` and `skill` ship one, so every turn spends less of the prompt on
934
- their schemas. (#22)
935
- - `CONTEXT_OVERFLOW_MESSAGE` is exported, the message a turn fails with when
936
- it does not fit the model's context window, so a host can tell that failure
937
- apart and compact the chat. (#22)
3195
+ - `ToolDefinition.prompt` lets a tool show the model a shorter schema: an
3196
+ optional compact `description` and `parameters` sent in place of the full
3197
+ ones, which still validate the call. `exec` and `skill` ship one, so every
3198
+ turn spends less of the prompt on their schemas. (#22)
3199
+
3200
+ ```js
3201
+ const lookup = {
3202
+ name: 'lookup',
3203
+ description: 'Look a record up by its id, and return ...',
3204
+ parameters: {
3205
+ type: 'object',
3206
+ properties: { id: { type: 'string', description: 'The record id ...' } },
3207
+ required: ['id']
3208
+ },
3209
+ // what the model sees; the full schema above still validates the call
3210
+ prompt: {
3211
+ description: 'Look a record up by id.',
3212
+ parameters: {
3213
+ type: 'object',
3214
+ properties: { id: { type: 'string' } },
3215
+ required: ['id']
3216
+ }
3217
+ },
3218
+ toolset: null,
3219
+ effect: () => 'read',
3220
+ execute: async ({ id }) => find(id)
3221
+ }
3222
+ ```
3223
+
3224
+ - `CONTEXT_OVERFLOW_MESSAGE` is exported: the message a turn fails with when it
3225
+ does not fit the model's context window. A host can tell that failure apart
3226
+ and compact the chat. (#22)
938
3227
 
939
3228
  ```js
940
3229
  import { CONTEXT_OVERFLOW_MESSAGE } from '@qvac/harness'
3230
+
3231
+ if (event.type === 'error' && event.message === CONTEXT_OVERFLOW_MESSAGE) {
3232
+ compact(chat)
3233
+ }
941
3234
  ```
942
3235
 
943
3236
  - With `QVAC_HARNESS_LOG=1`, each turn logs `sdk tool definitions`: the tool
944
3237
  schemas it sent, largest first, with each one's size and the skill that
945
3238
  granted it. (#22)
946
3239
 
3240
+ ```sh
3241
+ QVAC_HARNESS_LOG=1 bare host.js
3242
+ ```
3243
+
947
3244
  ### Changed
948
3245
 
949
3246
  - `@qvac/sdk` 0.19.0, pinned exactly. Under Bare the SDK is now served by
950
3247
  `@qvac/inference` 0.19.0, through a new `#sdk` import alias.
951
- `@qvac/audiogen-ggml` joins the deferred addons, so `prebuilds-manifest.json`
952
- names it and the host provides it too. (#22)
3248
+
3249
+ `@qvac/audiogen-ggml` joins the deferred addons, so
3250
+ `prebuilds-manifest.json` names it and the host provides it too. (#22)
3251
+
953
3252
  - Image and music generation schemas reach the model once their skill's
954
3253
  instructions are loaded, not as soon as the skill is enabled. Loading the
955
3254
  skill unlocks them within the same turn, at the cost of one cache re-prime
@@ -964,10 +3263,11 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
964
3263
 
965
3264
  ### Fixed
966
3265
 
967
- - `@qvac/harness/sdk-storage` and `@qvac/harness/sdk-config-loader` failed to
968
- resolve under Bare with `MODULE_NOT_FOUND`: the tarball carried only the Node
969
- loader behind `#sdk-config-loader`, so `configureSdkStorage()` could not run
970
- on Bare. Both loaders ship now. 0.1.1 is affected. (#20)
3266
+ - `configureSdkStorage()` runs under Bare again.
3267
+ `@qvac/harness/sdk-storage` and `@qvac/harness/sdk-config-loader` failed to
3268
+ resolve there with `MODULE_NOT_FOUND`, because the tarball carried only the
3269
+ Node loader behind `#sdk-config-loader`. Both loaders ship now. 0.1.1 is
3270
+ affected. (#20)
971
3271
 
972
3272
  ```js
973
3273
  // Bare: loads again, nothing else changes
@@ -978,13 +3278,15 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
978
3278
 
979
3279
  ### Added
980
3280
 
981
- - The library surface ships compiled: `dist-lib/` carries JavaScript and a
982
- `.d.ts` for every export, so `@qvac/harness` and its subpaths import from
983
- npm under plain Node or Bare, with no TypeScript source or type-stripping
984
- loader. Export keys are unchanged, `.ts`-suffixed deep paths included, so a
985
- host that took the library from the repository switches to the package
986
- without editing a specifier. Of `./lib/tools/*`, only the paths `qvac-core`
987
- imports are published. (#18)
3281
+ - `@qvac/harness` and its subpaths now import from npm under plain Node or
3282
+ Bare, with no TypeScript source or type-stripping loader. The library surface
3283
+ ships compiled: `dist-lib/` carries JavaScript and a `.d.ts` for every
3284
+ export.
3285
+
3286
+ Export keys are unchanged, `.ts`-suffixed deep paths included, so a host that
3287
+ took the library from the repository switches to the package without editing
3288
+ a specifier. Of `./lib/tools/*`, only the paths `qvac-core` imports are
3289
+ published. (#18)
988
3290
 
989
3291
  ```js
990
3292
  import { harnessChild, spawnHarness } from '@qvac/harness/lib/spawn.ts'
@@ -995,13 +3297,18 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
995
3297
 
996
3298
  ### Added
997
3299
 
998
- - First release of the QVAC engine as `@qvac/harness`. The tarball is the
999
- prebuilt `dist/harness.bundle`, one bundle for every platform, and the
1000
- generated `dist/harness.cjs` a host requires to spawn it as a bare-sidecar
1001
- process. It spawns and does not import: the export map points at library
3300
+ - First release of the QVAC engine as `@qvac/harness`. A host gets the
3301
+ prebuilt engine, `dist/harness.bundle` (one bundle for every platform), and
3302
+ the generated `dist/harness.cjs` it requires to spawn that bundle as a
3303
+ bare-sidecar process.
3304
+
3305
+ The package spawns; it does not import. Its export map points at library
1002
3306
  source the tarball leaves out, so a host takes `spawnHarness`,
1003
3307
  `harnessChild` and the transport from the repository until a compiled
1004
- surface ships. (#13)
3308
+ surface ships. See
3309
+ [The npm artifact spawns; it does not import](https://github.com/tetherto/qvac-harness/blob/v0.1.0/README.md#the-npm-artifact-spawns-it-does-not-import)
3310
+ and [Spawning](https://github.com/tetherto/qvac-harness/blob/v0.1.0/README.md#spawning).
3311
+ (#13)
1005
3312
 
1006
3313
  ```js
1007
3314
  const harness = require('@qvac/harness/dist/harness.cjs')
@@ -1009,17 +3316,29 @@ Tagged but never published to npm; these changes first shipped in 0.2.12.
1009
3316
  const { ipc, sidecar, exit } = await harness.start(args)
1010
3317
  ```
1011
3318
 
1012
- - `dist/prebuilds-manifest.json` names every native prebuild directory the
1013
- bundle defers, keyed by its path relative to the bundle. The host assembles
1014
- those beside the bundle from its own `node_modules`, and installs the
1015
- `@qvac` inference addons and `pyodide` alongside. (#13)
3319
+ - `dist/prebuilds-manifest.json` tells a host which native prebuilds to supply.
3320
+ It names every prebuild directory the bundle defers, keyed by its path
3321
+ relative to the bundle. The host assembles those beside the bundle from its
3322
+ own `node_modules`, and installs the `@qvac` inference addons and `pyodide`
3323
+ alongside. (#13)
1016
3324
  - Skills come from `@qvac/skills` 0.1.2, a content-addressed bundle the
1017
3325
  harness materializes at runtime. The Python wheels the tool runtime installs
1018
3326
  ship in `wheels/`, each pinned by hash in `wheels/manifest.json`. (#13, #15)
1019
- - GPU stats are read through `bare-gpu-info`, so every dependency installs from
1020
- the public npm registry. (#12)
1021
-
1022
- [Unreleased]: https://github.com/tetherto/qvac-harness/compare/v0.7.1...HEAD
3327
+ - Every dependency installs from the public npm registry: GPU stats are read
3328
+ through `bare-gpu-info`. (#12)
3329
+
3330
+ [Unreleased]: https://github.com/tetherto/qvac-harness/compare/v0.8.12...HEAD
3331
+ [0.8.12]: https://github.com/tetherto/qvac-harness/compare/v0.8.11...v0.8.12
3332
+ [0.8.11]: https://github.com/tetherto/qvac-harness/compare/v0.8.10...v0.8.11
3333
+ [0.8.10]: https://github.com/tetherto/qvac-harness/compare/v0.8.9...v0.8.10
3334
+ [0.8.9]: https://github.com/tetherto/qvac-harness/compare/v0.8.8...v0.8.9
3335
+ [0.8.8]: https://github.com/tetherto/qvac-harness/compare/v0.8.7...v0.8.8
3336
+ [0.8.7]: https://github.com/tetherto/qvac-harness/compare/v0.8.6...v0.8.7
3337
+ [0.8.6]: https://github.com/tetherto/qvac-harness/compare/v0.8.5...v0.8.6
3338
+ [0.8.5]: https://github.com/tetherto/qvac-harness/compare/v0.8.0...v0.8.5
3339
+ [0.8.0]: https://github.com/tetherto/qvac-harness/compare/v0.7.3...v0.8.0
3340
+ [0.7.3]: https://github.com/tetherto/qvac-harness/compare/v0.7.2...v0.7.3
3341
+ [0.7.2]: https://github.com/tetherto/qvac-harness/compare/v0.7.1...v0.7.2
1023
3342
  [0.7.1]: https://github.com/tetherto/qvac-harness/compare/v0.7.0...v0.7.1
1024
3343
  [0.7.0]: https://github.com/tetherto/qvac-harness/compare/v0.6.0...v0.7.0
1025
3344
  [0.6.0]: https://github.com/tetherto/qvac-harness/compare/v0.5.0...v0.6.0