@zhivex-ai/harness 1.6.3 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/CHANGELOG.md +16 -3
  2. package/README.md +17 -5
  3. package/SECURITY.md +1 -1
  4. package/SUPPORT.md +2 -2
  5. package/benchmarks/README.md +98 -0
  6. package/contracts/engine-api.json +1587 -0
  7. package/contracts/public-api.json +114 -0
  8. package/contracts/stable-api-signatures.json +17 -17
  9. package/dist/acp-cli.js +37 -1090
  10. package/dist/application/agenda.d.ts +10 -0
  11. package/dist/application/approval-review.d.ts +61 -0
  12. package/dist/application/assistant/automation/scheduler.d.ts +21 -0
  13. package/dist/application/assistant/automation/summary.d.ts +29 -0
  14. package/dist/application/assistant/automation/time.d.ts +10 -0
  15. package/dist/application/assistant/calendar/calendar.d.ts +238 -0
  16. package/dist/application/assistant/calendar/connection.d.ts +50 -0
  17. package/dist/application/assistant/calendar/create-event.d.ts +75 -0
  18. package/dist/application/assistant/calendar/environment.d.ts +2 -0
  19. package/dist/application/assistant/calendar/http.d.ts +6 -0
  20. package/dist/application/assistant/calendar/oauth.d.ts +68 -0
  21. package/dist/application/assistant/calendar/store.d.ts +11 -0
  22. package/dist/application/assistant/calendar/tools.d.ts +78 -0
  23. package/dist/application/assistant/client.d.ts +10 -0
  24. package/dist/application/assistant/config.d.ts +9 -0
  25. package/dist/application/assistant/contracts.d.ts +77 -0
  26. package/dist/application/assistant/daily/service.d.ts +181 -0
  27. package/dist/application/assistant/doctor.d.ts +22 -0
  28. package/dist/application/assistant/evaluation.d.ts +81 -0
  29. package/dist/application/assistant/host.d.ts +399 -0
  30. package/dist/application/assistant/integrations/google.d.ts +117 -0
  31. package/dist/application/assistant/integrations/public-web.d.ts +16 -0
  32. package/dist/application/assistant/managed/secrets.d.ts +10 -0
  33. package/dist/application/assistant/managed/setup-state.d.ts +346 -0
  34. package/dist/application/assistant/managed/setup.d.ts +492 -0
  35. package/dist/application/assistant/microsoft/connection.d.ts +73 -0
  36. package/dist/application/assistant/microsoft/tools.d.ts +78 -0
  37. package/dist/application/assistant/modules/calendar.d.ts +3 -0
  38. package/dist/application/assistant/modules/catalog.d.ts +38 -0
  39. package/dist/application/assistant/modules/daily.d.ts +5 -0
  40. package/dist/application/assistant/modules/github.d.ts +5 -0
  41. package/dist/application/assistant/modules/google.d.ts +3 -0
  42. package/dist/application/assistant/modules/mcp.d.ts +11 -0
  43. package/dist/application/assistant/modules/microsoft.d.ts +3 -0
  44. package/dist/application/assistant/modules/module.d.ts +224 -0
  45. package/dist/application/assistant/modules/tools.d.ts +11 -0
  46. package/dist/application/assistant/modules/web.d.ts +7 -0
  47. package/dist/application/assistant/private-directory.d.ts +3 -0
  48. package/dist/application/assistant/proactive/service.d.ts +142 -0
  49. package/dist/application/assistant/providers/openai-compatible.d.ts +66 -0
  50. package/dist/application/assistant/providers/provider.d.ts +141 -0
  51. package/dist/application/assistant/providers/web-citations.d.ts +2 -0
  52. package/dist/application/assistant/runtime.d.ts +16 -0
  53. package/dist/application/assistant/task-metrics.d.ts +304 -0
  54. package/dist/application/assistant/telegram/api.d.ts +47 -0
  55. package/dist/application/assistant/telegram/bridge.d.ts +69 -0
  56. package/dist/application/assistant/telegram/store.d.ts +10 -0
  57. package/dist/application/automation.d.ts +5 -0
  58. package/dist/application/calendar-review.d.ts +5 -0
  59. package/dist/application/checkpoint-review.d.ts +30 -0
  60. package/dist/application/client.d.ts +18 -0
  61. package/dist/application/code/context.d.ts +5 -0
  62. package/dist/application/code/delivery.d.ts +6 -0
  63. package/dist/application/code/git-delivery.d.ts +54 -0
  64. package/dist/application/code/github-git-transport.d.ts +15 -0
  65. package/dist/application/code/github-pr-transport.d.ts +6 -0
  66. package/dist/application/code/host.d.ts +25 -0
  67. package/dist/application/code/pr-delivery.d.ts +79 -0
  68. package/dist/application/code/projects.d.ts +90 -0
  69. package/dist/application/code/remote-delivery.d.ts +80 -0
  70. package/dist/application/code/repository.d.ts +9 -0
  71. package/dist/application/code/worktrees.d.ts +123 -0
  72. package/dist/application/contracts.d.ts +288 -0
  73. package/dist/application/coordinator-client.d.ts +33 -0
  74. package/dist/application/coordinator-discovery.d.ts +17 -0
  75. package/dist/application/coordinator-launcher.d.ts +2 -0
  76. package/dist/application/coordinator.d.ts +27 -0
  77. package/dist/application/credential-process.d.ts +13 -0
  78. package/dist/application/host.d.ts +7 -0
  79. package/dist/application/management.d.ts +68 -0
  80. package/dist/application/notes.d.ts +5 -0
  81. package/dist/application/offline-migration.d.ts +16 -0
  82. package/dist/application/personal-state.d.ts +5 -0
  83. package/dist/application/review-channel.d.ts +23 -0
  84. package/dist/application/review-tickets.d.ts +29 -0
  85. package/dist/application/runtime-binding.d.ts +4 -0
  86. package/dist/application-cli-wfh08g41.js +184 -0
  87. package/dist/application-cli-z3f9pvcf.js +209 -0
  88. package/dist/arguments-75r85mvc.js +27 -0
  89. package/dist/arguments-x24bbqvd.js +22 -0
  90. package/dist/audit/index.js +16 -472
  91. package/dist/audit-pack-1gnych0m.js +93 -0
  92. package/dist/{audit-pack-s9n693by.js → audit-pack-h44kjkbj.js} +17 -11
  93. package/dist/calendar-2xw0rr7b.js +49 -0
  94. package/dist/cli/application-cli.d.ts +2 -0
  95. package/dist/cli/arguments.d.ts +14 -1
  96. package/dist/cli/auto-approve-setup.d.ts +13 -0
  97. package/dist/cli/configured-harness.d.ts +1 -2
  98. package/dist/cli/console/console-budget.d.ts +16 -2
  99. package/dist/cli/console/console-checkpoints.d.ts +12 -0
  100. package/dist/cli/console/console-commands.d.ts +3 -3
  101. package/dist/cli/console/console-compaction.d.ts +1 -1
  102. package/dist/cli/console/console-diff.d.ts +2 -0
  103. package/dist/cli/console/console-input.d.ts +29 -1
  104. package/dist/cli/console/console-navigation.d.ts +2 -2
  105. package/dist/cli/console/console-outcome.d.ts +10 -0
  106. package/dist/cli/console/console-presentation.d.ts +17 -2
  107. package/dist/cli/console/console-pricing.d.ts +14 -0
  108. package/dist/cli/console/console-reasoning.d.ts +1 -1
  109. package/dist/cli/console/console-recovery.d.ts +2 -0
  110. package/dist/cli/console/console-review.d.ts +34 -0
  111. package/dist/cli/console/console-run-policy.d.ts +5 -0
  112. package/dist/cli/console/console-run-view.d.ts +28 -0
  113. package/dist/cli/console/console-task.d.ts +30 -0
  114. package/dist/cli/console/console-welcome.d.ts +13 -3
  115. package/dist/cli/console/review-diff.d.ts +20 -0
  116. package/dist/cli/presentation.d.ts +8 -6
  117. package/dist/cli/service-checkpoints.d.ts +234 -0
  118. package/dist/cli/terminal/activity-history.d.ts +4 -2
  119. package/dist/cli/terminal/activity-stream.d.ts +33 -0
  120. package/dist/cli/terminal/file-diff.d.ts +11 -0
  121. package/dist/cli/terminal/terminal-theme.d.ts +9 -0
  122. package/dist/cli/terminal/terminal-ui.d.ts +44 -2
  123. package/dist/cli/terminal/tool-activity.d.ts +6 -2
  124. package/dist/{cli-entry-hdtfef27.js → cli-entry-68kqraj7.js} +95 -43
  125. package/dist/{cli-entry-1epvek01.js → cli-entry-86rcbmwh.js} +294 -14
  126. package/dist/cli-entry-btkpb4h1.js +3627 -0
  127. package/dist/cli-entry-bxjbs6qq.js +200 -0
  128. package/dist/cli-entry-cpm89r9q.js +624 -0
  129. package/dist/{cli-entry-mbcq96nx.js → cli-entry-dksm56sj.js} +39 -293
  130. package/dist/{cli-entry-rsx0wpvs.js → cli-entry-eka68ttb.js} +4087 -4625
  131. package/dist/cli-entry-h7dcah4p.js +137 -0
  132. package/dist/cli-entry-kwk23ktq.js +33 -0
  133. package/dist/{cli-entry-nyzyvf24.js → cli-entry-vmce694z.js} +1286 -3142
  134. package/dist/cli-entry-wanv05db.js +1113 -0
  135. package/dist/{cli-yxvq8qf1.js → cli-z7vhm1rk.js} +1767 -380
  136. package/dist/cli.js +8 -6
  137. package/dist/client/json-contracts.d.ts +153 -0
  138. package/dist/client/local-service.d.ts +7 -12
  139. package/dist/client/local-transport.d.ts +14 -0
  140. package/dist/client/protocol.d.ts +43 -1
  141. package/dist/compat/cli-options.d.ts +7 -1
  142. package/dist/compat/cli.d.ts +2 -0
  143. package/dist/compat/cli.js +4043 -0
  144. package/dist/compat/code-support.d.ts +4 -0
  145. package/dist/compat/code-support.js +50 -28
  146. package/dist/{config-r9fdhce6.js → config-hw78440t.js} +5 -5
  147. package/dist/{config-vyajmksy.js → config-v7s8hp37.js} +1 -1
  148. package/dist/context/adaptive-compaction.d.ts +1 -0
  149. package/dist/context/lossless-lines.d.ts +13 -0
  150. package/dist/context/numbered-read-lines.d.ts +15 -0
  151. package/dist/context/read-attempts.d.ts +21 -0
  152. package/dist/context/request-projection.d.ts +32 -4
  153. package/dist/context/scoped-context.d.ts +31 -5
  154. package/dist/context/working-read-replay.d.ts +12 -0
  155. package/dist/coordinator-client-nzysqxf0.js +10 -0
  156. package/dist/engine/acp.js +27 -21
  157. package/dist/engine/application-client.d.ts +11 -0
  158. package/dist/engine/application-client.js +18 -0
  159. package/dist/engine/application-protocol.d.ts +5 -0
  160. package/dist/engine/application-protocol.js +7 -0
  161. package/dist/engine/application.d.ts +43 -0
  162. package/dist/engine/application.js +206 -0
  163. package/dist/engine/assistant/automation/scheduler.d.ts +2 -0
  164. package/dist/engine/assistant/automation/scheduler.js +11 -0
  165. package/dist/engine/assistant/automation/summary.d.ts +3 -0
  166. package/dist/engine/assistant/automation/summary.js +8 -0
  167. package/dist/engine/assistant/automation/time.d.ts +5 -0
  168. package/dist/engine/assistant/automation/time.js +15 -0
  169. package/dist/engine/assistant/calendar/calendar.d.ts +5 -0
  170. package/dist/engine/assistant/calendar/calendar.js +12 -0
  171. package/dist/engine/assistant/calendar/connection.d.ts +2 -0
  172. package/dist/engine/assistant/calendar/connection.js +11 -0
  173. package/dist/engine/assistant/calendar/environment.d.ts +1 -0
  174. package/dist/engine/assistant/calendar/environment.js +7 -0
  175. package/dist/engine/assistant/calendar/http.d.ts +3 -0
  176. package/dist/engine/assistant/calendar/http.js +9 -0
  177. package/dist/engine/assistant/calendar/oauth.d.ts +5 -0
  178. package/dist/engine/assistant/calendar/oauth.js +12 -0
  179. package/dist/engine/assistant/calendar/store.d.ts +2 -0
  180. package/dist/engine/assistant/calendar/store.js +8 -0
  181. package/dist/engine/assistant/calendar/tools.d.ts +2 -0
  182. package/dist/engine/assistant/calendar/tools.js +46 -0
  183. package/dist/engine/assistant/client.d.ts +2 -0
  184. package/dist/engine/assistant/client.js +33 -0
  185. package/dist/engine/assistant/config.d.ts +1 -0
  186. package/dist/engine/assistant/config.js +102 -0
  187. package/dist/engine/assistant/contracts.d.ts +10 -0
  188. package/dist/engine/assistant/contracts.js +78 -0
  189. package/dist/engine/assistant/daily/service.d.ts +12 -0
  190. package/dist/engine/assistant/daily/service.js +27 -0
  191. package/dist/engine/assistant/doctor.d.ts +1 -0
  192. package/dist/engine/assistant/doctor.js +116 -0
  193. package/dist/engine/assistant/evaluation.d.ts +2 -0
  194. package/dist/engine/assistant/evaluation.js +76 -0
  195. package/dist/engine/assistant/host.d.ts +2 -0
  196. package/dist/engine/assistant/host.js +63 -0
  197. package/dist/engine/assistant/integrations/google.d.ts +9 -0
  198. package/dist/engine/assistant/integrations/google.js +30 -0
  199. package/dist/engine/assistant/integrations/public-web.d.ts +3 -0
  200. package/dist/engine/assistant/integrations/public-web.js +11 -0
  201. package/dist/engine/assistant/managed/secrets.d.ts +1 -0
  202. package/dist/engine/assistant/managed/secrets.js +0 -0
  203. package/dist/engine/assistant/managed/setup-state.d.ts +11 -0
  204. package/dist/engine/assistant/managed/setup-state.js +84 -0
  205. package/dist/engine/assistant/managed/setup.d.ts +3 -0
  206. package/dist/engine/assistant/managed/setup.js +85 -0
  207. package/dist/engine/assistant/microsoft/connection.d.ts +7 -0
  208. package/dist/engine/assistant/microsoft/connection.js +21 -0
  209. package/dist/engine/assistant/microsoft/tools.d.ts +8 -0
  210. package/dist/engine/assistant/microsoft/tools.js +30 -0
  211. package/dist/engine/assistant/modules/calendar.d.ts +1 -0
  212. package/dist/engine/assistant/modules/calendar.js +49 -0
  213. package/dist/engine/assistant/modules/catalog.d.ts +3 -0
  214. package/dist/engine/assistant/modules/catalog.js +67 -0
  215. package/dist/engine/assistant/modules/daily.d.ts +1 -0
  216. package/dist/engine/assistant/modules/daily.js +48 -0
  217. package/dist/engine/assistant/modules/github.d.ts +1 -0
  218. package/dist/engine/assistant/modules/github.js +43 -0
  219. package/dist/engine/assistant/modules/google.d.ts +1 -0
  220. package/dist/engine/assistant/modules/google.js +53 -0
  221. package/dist/engine/assistant/modules/mcp.d.ts +1 -0
  222. package/dist/engine/assistant/modules/mcp.js +42 -0
  223. package/dist/engine/assistant/modules/microsoft.d.ts +1 -0
  224. package/dist/engine/assistant/modules/microsoft.js +53 -0
  225. package/dist/engine/assistant/modules/module.d.ts +5 -0
  226. package/dist/engine/assistant/modules/module.js +42 -0
  227. package/dist/engine/assistant/modules/tools.d.ts +2 -0
  228. package/dist/engine/assistant/modules/tools.js +42 -0
  229. package/dist/engine/assistant/modules/web.d.ts +1 -0
  230. package/dist/engine/assistant/modules/web.js +45 -0
  231. package/dist/engine/assistant/private-directory.d.ts +1 -0
  232. package/dist/engine/assistant/private-directory.js +7 -0
  233. package/dist/engine/assistant/proactive/service.d.ts +6 -0
  234. package/dist/engine/assistant/proactive/service.js +16 -0
  235. package/dist/engine/assistant/providers/openai-compatible.d.ts +4 -0
  236. package/dist/engine/assistant/providers/openai-compatible.js +12 -0
  237. package/dist/engine/assistant/providers/provider.d.ts +7 -0
  238. package/dist/engine/assistant/providers/provider.js +54 -0
  239. package/dist/engine/assistant/providers/web-citations.d.ts +1 -0
  240. package/dist/engine/assistant/providers/web-citations.js +7 -0
  241. package/dist/engine/assistant/runtime.d.ts +2 -0
  242. package/dist/engine/assistant/runtime.js +73 -0
  243. package/dist/engine/assistant/task-metrics.d.ts +8 -0
  244. package/dist/engine/assistant/task-metrics.js +17 -0
  245. package/dist/engine/assistant/telegram/api.d.ts +5 -0
  246. package/dist/engine/assistant/telegram/api.js +11 -0
  247. package/dist/engine/assistant/telegram/bridge.d.ts +2 -0
  248. package/dist/engine/assistant/telegram/bridge.js +40 -0
  249. package/dist/engine/assistant/telegram/store.d.ts +2 -0
  250. package/dist/engine/assistant/telegram/store.js +8 -0
  251. package/dist/engine/client.js +26 -18
  252. package/dist/engine/desktop-providers-v1.js +4 -4
  253. package/dist/engine/desktop-state-v1.js +16 -13
  254. package/dist/engine/index.d.ts +4 -0
  255. package/dist/engine/index.js +117 -159
  256. package/dist/engine/mcp-stdio-v1.js +13 -12
  257. package/dist/engine/models.js +65 -23
  258. package/dist/engine/protocol.js +10 -6
  259. package/dist/engine/service.js +32 -21
  260. package/dist/hostile-repository-demo.js +2329 -1096
  261. package/dist/index-09rsdr2d.js +1744 -0
  262. package/dist/index-0csc5sc7.js +139 -0
  263. package/dist/{index-4mn6m3bq.js → index-0dkty795.js} +8 -6
  264. package/dist/index-0kkgqvg7.js +0 -0
  265. package/dist/index-0mzz9axm.js +58 -0
  266. package/dist/index-1e69ar8r.js +38 -0
  267. package/dist/index-1z0xhkh9.js +18 -0
  268. package/dist/index-2cef1k92.js +356 -0
  269. package/dist/{index-rgqzdgv6.js → index-2j0v1xwr.js} +17 -13
  270. package/dist/index-2jw9jd7h.js +116 -0
  271. package/dist/index-2n9qx4km.js +0 -0
  272. package/dist/index-3rvk23e8.js +877 -0
  273. package/dist/index-3wa4j0yk.js +71 -0
  274. package/dist/index-41q1k17x.js +210 -0
  275. package/dist/index-4vz4bqqw.js +33 -0
  276. package/dist/index-5jxm2wy5.js +123 -0
  277. package/dist/index-5rk6ss42.js +216 -0
  278. package/dist/index-5v1skxf7.js +1852 -0
  279. package/dist/{index-fqqz1yt8.js → index-6ehtssyz.js} +369 -335
  280. package/dist/index-76kpdbpw.js +80 -0
  281. package/dist/{index-5nmm0642.js → index-7nbmhmw5.js} +10 -10
  282. package/dist/index-8mx0yrkz.js +31 -0
  283. package/dist/index-8tjev5ds.js +11 -0
  284. package/dist/index-91n5wr6s.js +163 -0
  285. package/dist/index-91trs3ew.js +151 -0
  286. package/dist/index-9y8p5vy5.js +222 -0
  287. package/dist/index-abxahprd.js +55 -0
  288. package/dist/index-aptyr511.js +84 -0
  289. package/dist/{index-8sm2a1wa.js → index-ay26xfxt.js} +28 -20
  290. package/dist/index-b4yed1s3.js +657 -0
  291. package/dist/index-bb7phvtg.js +23 -0
  292. package/dist/index-bk5tn9b8.js +236 -0
  293. package/dist/index-bw34861c.js +292 -0
  294. package/dist/index-c6fnjhgv.js +55 -0
  295. package/dist/{index-qfsrrnz6.js → index-cjevq9s8.js} +2 -2
  296. package/dist/{index-c39197wq.js → index-ctcwrkrc.js} +4 -4
  297. package/dist/{index-yx52bt4a.js → index-cztmcesv.js} +2 -2
  298. package/dist/index-dpbmxnrf.js +564 -0
  299. package/dist/index-ekxdcy36.js +134 -0
  300. package/dist/index-f8zpcsx3.js +289 -0
  301. package/dist/{index-6dxrbnxm.js → index-f970qtb4.js} +7 -143
  302. package/dist/index-fatcn6fp.js +2791 -0
  303. package/dist/index-fbzykqxy.js +105 -0
  304. package/dist/{index-1265j7t2.js → index-fwf274vc.js} +24 -14
  305. package/dist/index-fy4w0a7v.js +0 -0
  306. package/dist/index-gvva3e5x.js +76 -0
  307. package/dist/index-h7dcah4p.js +137 -0
  308. package/dist/index-hm9r120s.js +42 -0
  309. package/dist/index-j3d2tw97.js +328 -0
  310. package/dist/index-jfqj20x8.js +41 -0
  311. package/dist/{index-hhrnrqfc.js → index-k529a278.js} +6 -6
  312. package/dist/{index-bt2p8x7r.js → index-kbrf5bx7.js} +110 -106
  313. package/dist/index-kwk23ktq.js +33 -0
  314. package/dist/index-kz857p1j.js +557 -0
  315. package/dist/{index-j466sekf.js → index-mkt5yrax.js} +31 -105
  316. package/dist/{index-nxmk6re7.js → index-ndgnvjez.js} +18 -18
  317. package/dist/index-nemn4epv.js +43 -0
  318. package/dist/index-nkwy5bjr.js +1225 -0
  319. package/dist/index-nvvzr4ny.js +136 -0
  320. package/dist/index-pkspzsfs.js +78 -0
  321. package/dist/{index-fm84men1.js → index-px1tnqgt.js} +2 -2
  322. package/dist/index-q7qdw883.js +79 -0
  323. package/dist/{index-mzydbzp8.js → index-qvbg6tx1.js} +65 -23
  324. package/dist/index-r3mwr5fb.js +0 -0
  325. package/dist/index-rdr78m0k.js +91 -0
  326. package/dist/index-rtamqsfs.js +59 -0
  327. package/dist/index-s125ss45.js +38 -0
  328. package/dist/{index-vn91b9z1.js → index-sx1t6dnd.js} +3721 -2382
  329. package/dist/index-tar0ngkm.js +359 -0
  330. package/dist/index-tn58cr6w.js +471 -0
  331. package/dist/{index-w0m1nckc.js → index-v79s9bf9.js} +118 -45
  332. package/dist/index-vk3rq21m.js +17 -0
  333. package/dist/index-vmvnr28y.js +72 -0
  334. package/dist/index-vz629cg8.js +49 -0
  335. package/dist/{index-eps3c3g6.js → index-w292hdpz.js} +197 -960
  336. package/dist/{index-amjttjaj.js → index-w9eqg6p9.js} +24 -302
  337. package/dist/index-wj96kdw2.js +57 -0
  338. package/dist/index-wyck5yhd.js +141 -0
  339. package/dist/index-xvtk8pxs.js +674 -0
  340. package/dist/{index-bpc596v3.js → index-xwb691v9.js} +2 -2
  341. package/dist/index-ym69x168.js +518 -0
  342. package/dist/index-yprdjk9v.js +65 -0
  343. package/dist/index-z2a81ccr.js +35 -0
  344. package/dist/{index-3ah1f369.js → index-z69cqk74.js} +3 -3
  345. package/dist/index-zaakvmzq.js +62 -0
  346. package/dist/index-zk3m4mzg.js +232 -0
  347. package/dist/index-zx3wgvx4.js +218 -0
  348. package/dist/index.js +102 -83
  349. package/dist/persistence/migration-guard.d.ts +3 -0
  350. package/dist/runtime/agent-profile.d.ts +12 -0
  351. package/dist/runtime/harness.d.ts +13 -0
  352. package/dist/runtime/known-file-preload.d.ts +35 -0
  353. package/dist/service-cli.js +130 -40
  354. package/dist/service-client-cli-2rzxy5mj.js +1166 -0
  355. package/dist/service-client-cli-5ne8q5ej.js +543 -0
  356. package/dist/tools/ooxml-zip.d.ts +21 -0
  357. package/dist/tools/presentations.d.ts +47 -0
  358. package/dist/tools/tabular-data.d.ts +114 -0
  359. package/dist/tools/workspace.d.ts +76 -0
  360. package/dist/verify-historical-migrations.js +2249 -1016
  361. package/dist/workspace/workspace.d.ts +13 -1
  362. package/dist/zhx.js +8 -6
  363. package/docs/APPLICATION_MIGRATION.md +32 -0
  364. package/docs/CLI.md +166 -2
  365. package/docs/CODE_RELEASE.md +11 -5
  366. package/docs/CODE_WEB_TASKS.md +3 -114
  367. package/docs/CONTEXT_ENGINEERING.md +93 -0
  368. package/docs/ENGINE_API.md +9 -2
  369. package/docs/EXTENSIBILITY.md +1 -1
  370. package/docs/FIRST_USE.md +6 -6
  371. package/docs/INTERNAL_ARCHIVE.md +43 -0
  372. package/docs/LOCAL_SERVICE.md +1 -1
  373. package/docs/MODEL_CATALOG.md +14 -0
  374. package/docs/PROJECT_MEMORY.md +1 -1
  375. package/docs/README.md +23 -4
  376. package/evaluations/representative-assembly-matrix.json +19 -1
  377. package/examples/README.md +4 -4
  378. package/examples/assistant/compatible-calendar.json +17 -0
  379. package/examples/assistant/composed-modules.json +23 -0
  380. package/examples/assistant/connected-tools.json +9 -0
  381. package/examples/assistant/daily-tools.json +6 -0
  382. package/examples/assistant/offline.mjs +24 -0
  383. package/fixtures/cli-compatibility/README.md +10 -0
  384. package/fixtures/cli-compatibility/inventory.json +7858 -0
  385. package/package.json +232 -26
  386. package/dist/cli/console/console-model-catalog.d.ts +0 -8
  387. package/dist/index-2yyfg69h.js +0 -619
  388. package/dist/index-3wwfn5n6.js +0 -270
  389. package/dist/index-4gt045j0.js +0 -288
  390. package/dist/index-4jw3tvy8.js +0 -301
  391. package/dist/service-client-cli-xbj7j5kj.js +0 -1251
package/CHANGELOG.md CHANGED
@@ -6,9 +6,22 @@ The project follows Semantic Versioning. During `0.x`, minor releases may change
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## 1.8.0 - 2026-11-19
10
+
11
+ - Support local folders outside Git for governed data and presentation exports. Expose optional read-attempt diagnostics through the engine.
12
+ - Consolidate the Core CLI and honor explicitly selected approval modes. Include Qwen4 Max support.
13
+ - Move the Electron application to the dedicated Zhivex App repository. The engine package retains its public exports and binaries.
14
+
15
+ ## 1.7.0 - 2026-11-13
16
+
17
+ - Prepare Harness 1.7.0 for `latest`, with Code 0.4.3 pinned to this engine and the private Desktop binding updated. Publication and release-bound live certification remain pending; `release-status.json` retains the verified 1.6.3 publication.
18
+ - Add experimental host-owned agent profiles through `createProfiledHarness`, `GENERAL_ASSISTANT_PROFILE` and profile schemas/types on `@zhivex-ai/harness/engine`. Profiles restrict the exposed tool catalog and participate in the runtime fingerprint; they do not grant permissions. The stable coding constructor, approval authority, storage formats, default models and provider tiers remain unchanged.
19
+ - Add the private local Assistant integration with persistent conversations, approval-gated tools, proactive notices and offline CI coverage. Its real-account pilot and evaluation campaign remain pending; it is not a public Assistant release. Contributors must prepare the local engine because the published 1.6.3 bootstrap dependency lacks the profiled API.
20
+ - Include Code terminal and web presentation refinements. Make the web browser smoke handle an explicit pre-admission `BUSY` rejection during session creation with a bounded new UI attempt; uncertain outcomes are never retried.
21
+
9
22
  ## 1.6.3 - 2026-11-10
10
23
 
11
- - Prepare a maintenance patch for npm `latest`, paired with Code 0.4.2 and the private Desktop engine binding. Existing public APIs, storage formats, model defaults and provider tiers are unchanged. Publication and release-bound live certification are pending.
24
+ - Published and verified on npm `latest`, paired with Code 0.4.2 and the private Desktop engine binding. Exact-artifact, OCI, six-provider live and 42/42 representative gates passed. Existing public APIs, storage formats, model defaults and provider tiers are unchanged. See [publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_6_3_CODE_0_4_2.md).
12
25
  - Include the keyring 2.1.2 update and dependency security maintenance for the private Web/Desktop clients.
13
26
  - Update the development dependency `@agentclientprotocol/sdk` from 1.8.0 to 2.1.0. SDK 2.1 removes `ClientSideConnection`; the Docker interoperability client now uses `client().connect(...)` and the same ACP v1 methods. `@modelcontextprotocol/server` stays at 2.3.1 because that peer is optional and this client does not import it. The Harness ACP server is unchanged.
14
27
  - Pin `@zhivex-ai/core` 1.37.0, including the root override, the Code and web package pins, and a web override so the published Harness dependency uses that same runtime, and `@zhivex-ai/qwen` 0.18.1. Qwen 0.18.1 depends on Core `^1.37.0`. Harness and CLI defaults are unchanged. The Qwen adapter rejects non-string portable-decision instructions and adds PixVerse V6 request shaping; Harness does not expose that video surface.
@@ -62,7 +75,7 @@ The project follows Semantic Versioning. During `0.x`, minor releases may change
62
75
  - Classify Vertex and Google transient failures as retryable `PROVIDER_UNAVAILABLE` instead of a generic `EXECUTION_FAILED`. The covered cases are HTTP 409 ABORTED, 429 RESOURCE_EXHAUSTED, 500/502/503/504, UNAVAILABLE, DEADLINE_EXCEEDED, and stream resets. Sanitized diagnostics keep the HTTP status and the closed provider status category, and still omit provider messages, resource names, and credentials. That class, and an empty model turn with no text and no tool call, retries up to three times with jittered backoff in the Vertex driver.
63
76
  - Explicit positive integer output caps under a monetary limit, including caps above 2,048, were already in 1.4.0-rc.7 and remain in this release. The ledger reserves 2,048 only when the request omits a cap.
64
77
  - Prepare stable Harness 1.4.0 and Code 0.3.0 for npm `latest`, with the exact Code engine pin, private Desktop binding and an additive representative mapping for `v1.4.0` using the unchanged Meta, Qwen and OpenAI models. At preparation time the SDK pins were Core 1.31.0 and Agents 1.11.0. Published `next` stays Harness 1.4.0-rc.8 and Code 0.3.0-rc.8.
65
- - The published tag is not identical to annotated `v1.4.0-rc.8` (`5bba06c86fc82b34b67cec607053948f8e00d0d1`): `src/` includes the Vertex retry above. Before that retry, engine runtime source matched the rc.8 tag. Code (`packages/code`), web (`packages/web`) and desktop (`desktop`) were already not identical to that tag.
78
+ - The published tag is not identical to annotated `v1.4.0-rc.8` (`5bba06c86fc82b34b67cec607053948f8e00d0d1`): `src/` includes the Vertex retry above. Before that retry, engine runtime source matched the rc.8 tag. Code (`packages/cli`), web (`packages/web`) and desktop (`desktop`) were already not identical to that tag.
66
79
  - Carry the reviewed product changes on main after that tag: the same Code review screen for shell `--continue` and `/pending` ([PR201](https://github.com/Zhivex/zhivex-harness/pull/201)); removal of the desktop fixture waiting button ([PR203](https://github.com/Zhivex/zhivex-harness/pull/203)); B-lite review scope on web and desktop ([PR211](https://github.com/Zhivex/zhivex-harness/pull/211)); the Code status line, one-line summary and 48×24 first-welcome logo ([PR210](https://github.com/Zhivex/zhivex-harness/pull/210)); and the public README ([PR200](https://github.com/Zhivex/zhivex-harness/pull/200)). Packaged Harness docs `README.md` and `docs/CLI.md` differ from the rc.8 tag. `docs/CLI_UX.md` and `docs/images/approval-survives-restart.gif` also differ and are outside the Harness `files` list.
67
80
  - Require fresh exact-source/artifact validation and separate explicit approval before any paid campaign, annotated tag or publication. Provider/API tiers remain unchanged. This preparation creates no tags and dispatches no release.
68
81
 
@@ -138,7 +151,7 @@ Migration: stop all workers sharing an SDK store and upgrade them together, keep
138
151
  - Prepare the independent Code package at 0.2.0, pinned to published Harness 1.3.0. Harness stays at 1.3.0.
139
152
  - Include guided approval diffs, reviewed checkpoints, per-run estimated budgets and a Node-only offline tutorial from PR158; estimates are not guaranteed financial caps.
140
153
  - Fix exact Code payload inspection, add deterministic packaging regressions, require exact-main installed journeys, and validate the retained release tarball with offline PTY acceptance.
141
- - See [Code changelog](https://github.com/Zhivex/zhivex-harness/blob/main/packages/code/CHANGELOG.md) for migration notes and publication status.
154
+ - See [Code changelog](https://github.com/Zhivex/zhivex-harness/blob/main/packages/cli/CHANGELOG.md) for migration notes and publication status.
142
155
 
143
156
  ## 1.3.0 - 2026-10-02
144
157
 
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Zhivex Code
2
2
 
3
+ Version `1.8.0` is the source candidate paired with Code `0.5.0`.
4
+
5
+ Version `1.7.0` is the current public npm release, paired with Code `0.4.3` pinned exactly to it. Both packages are published and verified on `latest`. See [publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_7_0_CODE_0_4_3.md).
6
+
3
7
  [![npm @zhivex-ai/code](https://img.shields.io/npm/v/@zhivex-ai/code?label=npm%20%40zhivex-ai%2Fcode)](https://www.npmjs.com/package/@zhivex-ai/code)
4
8
  [![CI](https://github.com/Zhivex/zhivex-harness/actions/workflows/ci.yml/badge.svg)](https://github.com/Zhivex/zhivex-harness/actions/workflows/ci.yml)
5
9
  [![License: MIT](https://img.shields.io/github/license/Zhivex/zhivex-harness)](LICENSE)
@@ -122,7 +126,7 @@ Release-gated providers are OpenAI, Qwen, and Meta. **Gemini, Anthropic, Vertex,
122
126
  | MCP | Bounded Streamable HTTP is supported. stdio is outside the default CLI. An experimental host-only path can launch stdio servers in Docker; see [Isolated MCP stdio](docs/MCP_STDIO.md). |
123
127
  | Editor protocol | `zhx-acp` is an experimental ACP subset: text sessions, one-time permissions, and cancellation. Output is buffered until the run finishes. ACP cannot load or resume a session. See [ACP](docs/ACP.md). |
124
128
  | Isolated commands | Docker on Linux is supported. Podman is provisional. See [Execution environments](docs/EXECUTION_ENVIRONMENTS.md). |
125
- | Desktop | Separate private alpha for macOS Apple Silicon. Unsigned, and not part of the npm package. See [Desktop](https://github.com/Zhivex/zhivex-harness/blob/main/desktop/README.md). |
129
+ | Desktop | Separate private alpha for macOS Apple Silicon. Unsigned, and not part of the npm package. See [Desktop](https://github.com/Zhivex/zhivex-app). |
126
130
 
127
131
  ## Use the engine as a library
128
132
 
@@ -150,7 +154,7 @@ Contracts, stability tiers, and the experimental ACP and MCP entry points are in
150
154
 
151
155
  ## Documentation
152
156
 
153
- - **Using Code:** [Code package notes](https://github.com/Zhivex/zhivex-harness/blob/main/packages/code/README.md), [first use](docs/FIRST_USE.md), [daily workflow](docs/CLI.md#interactive-daily-workflow), [usage reference](docs/USAGE.md), [Code web tasks](docs/CODE_WEB_TASKS.md).
157
+ - **Using Code:** [Code package notes](https://github.com/Zhivex/zhivex-harness/blob/main/packages/cli/README.md), [first use](docs/FIRST_USE.md), [daily workflow](docs/CLI.md#interactive-daily-workflow), [usage reference](docs/USAGE.md), [Code web tasks](docs/CODE_WEB_TASKS.md).
154
158
  - **Integrating Harness:** [engine API](docs/ENGINE_API.md), [CLI contracts](docs/CLI.md), [experimental task projection](docs/CLIENT_PROTOCOL.md#task-projection-v1-har-hu-73), [extensibility](docs/EXTENSIBILITY.md), [API stability](docs/STABILITY.md).
155
159
  - **Limits:** [support matrix](docs/SUPPORT_MATRIX.md), [security policy](SECURITY.md).
156
160
  - **Contributing:** [development](https://github.com/Zhivex/zhivex-harness/blob/main/CONTRIBUTING.md) and [maintenance](https://github.com/Zhivex/zhivex-harness/blob/main/docs/MAINTENANCE.md).
@@ -159,8 +163,16 @@ Contracts, stability tiers, and the experimental ACP and MCP entry points are in
159
163
 
160
164
  ## Releases
161
165
 
162
- Version `1.6.3` is the prepared source candidate, paired with Code `0.4.2`; publication and release-bound live certification are pending.
166
+ Version `1.7.0` is the current public npm release. The Code package on npm `latest` is `0.4.3`, pinned exactly to Harness `1.7.0`. The quick start above follows the published `latest` tag. npm `next` is Harness `1.4.0-rc.8` and Code `0.3.0-rc.8`. Confirm dist-tags on the [Code versions](https://www.npmjs.com/package/@zhivex-ai/code?activeTab=versions) and [Harness versions](https://www.npmjs.com/package/@zhivex-ai/harness?activeTab=versions) pages before you install a prerelease.
167
+
168
+ Release channels, publication, and certification records are in the [release procedure](https://github.com/Zhivex/zhivex-harness/blob/main/docs/RELEASE.md). Releases are verified with npm provenance. See the [verified 1.7.0 / 0.4.3 publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_7_0_CODE_0_4_3.md). Source in this checkout can be newer than the public package. See the [changelog](CHANGELOG.md) and the [repository release status](https://raw.githubusercontent.com/Zhivex/zhivex-harness/main/release-status.json).
169
+
170
+ ## Electron workspace layout
171
+
172
+ The maintained source lives in `packages/core` and `packages/cli`. Root package exports remain compatible. See [application migration and recovery](docs/APPLICATION_MIGRATION.md) for the Bun workspace commands, offline backups, and distribution gates.
173
+
174
+ ## Repository packages
163
175
 
164
- Version `1.6.2` is the current public npm release. The Code package on npm `latest` is `0.4.1`, pinned exactly to Harness `1.6.2`. The quick start above follows the published `latest` tag. npm `next` is Harness `1.4.0-rc.8` and Code `0.3.0-rc.8`. Confirm dist-tags on the [Code versions](https://www.npmjs.com/package/@zhivex-ai/code?activeTab=versions) and [Harness versions](https://www.npmjs.com/package/@zhivex-ai/harness?activeTab=versions) pages before you install a prerelease.
176
+ The maintained runtime and terminal implementations are `packages/core` and `packages/cli`. Electron lives in the separate [zhivex-app repository](https://github.com/Zhivex/zhivex-app). The standalone browser applications, Tauri launcher, and temporary source aliases have been removed. Assistant functionality belongs to the core and Electron; its domain regressions run with `bun run test:assistant`.
165
177
 
166
- Release channels, publication, and certification records are in the [release procedure](https://github.com/Zhivex/zhivex-harness/blob/main/docs/RELEASE.md). Releases are verified with npm provenance. Source in this checkout can be newer than the public package. See the [changelog](CHANGELOG.md) and the [repository release status](https://raw.githubusercontent.com/Zhivex/zhivex-harness/main/release-status.json).
178
+ Run `bun run workspace:check`, `bun run check`, `bun run dev:code`, and `bun run --cwd packages/cli test`. Electron builds and smoke tests run independently in zhivex-app against versioned Harness artifacts.
package/SECURITY.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Supported versions
4
4
 
5
- Security fixes are provided for the latest published `1.3.x` patch of Harness and the latest stable Code `0.2.x` patch. Harness `1.4.x` and Code `0.3.x` are supported only after verified publication. RCs on `next` are validation candidates; older minors and private checkpoints are not supported release channels. Desktop remains a separate private alpha. Beta and experimental features retain their documented limitations. Registry integrity and provenance do not substitute for the separate provider and execution evidence recorded in [docs/LIVE_CERTIFICATION.md](https://github.com/Zhivex/zhivex-harness/blob/main/docs/LIVE_CERTIFICATION.md).
5
+ Security fixes are provided for the latest published `1.7.x` patch of Harness and the latest stable Code `0.4.x` patch. The verified current versions are Harness `1.7.0` and Code `0.4.3`. RCs on `next` are validation candidates; older minors and private checkpoints are not supported release channels. Desktop remains a separate private alpha. Beta and experimental features retain their documented limitations. Registry integrity and provenance do not substitute for the separate provider and execution evidence recorded in [docs/LIVE_CERTIFICATION.md](https://github.com/Zhivex/zhivex-harness/blob/main/docs/LIVE_CERTIFICATION.md).
6
6
 
7
7
  ## Reporting a vulnerability
8
8
 
package/SUPPORT.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Support
2
2
 
3
- Zhivex Harness `1.3.x` is the latest supported Node-first CLI and TypeScript library. Stable 1.x contracts follow [the stability policy](./docs/STABILITY.md); incompatible changes require a major release except documented urgent security corrections. Beta and experimental surfaces retain their declared policies. The mutable machine-readable `release-status.json` record records the verified 1.3.0 publication. Harness 1.4.1 and Code 0.3.1 are prepared for latest but remain pending their protected workflows. Harness 1.3.0 and Code 0.2.0 stay the published latest packages.
3
+ Zhivex Harness `1.7.x` is the latest supported Node-first CLI and TypeScript library; Code `0.4.x` is the supported terminal product line. Current verified packages are Harness `1.7.0` and Code `0.4.3`, pinned exactly to Harness `1.7.0`. Stable 1.x contracts follow [the stability policy](./docs/STABILITY.md); incompatible changes require a major release except documented urgent security corrections. Beta and experimental surfaces retain their declared policies. The machine-readable `release-status.json` records the verified Harness publication; [publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_7_0_CODE_0_4_3.md) records both packages.
4
4
 
5
5
  The 1.1 support scope is tracked in the [machine-readable support matrix](./docs/support-matrix-1.1.json) and its [human-readable view](./docs/SUPPORT_MATRIX_1_1.md). The [1.0 matrix](./docs/SUPPORT_MATRIX.md) remains historical. Compatibility and removals follow [DEPRECATIONS.md](./docs/DEPRECATIONS.md) for the published 1.x line.
6
6
 
@@ -13,7 +13,7 @@ The 1.1 support scope is tracked in the [machine-readable support matrix](./docs
13
13
  - the provider/model combinations marked certified in the package documentation; and
14
14
  - HTTPS or explicitly allowed loopback-HTTP MCP endpoints using the documented bounded JSON-RPC subset.
15
15
 
16
- Only the most recent published stable minor receives routine fixes. The exact `v1.3.0` tag passed the protected artifact, six-provider live and 42-case representative release jobs. Harness 1.5.0 and Code 0.4.0 are the published stable packages. Code 0.4.1, pinned exactly to Harness 1.6.2, is published on `latest`. Gemini, Anthropic and Vertex remain provisional despite the release-bound live gates; the representative repository matrix covers only Meta, Qwen and OpenAI. Live provider evidence is account-, model-, endpoint-, artifact-, and date-dependent; see [docs/LIVE_CERTIFICATION.md](https://github.com/Zhivex/zhivex-harness/blob/main/docs/LIVE_CERTIFICATION.md).
16
+ Only the most recent published stable minor receives routine fixes. The exact `v1.7.0` artifact passed protected installation, OCI, six-provider live and 42/42 representative release gates. Code `0.4.3` passed installed acceptance with the published engine. Gemini, Anthropic, Vertex, Amazon Bedrock and Azure OpenAI remain provisional; the representative repository matrix covers only Meta, Qwen and OpenAI. Live provider evidence is account-, model-, endpoint-, artifact-, and date-dependent; see [live certification](https://github.com/Zhivex/zhivex-harness/blob/main/docs/LIVE_CERTIFICATION.md) and [publication evidence](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/PUBLICATION_1_7_0_CODE_0_4_3.md).
17
17
 
18
18
  ## Installation diagnostics
19
19
 
@@ -49,6 +49,38 @@ its offline contracts. Paid runs require a prepared, pinned matrix and `--live`.
49
49
 
50
50
  ## Bounded read and startup optimizations
51
51
 
52
+ The [expanded real OpenAI latency comparison](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/OPENAI_LATENCY_2026-11-13.md)
53
+ uses `scripts/benchmark-openai-latency.ts` for a fixed, balanced paired campaign
54
+ and `scripts/analyze-openai-latency.ts` for offline bootstrap intervals. It records
55
+ all failures and usage, enforces task/request caps, and stops on unmetered usage.
56
+ Its final 40 tasks show lower activity-persistence overhead but do not establish
57
+ lower total latency; do not promote the earlier three-run observation into an
58
+ end-to-end performance claim.
59
+
60
+ `bun run benchmark:harness --output /tmp/harness-overhead.json` measures activity
61
+ stream persistence at 0/40/80 historical runs, a 200-session list, scoped guidance
62
+ refresh/discovery, and 20-file patches with durable mutation audits. Fixture setup
63
+ is excluded; filesystem caches are not flushed. Save each candidate as a separate
64
+ bundle before editing and alternate baseline/candidate runs on the same machine.
65
+ The report retains individual samples; do not interpret these short runs as tail
66
+ latency guarantees.
67
+
68
+ For an explicitly authorized provider comparison, add `--live` and load credentials
69
+ with `bun --env-file=.env run scripts/benchmark-harness-overhead.ts --live --output
70
+ /tmp/harness-live.json`. This performs three independent read-only OpenAI tasks in
71
+ temporary workspaces, with three steps and a 1,024-output-token harness budget per
72
+ task. It records usage, task telemetry and activity-handler time separately, with
73
+ no raw prompts, model output or credentials. The model can be pinned using
74
+ `ZHIVEX_HARNESS_LIVE_OPENAI_MODEL`. Failed attempts preserve partial evidence and a
75
+ sanitized error. Provider variability and prompt-cache behavior must be considered
76
+ separately from local overhead; three runs do not establish an end-to-end speedup.
77
+
78
+ Activity snapshots retain their existing SQLite representation. A one-session
79
+ serialized-run cache is invalidated by other connections' writes and published
80
+ only after commit. Retention still runs transactionally on every append/replay.
81
+ Multi-file patches persist their complete audit batch with one sync/rename;
82
+ single-file mutations and the JSON audit format retain the same contract.
83
+
52
84
  CLI runs, resumes and conversations now enable at most four independent trusted
53
85
  local read tools; mutation barriers and approval requirements remain in force.
54
86
  Workspace indexing traverses at most eight directories at once and coalesces
@@ -63,3 +95,69 @@ validation reads at most four files concurrently and preserves durable digest ch
63
95
  The packaged CLI uses a separate lightweight help/version entrypoint and lazy
64
96
  runtime chunks. Package smoke coverage must exercise the installed CLI and aliases
65
97
  so missing chunks cannot pass as a working source checkout.
98
+
99
+ ## Bounded OpenAI reasoning-effort experiment
100
+
101
+ [The November 13 report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/REASONING_EFFORT_2026-11-13.md) compares explicit `low` with omitted/default effort without changing runtime defaults. `scripts/benchmark-reasoning-effort.ts` fixes 18 balanced pairs across three fixtures and a 90,000-token budget. It requires `--live`, credentials from the environment, a fresh `--directory` and a `--runtime` bundle exporting `createHarness`, `runHarnessTask` and `openHarnessActivityStore`. Build the driver with Bun (`--target node --packages external`) before launch because it starts Node workers. Repeating a live campaign incurs additional API consumption.
102
+
103
+ Offline reanalysis: `bun scripts/analyze-reasoning-effort.ts <campaign.json> <summary.json>`. The retained report JSON includes all observations and the original artifact hashes. Streaming measurements live in `scripts/benchmarks/openai-call-meter.ts`; fixture grading and shared statistics are entrypoint-free helpers. All stream milestones are client-observed and may include downstream backpressure.
104
+
105
+ ## Known-file preload experiment
106
+
107
+ [The November 14 report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_CONTEXT_2026-11-14.md) compares ordinary tool-directed reads with an explicit host preload, keeping default reasoning and production behavior unchanged. `scripts/benchmark-preload-context.ts` fixes 18 balanced pairs and a 75,000-token budget, including preload time in the primary endpoint.
108
+
109
+ Build the driver with `bun build scripts/benchmark-preload-context.ts --target node --packages external --outfile <campaign.mjs>`. It requires explicit `--live`, credentials from the environment, a fresh `--directory`, and a `--runtime` bundle exporting `createHarness`, `runHarnessTask` and `openHarnessActivityStore`. Workers run under Node. A new live execution incurs API consumption. Offline analysis: `bun scripts/analyze-preload-context.ts <campaign.json> <summary.json>`. The report JSON retains all observations, synthetic answers and original artifact hashes. Host preload here is a benchmark fixture, not a production authorization or context API.
110
+
111
+ ## Runtime preload and repository repair validation
112
+
113
+ The [implementation report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/KNOWN_FILE_PRELOAD_2026-11-14.md) retains both the failed pilot and the separately budgeted follow-up. `scripts/benchmark-repository-preload.ts` exercises the actual experimental `runHarnessTask(..., { preloadFiles })` option. Two multi-file synthetic repositories are graded by executable contract and nonmutation cases in `scripts/benchmarks/repository-preload-fixtures.ts`. The same compiled-driver/runtime procedure as the preload experiment applies. Current driver defaults are six planned pairs, a 53,000-token ceiling and conservative per-pair reservations; it may stop short of six pairs. An explicit `--live` run incurs new consumption. Offline analysis uses `bun scripts/analyze-repository-preload.ts <campaign.json> <summary.json>`. Never pool cohorts with different prompts or token limits; an SDK completed status alone is not a successful answer.
114
+
115
+ ## Preload output ceiling with cache isolation
116
+
117
+ [The output-budget report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_OUTPUT_BUDGET_2026-11-14.md) analyzes the earlier all-reasoning truncation and repeats eight balanced pairs at 4,096 tokens per response. `scripts/benchmark-preload-output-budget.ts` uses a fresh cache key per HTTP request, verifies zero reported cached input, and bounds aggregate consumption at 90,000 tokens with per-pair reservations. It uses the same compiled-runtime/compiled-driver invocation as the repository benchmark; live execution requires `--live` and credentials and incurs new consumption. Offline analysis: `bun scripts/analyze-preload-output-budget.ts <campaign.json> <summary.json>`. Production defaults are unaffected. The complete retained run did not use more than 2,048 output tokens in any response, so it does not prove a causal fix from the higher ceiling.
118
+
119
+ ## Direct output-cap A/B on harder preload tasks
120
+
121
+ [The direct cap report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_CAP_AB_2026-11-14.md) compares 2,048 and 4,096 output tokens with preload in both arms. `scripts/benchmark-preload-cap-ab.ts` fixes eight balanced pairs, a 100,000-token ceiling, one request per task and unique cache keys. Fixtures and executable graders are in `scripts/benchmarks/hard-preload-fixtures.ts`. Use the same compiled-driver/runtime invocation as the other preload benchmarks; `--live` requires credentials and incurs new API consumption. Offline analysis: `bun scripts/analyze-preload-cap-ab.ts <campaign.json> <summary.json>`. Truncated and invalid answers remain in latency/consumption metrics. Exact paired tests, not tiny-sample binary bootstrap intervals, govern primary quality/truncation interpretation. Production defaults are unchanged.
122
+
123
+ ## One-retry recovery replay
124
+
125
+ [The one-retry report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_RETRY_ONCE_2026-11-14.md) replays exactly the two saved 4,096-cap failures. `scripts/benchmark-preload-recovery.ts` requires `--source <original-cap-campaign.json>` as well as the existing compiled runtime, fresh output directory, credentials and explicit `--live`. It revalidates the eight original outcomes offline and issues at most one retry for each failed answer, with a 32,768-token additional ceiling and cold-cache checks. The diagnostic and six withheld checks are in `scripts/benchmarks/preload-recovery.ts`. Offline analysis: `bun scripts/analyze-preload-recovery.ts <recovery-campaign.json> <summary.json>`. This is a retrospective reconstruction, not a new end-to-end randomized trial. Original and failed retry answers remain unmodified; a diagnostic-only prefix extraction never counts as accepted recovery. No production defaults change.
126
+
127
+ ## Native structured output with preload
128
+
129
+ [The structured-output report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_STRUCTURED_OUTPUT_2026-11-14.md) compares prompt-only JSON with native strict JSON Schema in eight balanced pairs, keeping runtime preload, default reasoning and 4,096 output tokens in both arms. `scripts/benchmark-preload-structured.ts` uses a 100,000-token aggregate ceiling, one request per task, fresh cache keys and pre-network format/schema-hash checks. Both arms receive identical output-contract instructions.
130
+
131
+ Build the driver with `bun build scripts/benchmark-preload-structured.ts --target node --packages external --outfile <campaign.mjs>`. Use the same frozen runtime exports as the repository preload experiments. Launch with `bun --env-file=.env <campaign.mjs> --live --runtime <runtime.mjs> --directory <fresh-directory>`; workers run under Node and live runs incur API consumption. Offline analysis: `bun scripts/analyze-preload-structured.ts <campaign.json> <summary.json>`. Schemas and validation are in `scripts/benchmarks/preload-output-schema.ts`. Preserve incomplete responses in quality, latency and usage totals; SDK task completion alone does not establish provider completion. No production defaults change.
132
+
133
+ ## Reasoning effort with native JSON Schema
134
+
135
+ [The schema-effort report](https://github.com/Zhivex/zhivex-harness/blob/1ea4b734cbb362ad2c5b2656f5aef7ae5dc4fd23/docs/reports/PRELOAD_SCHEMA_EFFORT_2026-11-14.md) compares `default` and `low` with the same strict schema, runtime preload and 4,096-token output cap. `scripts/benchmark-preload-schema-effort.ts` fixes eight pairs balanced within two fixtures, one request per task, a 100,000-token ceiling and fresh cache keys. The meter validates both effort and schema before network access.
136
+
137
+ Build with `bun build scripts/benchmark-preload-schema-effort.ts --target node --packages external --outfile <campaign.mjs>` and use a frozen runtime exporting `createHarness`, `runHarnessTask` and `openHarnessActivityStore`. Launch explicitly with `bun --env-file=.env <campaign.mjs> --live --runtime <runtime.mjs> --directory <fresh-directory>`; Node workers incur new API consumption. Offline analysis: `bun scripts/analyze-preload-schema-effort.ts <campaign.json> <summary.json>`. Failed and incomplete answers remain in all-attempt comparisons. Historical cohorts are not pooled and production defaults remain unchanged.
138
+
139
+
140
+ ## Context efficiency (offline)
141
+
142
+ Run `bun run benchmark:context-efficiency` for paired comparisons of historical
143
+ read message estimates, result lookup across revisions, and scoped instruction
144
+ refresh. It uses temporary fixtures, three warmups and 25 alternating pairs,
145
+ and checks exact page recovery and identical instruction output. No provider
146
+ calls are made. Timing thresholds are benchmark-only; see the
147
+ [report](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/CONTEXT_EFFICIENCY_2026-11-15.md) for limitations and evidence.
148
+
149
+
150
+ ## Live context projection validation
151
+
152
+ The [live report](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/CONTEXT_LIVE_VALIDATION_2026-11-15.md) records
153
+ negative certification findings, reported usage, latency and exact context checks
154
+ for OpenAI Luna/Sol. `scripts/benchmark-context-live.ts` requires `--live`;
155
+ `--stateless` selects a separate provider configuration. Keep failed tasks and
156
+ unknown usage in the ledger. The offline savings must not be presented as a
157
+ verified quality-preserving production speedup.
158
+
159
+ The [corrected follow-up](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/CONTEXT_LIVE_FIXES_2026-11-15.md) preserves the failed campaigns and adds lossless reads, full-history transport, 16/16 correct A/B tasks and cost per correct task. Use `scripts/benchmark-context-live-fixed.ts --live` for the corrected comparison and `scripts/analyze-context-live-cost.ts` for priced accounting. Savings are workload-specific; Sol latency improvement is not established.
160
+
161
+ The [long code-context follow-up](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/CODE_CONTEXT_VALIDATION_2026-11-15.md) tests repairs of real repository modules with non-repetitive source and forced compaction. It does **not** reproduce general token savings and preserves zero-success pressure results. Drivers: `scripts/benchmark-code-context-live.ts` and `scripts/benchmark-code-context-pressure.ts`; both require `--live`.
162
+
163
+ The [read-replay correction](https://github.com/Zhivex/zhivex-harness/blob/main/docs/reports/COMPACTION_READ_REPLAY_2026-11-15.md) preserves the failed code-context campaigns and reports 4/4 accepted final pressure repairs versus 0/4. Use `scripts/benchmark-code-context-replay-final.ts --live` and `scripts/analyze-code-context-replay.ts`. Working evidence is preserved on the wire; raw token savings are not claimed.