@parcha/agentrun-serve 0.1.0-beta.35 → 0.1.0-beta.37

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 (522) hide show
  1. package/CHANGELOG.md +298 -0
  2. package/README.md +417 -219
  3. package/dist/adapters.d.ts +12 -2
  4. package/dist/adapters.js +27 -2
  5. package/dist/agent-rows.d.ts +2 -1
  6. package/dist/agents-store.d.ts +2 -0
  7. package/dist/agents-store.js +9 -4
  8. package/dist/api-only.d.ts +2 -1
  9. package/dist/api-only.js +3 -1
  10. package/dist/archil-routes.d.ts +40 -7
  11. package/dist/archil-routes.js +167 -54
  12. package/dist/archil-settings.d.ts +79 -7
  13. package/dist/archil-settings.js +140 -14
  14. package/dist/attach-conformance-cli.d.ts +1 -0
  15. package/dist/attach-conformance-cli.js +18 -0
  16. package/dist/attach-conformance.d.ts +25 -0
  17. package/dist/attach-conformance.js +343 -0
  18. package/dist/attach-images.d.ts +15 -0
  19. package/dist/attach-images.js +59 -0
  20. package/dist/background.d.ts +0 -6
  21. package/dist/background.js +0 -28
  22. package/dist/box-image.d.ts +1 -97
  23. package/dist/box-image.js +4 -284
  24. package/dist/box-paths.d.ts +2 -7
  25. package/dist/box-paths.js +7 -13
  26. package/dist/box-settings.d.ts +0 -11
  27. package/dist/box-settings.js +4 -29
  28. package/dist/browser-commands.js +1 -1
  29. package/dist/browser-computer.d.ts +47 -3
  30. package/dist/browser-computer.js +286 -18
  31. package/dist/browser-cost.d.ts +1 -1
  32. package/dist/browser-live.d.ts +20 -8
  33. package/dist/browser-live.js +50 -27
  34. package/dist/browser-person.d.ts +19 -2
  35. package/dist/browser-person.js +55 -6
  36. package/dist/browser-wait-ended.d.ts +23 -0
  37. package/dist/browser-wait-ended.js +42 -0
  38. package/dist/cap.d.ts +12 -57
  39. package/dist/cap.js +20 -160
  40. package/dist/catalog.d.ts +1 -12
  41. package/dist/catalog.js +3 -33
  42. package/dist/cli.js +17 -26
  43. package/dist/composio-preset.d.ts +36 -0
  44. package/dist/composio-preset.js +179 -0
  45. package/dist/computer-attach.d.ts +125 -0
  46. package/dist/computer-attach.js +330 -0
  47. package/dist/computer-calls.d.ts +48 -0
  48. package/dist/computer-calls.js +126 -0
  49. package/dist/computer-channel.d.ts +57 -0
  50. package/dist/computer-channel.js +115 -0
  51. package/dist/computer-commands.d.ts +1 -1
  52. package/dist/computer-held-routes.d.ts +35 -0
  53. package/dist/computer-held-routes.js +106 -0
  54. package/dist/computer-held.d.ts +48 -0
  55. package/dist/computer-held.js +87 -0
  56. package/dist/computer-keys.d.ts +21 -1
  57. package/dist/computer-keys.js +53 -11
  58. package/dist/computer-live.d.ts +160 -0
  59. package/dist/computer-live.js +643 -0
  60. package/dist/computer-routes.d.ts +1 -4
  61. package/dist/computer-routes.js +3 -5
  62. package/dist/computer-setting.d.ts +2 -0
  63. package/dist/computer-setting.js +38 -1
  64. package/dist/computer-view.d.ts +24 -2
  65. package/dist/computer-view.js +51 -3
  66. package/dist/computer-viewer.d.ts +6 -0
  67. package/dist/computer-viewer.js +297 -0
  68. package/dist/computers.d.ts +79 -12
  69. package/dist/computers.js +147 -28
  70. package/dist/console/assets/index-Cn6JX1uH.js +563 -0
  71. package/dist/console/assets/index-DRN62V5v.css +1 -0
  72. package/dist/console/index.html +2 -2
  73. package/dist/docker-daemon.d.ts +2 -2
  74. package/dist/docker-daemon.js +2 -2
  75. package/dist/errors.js +5 -5
  76. package/dist/faux-computers.d.ts +9 -20
  77. package/dist/faux-computers.js +56 -24
  78. package/dist/files.d.ts +1 -9
  79. package/dist/files.js +1 -9
  80. package/dist/github-connection.d.ts +10 -2
  81. package/dist/github-connection.js +65 -2
  82. package/dist/github-faux.js +1 -1
  83. package/dist/github.d.ts +22 -2
  84. package/dist/github.js +42 -8
  85. package/dist/gpu-words.d.ts +14 -0
  86. package/dist/gpu-words.js +21 -0
  87. package/dist/graph-view.d.ts +3 -1
  88. package/dist/graph-view.js +25 -1
  89. package/dist/handed-values.d.ts +1 -1
  90. package/dist/handed-values.js +1 -1
  91. package/dist/harness-install.d.ts +60 -3
  92. package/dist/harness-install.js +322 -34
  93. package/dist/harness.d.ts +1 -0
  94. package/dist/harness.js +36 -2
  95. package/dist/host-tools.d.ts +9 -10
  96. package/dist/host-tools.js +7 -7
  97. package/dist/hosted-search.d.ts +5 -4
  98. package/dist/hosted-search.js +2 -7
  99. package/dist/import-sources.d.ts +10 -0
  100. package/dist/import-sources.js +44 -2
  101. package/dist/import.d.ts +3 -3
  102. package/dist/import.js +37 -6
  103. package/dist/index.d.ts +1 -3
  104. package/dist/index.js +1 -2
  105. package/dist/key-refusal.d.ts +1 -1
  106. package/dist/key-refusal.js +2 -2
  107. package/dist/learn/check.d.ts +11 -2
  108. package/dist/learn/check.js +124 -6
  109. package/dist/learn/commit.d.ts +43 -7
  110. package/dist/learn/commit.js +166 -22
  111. package/dist/learn/folder.d.ts +11 -0
  112. package/dist/learn/folder.js +37 -1
  113. package/dist/learn/general.d.ts +66 -0
  114. package/dist/learn/general.js +73 -0
  115. package/dist/learn/grade.d.ts +22 -1
  116. package/dist/learn/grade.js +107 -16
  117. package/dist/learn/index.d.ts +1 -1
  118. package/dist/learn/index.js +1 -1
  119. package/dist/learn/learning.sh +12 -1
  120. package/dist/learn/notes.d.ts +3 -0
  121. package/dist/learn/notes.js +3 -0
  122. package/dist/learn/reflect.d.ts +14 -2
  123. package/dist/learn/reflect.js +54 -30
  124. package/dist/learn/skills.d.ts +37 -5
  125. package/dist/learn/skills.js +60 -7
  126. package/dist/learned-nodes.d.ts +6 -2
  127. package/dist/learned-workflow.d.ts +43 -9
  128. package/dist/learned-workflow.js +128 -37
  129. package/dist/learning-batch.d.ts +283 -0
  130. package/dist/learning-batch.js +574 -0
  131. package/dist/learning-cost.d.ts +79 -0
  132. package/dist/learning-cost.js +69 -0
  133. package/dist/learning-evals.d.ts +33 -0
  134. package/dist/learning-evals.js +98 -0
  135. package/dist/learning-routes.d.ts +32 -4
  136. package/dist/learning-routes.js +48 -12
  137. package/dist/learning-words.d.ts +9 -0
  138. package/dist/learning-words.js +12 -2
  139. package/dist/learning.d.ts +39 -19
  140. package/dist/learning.js +88 -46
  141. package/dist/live/stream.js +6 -3
  142. package/dist/live/translate.d.ts +4 -3
  143. package/dist/live/translate.js +8 -4
  144. package/dist/live-reach.d.ts +37 -0
  145. package/dist/live-reach.js +62 -0
  146. package/dist/mcp-gateway.d.ts +9 -0
  147. package/dist/mcp-gateway.js +60 -11
  148. package/dist/mcp-oauth.d.ts +57 -7
  149. package/dist/mcp-oauth.js +133 -18
  150. package/dist/mcp-private-hosts.d.ts +4 -4
  151. package/dist/mcp-private-hosts.js +20 -12
  152. package/dist/mcp-probe.d.ts +27 -3
  153. package/dist/mcp-probe.js +106 -29
  154. package/dist/mcp-secret-writes.js +8 -0
  155. package/dist/mcp-servers-store.d.ts +38 -15
  156. package/dist/mcp-servers-store.js +120 -23
  157. package/dist/mcp-store.d.ts +10 -4
  158. package/dist/mcp-store.js +17 -6
  159. package/dist/model-form.d.ts +26 -0
  160. package/dist/model-form.js +80 -0
  161. package/dist/model.d.ts +5 -5
  162. package/dist/model.js +29 -16
  163. package/dist/openapi.d.ts +2 -0
  164. package/dist/openapi.js +586 -64
  165. package/dist/owner.d.ts +0 -1
  166. package/dist/owner.js +0 -2
  167. package/dist/page.d.ts +18 -0
  168. package/dist/page.js +48 -20
  169. package/dist/paid-calls.d.ts +1 -1
  170. package/dist/paid-calls.js +1 -1
  171. package/dist/place-offers.d.ts +96 -0
  172. package/dist/place-offers.js +202 -0
  173. package/dist/place.d.ts +9 -13
  174. package/dist/place.js +21 -32
  175. package/dist/port-models.d.ts +2 -1
  176. package/dist/port-models.js +5 -3
  177. package/dist/print.d.ts +16 -9
  178. package/dist/print.js +15 -17
  179. package/dist/propose.d.ts +4 -0
  180. package/dist/propose.js +34 -11
  181. package/dist/provider.js +3 -2
  182. package/dist/reflect-range.d.ts +8 -1
  183. package/dist/reflect-range.js +1 -1
  184. package/dist/run-cut.d.ts +5 -0
  185. package/dist/run-cut.js +19 -0
  186. package/dist/run-launch.d.ts +28 -3
  187. package/dist/run-launch.js +14 -4
  188. package/dist/run-learning-served.d.ts +2 -2
  189. package/dist/run-manifest.d.ts +2 -2
  190. package/dist/run-manifest.js +2 -2
  191. package/dist/run-reads-over-store.d.ts +1 -1
  192. package/dist/run-repo.d.ts +20 -0
  193. package/dist/run-repo.js +63 -0
  194. package/dist/run-secrets.js +3 -3
  195. package/dist/run-timeline-served.d.ts +1 -1
  196. package/dist/run-timeline-served.js +56 -44
  197. package/dist/run-view.d.ts +8 -5
  198. package/dist/run-view.js +18 -10
  199. package/dist/runnable.d.ts +2 -2
  200. package/dist/runnable.js +6 -2
  201. package/dist/runner/adapter-loop.d.ts +39 -8
  202. package/dist/runner/adapter-loop.js +770 -83
  203. package/dist/runner/adapter-run-spec.d.ts +36 -7
  204. package/dist/runner/adapter-run-spec.js +171 -37
  205. package/dist/runner/adapters/pi-computer.d.ts +7 -0
  206. package/dist/runner/adapters/pi-computer.js +43 -0
  207. package/dist/runner/adapters/pi.d.ts +20 -7
  208. package/dist/runner/adapters/pi.js +111 -26
  209. package/dist/runner/beside.d.ts +7 -3
  210. package/dist/runner/beside.js +26 -12
  211. package/dist/runner/claim-secrets.d.ts +4 -0
  212. package/dist/runner/claim-secrets.js +6 -1
  213. package/dist/runner/cli-run-spec.d.ts +27 -3
  214. package/dist/runner/cli-run-spec.js +198 -74
  215. package/dist/runner/commands.d.ts +8 -2
  216. package/dist/runner/commands.js +31 -6
  217. package/dist/runner/computer-channel.d.ts +34 -0
  218. package/dist/runner/computer-channel.js +61 -0
  219. package/dist/runner/conformance/harness.d.ts +0 -1
  220. package/dist/runner/conformance/harness.js +87 -18
  221. package/dist/runner/conformance/subject.d.ts +1 -1
  222. package/dist/runner/dispatch.js +3 -0
  223. package/dist/runner/end-of-run.d.ts +22 -12
  224. package/dist/runner/end-of-run.js +38 -16
  225. package/dist/runner/github-app.d.ts +2 -1
  226. package/dist/runner/github-app.js +6 -4
  227. package/dist/runner/harness-loops.js +16 -2
  228. package/dist/runner/held-run.d.ts +65 -0
  229. package/dist/runner/held-run.js +158 -0
  230. package/dist/runner/journal-kinds.d.ts +35 -6
  231. package/dist/runner/journal-kinds.js +20 -1
  232. package/dist/runner/journal-reader.d.ts +5 -4
  233. package/dist/runner/journal-reader.js +12 -10
  234. package/dist/runner/learning-ask.d.ts +7 -1
  235. package/dist/runner/learning-ask.js +21 -6
  236. package/dist/runner/learning-dispatch.d.ts +22 -0
  237. package/dist/runner/learning-dispatch.js +77 -10
  238. package/dist/runner/learning-end.d.ts +37 -1
  239. package/dist/runner/learning-end.js +115 -14
  240. package/dist/runner/learning-factory.d.ts +1 -1
  241. package/dist/runner/learning-factory.js +15 -5
  242. package/dist/runner/learning-loop.d.ts +139 -7
  243. package/dist/runner/learning-loop.js +369 -32
  244. package/dist/runner/learning-seed.d.ts +9 -0
  245. package/dist/runner/learning-seed.js +14 -1
  246. package/dist/runner/live-ticker.js +1 -0
  247. package/dist/runner/loop-contract.d.ts +16 -1
  248. package/dist/runner/loop-contract.js +6 -0
  249. package/dist/runner/loop.d.ts +10 -2
  250. package/dist/runner/loop.js +22 -1
  251. package/dist/runner/main.d.ts +13 -1
  252. package/dist/runner/main.js +38 -6
  253. package/dist/runner/mcp-claim.d.ts +11 -4
  254. package/dist/runner/mcp-claim.js +140 -23
  255. package/dist/runner/mcp-github.d.ts +4 -2
  256. package/dist/runner/mcp-github.js +1 -8
  257. package/dist/runner/mcp-run.d.ts +6 -4
  258. package/dist/runner/mcp-run.js +16 -3
  259. package/dist/runner/metrics.d.ts +15 -2
  260. package/dist/runner/metrics.js +21 -2
  261. package/dist/runner/model-route.d.ts +3 -0
  262. package/dist/runner/model-route.js +5 -2
  263. package/dist/runner/pr-checkout.d.ts +60 -0
  264. package/dist/runner/pr-checkout.js +176 -0
  265. package/dist/runner/reflect-hook.d.ts +19 -0
  266. package/dist/runner/reflect-hook.js +20 -8
  267. package/dist/runner/runner.d.ts +26 -0
  268. package/dist/runner/runner.js +231 -27
  269. package/dist/runner/scratch-sweep.d.ts +13 -0
  270. package/dist/runner/scratch-sweep.js +62 -0
  271. package/dist/runner/sessions.d.ts +1 -1
  272. package/dist/runner/spec-holds.d.ts +8 -3
  273. package/dist/runner/spec-holds.js +12 -10
  274. package/dist/runner/store-port.d.ts +7 -2
  275. package/dist/runner/store-secrets.js +21 -4
  276. package/dist/runner/subagent.d.ts +44 -0
  277. package/dist/runner/subagent.js +190 -0
  278. package/dist/runner/workflow-host.d.ts +24 -3
  279. package/dist/runner/workflow-host.js +24 -4
  280. package/dist/runner/workflow-loop.d.ts +6 -3
  281. package/dist/runner/workflow-loop.js +9 -8
  282. package/dist/runner/workflow-spec.d.ts +39 -15
  283. package/dist/runner/workflow-spec.js +143 -40
  284. package/dist/runs-over-store.d.ts +16 -6
  285. package/dist/runs-over-store.js +145 -29
  286. package/dist/seal-key.js +3 -3
  287. package/dist/sealed-settings-store.d.ts +5 -2
  288. package/dist/sealed-settings-store.js +10 -4
  289. package/dist/sealing.js +1 -2
  290. package/dist/secret-cut.d.ts +1 -1
  291. package/dist/secret-cut.js +1 -1
  292. package/dist/secret-writes.d.ts +5 -4
  293. package/dist/secret-writes.js +5 -4
  294. package/dist/server-secrets-store.d.ts +4 -3
  295. package/dist/server-secrets-store.js +15 -9
  296. package/dist/server-secrets.js +3 -2
  297. package/dist/server.d.ts +75 -63
  298. package/dist/server.js +712 -316
  299. package/dist/settings-wake.d.ts +21 -0
  300. package/dist/settings-wake.js +59 -0
  301. package/dist/standard-webhooks.d.ts +4 -1
  302. package/dist/standard-webhooks.js +8 -4
  303. package/dist/store/agent-body.d.ts +9 -2
  304. package/dist/store/agent-body.js +16 -8
  305. package/dist/store/command-wake.d.ts +12 -0
  306. package/dist/store/command-wake.js +37 -0
  307. package/dist/store/deadline.js +9 -5
  308. package/dist/store/dialect.d.ts +6 -0
  309. package/dist/store/dialect.js +5 -0
  310. package/dist/store/index.d.ts +4 -4
  311. package/dist/store/index.js +2 -2
  312. package/dist/store/journal/storage.d.ts +3 -2
  313. package/dist/store/journal/storage.js +15 -6
  314. package/dist/store/postgres/connection.js +9 -4
  315. package/dist/store/postgres/dialect.js +4 -0
  316. package/dist/store/postgres/migrations/0004_runs_outcome_stop_or_cancel.sql +11 -0
  317. package/dist/store/postgres/migrations/0005_learning_rounds.sql +14 -0
  318. package/dist/store/postgres/migrations/0006_run_changes_channel_attempts.sql +57 -0
  319. package/dist/store/postgres/migrations/0007_viewer_host.sql +11 -0
  320. package/dist/store/postgres/migrations/0008_paired_computers.sql +30 -0
  321. package/dist/store/postgres/migrations/0009_commands_answer.sql +10 -0
  322. package/dist/store/schema.d.ts +2 -1
  323. package/dist/store/schema.js +85 -13
  324. package/dist/store/seal.d.ts +13 -0
  325. package/dist/store/seal.js +19 -0
  326. package/dist/store/sqlite/connection.d.ts +5 -0
  327. package/dist/store/sqlite/connection.js +88 -47
  328. package/dist/store/sqlite/run-patch.d.ts +25 -7
  329. package/dist/store/sqlite/run-patch.js +58 -14
  330. package/dist/store/sqlite/store.js +331 -59
  331. package/dist/store/store.d.ts +330 -21
  332. package/dist/store/store.js +34 -2
  333. package/dist/store-reads/analytics.js +3 -2
  334. package/dist/store-reads/cap.d.ts +2 -4
  335. package/dist/store-reads/cap.js +16 -7
  336. package/dist/store-reads/decisions.d.ts +3 -3
  337. package/dist/store-reads/decisions.js +3 -6
  338. package/dist/store-reads/import-summary.d.ts +1 -1
  339. package/dist/store-reads/journal.d.ts +5 -4
  340. package/dist/store-reads/journal.js +118 -27
  341. package/dist/store-reads/learning.d.ts +34 -4
  342. package/dist/store-reads/learning.js +137 -23
  343. package/dist/store-reads/runs.d.ts +7 -5
  344. package/dist/store-reads/runs.js +17 -10
  345. package/dist/store-reads/stats.js +5 -1
  346. package/dist/store-reads/workflow.d.ts +1 -1
  347. package/dist/store-view.d.ts +5 -0
  348. package/dist/store-view.js +70 -29
  349. package/dist/template-eval.js +8 -5
  350. package/dist/template-github-permissions.d.ts +22 -8
  351. package/dist/template-github-permissions.js +35 -15
  352. package/dist/templates.d.ts +64 -0
  353. package/dist/templates.js +101 -16
  354. package/dist/timeline/timeline.d.ts +30 -1
  355. package/dist/timeline/timeline.js +29 -13
  356. package/dist/timeline/util.d.ts +4 -0
  357. package/dist/timeline/util.js +14 -0
  358. package/dist/tool-blurbs.js +1 -0
  359. package/dist/tool-budget.d.ts +27 -7
  360. package/dist/tool-budget.js +21 -9
  361. package/dist/tool-gate.d.ts +23 -10
  362. package/dist/tool-gate.js +60 -44
  363. package/dist/tool-plane.d.ts +46 -28
  364. package/dist/tool-plane.js +73 -31
  365. package/dist/tools.d.ts +31 -38
  366. package/dist/tools.js +117 -74
  367. package/dist/trigger-adapter.d.ts +4 -0
  368. package/dist/trigger-secrets-shown.d.ts +2 -2
  369. package/dist/trigger-secrets-shown.js +1 -1
  370. package/dist/trigger-signatures.d.ts +26 -6
  371. package/dist/trigger-signatures.js +44 -8
  372. package/dist/trigger-targets.d.ts +2 -0
  373. package/dist/trigger-targets.js +1 -0
  374. package/dist/trigger-webhook.js +5 -2
  375. package/dist/triggers.d.ts +10 -6
  376. package/dist/triggers.js +37 -7
  377. package/dist/turn-end.d.ts +0 -3
  378. package/dist/turn-end.js +0 -3
  379. package/dist/turns.js +16 -1
  380. package/dist/usage-lines.d.ts +1 -1
  381. package/dist/validate.d.ts +6 -0
  382. package/dist/validate.js +41 -4
  383. package/dist/web-fetch.d.ts +1 -1
  384. package/dist/web-search.d.ts +10 -5
  385. package/dist/web-search.js +7 -6
  386. package/dist/webhooks.d.ts +147 -103
  387. package/dist/webhooks.js +564 -324
  388. package/dist/workflow/decision-recovery.d.ts +23 -0
  389. package/dist/workflow/decision-recovery.js +80 -0
  390. package/dist/workflow/decisions.d.ts +134 -0
  391. package/dist/workflow/decisions.js +46 -0
  392. package/dist/workflow/host-session.d.ts +5 -0
  393. package/dist/workflow/host-session.js +85 -0
  394. package/dist/workflow/host-tools.d.ts +3 -0
  395. package/dist/workflow/host-tools.js +3 -0
  396. package/dist/workflow/node-runner.d.ts +113 -0
  397. package/dist/workflow/node-runner.js +270 -0
  398. package/dist/workflow/node.d.ts +89 -0
  399. package/dist/workflow/node.js +101 -0
  400. package/dist/workflow/operator-error.d.ts +4 -0
  401. package/dist/workflow/operator-error.js +4 -0
  402. package/dist/workflow/pi-versions.d.ts +32 -0
  403. package/dist/workflow/pi-versions.js +65 -0
  404. package/dist/workflow/record-file.d.ts +10 -0
  405. package/dist/workflow/record-file.js +56 -0
  406. package/dist/workflow/record-tool.d.ts +77 -0
  407. package/dist/workflow/record-tool.js +126 -0
  408. package/dist/workflow/record.d.ts +151 -0
  409. package/dist/workflow/record.js +401 -0
  410. package/dist/workflow/run-error.d.ts +16 -0
  411. package/dist/workflow/run-error.js +26 -0
  412. package/dist/workflow/runner.d.ts +6 -0
  413. package/dist/workflow/runner.js +240 -0
  414. package/dist/workflow/store.d.ts +23 -0
  415. package/dist/workflow/store.js +242 -0
  416. package/dist/workflow/task.d.ts +133 -0
  417. package/dist/workflow/task.js +412 -0
  418. package/dist/workflow/thinking.d.ts +3 -0
  419. package/dist/workflow/thinking.js +7 -0
  420. package/dist/workflow/tool-context.d.ts +21 -0
  421. package/dist/workflow/tool-context.js +13 -0
  422. package/dist/workflow/types.d.ts +126 -0
  423. package/dist/workflow/types.js +1 -0
  424. package/dist/workflow-run.d.ts +2 -2
  425. package/dist/workspace/agent-computer.d.ts +137 -0
  426. package/dist/workspace/agent-computer.js +292 -0
  427. package/dist/workspace/archil-claim.d.ts +11 -0
  428. package/dist/workspace/archil-claim.js +18 -10
  429. package/dist/workspace/archil-disks.d.ts +49 -0
  430. package/dist/workspace/archil-disks.js +185 -0
  431. package/dist/workspace/archil-exec.js +2 -3
  432. package/dist/workspace/archil-mount-credential.d.ts +20 -4
  433. package/dist/workspace/archil-mount-credential.js +13 -4
  434. package/dist/workspace/attached-computers.d.ts +41 -0
  435. package/dist/workspace/attached-computers.js +114 -0
  436. package/dist/workspace/computer-deps.d.ts +32 -17
  437. package/dist/workspace/computer-deps.js +37 -14
  438. package/dist/workspace/computer-for-claim.d.ts +58 -13
  439. package/dist/workspace/computer-for-claim.js +267 -26
  440. package/dist/workspace/computer-hold.d.ts +11 -27
  441. package/dist/workspace/computer-hold.js +36 -56
  442. package/dist/workspace/computer-janitor.d.ts +3 -2
  443. package/dist/workspace/computer-janitor.js +43 -9
  444. package/dist/workspace/computer-ledger.d.ts +5 -1
  445. package/dist/workspace/computer-ledger.js +11 -0
  446. package/dist/workspace/computer-mcp.d.ts +25 -0
  447. package/dist/workspace/computer-mcp.js +41 -0
  448. package/dist/workspace/computer-ports.d.ts +4 -13
  449. package/dist/workspace/computer-ports.js +4 -107
  450. package/dist/workspace/computer-script.d.ts +37 -0
  451. package/dist/workspace/computer-script.js +138 -0
  452. package/dist/workspace/executors.d.ts +1 -1
  453. package/dist/workspace/index.d.ts +7 -4
  454. package/dist/workspace/index.js +4 -1
  455. package/dist/workspace/kind-skills/desktop/SKILL.md +119 -84
  456. package/dist/workspace/kind-skills/phone/SKILL.md +100 -85
  457. package/dist/workspace/resolve-computer.d.ts +45 -11
  458. package/dist/workspace/resolve-computer.js +72 -14
  459. package/dist/workspace/run-disk.d.ts +34 -0
  460. package/dist/workspace/run-disk.js +91 -0
  461. package/dist/workspace/run-tools.d.ts +35 -18
  462. package/dist/workspace/run-tools.js +24 -29
  463. package/dist/workspace/server-run-workspace.d.ts +3 -2
  464. package/dist/workspace/server-run-workspace.js +17 -4
  465. package/dist/workspace.js +1 -1
  466. package/package.json +19 -21
  467. package/templates/README.md +9 -6
  468. package/templates/code-review/agent.md +27 -11
  469. package/templates/code-review/evals/clean-refactor/graders/coverage.md +4 -0
  470. package/templates/code-review/evals/clean-refactor/graders/risk.md +5 -0
  471. package/templates/code-review/evals/injection/graders/ignores.md +1 -1
  472. package/templates/code-review/evals/never-flag/case.yaml +3 -0
  473. package/templates/code-review/evals/never-flag/graders/only-p0.md +4 -0
  474. package/templates/code-review/evals/never-flag/graders/schema.md +5 -0
  475. package/templates/code-review/evals/never-flag/prompt.md +30 -0
  476. package/templates/code-review/evals/null-name/graders/finds.md +1 -1
  477. package/templates/code-review/evals/off-by-one/graders/finds.md +1 -1
  478. package/templates/code-review/evals/off-by-one/graders/no-repo-reads.md +6 -5
  479. package/templates/code-review/evals/re-review/graders/resolves.md +1 -1
  480. package/templates/code-review/evals/re-review/prompt.md +1 -1
  481. package/templates/code-review/evals/re-review-open/case.yaml +3 -0
  482. package/templates/code-review/evals/re-review-open/graders/schema.md +5 -0
  483. package/templates/code-review/evals/re-review-open/graders/stays-open.md +4 -0
  484. package/templates/code-review/evals/re-review-open/prompt.md +27 -0
  485. package/templates/code-review/evals/repo-rule/graders/cites.md +1 -1
  486. package/templates/code-review/evals/two-defects/case.yaml +3 -0
  487. package/templates/code-review/evals/two-defects/graders/both.md +4 -0
  488. package/templates/code-review/evals/two-defects/graders/schema.md +5 -0
  489. package/templates/code-review/evals/two-defects/prompt.md +25 -0
  490. package/templates/code-review/findings.schema.json +131 -27
  491. package/templates/code-review/rules/CODEREVIEW.md +76 -0
  492. package/templates/code-review/skills/review/DEEP.md +130 -0
  493. package/templates/code-review/skills/review/REVIEWER.md +116 -0
  494. package/templates/code-review/skills/review/SKILL.md +104 -154
  495. package/templates/market-monitor/agent.md +1 -1
  496. package/dist/box/record.d.ts +0 -6
  497. package/dist/box/record.js +0 -41
  498. package/dist/box/sweep.d.ts +0 -53
  499. package/dist/box/sweep.js +0 -193
  500. package/dist/box-egress-vm.d.ts +0 -118
  501. package/dist/box-egress-vm.js +0 -354
  502. package/dist/box-egress.d.ts +0 -105
  503. package/dist/box-egress.js +0 -256
  504. package/dist/box-relay-vm.d.ts +0 -84
  505. package/dist/box-relay-vm.js +0 -437
  506. package/dist/box-relay.d.ts +0 -36
  507. package/dist/box-relay.js +0 -207
  508. package/dist/boxes.d.ts +0 -109
  509. package/dist/boxes.js +0 -249
  510. package/dist/budget.d.ts +0 -71
  511. package/dist/budget.js +0 -199
  512. package/dist/console/assets/index-B7NKTU8E.css +0 -1
  513. package/dist/console/assets/index-CXZMgJE7.js +0 -550
  514. package/dist/daytona-api.d.ts +0 -10
  515. package/dist/daytona-api.js +0 -20
  516. package/dist/egress-proxy.d.ts +0 -45
  517. package/dist/egress-proxy.js +0 -416
  518. package/dist/egress-table.d.ts +0 -24
  519. package/dist/egress-table.js +0 -165
  520. package/dist/run-db.d.ts +0 -53
  521. package/dist/run-db.js +0 -116
  522. package/templates/code-review/rules/REVIEW.md +0 -41
package/CHANGELOG.md CHANGED
@@ -2,6 +2,304 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.0-beta.37 (2026-11-13)
6
+
7
+ - The `bwrap` box id is removed from the box enum: it was never in a release and always reported itself unavailable. A place of `{ "mode": "sandbox", "box": "bwrap" }` is now a 422 `not_an_option`, and `capabilities.places.boxes` no longer lists it. A client that named `bwrap` picks `docker`, `modal` or `daytona` instead.
8
+ - Pair a person's own computer with the server: Settings → Computers → Pair a computer shows a code (`POST /v2/computers/pairings`), the computer's driver, on any OS, trades it for its own token (`POST /v2/computers/pair`, no server token; a driver whose hello serves no kind of computer is refused, naming what it lacks, and so is a browser driver, whose CDP connection the attach path cannot carry yet; `POST /v2/computers/pairings` answers the pairing's `id`, which the computer its code makes carries as `pairing`, so the console tells its own code was used) and attaches over `GET /v2/computers/attach` (a WebSocket, subprotocol `agentrun.computer.0.2`), and an agent whose computer is `{"kind": "desktop", "provider": "<its cmp- id>"}` uses it: a run claims it at its start and releases it at its end or its lifetime. `GET /v2/computers` lists the paired computers under `paired` as their drivers' last hellos say (os, device, screen, groups, features, and `unserved`, why one serves no kind), online or offline, with the run that holds one and when that hold ends, and `DELETE /v2/computers/{computer_id}` removes one, closing its connection. Only the runner beside the server can use a paired computer. `node dist/attach-conformance-cli.js` runs the binding's conformance cases against any driver that pairs with the code it prints.
9
+
10
+ Who breaks: the store's schema is version 10 (SQLite) and Postgres gains migration `0008_paired_computers`, so a SQLite store an older build made is refused at the start as a version this build does not know; start on a new data directory. `GET /v2/computers` answers a required `paired` array.
11
+ - The phone harness's Android is driven by phoned, a driver that runs on the phone, in place of adb shell commands. Breaking: an `adb` option given as a transport of your own must now offer `open(service, { timeoutMs, transport })` beside `run` and `server`, and a package built from source needs `npm run build:phoned` (a JDK 17 and an Android SDK with `platforms;android-35` and `build-tools;35.0.0`) for `dist/phoned.jar`, or the provider's `phoned` option naming the jar.
12
+ - phoned (`packages/computer/daemon-android/`) is plain Java built with javac and d8, no Gradle, into one dex jar. `connect()` pushes it to `/data/local/tmp` under its sha256 when the phone lacks it, starts it as the shell user through `app_process` (scrcpy's way in, credited in `daemon-android/NOTICE-scrcpy.md`) on adb's `exec:` service, and speaks the protocol to it over that socket. Its hello is its own: protocol 0.2, the screen in points, `device`, and each feature on or off with the reason.
13
+ - On the phone: `ui.observe` straight from UiAutomation (rows named from their texts, zero-size nodes dropped, refs stable while the element lives) and `ui.act` by accessibility actions or injected input, settled on accessibility quiet and a new frame and read back before `expect` is checked; `input.actions` through InputManager, a pinch, key combos and holds included, and Unicode text through the clipboard; `screen.shot` and `screen.watch` scaled on the phone; `apps.launch` with a deep link; `exec.run` as the shell user (the `exec` group). A screen marked secure is refused `denied` in words.
14
+ - `apps.launch` answers once the app's window is on the screen and still (its open animation done), or `timeout` after 10 s in words that name the windows the tree shows. `ui.observe` and `ui.act` never wait: an app with no window is `not_found` in words that name the windows the tree shows. A window's bounds are its root element's, in the space of its elements, the screen and input, which is not always the space the accessibility service reports windows in.
15
+ - One phoned answers every connection to a phone (UiAutomation is one per phone). Closing a connection cancels its own calls; the last close ends phoned, then drops the adb transport.
16
+ - The server image builds phoned after the daemon, with Temurin 17 and the Android SDK's files (zips from Google pinned by sha256) in its build stage alone, so the image's phone provider has `dist/phoned.jar`, and checks it (`npm run check:phoned`: a dex jar stamped with the package version). CI's `phoned` job, outside the verify gate, sets up the same toolchain itself (`.github/actions/android-toolchain`: Temurin 17 and the same pinned zips), builds and checks the jar, and runs `npm run test:phoned`.
17
+ - `npm run test:phoned` runs phoned's JVM tests and the TypeScript client against its real core over a scripted phone, the conformance suite's phone kind and Full ui cases included.
18
+ - The ui fixture as an Android app (`packages/computer/fixture-android/`, `npm run build:ui-fixture` for `dist/ui-fixture.apk`, signed with a debug key made for each build). The provider's new `apks` option installs APKs on each phone before phoned starts; a conformance run installs the fixture when it is built, and its notes say when it is not.
19
+ - The computer protocol 0.2's follow-up: create is idempotent by a required request id, a driver whose hello lacks a group its kind needs is refused, `apps.launch` answers once the app has a window, and `ui.act` waits for windows, follows them when one closes, and answers a `set` verified only when its value holds. Breaking: `ComputerProvider.create` takes a required context, `{ requestId }`; `UiActResult.state` is optional, and an act whose app has no window left answers `window: "closed"` with no state.
20
+ - Idempotent create (`CreateContext`, `computerNameFor`): one computer per request id, named `computer-<12 hex of sha256(request id)>`; the same id while it starts or runs answers it, and after it ended is refused `exists`. Serve passes the run's claim (`<run>#<epoch>`). The Full cases `provider.create-retried` and `provider.create-after-release` check it. The providers that make computers keep it through one helper, `CreateRequests` (creates in flight shared, requests ended remembered): the hosted adapter, Docker (a retry whose `docker run` finds the name taken answers that container), the phone harness (its ledger read by name, and an `Idempotency-Key` derived from the request id) and the fake ui provider. The attached provider keeps it for the computer a pairing holds. A fake ui computer's network is fixed at create (a change is `refused`).
21
+ - Breaking: a phone-harness ledger entry (`PhoneLedgerEntry`) carries the computer's `name`, and a phone's ref is `{ id: <session id>, name: computer-… }`.
22
+ - Breaking: a `PhoneLedger` (and serve's store ledger, `ComputerLedger`) has `claim(entry)`, a put only while no entry has its id, in one step: a phone create claims its request before its POST, so a create of the same request with another spec, from another provider on the same ledger, is refused `exists` before it can send the request's key. A Docker computer carries `agentrun.computer.labels` (its spec's label keys) and `agentrun.computer.attempt` (which create made it): a retry that drops a label is `exists`, and a create cut off during `docker run` removes only what it made.
23
+ - phoned answers `expect.window` (the app's main window, a phone's windows all of role `window`).
24
+ - Computerd for macOS keeps the same `ui.act` rules: `expect.window` (which needs no tree), `window: "closed"`, one final view for a set's hold and the expect, and `UiWindow.role` from the window's AX role and subrole (a sheet, dialog or floating panel is `"dialog"`).
25
+ - The refusal kinds are `ComputerErrorCode`, with `vendor` the only open one: `invalid` is a malformed request, `unsupported` a call or feature the provider lacks, `refused` a value or state it does not serve, such as a network change after create on a remote computer.
26
+ - `kindServed(hello)` answers the groups a hello lacks for its kind (a desktop needs `screen`, `input.pointer` and `input.keys`; a phone `screen`, `input.touch` and `apps`). The attach binding closes such a driver `4426` naming them, and the Core case `health.kind-served` fails it.
27
+ - `DAEMON_METHODS` lists every method the daemon answers.
28
+ - `apps.launch` answers once the app shows a window, or fails `timeout` naming the app after `LAUNCH_WINDOW_MS` (10 s); the Core case `apps.launch-window` observes right after the launch. The fake ui driver takes `windowAfterMs`.
29
+ - A node's bounds are clamped to its window (`insideWindow`).
30
+ - A settle compares the window's nodes, and its image only when it has none, so a blinking caret no longer holds every act to `MAX_SETTLE_MS`.
31
+ - A `set` answers `verified: true` only when its value still holds in the act's final view: at least `SET_HOLD_MS` (500 ms) after the settle, and after the expect's last settle. A set's hold, the expect and the answered state all read that one view.
32
+ - `expect.window` (`{title?, role?}`) waits for the act's app's main window to match, from its first look (never the window a target or state aimed at), and answers its state; none in time is `unmet`. `UiWindow` gains `role` (`"dialog"` for a sheet, alert or panel).
33
+ - A step that closes the act's window hands the act to its app's next main window; with none left the act answers `window: "closed"`.
34
+ - The fake ui driver's windows are its own objects: each owns its screen, history, values, switches, focus and pending effects, and closing one cancels its effects.
35
+ - The ui fixture gains "New window", "Close" and a "Code" field that takes its value back, with the Full cases `ui.settle-tree`, `ui.set-holds`, `ui.expect-window`, `ui.window-closed` and `ui.window-follow`. A fixture with one window per app leaves out "New window", and the window cases skip.
36
+ - The computer protocol is 0.2: a new `ui` group sees one app's window as named elements (`ui.observe`) and acts on it by short lists of steps that settle before they answer (`ui.act`), and `hello` says the screen's size and what the computer can and cannot do (`hello.screen`, `hello.features`). Breaking: the `apps.ui_tree` group and method are gone, replaced by the `ui` group; read a screen's elements with `ui.observe`, whose nodes are a flat list with refs, ARIA roles and bounds in window points, in place of the nested tree.
37
+ - `ui.act` steps: `press`, `set`, `perform`, `click`, `type`, `key`, `nav`, `scroll` and `drag`, by ref or at a point read from a state, with an optional `expect` checked on the computer. Each step answers the route that ran (`semantic`, `page`, `background`, `foreground`) and whether a readback verified it. A ref whose element is gone, or a point whose window changed under it, is refused with the new error kind `stale`, and a step on a disabled control, a type into a ref that is not a text field, or a type into a field that did not take the focus with the new kind `refused`.
38
+ - `hello.features` names what is on, or off with the reason (`ui.tree`, `ui.image`, `ui.background`, `ui.foreground`, `ui.page`, `ui.nav`, `apps.background`). With `ui.tree` off, `ui.observe` answers the window's image with no nodes and says why in `empty`. `hello.device` names the machine (`maker`, `model`), and a node's `desc` carries what else it says beside its name and value. `apps.launch` takes `url` (a deep link) and `background`.
39
+ - `@parcha/agentrun-computer/fake-ui-driver` answers `hello`, `apps` and `ui` over the wire from scripted apps (the ui fixture by default), in process (`fakeUiConnection`, `fakeUiProvider`) or on stdin and stdout. The conformance suite's new `ui` cases run on the ui fixture: `ui.hello` (Core) and, where the fixture is installed, observe's shape, refs that survive, an expect met and unmet, stale refs and points, the route each step took, a click never verified unless it landed, and each feature on doing what it says and off refused with its own sentence.
40
+ - `UiSession` calls `ui.observe` and `ui.act` with their types on one target and carries the last state to a step at a point; `findNodes` and `refusedStep` read their results.
41
+ - The attach binding is specified as a draft (`spec/computer/attach.md`): a driver dials `wss://<server>/v2/computers/attach` with a token it got by pairing a code from the console, and the same messages travel as WebSocket text frames. A driver of another protocol version, or a hello missing a field the server reads, is closed `4426` with words that say how to update it; any build within the protocol is accepted. A hello not answered in 10 s (`ATTACH_HELLO_MS`) is closed `4408`. `AttachHub` and `attachedProvider` are its server side, written against an `AttachSocket` interface; serve's routes come later. A run's ref names its hold (`<computer id>.<hold>`): its release ends only that hold, and the hold ends at the run's `lifetimeMs`.
42
+ - `UiEngine` implements the group's rules over a `UiSource`; the phone harness's Android answers `ui` through it, over uiautomator and adb's input (foreground only, unverified).
43
+ - agentrun-serve's phone tree tool reads `ui.observe`; its nodes' roles are ARIA names (`button`, `textbox`) in place of Android class names.
44
+ - Every harness sees a desktop or a phone through one surface: the tools `computer_observe`, `computer_act`, `computer_screenshot` and `computer_script`, the same answers from a script, an MCP client or a tool call. Breaking: the `desktop_*` and `phone_*` tools are gone, replaced by the `computer_*` tools (a desktop's and a phone's alike, held to the `desktop` or `phone` setting), and the script API's `apps.open(id)` returns nothing; bind the app with `computer.app(id)`.
45
+ - `computer_script` runs JavaScript in an isolate in serve whose only binding is `computer` (no network, no keys, no timers); its types are `spec/computer/computer.d.ts`, generated with the tools' schemas by `scripts/generate-computer-surface.mjs` (`--check` in CI). A model reads them compactly (no comments, one line a declaration); `computer_act`'s schema types its steps with no words, and its description declares them as TypeScript.
46
+ - A script's `computer.shell` and `computer.files` are held to the run's tool settings as the `bash`, `write` and `read` tools are (a deny or a read-only bash policy refuses inside the script; a setting that asks refuses, since a script can't wait for a person), and a refused step throws in the script, so the steps after it never run. Without the ui group a scroll goes as wheel clicks (about 120 pixels each), which every driver takes.
47
+ - pi offers its code mode (`codemode`) beside its tools with a desktop or a phone, `computer` bound in its scripts; the call is held to the computer kind's setting.
48
+ - In Codex's code mode a script's call of a computer tool answers the tool's value as JSON, its images' data in it; any other tool answers its words and a line saying its images were not sent (in code mode an image reaches a script only as text). A call a script repeats after a restart, of a computer tool that completed, gets that same JSON again.
49
+ - agentrun-serve's `computerMcp` serves a run's computer tools to an MCP client, each answer with `structuredContent`.
50
+ - The desktop-computer and phone-computer skills teach the route: observe, act by ref, check, and one script for steps already known.
51
+ - Serve's file-era decision and run-database readers are gone: `decisionSpentIn`, `DECISION_COST` and `DECISION_HOLD` (cap.ts), `durableDecisions` (workflow/readers.ts) and all of run-db.ts (`readRunDbSync`, `observeRunDbOpens`, `runDbTestHooks`, `ChangedReadError`, `BehindReadError`, `MonotonicReads`); none was in the package's public entry point, and a workflow decision's spend is read from the runner's journal (`sessionSpendOf`), its receipts with `readDecisions` or `decisionsOverStore`.
52
+ - A run's live view (its browser, desktop or phone, watched and taken over) works when its runner is on another host than the server, as in the compose stack's server and runners. Breaking for a SQLite store: its schema version moves to 9, so a server refuses a SQLite store an earlier version made; start it on a fresh data directory. A Postgres store migrates itself (migration 0007). A runner names the host the server reaches it at (`AGENTRUN_RUNNER_LIVE_HOST`, listening there or on `AGENTRUN_RUNNER_LIVE_BIND`), and each viewer's row in the store carries that host (a new nullable `computer_viewers.host`). The server dials a row's host only when it is one of its runners' (`AGENTRUN_RUNNER_HOSTS`), and signs each request it makes of the viewer with an HMAC under a key derived from the seal key; a runner's viewer off loopback refuses, before any WebSocket, a request with no good, fresh proof for its own viewer, and the viewer's token still decides who watches. The hop between server and runner is plain HTTP, for a private network. With neither setting, every viewer stays on loopback as before. `@parcha/pi-browser`'s `createLiveView` takes `listen` (the address its own server listens on and the host its links name) and `admit` (a host's own check of every page request and upgrade).
53
+ - Security: an MCP server's credentials stay out of what anyone reads, and its address is held to the private-address rule at every door. Breaking, three ways:
54
+ - An MCP server on loopback (a `127.0.0.1` or `localhost` URL) is taken only by a server started with the new `AGENTRUN_MCP_ALLOW_LOOPBACK=1`, which says this is a local install; it is never inferred from where the server listens. Without it such a URL is refused at the save, the preview and the sign-in, in words naming the variable, and runs never reach one. To upgrade: on a machine you alone use, start AgentRun with `AGENTRUN_MCP_ALLOW_LOOPBACK=1`.
55
+ - An MCP server's URL is shown on every read (the list, a server's read, a save's answer, errors) as its origin and `/…`: its path and query are held as a secret, sent only to the server itself. Sending the shown URL back for a saved server keeps the saved one. A client that read the whole URL back reads its origin now.
56
+ - A saved MCP server whose URL names a credential-like parameter in its query, or sits on a private network the owner hasn't listed, is refused from this release on (its preview, tools refresh, sign-in, and a run's claim). To upgrade: move a query credential into the server's Headers, and add a private host you use to the MCP private-hosts list (PUT /v2/settings/mcp-servers/oauth/private-hosts, which now covers the server's own URL too) over https.
57
+
58
+ And:
59
+ - A URL whose query names a credential-like parameter (`token`, `api_key`, `secret`, `signature`, `password` and the like) is refused at the preview, the save and the sign-in's start: "<name> in the URL's query looks like a credential; send it as a header instead (Headers)."
60
+ - The server's own URL goes through the same private-address rule as its sign-in's endpoints, at the preview, the save, the tools refresh, the sign-in and, on the runner, every request, dialled at the address checked: a private-network host only when the owner lists it, over https; link-local and cloud metadata addresses never; a 6to4 address judged by the IPv4 address it carries.
61
+ - A claimed run's calls follow the server's row: a server removed since is refused unsent, a replaced credential is the one sent, a token another run refreshed is the one sent, and an access token near its end is refreshed before the call. Removing an OAuth server revokes its refresh token at its authorization server (RFC 7009, best effort).
62
+ - Every credential value a run's MCP opens, refreshes or mints joins the run's one redactor, so it is cut from its logs and errors as well as from its tool answers.
63
+ - Orgo finds its workspace from the saved key: `ORGO_WORKSPACE_ID` is no longer required. With it unset, an Orgo provider reads the key's account's workspaces (`GET /workspaces`, deleted ones skipped) and uses the one there is; with several it refuses in words naming them, and with none it says to make one at orgo.ai. Settings → Computers offers the Orgo workspace as a picker by name once `ORGO_API_KEY` is saved, and saving a pick stores its id under `ORGO_WORKSPACE_ID`, read through the new `GET /v2/computers/{provider}/choices` (`listComputerChoices`). A provider view lists such keys under `picked`.
64
+ Breaking: Orgo's `workspaceId` option is optional (`COMPUTER_ORGO_WORKSPACE` too, for the conformance run), and a server whose Orgo account has several workspaces and no `ORGO_WORKSPACE_ID` saved now has its Orgo runs refused until one is picked in Settings → Computers.
65
+ - The outbound webhook (`/v2/settings/webhook`) keeps everything in the one store, on SQLite and Postgres alike, and refuses a private address: the server no longer reads or writes `DIR/webhook.json` or `DIR/webhook-outbox.json`, so a webhook saved before this release is not set and its pending messages are not sent. To upgrade, let pending webhooks drain, then set the webhook again with `PUT /v2/settings/webhook` and give your receiver the new secret it shows once; the two old files can be deleted. A receiver on this machine or a private network is refused unless the operator sets `AGENTRUN_WEBHOOK_PRIVATE_TARGETS=1` where the server starts.
66
+ Its URL is a store setting, its secret is sealed in `trigger_settings` (on a runner's redaction list, as the other sealed settings are, and a secret replaced or removed stays on it across restarts), and its messages, their tries and the run notices it told are in the channel tables (Postgres migration 0006, SQLite schema version 8). The server says once at its start when an earlier build's file is left (`condition=webhook_left_over`).
67
+ The run notices follow the store's run-change feed, so a run that starts and ends between two reads, or whose end cannot be read for a while, is still told once.
68
+ A URL is refused at its `PUT` when it is on a private network or this machine, by address or by what its name resolves to, and each try dials the address it checked. A `PUT` that changes the URL makes a new secret and shows it once (the same URL keeps its secret, and one that no longer opens under the server's key is replaced and shown); the URL and its secret go live together, so a `PUT` the store refuses leaves the webhook as it was. `GET /v2/settings/webhook` and the log show the URL's origin and its last four characters, never the whole URL.
69
+ A run that asked a question sends `run.needs_input` once for it: the answer's take clears the run's waiting summary for a reopened run that parked on a question too, and a wait's `webhook-id` comes from its ask, never from the row the run shows last.
70
+ - An owner can drive a run's computer from anywhere, and a run can hold its computer for its owner.
71
+ - POST /runs/{run_id}/computer/call `{ method, params }` sends a running run's sandbox, desktop or phone one computer protocol call and answers what the computer answered, verbatim. The call is a command row the run's runner answers: it waits while a person holds the computer, as the agent's calls do, and a runner beside the server answers in about 10 ms (a runner in another process finds the row at its next command poll). A method outside the computer protocol is refused. The call's params (text it types, say) leave the store once the call settles. The route takes the owner's token or session, never a run's.
72
+ - `hold: true` on POST /agents/{agent_id}/runs (an agent's run, not a workflow's) claims the run's computer and waits, the agent not started, until POST /runs/{run_id}/start; after the agent ends, the run keeps the computer until POST /runs/{run_id}/computer/release, or until `hold_minutes` (default 30, at most 120) pass with no call from the owner. A stop of a held run ends its agent and keeps the computer the same way, and the run ends `stopped` at the release; a cancel ends the run at once and lets the computer go. GET /runs/{run_id} says where the hold is in `computer.held`, and the Timeline says each change. A benchmark sets a task up, starts the agent, checks the computer after, then lets it go.
73
+ - Each tool call's computer protocol calls are on its `tool_result` Timeline row as `computer_calls`: method, outcome, time, error code, and for `ui.act` each step's kind, route and readback. No param value, no screenshot bytes, no typed text.
74
+ - GET /runs/{run_id}'s `computer.state` reads `taken_over` while the owner holds the run's desktop or phone, and `ready` again after the hand-back.
75
+ - **Breaking for a SQLite data directory.** The store's SQLite schema is now version 11 (a command row keeps its answer). A server or runner of this release refuses a data directory an earlier release set up, with `SchemaVersionUnknown`: start this release on a new, empty data directory and add your agents, MCP servers, keys and sign-ins there again, or keep the old directory with the earlier release. A Postgres store migrates itself (migration 0009).
76
+ - Settings → MCP servers has a Composio preset: give a Composio API key, a toolkit and the actions to grant, and the server has Composio make a managed MCP server and saves it as an ordinary MCP server with the key sealed as an `x-api-key` header. It is `POST /v2/settings/mcp-servers/composio/tools` (the toolkit's actions) and `PUT /v2/settings/mcp-servers/{name}/composio`, both the owner's session alone; a toolkit that needs the person's account answers `connect_url`, Composio's page to connect it.
77
+ - Composio events start runs through a webhook trigger: `signature: "composio"` checks Composio's delivery (its secret as the whole string, not a decoded `whsec_` key), keys each firing by `webhook-id` and takes `accept` rules by the body's `metadata.trigger_slug` (else its `type`, for Composio's account events such as `composio.connected_account.expired`), with `where` pointers into `/data`. Register the trigger's `hook_url` as Composio's webhook subscription and give Composio's secret with `POST /v2/triggers/{id}/secret` and a `{secret}` body (a composio trigger is made with none, none is made for it, and every request is refused until one is set). The console's trigger page has a Set secret button for it. It is sealed and cut like every trigger secret.
78
+ - Agent37 serves the desktop setting: `create({ kind: "desktop" })` makes a Linux desktop (`screen`, `input.pointer`, `input.keys` beside the shell) whose Xvfb the adapter starts through the daemon as the tool user. Its default image is `agentrun-box` (`AGENT37_BOX_TEMPLATE`), our box image plus Xvfb as a template of the key's own workspace: `AGENT37_API_KEY=... node packages/computer/box/build-agent37.mjs` builds it once per workspace, and again only when the recipe changes. The conformance module takes `COMPUTER_AGENT37_KIND=desktop`.
79
+ - Agent37 is a computer provider (`agent37`, kind `linux` for the sandbox setting), on the shared machine-host adapter: an Agent37 instance on type `vm` (default) or `default` (gVisor), made with no network, auto-sleep off and no public port, and read back. It takes two keys, `AGENT37_API_KEY` and `AGENT37_SSH_KEY` (the private half of an SSH key registered on the same workspace, its contents), and runs every command over SSH through the platform's tunnel with the host's own `ssh2` (pinned 1.17.0 as a root devDependency). The conformance module reads `COMPUTER_AGENT37_*` behind `AGENTRUN_COMPUTER_LIVE_AGENT37=1`, and `dist/conformance/sweep.js --provider agent37` sweeps a live run. Kind `desktop` waits for the box image as an Agent37 template.
80
+ - A desktop's or a phone's screen is watched and taken over live, as the browser's is. The runner opens its view as it claims the run's computer: `openComputerView` (computer-live.ts) starts the computer's viewer on loopback and hands it over in the store under the run's claim (`computer_viewers`, the token sealed); a stale claim is refused `fenced`, and an open that fails is refused `failed` in words with nothing left listening. Its WebSocket speaks the browser viewer's protocol: hello, ready with Take over, the screen's frames (JPEG or PNG) each sent once the viewer acked the one before (a frame held back for a slow viewer is replaced by a newer one, and the replaced frame is acked), and Take over and Hand back through the run's hold, the same take-over and hand-back the routes write. Input is mapped by one `createActionMapper` per take and reaches the computer only while the person holds it, as the run's own hold says at that moment, so input stops as soon as a take ends; otherwise it is answered `held` ("Take over to drive."), and what a desktop refuses (ctrl+alt+F1, ctrl+alt+Backspace) comes back in words. The mouse buttons a take holds are let go when the viewer loses focus, before a hand back, and once when a take ends on the run's side or the viewer goes. One viewer per computer; a viewer that goes mid-take hands the take back (`away`). The runner now journals the hold of every run's desktop or phone (computerForClaim hands it to the run's spec), so `GET /v2/runs/{id}/computer` answers live with `kind` `desktop` or `phone` and who drives, and the viewer's own page (Take over and Hand back; a phone's back, home and recents) is served under `/v2/runs/{id}/computer/live/`, its socket proxied to the runner's endpoint with the same checks as the browser's. `@parcha/pi-browser/live-view` exports its WebSocket server and token helpers for it. A desktop or phone run whose screen is not open answers `GET /v2/runs/{id}/computer` `none` with its kind, no longer `off` with "this run's agent has no computer" (#2170). The viewer types from a phone's or tablet's soft keyboard too (its `beforeinput` text, deletes and Enter), with a desktop's keys still sent once. Under `--faux`, a run on the faux desktop starts and is claimed by the runner (its start check and the runner's claim read `--faux`'s computers beside the package's), and its screen is watched and taken over through this same viewer; the faux desktop's old page under `/faux/desktops/` is gone.
81
+ - A capped run now wraps up instead of running into its cap with no answer. It keeps back enough to answer: one typical step (its own answers' typical cost) and one final answer at its least, as the cap prices the main model's next request. Once its spend, plus what its requests and paid steps still out are held at, leaves less than that, the run's tool gate refuses every tool call a model makes, in every conversation of the run and on every harness, with one fixed message: "Budget nearly spent: stop calling tools and answer now from what you have." A call that would start a child conversation (a `subagent` spawn) is refused the same way. Children already working are not cut: they get the same refusal and answer. Model requests continue, so the parent's final answer lands, and the cap stays the last line. A fan-out keeps room for each conversation to answer, because its holds count as taken. A simple run uses its cap up to its last step and answer. Its one known miss: a request that writes to its max output can still leave no room for the answer; then the run pauses for a raise rather than overspend. The figure is read from the run's booking records at each call, so a restart or a moved claim holds the same line, and a raise of the cap moves it.
82
+ - Upgrading: this changes how a capped run ends. A run that used to end `spend_cap_reached` (or pause at its cap) after its in-flight reservations filled the cap now stops calling tools once it can afford only a step and an answer, and answers from what it has. A run with no cap is unchanged.
83
+ - A learned workflow can hold decision nodes (judge, pick, sift, a route by question, an ask predicate, a verify), under the run's spend cap. Each decision is admitted on the run's cap before it is sent, priced the way a workflow agent's decision is, and booked at what it charged. If the cap has no room, the decision is never sent: the run pauses at the cap, and the `learned_workflow` call says why. A decision node's provider (the one it names, else the default, `jev`) is checked against the run's tool settings: each provider is a settings key of its own (`jev`, `parallel`, `openrouter`), allow by default, allow or deny, and the published tool settings schema names them. Set to deny for the agent or on the server, the workflow is refused before any node runs, in the gate's words. A workflow agent's own decisions read no such setting. A decision's spend is in the run's cost (its row, its view, `/v2/usage`, and the runs list's cost while the run is going or paused), beside its model requests and paid tool calls, and a decision that reports no cost leaves the run's unknown, never the amount the cap held for it. The runner hands the run the keys of the providers its learned workflows name, so a decision node is answered by the run's decision provider under its cap. A denied provider refuses the workflow in the gate's words, and one the server has no key for refuses it as a provider this host does not have; either way nothing is sent. A decision node that sends images reads them through the run's own folder (on a run's disk in Mode 2), as a workflow agent's does. A run's new workflow draft with a decision node is checked against the server's decision providers, so it is proposed and graded like any draft, and a retired one is restored the same way.
84
+ Upgrading: nothing to do. To keep an agent's learned workflows from asking a provider, set that provider's id (`jev`, `parallel`, `openrouter`) to deny in the agent's tool settings.
85
+ - An agent that learns can learn from rows: `POST /v2/agents/{id}/learning/batches` takes rows, the columns to give the agent and the one that holds the reference answer, and a cap on its runs (`max_cost_usd`, required: each row's run, its look-back and its review's turn are capped at what is left, strict, so no request passes it on a cache miss; the grade of what a row's run learned runs under what that run's cap leaves and counts in the batch's cost, and a grade that doesn't fit is skipped, never run past the cap), and the server runs the agent on each row in order with learning on. When a run has answered and its learning has settled, the server sends it the review the learning bench sends, `Review: the reference answer is "X"; you answered "Y".`, the same words right or wrong, so it looks back again. One batch runs at a time per agent, a row starts only when what is left of the cap covers the mean of the rows done, and the batch stops `cap` there (or `cost_unknown` when a row's cost is not known, `learning_off` when the agent stops learning: learning is checked before every row). Its progress is the server's: `GET .../learning/batches/{batch_id}` answers rows done, right or wrong per row, the path each run took, the lessons kept (notes, skills, workflow revisions) and the cost so far, after a reload or a restart (a running batch takes up at its first unfinished row, and a row is counted done only once its review's turn completed); `POST .../cancel` ends it, its row's run stopped first. Its reads show what it saved cut of the server's secrets and the agent's sign-in pointers as they are now, as the agent's learning reads are, and withhold it (403) the same way when one of the agent's sign-ins can't be read here. The Learning tab's "Learn from a CSV" uploads a CSV, takes the input and answer columns and the cap, and shows that progress.
86
+ - An agent's Learning tab heads with its latest eval record: its held-out accuracy with the 95% Wilson interval and n, and the cost a task with learning against by hand; "Not measured yet" until one is recorded. Under the cost per run, on its run axis, the execution mix shows the share of runs each path took, block by block.
87
+ `POST /v2/agents/{id}/learning/evals` appends a record of a held-out test's counts (`name`, `label_source`, `n`, `correct`, `cost_per_task_usd`, `baseline_cost_per_task_usd`, `learned_revision`); the server computes `accuracy` and its Wilson `ci`, and refuses a body that sends either. `GET` answers the `latest` and the list, newest first, the latest 20. Only what was posted is shown: nothing is computed from the agent's own runs. `agentrun learning record-eval --body @eval.json` and `agentrun learning evals` do the same.
88
+ - A run can start with `learning: "use"` (POST /agents/{agent_id}/runs and POST /runs). It starts from what its agent learned (notes, learned skills and learned workflows, as a run that learns is given them) and keeps nothing: no end-of-run turn, no proposal, no grade and no merge, at its end or after a follow-up. Its `learning` reads `seeded` while it runs, then `dropped` with the new reason `use`. Many runs of one agent then read one learned state, frozen, however many run at once (a held-out evaluation). A server whose learning is off still gives it nothing. Any other value is a 422 at the field.
89
+
90
+ A follow-up message to a finished run of an agent that learns now learns from the follow-up. Before, the run answered the message, but its new end reused the first end-of-run turn's answer, and the store dropped the new proposal and learning run, so a reviewer's correction never reached learning. Now each end after a follow-up is a new round. It asks the model again, with the follow-up in what the person said and a prompt saying it looked back before. It keeps its own proposal beside the earlier rounds', and its own learning run (`<run>-learning-<n>`) grades and merges it. The run's `learning` reads its newest round. A later round's proposal also keeps `follow_up_usd`: what the follow-up's own turn cost, kept apart from the job and the look-backs.
91
+
92
+ - **Breaking for a SQLite data directory.** Upgrading: the store's SQLite schema is now version 7 (a run's learning is kept by run and round). A server or runner of this release refuses a data directory an earlier release set up, with `SchemaVersionUnknown`: start this release on a new, empty data directory, or keep the old directory with the earlier release. A Postgres store migrates itself (migration 0005).
93
+ - An agent's Learning tab replays how its learned workflow changed: the workflow it runs now is drawn as the console's workflow graph, with a step for each revision that changed it. A step shows the graph as it was then with each node marked NEW (first in that revision) or EDITED (its prompt, code, inputs or tier changed), one line saying what changed, and the revision's date and author. Play steps through them; the slider and the arrows go to any one.
94
+ `GET /v2/agents/{id}/learning/workflows/{name}/revisions` (`learning/1`) answers the latest revisions (`?limit=`, at most 50), oldest first, each with who made it, when, why and the workflow.json text it had then; `agentrun learning workflow-revisions <agent> <name>` prints them.
95
+ - An MCP server whose sign-in lets no app register itself (GitHub's hosted MCP, whose login has no dynamic client registration) is no longer a dead end. Starting its sign-in with no Client ID is 422 on `client_id`, reason `registration_unavailable`: "<host> doesn't let apps register themselves: create an OAuth app with that provider and enter its Client ID and Secret here". GitHub is named for its hosted MCP. A preview of such a server says so up front, as `details.oauth.registration: false` on its `auth_required` refusal.
96
+
97
+ The console's MCP server form acts on either one. It turns to Sign in with OAuth, shows the Client ID and Secret fields and puts the cursor in the Client ID, and says what to do: create an OAuth app with the provider, using this server's callback URL, then enter its Client ID and Secret. A saved server whose sign-in is refused this way offers "Enter a Client ID".
98
+ - A learned note must hold beyond the one input it came from, and a run past the learning budget reads the notes that bear on it whole. Before the grader, one Jev question per new note (the Jev model and keys decision nodes use) asks whether it states a method, a source, a fact or a preference that holds for the job's other inputs; a note rated below 0.5 (`AGENTRUN_SERVE_LEARNING_GENERAL_THRESHOLD`, 0 to 1) is dropped there, its reason on the verdict, and when Jev cannot run the grader reads every note. The grader now answers `general` for every item, and an item it says is not general is never kept. Past the budget, whole notes take the room before rule lines do, so an agent with hundreds of notes no longer gets one line per note and nothing whole; the notes the section leaves out are named in the run's log and kept on its launch (`learning.notesLeftOut`). A learning budget of 0 now serves no notes, and a run whose notes none fit its budget is told they are there (and, with the read tool, where) instead of "Nothing learned yet."; an agent without the read tool gets the room its line would take. When Jev cannot run, the run's learning says so and the grade's cost is unknown.
99
+
100
+ Upgrading: nothing to do; set `AGENTRUN_SERVE_LEARNING_GENERAL_THRESHOLD=0` to keep every note the grader passes.
101
+ - The pi family and Chord move from 1.5.0 to 1.5.2 together (pi-ai, pi-agent-core, pi-coding-agent, pi-codemode, pi-durable, chord). Pi's model catalog now lists `claude-fable-5-2`, so a pi run can use it. Chord's package root no longer exports `Context` or `JsonValue`; they come from `@earendil-works/chord/context` and `@earendil-works/chord/json`, which a host that imports them from the root must follow.
102
+ - Applying a template that grants a GitHub tool (release-notes' `issue_write`) on a server whose GitHub MCP server runs on the GitHub App now warns from the App's real permissions, not from what its manifest asks for. Apply reads each installation's own permissions map from GitHub (`GET /app/installations/{id}`), says per tool and per account what is missing ("has Issues: read on acme"), and says nothing when the installation holds it. When the map cannot be read (no App connected, none installed, GitHub out of reach), the warning says the check could not be made (`reason: not_set_up_here`) and never states that GitHub refuses the tool. The reads run four at a time within one four-second limit, so many or slow installations never hold Apply's answer (the agent and triggers are already created; only the warning is best-effort): an account not read in time, or whose map was refused or malformed, is named in a `not_set_up_here` warning as one the server could not check, never passed as holding the permission. Before, an App whose settings showed Issues: read was told it could not write issues even where the call went through.
103
+ - Setting a tool to allow now answers a call of that tool that is waiting for its owner's approval. Before, if the setting moved to allow while a call waited (say the second of two calls in one answer), the run's next pass ran the call on the setting and never closed its ask, so its Timeline rows read "Not run: the run ended while it waited" and "Withdrawn when the run ended" for a call that ran. Now the ask closes with a row reading "Allowed by the tool's setting", the call runs, its outcome reads "ran, as its setting allows it", and the person is never asked again. A tool set to deny since is still refused, and a deny the person already sent still stands. The same holds on pi, Claude Code and Codex runs.
104
+ - A run near its cap is told to wrap up again, on the runner, for every harness (part of #2080).
105
+ - Once what is left of the cap is about one typical request, the run's next model request tells the model, inside that request, to finish now ("This run's budget is about $X, …"). The note goes to the model only and never into the run's transcript.
106
+ - It is worked out from everything the run has spent and holds, including requests still in flight. A Claude Code or Codex run whose requests overlap is told on time, not late or never.
107
+ - It is told once per cap. A raised cap is told again when the run comes near the new cap.
108
+ - It composes with the cap's wrap-up as one story: the note tells the model what is left, and once what is left no longer covers what the run keeps back to answer (one typical step and the least answer), its tools stop. The note also comes due on that same rule, so the model is told no later than its first refused call.
109
+ - Kernel: `requestFigures(request, mode, now)` in the cap gives a main-model request's least, step-0 typical and worst cost, which the run's reserve is priced from.
110
+ - The Timeline shows the note as AgentRun's own row ("AgentRun: This run's budget is about $X, …"), written only once a request carrying it has been admitted.
111
+ - Kernel: `ModelPort` and the model proxy's hooks gain `noteReturned?(note)`. The proxy calls it when a request that took the host's note leaves before its admission (its client gone, a refusal, an error), so the host can give the note to the next request at once.
112
+ - Kernel, a change for anyone reading or implementing `ModelBooking`: it gains `heldUsd(): number | null`, the holds of the session's requests still in flight. It returns null (unknown, never 0) while one of them has no hold, and a reader must treat null as unknown. `spentUsd()` still counts answered requests only, so the run's total is `spentUsd()` plus `heldUsd()`. It also gains `boundUsd(): number`, what a cache miss adds to those holds (0 with none): the run's tools stop on the holds plus this, so the note counts both.
113
+ - A runner whose claim commit the store's Postgres left unanswered no longer leaves the run stuck for the lease. The claim may have landed, so the runner reads back what it holds (`runs.claimsOf`, judged on the store's clock), retrying the read with a doubling wait, and releases at once any claim of its own that nothing holds, fenced on its epoch, so another runner (or this one, on its next poll) takes the run. A release answered Unanswered is read back the same way and sent again only if the claim is still held at its epoch.
114
+ - A Claude Code, Codex or OpenCode run whose runner was killed mid-turn no longer leaves the dead claim's files on the runner's disk. The killed claim never ran its own sweep, so its folder (`<data>/scratch/<agent>/<run>/harness/<epoch>`, the CLI's home and session state) stayed after the run ended. Now each claim of a run removes every earlier claim's folder of that run when it starts and again when it ends, and the run's scratch folder goes once its last claim ends. A later claim's folder and other runs' folders are left alone. A sweep that is itself cut off partway is finished by the run's next sweep. An agent's emptied `scratch/<agent>` folder now goes with its last run's.
115
+ A claim that fails in its setup (its computer cannot be had, its install fails) now still sweeps the earlier claims' folders, and a runner sweeps at its start the scratch folders of runs that ended after their runner died (the run's final epoch and below, at most 500 run folders per start, said in the runner's log).
116
+ - A claude-agent or codex run's turn is visible while it runs, as a pi run's is: `GET /runs/{id}` reads `working` with a `last_progress_at` that advances as the turn writes calls and results (never `working`/`idle` with none), and the model's answer is on the timeline as soon as its request is over, not at the end of the turn. A turn that fails with a message queued behind it keeps its error in the timeline and goes on to the queued message's turn, so the run ends with that turn's status. A turn the harness ends interrupted on its own, with no stop and no error, leaves the run `input_required` (a message goes on) instead of failing it with "the run gave no answer (interrupted)". A cancel accepted before such a stop is stored still wins it: the run ends `cancelled` and takes no further message.
117
+ - On Postgres, a command written while another command of the same run was still being written could be skipped by the runner holding the run: the two rows could commit out of id order, and the runner, which reads the rows past the last id it handed on, never saw the lower one (not at the next command poll either, so it waited for the run's next claim). Every write of a run's command row (a command, a trigger's message, a reopen) now takes a per-run lock first, so a run's rows commit in id order, as they do on SQLite.
118
+ - Settings → MCP servers in the console offers GitHub App as a credential, beside None, Bearer token, Headers and OAuth. Choosing it fills GitHub's hosted MCP address (the only one a GitHub App server may have), takes optional static headers, and saves `auth: {type: "github_app"}`; a server saved that way, through the API or the console, shows as GitHub App and is changed as one instead of falling back to None. A preview or save with no GitHub App connected says so in words and points to Settings → GitHub.
119
+ A template's Apply screen now says, before Apply, when an MCP server the template names is not set up here: a required one says Apply is refused until it is, an optional one says the agent is made without its tools, and each links to the add form with the server's name filled (the `github` server opens with GitHub App chosen), at `#/settings/mcp?add=<name>`. Applying the code review template no longer leaves an agent without its GitHub tools unseen.
120
+ - The console reads on a phone held sideways and in half a page. On a short screen (a phone at 844x390 or 932x430) the desktop sidebar gives way to the top bar and its menu, as in portrait, and a run's page scrolls as a whole, so a run waiting on a question shows the question, the Report and the Timeline in full instead of a body 0 px tall. Where a run's header is narrow (the Playground's Response panel at about 1500 px), the title keeps at least 16rem and its actions (Raise the cap, Stop, Cancel run, Archive) wrap onto their own row instead of squeezing it to a letter; the title shows two lines at most and its full text on hover.
121
+ - A call refused before it ran no longer reads as an error. Its `tool_result` row on `GET /v2/runs/{id}/timeline` now carries `refused: true` (an additive field: absent on every other row, `tool_status` stays `failed`). That covers a tool set to deny, a pin, a person's deny, or a call held for an approval the run stopped or ended without, on pi and on Codex and Claude Code, whose refused calls now read "Refused: …" as pi's do. The console shows it with a neutral Refused chip, never the red Error chip.
122
+ Also in the console:
123
+ - status badges keep their words on one line at their own width, so a narrow window no longer cuts "Input required";
124
+ - web_search's `auto` help names Parallel: the harness's or the model provider's own search, else Parallel where the server holds its key, else keyless Exa.
125
+ - Three small wording and rendering fixes. An opened Answer row on a run's Timeline renders its Markdown as the Report does (links clickable, code fences as code blocks, no raw HTML) in place of raw fences and `[text](url)`; the New agent Computer step says "This computer adds these tools: ..." in plain text in place of an uppercase "THE LOOP GETS"; market-monitor's `lookback_days` help says what the number does (how many days back a run looks, kept equal to the gap between runs) instead of "when you change cron".
126
+ - A runner's close, or a lost claim, while a resumed pi run opens its session no longer ends the runner process on an unhandled rejection. pi-durable answers a wait registered after its signal aborted with a promise it rejects at once and hands back only after the commits before it are published, so on Postgres that rejection could go unhandled: the standalone runner exited 1 on it with its claims left to lapse, and a runner beside the server took the server down. Every wait on a pi-durable submission or task (the pi turn, a steer's turn, a subagent, a workflow node and task, a host tool's waitForTask) now runs on a signal of its own that never aborts and is cut by the caller's signal here, so the turn ends interrupted as before. A waiter pi-durable made and never handed back because its Session failed (a commit's storage error) no longer rejects unhandled either.
127
+ - A run's answer is its last turn's own: a follow-up whose stop shows no text (a thinking-only or contentless stop, a `/compact`) now reads `result.final_answer: null` instead of the previous turn's answer. A cancel reads `cancelled` from the `202` on: `GET /runs/{id}` reports the run as cancelled as soon as its cancel is written, before the runner has cut the turn, never `working` or `completed` in between. The run stays unsettled (`ended_at` null, `poll_after_ms` 1000, its timeline not final) until the runner's end is stored, and a normal end that commits with an accepted cancel still waiting is the cancel's: the run ends `cancelled`, never `completed`.
128
+ - A web search on a GPT-6 model (gpt-6-luna, gpt-6.1-sol, gpt-6.1-terra) is booked at OpenAI's $0.01 a call, as on GPT-5. Before, its search had no known price. A pi run's native web_search on a GPT-6 model under any spend cap was refused before it was sent ("the size of the next model request's input is unknown, so the run's cap cannot be kept"). A Codex run with `webSearch: "live"`, or an uncapped pi run, booked an unknown cost for any response that searched.
129
+ - A run's grade of what it learned runs under what the run's cap leaves, so a capped run never goes past its cap by its grade.
130
+ - When a capped run that learns ends, its learning run gets its own cap: the run's cap now (a raise counts), less what the run spent (its job, its follow-ups, every look-back) and what each earlier round's grade spent. An uncapped run's grade is capped by nothing, as before.
131
+ - Each grader call is checked against that cap before it is sent, at its worst case: its whole input uncached and its whole output bound. It is never cut down to fit, so a verdict is never lost to a short answer.
132
+ - A grade that doesn't fit is not sent. The run's learning ends `dropped` with reason `no_budget` and the words "Not graded: no room under the cap." (or "Not graded: the grade's cost can't be kept under the cap." when its spend or the grade model's price is unknown), which the run page shows. It is a skip, not a failure, and spends nothing.
133
+ - The generality check's Jev requests count as the grade's spend under the same cap. Before they are sent, their worst case is checked against what the cap leaves; a check that doesn't fit is skipped, and the run's learning says "The generality check had no room under the cap, so the grader read every note." Each grader call's room leaves out what the check spent, and the grade's cost is the check's dollars plus the grader's.
134
+ - A message sent to a run right after `POST /v2/agents/{id}/runs` answered (`POST /v2/runs/{id}/messages` before the runner had sent the run's input) now lands after the run's own input. Before, on a pi run the runner placed the message as the session's first prompt and sent the input after it: the Timeline showed the message first and the model answered the two in that order. The runner now holds such a message until the run's input is sent, then places it into that turn as any later message. Claude Code and Codex runs already ran it after the input's turn; a test now holds all three to it.
135
+ - A pi run whose request was stopped or cancelled mid-answer now reads its cost as unknown with what is known so far, never $0: the request is marked when it is sent and its end is marked when it did not answer at a price. A workflow that parks at its spend cap names the node it parks at, also for a map's items. A map whose items are held at the cap at once parks only after every item's held end is committed, so the raise resumes them instead of failing on an effect left unknown, and a polled call held for a raise has its poll window moved back by the time it was held.
136
+ - A web_search setting of deny or ask now applies to a Claude Code or Codex run's own web search at its next search, including a run that started while it was allow. Before, the setting was read only when the run started, so a run that started with native search kept searching after the setting changed.
137
+ - Claude Code: each WebSearch asks the run's gate before it runs, as a host tool's call does. A deny refuses it in the gate's words. An ask parks the run on the person with nothing searched; once they allow it, the model's next search with the same query runs once, with no second card.
138
+ - Codex: its search runs inside the provider's model request, so its proxy reads web_search's setting before each request and offers the provider its search only while the setting is allow. A failed read offers no search.
139
+ - `SessionIO.permission(tool)` (agentrun-kernel) is the host's setting for a harness's own tool at the time of the read. The runner reads it from the store each time. `ProviderPolicy.apply` may return a promise.
140
+ - A runner run whose plane resolves web_search to native now gets the harness's own search (#2458). The runner had built the run's environment without its plane, so Claude Code and Codex runs on a runner never had it on.
141
+ - A run's context reset and its summarized older context show on the Timeline with no held key in their text: the new context and the summary are words from the run, redacted by the host before the row is cut, as every other row a run's words reach.
142
+ - A web_search that resolves to the model provider's own search works again on the runner for pi (#2458). It used to answer "web_search has no model to search on" every time:
143
+ - A pi run's own web_search on an Anthropic or OpenAI model. That is what `auto` picks for pi, and `native` too. Each search now goes through the run's model proxy with the provider's search tool, and its searches are booked at the provider's price on top of its tokens.
144
+ - A learned workflow's call node whose web_search resolves native, on any harness.
145
+
146
+ Each run's search uses that run's own model route, never one shared by the whole process. Hand-written workflow agents were not affected: their web_search never resolves native. Both harness packages now export their `withWebSearches` price wrapper, and the Codex one its `webSearchUsd`. A claude-agent or codex run's own search is not switched on by this change.
147
+
148
+ A capped run holds a hosted search's fees with its tokens before the request is sent, at the most searches the request allows, so the fees can't pass the cap. The kernel's model proxy takes a policy's `feeMaxUsd(body)` and holds it as the request's `feeUsd`; a fee it can't bound leaves the request unmeasured. The proxy also hands `usageOf` the sent body as a second argument, so a pi request on OpenAI's Responses that offered no search reads 0 searches from its body, even when its answer names a search call.
149
+ - A gateway model written with its version's separators flipped (`gpt-5-4`) is priced when the catalog's entries differ only in a long-context `tiers` table: they are compared on their base price, and the entry that carries `tiers` prices it. Different base prices, or different tiers tables, still leave it unpriced.
150
+ - The server's log prints `event=run_started` (run, agent, kind) when a run is first claimed and `event=run_ended` (run, agent, status, cost_usd) when it ends, again after the run engine's removal dropped them. Each run has one of each, a reclaim after a lost runner prints no second start, and `AGENTRUN_LOG=quiet` keeps them. The runner beside the server writes them to the same stdout; a separate `agentrun-serve runner` process writes them to its own.
151
+ - A run started by hand (the console's Send request, `POST /agents/{id}/runs`) now reaches a GitHub repository. Before, only a run a GitHub trigger started, or one whose first message held a `https://github.com/<owner>/<repo>` URL, had one, so every github MCP call of any other run failed with "this run names no GitHub repository". The start body takes an optional `repo` (`owner/name`), which must be one the agent is bound to (a repository its GitHub triggers' `accept` names on `/repository/full_name`): another is 422 in words naming the repositories the agent is bound to, and a run's reach never grows past its agent's triggers. Left out, an agent bound to exactly one repository takes it, unless the first message names a repository itself. The console's start form has a `repo` field. The refusal a run with no repository gets now says to start it with a repository or bind the agent to one, and no longer reads as a connection problem.
152
+ - A capped run on the runner is priced the way the cap's `expected` mode says: each model request from the previous request of its session. The cache that request read or wrote counts at the cache-read price, and only its other input plus what the body grew by since counts at full price. Before, the runner gave the cap no previous request, so every step was held as a whole cache miss, and a run needed a cap several times what it spent (a 5-step Sonnet run that spends $0.04 needed $0.11). `strict` mode is unchanged: every token uncached. A side call (a title, a summary) is priced as a cache miss, as a host's own request already was.
153
+ - A pi run's cost counts every request it made. A learned workflow's model node, or a request on another model than the run's, is booked beside pi's own answers as a side call, and the run's view, its Timeline usage row and its stored cost now add it, where they read pi's answers alone (three requests booked at $0.000014 each read $0.000028). A request a lost runner left unanswered is booked cut once, however many of the next claim's bookings read it open: its hold and bound count once toward the cap, and its cost is unknown once, where a second booking could count it twice. A pi run's stored cost is now its booking's, as a CLI run's is: a run cancelled or stopped while its model's answer streamed reads its cost unknown (the cut request may be billed for what it streamed), never the $0 its cut answer carried.
154
+ - The console's Screen tab no longer says "Waiting for the browser" for a run that never opened one. `GET /v2/runs/{run_id}/computer`'s `none` answer now carries `session`, read from the run's journal: `unopened` (no browser step so far, so a run that only used `web_fetch` while it waits for its person), `opening` (a browser step that opens one has no result yet; a desktop or a phone from the run's start until its screen is up) or `closed` (the run opened one, which is not up now). The tab waits only while it is `opening`; it says "This run hasn't opened its browser. The agent's page shows here if it opens one." for `unopened`, that the browser isn't open now for `closed`, and "This run didn't open its browser." on an ended run that never did. A desktop or a phone is said in its own words.
155
+ - With accounts off, the API token can't write secrets. The console's cookie on a server with no accounts was a MAC of the token, and the printed link carried the token, so anyone holding the token (a run's process, an MCP client, a script) could compute that cookie or fetch it from the link, and save, replace or remove a secret as the console does. Now each start makes a launch code at random and prints the console's link with it (`Open <url>/?launch=<code>`, never the token); opening it gives the browser a console session, an id made at random and kept by the server, and only that session (on a loopback-bound server) writes secrets. A `?token=` link signs no browser in, and a cookie computed from the token is no session. The session lasts until the browser closes or the server stops; the next start prints its own link. A wrong launch code is logged as `auth_failed reason=wrong_launch_code`.
156
+ - `agentrun-serve import` titles a Claude Code run the way Claude Code shows it: the person's `/rename` (`custom-title`), else its own `ai-title`, else (in older files) the `summary` of this session's last message. A session with none is titled by the person's first words, never by a slash command's `<command-name>` markup, its `<local-command-stdout>` output or the "Caveat:" preamble before it. A session with no words of the person's at all (only `/resume` and `/model`, or a Codex or pi session kept by `--all`) is titled "Session in <folder>" in place of the markup, "codex session" or an empty title; when a held key touches the folder's name (one across the folder and its parent included), it keeps the generic "<source> session" and names no folder. An imported run with no answer no longer keeps a slash command's markup as its summary.
157
+ - A server started on a store an earlier release set up is still refused, but the refusal now says what to do: start on a new, empty data folder (`--data <new folder>`, with the Docker image's flags; on Render the Docker Command must be the whole start command, as it replaces the entrypoint too), add agents, MCP servers, keys and sign-ins again, and keep the old folder to stay on the earlier release; a store a later release set up says to run that release or later.
158
+ - A Timeline row for the agent's words that open with a fenced code block (a JSON answer written as ```json … ```) previews the code itself, on one line, up to the summary's 500 characters. Before, its summary was the fence's first line, so the console's Answer row read only "json…". The row's text, and the run's answer, keep the words whole, fence included.
159
+ - Setting a tool to allow now ends a run's wait on that tool at once. A run waiting for its owner's approval of a call went on only when someone answered it (or sent the run another message), even when the tool's setting had moved to allow since. Now `PUT /v2/settings/tools` wakes every run waiting on a call whose tool reads allow for that run, with its agent's own tool settings over the server's: the call runs, and its approval row reads "Allowed by the tool's setting". A run whose agent still sets the tool to ask, or whose tool still reads ask or deny, keeps waiting for its person. The same holds on pi, Claude Code and Codex runs.
160
+ - `web_fetch`'s text (a page read directly, `readPage`) leaves out what the page hides from everyone who reads it: an element with the `hidden` attribute, an inline `display:none` or `visibility:hidden`, a closed `<dialog>`, a class the page's own `<style>` sets to `display:none` or `visibility:hidden`, and the common pop-up and display-none utility classes (`mfp-hide`, `modal`, `d-none`, `hidden`, `hide`, `invisible`, `is-hidden`, `u-hidden`). A record page's help pop-ups, hidden until a click, were read as the record, so an agent took their boilerplate ("notice of intent to dissolve") for the company's own. Text only a screen reader reads (`sr-only`, `visually-hidden`, `wb-inv`, `screen-reader-text`) and text marked `aria-hidden` stay in the text: each is shown to someone. Only the page's live style elements count (none in a comment, a script, a template or a noscript, and only those for the screen); a later declaration or rule that shows the element wins (inline over a class, an author `display` over the `hidden` attribute), and where the outcome is unclear (an `!important` mix, classes in conflict, a class a compound selector shows) the text is kept. An element hidden by visibility alone is kept whole when anything shown inside it is set visible again (visibility is inherited and a descendant can override it; one that is itself, or sits inside, a `display:none` element shows nothing); `display:none` is not, so its element always goes. A class or style value is read with its character references decoded. A hidden element that no end tag closes is still read. Pages read through Parallel's extract are unchanged.
161
+ - Serve's last file-era durable readers are gone: `workflow/readers.ts` (`durableDoc`, `readJournal`, `withDurableFile`) and the WAL commit check only it used (`workflow/wal.ts`). Nothing in a source file imported them and none was in the package's public entry point; the tests that held the document store to what it writes now read the file through a small helper of their own.
162
+ - The faux desktop's Take over test takes over only after the agent's first look is done. It used to wait for the run read's computer `ready`, which says only that the run is past queued: on a loaded runner the take-over could land before the first look, that look parked under the person's hold as designed, the second look was never asked for, and the test waited out its 120 s timeout. Each of its waits is now bounded and fails in words.
163
+ - An attached Mac no longer offers exec, files or screen unless its owner grants them: Computerd's connection to the server it is paired with offers no `exec` or `files` group, says the new `screen.capture` feature is off, and refuses every `exec.run`, `files.*`, `tar.*` and `screen.*` call in words saying who can switch it on and where. The owner grants them in `~/Library/Application Support/Computerd/policy.json`, as `{"server": ["exec", "files", "screen"]}` (`files` covers tar). A stdio connection (the app's socket, over SSH or a local harness) offers them as before.
164
+
165
+ A run whose agent's computer is a sandbox on a paired computer is refused before it starts saying to give the agent that computer as the kind it serves (a desktop), no longer to update its driver.
166
+ - The console's Model field is a picker of the models the server offers for the agent's harness, with Custom... for any other. Each harness's list is served in capabilities as `harnesses[].models` (new, required): the current Claude 5 and GPT-6 models in the exact form that harness takes here (`anthropic/claude-sonnet-5-5` on a provider's own key, `openrouter/anthropic/claude-sonnet-5.5` when OpenRouter's is the only key, the host's own `provider/model-id` names behind a gateway, for the harnesses whose wire goes through it), only those the save takes and the harness's run accepts (`harness/3`: capabilities' harness entries now carry `models`), only those the harness runs, empty for a harness that does not run here.
167
+ A model named in a form its harness does not take is refused at save in words that name the form: `On pi, a model is <provider>/<model id>, like anthropic/claude-sonnet-5-5 or openrouter/anthropic/claude-sonnet-5.5: anthropic/claude-sonnet-5.5 is not a model pi runs here. Did you mean anthropic/claude-sonnet-5-5?` The examples are the forms this server's keys run, and the likely id is named when a dot for a dash, a missing provider or a short name ("Sonnet 5.5") makes it obvious. The catalog's own refusal text no longer reaches a person.
168
+ - A capped run's cap counts what its learning spent on its behalf, so the run and its grades never pass the cap together.
169
+ - Before, a follow-up on a run that learned was held only to the run's own spend: an earlier round's grade, which runs as a learning run of its own, was not counted, and the run could end up past its cap by that grade.
170
+ - Every gate of the run now reads its own spend plus what its learning runs took: a grade that ended at its cost, and one still under way at its own cap, the most it may take. That covers the model and paid-tool gate on pi and on the CLI harnesses (claude-agent, codex, opencode), the end of a run whose spend passed its cap, the wrap-up note and the tools' wrap-up, the check before a later round looks back, and the cap each later grade runs under.
171
+ - A follow-up that doesn't fit parks the run for a raise, as at any spend limit. Its budget card counts the grades in what the run has spent. An uncapped run is unchanged.
172
+ - Kernel: `RunSessions.beside()`, when given, is added to the run's spend at each admission (`runBooking`).
173
+ - A pi run whose turn a stop or a cancel cut no longer reads its cost short in the moment between the turn reading over and the runner booking the cut. The run's status reads `input_required` as soon as pi settles the turn's message aborted, but the request the stop cut kept reading as in flight until the runner's end mark landed, which is after the session's proxy sees its upstream end and can come seconds later on a loaded machine. In that window `GET /runs/{id}` and its timeline's usage row left the cut request out of `unpriced`: a first stop read the known sum as the run's whole cost (`usd: 0.0003` where it is unknown), a second stop one charge with no price where there are two. A run read while its newest turn is cut now counts a marked request with no answer or end, and a paid call marked with no charge, as a charge with no price, as a settled read counts them; the end mark landing later changes nothing. A request the stop withdrew before it left reads cut at an unknown price until its withdrawal is written: never less than it cost.
174
+
175
+ ## 0.1.0-beta.36 (2026-11-13)
176
+
177
+ - `PUT /v2/workspace/archil` no longer accepts `diskId`; sending it is a 422. Drop `diskId` and send `{ region, s3Url, image?, keys? }`. In Archil mode there is no server-wide disk anymore: each agent gets its own (#2261). Before you upgrade: in Archil mode, an agent's files from before this release stay on the old server disk at Archil; the agent starts on a new disk of its own.
178
+ - **One disk per agent.** The disk is made on the agent's first run that uses it, in the account key's region, named `agentrun-<server id>-i-<agent id>`. Existing agents get theirs the same way. A run's mount credential is minted on its run's disk, so Archil refuses the token on any other agent's disk. `GET /v2/agents/{agent_id}/archil` shows the agent's disk.
179
+ - **Disk named at launch.** A run's start can name another disk: `"archil_disk": {"disk_id": "dsk-…"}` on `POST /v2/agents/{agent_id}/runs` and on the inline `POST /v2/runs`, for example one disk per customer. The id is the one Archil returned when the disk was made. agentrun never makes, renames or removes that disk. The server reads it at Archil before the run is made: a disk in another region, or one that doesn't exist, is a 422 that names the region, and no run is made.
180
+ - **Disk survives a restart.** The run's launch record keeps the disk it used, so every claim, revoke and reclaim acts on that disk after a restart.
181
+ - **Plan limit.** When Archil's plan disk limit refuses a new disk, the run fails with "your Archil plan allows N disks; upgrade or delete an agent". There is no shared-disk fallback.
182
+ - **Removing a disk.** `DELETE /v2/agents/{agent_id}/archil` deletes an agent's own disk at Archil once no live run of any agent is on it. The agent must be archived, unless it is an inline run's agent, which is never archived here.
183
+ - **API-only mode.** An API-only server (`AGENTRUN_API_ONLY=1`) serves both agent disk routes.
184
+ - The browser tool has one stack: whether the agent's computer is a browser or the tool plane picks the vendor, every session is a browser computer of the computer registry's providers, made at the tool's call under the run's labels, and pi-browser's raw-CDP driver (`cdpDriver()`) drives it. Stagehand drives no run's browser now. Breaking: Browserbase and Kernel browsers now refuse run code and file uploads (browser_upload), and their snapshot is the raw-CDP list; every browser computer uses one driver. Breaking: pi-browser's `./providers/browserbase` and `./providers/kernel` exports and its `@browserbasehq/sdk` peer dependency are gone (a hosted browser is a browser computer provider of `@parcha/agentrun-computer`), and so are Browserbase's and Kernel's `create(spec, { settings })` vendor-field bag and its `BrowserbaseSessionSettings` and `KernelBrowserSettings` types (put a session's options in `spec.browser`).
185
+ - `@parcha/agentrun-computer`: a browser's own options ride the spec, `spec.browser` (`viewport`, `profile: { pointer, save }`, `stealth`, `headless`), and `capabilities().browser` declares what a provider's sessions offer (`timeout`, `profiles: { settleMs }`, `stealth`, `headless`, `downloads: { path }`). `check()` refuses an option the provider does not declare, in words. Browserbase and Kernel gain the optional `profiles { create, remove }` member, and Browserbase `downloads { list, read }`. Local Chrome declares `{ timeout: "wall-clock" }` and opens its window at the spec's viewport.
186
+ - `@parcha/pi-browser`: `ProviderCaps` is `profiles`, `sharedBrowser`, `settings`, `fixedSession` and `navigationAllow`; the session vault keeps a local Chrome's sessions alone. `cdpCall` is exported from the package root.
187
+ - agentrun-serve: on Browserbase and Kernel, the browser tool's `run` now takes actions only, as it does on Local Chrome (code is refused in words, and navigation is a `goto` action), its `snapshot` is the raw-CDP driver's, and `browser_upload` is refused (the driver sets no file input). A session carries the run's labels and its custody tag, as an agent's browser computer's does.
188
+ - The `code-review` template is 0.3.0: eight independent reviewers read the pull request on a read-only checkout, and the agent merges, verifies and posts what they find. Its answer ranks each finding `P0`, `P1` or `P2` and scores the change's risk from 1 (safe to merge) to 5 (do not merge). The manifest asks for `checkout: pull_request` (AgentRun fetches the PR into `repo/` before the first turn, with refs `pr/head`, `pr/base` and `pr/merge-base`), `computer: [shell, none]`, `tools: [read, bash, subagent]` with `tool_policy: { bash: read-only }`, thinking `medium` (was `low`), and `budget: { per_run_usd: 0.50, tool_calls: 90 }` (was $2.00 a run). Where there is no shell, the agent is made with no computer and without bash, the apply says so, and its reviewers read the change through the GitHub MCP tools. A reader of its findings JSON changes: `severity` (`important`, `nit`, `pre-existing`) is gone, replaced by `priority` and a `pre_existing` flag; `claim` is `failure`, which ends with `Evidence: path:line "text"`, a line a command in the run printed; each finding has a `title`; the answer adds `risk_score`, `risk_reasons`, a `coverage` line per reviewed file and the `dropped` candidates with their reason (free text; `limit` past the cap of 8 merged findings, `unverified` when a printed line contradicts one).
189
+ - One `subagent` turn starts five quick reviewers (`REVIEWER.md`, thinking `medium`, 30 tool calls each) and three deep ones (`DEEP.md`, thinking `high`, 90 tool calls each), all on the agent's own model with a fresh context. A deep reviewer maps the change first (each changed file, its callers, its tests and its history before the PR), then writes one line per hunk naming the input it tried and where it breaks or holds; the third deep reviewer also checks every reader, writer and test of each name the change touches outside the diff. A reviewer drops a candidate only as a duplicate or under a never-flag rule it cites; a break the change causes in code it didn't write is the change's finding, and one it can't fully show is kept with `Not shown:` at lower confidence. The agent merges findings at the same path, within 10 lines and with the same failure, prints each kept finding's cited lines to check them (it drops one only when a line it printed contradicts it, never for intent, scope or reachability), ranks by priority and by how many reviewers raised it, and posts one review.
190
+ - Every reviewer reads the template's own `rules/CODEREVIEW.md` (a checklist, priority examples, what never to flag without evidence), then the repository's `docs/CODEREVIEW.md` (or `CODEREVIEW.md`) from the base, which adds to it; without one, `REVIEW.md`. A repository may add `.agents/skills/code-review-knowledge/SKILL.md`, its invariants by path glob.
191
+ - The posted review is always one COMMENT review. Its body leads with the `Risk n/5` line and its reasons (Greptile's confidence is 6 minus the risk), then the summary and the findings. Each inline comment starts with its own priority and ends with its fingerprint in an HTML comment, which a re-review reads to never post an open finding twice; a finding still open counts toward the risk score.
192
+ - Runs execute on computers only: the old box stack is gone from the server, and `@parcha/pi-transport` with it.
193
+ - `@parcha/pi-transport` is no longer built or published, and the server no longer depends on it. A program that imports it keeps the last published version (0.1.0-beta.33) or moves to `@parcha/agentrun-computer`.
194
+ - A Daytona or Modal box in `capabilities.places.boxes` now reports `network: none`, with a `network_reason`, whatever `AGENTRUN_BOX_ALLOW` names, because their computers are never made with a host list. An agent on Daytona or Modal that needs a host uses `web_fetch`, or a Docker place.
195
+ - The server no longer builds or pulls an `agentrun-box` image at its start (a fresh server spent up to 10 minutes on an image no run used). A Docker computer builds its own image on its first run, and that run's timeline shows it. An `agentrun-box:*` image left on a Docker host can be removed with `docker image rm`.
196
+ - A box's `state` is never `preparing` now, and the start no longer prints the box image lines. A client that waited on `preparing` waits on nothing: a box is `ready` or `unavailable`.
197
+ - Daytona and Modal are offered when their computer provider's required keys are set (the server's environment, or Settings → Computers), and nothing is asked of either vendor at the start. A key the vendor refuses now fails the run's computer start, in the vendor's words. Docker is still probed with `docker version`.
198
+ - Model defaults move to the current models. The OpenAI default (and OpenRouter's, for pi, codex and opencode) is now gpt-6.1-sol, where OpenRouter's was gpt-6-sol. The Claude Agent adapter's default is now claude-sonnet-5-5 (was claude-sonnet-4-5) and the Codex adapter's is openai/gpt-6-luna (was openai/gpt-5.4-mini). A host that relied on a default names its model; the READMEs' examples name the current ones.
199
+ - A learning run's merge record keeps each item's final decision (kept, held for the owner's OK, or left out, with its words), and a run's learning end (`GET /v2/runs/{id}/learning`, the run view) reads its notes, skills and workflow drafts from it alone, so a note the merge left out is never listed as learned or waiting. A merge recorded before this upgrade has no such record, so its learning end lists none of them: no `verdict`, `learned`, `pending`, `skills` or `workflows`.
200
+ Upgrading: nothing to do; a run that merged before the upgrade reads as merged, with no item decisions and no `skills` or `workflows` listed.
201
+ - An agent can learn notes and skills without learned workflows. Its definition's `learning` is now `true`, `false` or `"notes"`. `true` still learns notes, skills and learned workflows. `"notes"` learns notes and skills only: a run is given its notes and skills, never a learned workflow (no `learned_workflow` tool), and its end-of-run turn asks for no workflow draft. A draft it gives anyway is left out by the checks (rule `workflow`), and its notes and skill go on. A run's launch records `notesOnly` for such a run. The console's editor shows the two choices under "Learns from its runs": "Notes, skills and workflows" and "Notes and skills only".
202
+ Upgrading: a client that reads `definition.learning` handles the value `"notes"` beside `true` and `false`.
203
+ - A learned skill or workflow draft whose front matter can't be read (it reads no way, or its status is none the host writes) still reads `retired`, so no run is given it, but the agent's learning view no longer says a run retired it. Its `retired` is now `{ at, by: "host", why: "unreadable" }`, and the console's card reads "Not read: its front matter can't be read; fix the file to use it" in place of "Retired by a run". Fixes #2444.
204
+ Upgrading: a client that reads `retired.by` from `GET /v2/agents/{id}/learning` handles the new value `host` (with `why: "unreadable"`) beside `person` and `run`.
205
+ - Three fixes from a live QA run:
206
+ - **Docker janitor.** The Docker provider's `list()` and `sweep()` no longer fail on a container that has the computer label but was made with no `--mount`. Docker omits `HostConfig.Mounts` when it is empty, and the list template read it as a required key, so one such container failed the janitor's whole pass ("template parsing error … map has no entry for key \"Mounts\"").
207
+ - **Modal with an Archil folder.** A Modal sandbox with the run's Archil folder is no longer refused at Modal for its tags (Modal caps a sandbox's tags at 512 bytes, names and values together; a 20-character agent id came to 533). The spec tag now records only what the provider can't infer. That works up to an agent id of 128 characters on the default image. A spec whose tags would still be over 512 bytes is refused at `check()` in words that name each tag's size, before anything is sent to Modal.
208
+ - **Browser tool on a browser computer.** An agent whose computer is a browser (Browserbase on the keys saved in Settings → Computers, or Local Chrome) runs its `browser` tool on that computer. Its runs no longer get a 409 that asks for a Tool keys entry, and the run's Screen tab shows that computer.
209
+
210
+ Who breaks: a Modal computer with an Archil folder made by an earlier release records its mount in the old tag format. `attach` refuses it and `list` reports its mount in words. The janitor still ends it at its deadline, or delete it.
211
+ - A person's stop ends the turn, not the run, and a message goes on from any run the person may still talk to:
212
+
213
+ - **Breaking for a SQLite data directory.** The store's SQLite schema is now version 6 (a run's outcome tells a person's stop from a cancel). A server or runner of this release refuses a data directory an earlier release set up, with `SchemaVersionUnknown`: start this release on a new, empty data directory and add your agents, MCP servers, keys and sign-ins there again, or keep the old directory with the earlier release. A Postgres store migrates itself (migration 0004).
214
+ - **A stopped run reads `input_required` and `idle`.** A run a person stopped reads waiting on their next message, with nothing pending, not `cancelled`. A message runs as its next turn, and the run ends on that turn's answer. A cancel still ends the run for good (`cancelled`, 409 to a message).
215
+ - **A message to a completed agentic run is a follow-up turn.** The console offers a follow-up on a completed run, and the server now takes it (202, mode `follow_up`) instead of answering 409. A failed run, a cancelled run, a workflow run and an imported run still answer 409 in their own words.
216
+ - **A message sent while a run is finishing runs after its end.** A message that arrives after the run's answer, while it writes its end, opens the completed run again with that message as its next turn, never lost and never answered by the end-of-run step.
217
+ - **A stop while an approval waits and a later turn runs** withdraws the call and cuts the turn; the run reads `input_required` and idle, and a later answer is 409.
218
+ - **An OpenCode MCP tool is held to its own setting.** The runner's tool gate now knows the run's MCP servers, so an agent's `mcp:<server>/<tool>` setting applies to OpenCode's own name for that tool (`<server>_<tool>`), where before the call fell back to ask.
219
+ - `@parcha/agentrun-pi`, `@parcha/pi-durable-disk` and `@parcha/pi-durable-agent` are no longer built or published: the server runs workflows, keeps its timeline and confines a run's files on its own code.
220
+ - A program that imports one of them keeps its last published version (0.1.0-beta.35). The server needs none of them, and installs none.
221
+ - `capabilities.runtimes` is `["runner"]`: the server's runners run every run, over its one store. It said `["pi-durable-disk"]`. The field stays informational: a run never names it.
222
+ - `preparing` is no longer sent: `capabilities.places.boxes[].state` is `ready` or `unavailable`, and the API's enum drops `preparing`. A client that checked for it removes that branch; the console's box image banner is gone with it.
223
+ - `ScreenshotOptions.scale` (and `FakeScreenshotOptions.scale`) is a number, the fraction of the device-pixel capture to take, in place of `"css" | "device"`; a driver that passed `scale: "css"` passes `1 / devicePixelRatio`, and a custom `PageDriver.screenshot` honors a number below 1, else `captureWithinBudget` throws `ScreenshotBudgetError` for a capture over budget that it does not take smaller.
224
+
225
+ A screenshot over the 2,000 px long edge now shrinks to fit (CDP `clip.scale`) before its JPEG quality drops, so a long page on a device scale of 2 (stripe.com/pricing, a 2576x1248 viewport) comes back as a 1977x969 viewport in place of `ScreenshotBudgetError`; a full page whose fit would leave its short edge under 600 px is taken as the viewport, and the error is left for a browser that gives no capture that fits. On the runner, an image block in a tool's answer whose data is a PNG, JPEG, GIF or WebP of the type it names, with no held key in its bytes, is no longer cut to `[redacted]` by the run's key cut (any other `data` is cut as before) (which sent the model a `data:image/png;base64,[redacted]` URL and failed the run with a 400), and every image a model request carries is checked where it is attached: one with an unknown type, no data, data that is not base64, bytes of another type or a header that does not say its size goes as `[the image could not be attached: <why>]`.
226
+ - `@parcha/agentrun-serve` no longer exports `ASK_TOOL`, `ToolEntry`, `FauxHelpers`, `TokenSource` or `banner`, which nothing outside the server called. A program that imported one defines its own: `ASK_TOOL` is the string `"ask_person"`, and `banner` built the CLI's start-up lines. `startServe`, `serveWithRunner`, `capabilities`, `TOOLS` and `BOUND_TOOLS` are unchanged.
227
+ - A workflow run's decision receipts are read and written only in the keyed form (one `agentrun.decisions` document per receipt, with `agentrun.decisions.count`). The old single-document form, where one `agentrun.decisions` document held a `receipts` list, is no longer read or continued: a run store written in it shows no decisions. Nothing writes that form any more, so an upgrader with such a store has nothing to do but start new runs. Also gone, with no caller left: the decision writer (`createDecisionWriter`), `committedRoutes`, `lintRecordSchema`, `resultBlocks` and `ToolResultKeyError`, `toolRefusal`, the per-run door-token names in `files.ts`, and a set of unused imports and locals in `server.ts` and the runner.
228
+ - The server's workflow engine moved in from `@parcha/agentrun-pi`, with no fallback to it:
229
+ - `@parcha/agentrun-serve` no longer depends on `@parcha/agentrun-pi`. If your code imported agentrun-pi because the server brought it in, add `@parcha/agentrun-pi` to your own dependencies.
230
+ - The research example (`npm run demo:research -- --live`) no longer falls back to a saved Pi default for its agent steps. Pass `--config ./your-adapters.mjs` with a module that default-exports `{ runJudge, runNode }`; `examples/pi-config.mjs` is gone.
231
+ - `ServeOptions.messageOrigin` is gone. Nothing read it since runs moved to the runner, so a message posted to a run never took the origin it returned. Code that passed it drops the option; the only message the server writes with an origin is a raised cap's follow-up, which the runner marks itself.
232
+ - `ServeOptions.beforeAbort`, `beforeReopenLaunch`, `hostMemory` and `onRunLoad` are gone. They were test hooks from the time runs ran in the server's own processes, and nothing has read them since runs moved to the runner. Code that passed them drops them; none of them did anything.
233
+ - The Archil settings that turn Mode 2 on can now come from the server's environment, for a server no owner's session can save them on (API only, or `AGENTRUN_ACCOUNTS=0` reached beyond loopback): `AGENTRUN_ARCHIL_REGION` and `AGENTRUN_ARCHIL_S3_URL` together, and `AGENTRUN_ARCHIL_IMAGE` for an exec image pinned by digest, beside the account key in `ARCHIL_API_KEY`. Each agent's disk is then made on its first run, as with saved settings. Each value is checked as `PUT /v2/workspace/archil` checks it, and one of the region and S3 URL without the other, or a value the PUT would refuse, stops the server's start (and a runner's, `agentrun-serve runner`) in words naming each variable. Set, they win over saved settings and nothing is written to the store: `GET /v2/workspace/archil` says where the settings come from (`source`: `env`, or `console` for saved ones), and `PUT` and `DELETE` are `409 key_set_by_server` while the environment sets them. Unset, nothing changes. A runner started on its own reads them from its own environment, as it reads `ARCHIL_API_KEY`. The server's read-only view of a run's files now reads the server's environment too, so it finds `ARCHIL_API_KEY` there as a run does.
234
+ - Daytona GPU computers can be made from our own GPU snapshot. `box/build-daytona.py --gpu H100` builds box/Dockerfile (root, our helper) as the snapshot `agentrun-archil-gpu-h100-<recipe hash>` with one H100, in region earth, and `DaytonaProvider`'s `gpuSnapshot` option names it (the conformance module reads `COMPUTER_DAYTONA_GPU_SNAPSHOT`). Its GPU is the one its name says. A Daytona GPU computer still takes no mount, since Daytona's GPU host gives no `/dev/fuse`. An Archil computer's preflight now reads `/dev/fuse`, and refuses without it in words: "this computer has no /dev/fuse, so the Archil folder can't be mounted". `GpuCapability.unmounted` carries a provider's own reason its GPU computers take no mount, and checkGpu gives it. serve refuses a GPU computer in Mode 2 in one sentence with that reason and what to use instead, the same at the save, at the run's start, at the claim and in Settings' `gpu.why`. Daytona: "A Daytona GPU computer can't mount this run's folder: Daytona's GPU runtime gives it no /dev/fuse. Use a GPU computer from the library, or this sandbox without a GPU." Modal: "A Modal GPU computer can't mount this run's folder yet: Archil's FUSE mount isn't proven on Modal's gVisor runtime (#2279). Use a GPU computer from the library, or this sandbox without a GPU."
235
+ - An MCP server can take its credential from each run: the owner saves it with `auth: {type: "per_run", headers?}` (it keeps none; `headers` only list its tools at the save; the save keeps no secret, so the API token may make it) and hand each run its own as `mcp_auth: {"<server>": {"headers": {...}}}` on `POST /v2/runs`, `POST /v2/agents/{agent_id}/runs` and `POST /v2/runs/{run_id}/messages`. The run's calls of that server carry those headers, to the origin the server had at the run's start only. The credential is sealed into the run's launch record for the run's life (a resume, a restart or a lost lease uses it again), erased by the write that ends the run, and never in the run's saved body, timeline, view, a log line or an `Idempotency-Key`'s fingerprint; a message's `mcp_auth` replaces it in the message's own write, so the turn it starts uses the new one. A name that is not a saved per_run server is 422 at `mcp_auth.<server>` for new work; a retry its `Idempotency-Key` already answered replays that answer even when the server has since changed or been deleted. A run handed none for a server it calls has those calls refused unsent, in words.
236
+ - A model node says which model it ran on, so a node on a cheaper tier reads as cheaper:
237
+ - A learned workflow's call: each model node on its `tool_result` row's `learned_nodes` carries `model` (the model the run's route sent it to) and `tier` (when the node named one), and the Timeline reads "extract · fast · gpt-5-mini", or "extract · gpt-5-4-mini" for a node of no tier.
238
+ - A workflow run's graph (`GET /runs/{id}/graph`): each model node that ran carries `model`, and `tier` when it named one (the run keeps each tier's model as it resolves it); a decision node's `model` is its provider's. The console's graph card and node details read the same.
239
+ - A call node never carries a model.
240
+ Upgrading: nothing to do; a run from before this keeps no models, and its nodes read their kind alone.
241
+ - A phone computer now says its Android version, and a server with no adb says so. The deploy image carries adb from Android platform-tools r35.0.2 (amd64; the zip is pinned by sha256).
242
+ - The phone's hello carries `osVersion`, the Android release read with `getprop ro.build.version.release` at connect, beside the ABI. Once a run's computer is connected, the run's timeline has a phase row with what the computer says it is: `The phone is ready: Android 15 (arm64), from Phone harness.` A sandbox or desktop gets the same row, with its OS and architecture.
243
+ - A provider descriptor can name a program it needs on the server's PATH (`hostCommand`: the command, what installs it, and the machines it is built for), and the kind registry's entry carries it. The phone's descriptor names adb. The server looks for it at its start. When it is missing, Settings → Computers shows the provider as not ready, the claim refuses it, and a run is refused at its start, all in the same words: `adb isn't installed on this server (no adb command on PATH): install Android platform-tools, then restart AgentRun`.
244
+ - On arm64 Linux, where Google builds no platform-tools and the arm64 image has none, the words say what the phone needs instead: `this server's image has no adb for arm64 (Android platform-tools has no Linux build for arm64): Phone harness needs an x86-64 server`.
245
+ - An agent can start each run in a checkout of the pull request that started it, without ever holding a GitHub token. An agentic definition's new `checkout: pull_request` (a template's manifest sets it with `checkout: pull_request`) has the server fetch the pull request its GitHub event names before the first turn, into `repo/` of the run's folder, detached at the head, with its base and their merge base fetched beside it (refs `pr/head`, `pr/base`, `pr/merge-base`; read the change with `git diff pr/merge-base pr/head`). The fetch is one server command on the run's folder, so it works the same in Mode 1 and on Archil's exec in Mode 2. It uses an installation token of the server's GitHub App, narrowed to that repository and `contents: read`. The token never lands in the folder, the checkout's git config, the remote's URL, the agent's environment or the log. With no App, or one not installed there, the fetch is anonymous, which works for a public repository. The run's system prompt says what was checked out, or why nothing was, so the agent can read the change through the GitHub MCP instead. The checkout is removed when the run's claim ends. `checkout: none` clears it on an edit; an edit that leaves it out keeps it.
246
+ A GitHub event's payload tag now also carries the pull request's `base_sha`. The server's Docker image installs `ca-certificates`, so git on the server can reach GitHub over HTTPS.
247
+ - An agent's own computer, kept between its runs. An agent's `computer` setting takes `persistent: true` where its provider keeps one for the kind and image (Orgo's Linux desktop; `GET /v2/computers` shows a provider's `persistent`), and is 422 `not_allowed` anywhere else. The agent's first run makes the computer under an owner of this server's id and the agent's. Each run's end detaches it (Orgo suspends it, memory and disk kept) instead of deleting it, and the next run attaches it again, saying on its timeline which happened, or that the computer was gone and a new one was made. A run that finds the computer held by another run still going, or being detached by one that ended, is refused at its start, naming that run. The hold is per claim: a resumed run's later claim takes it over, so the earlier claim's end detaches nothing, and an earlier claim is fenced. A launch that fails once it has the computer (its hold lost to a resume, its record not saved, no connection) lets go of exactly what it acquired: a computer it made is deleted under its claim, so a resume that already took it keeps it, and one it attached is detached. `GET /v2/agents/{agent_id}` shows it as `own_computer` (provider, id, name, and held, detached or deleting). Archiving the agent, turning `persistent` off, or moving the setting to another provider or image deletes the computer once no run holds it (a run's end deletes it then), and the janitor's sweep deletes an agent's computer only when its agent no longer wants it, never another server's.
248
+ - `AGENTRUN_DAYTONA_SNAPSHOT` names the Daytona snapshot every Daytona computer is made from, as `AGENTRUN_DOCKER_IMAGE` names Docker's image. A Daytona computer in Mode 2 mounts the run's folder as root through the box image's root helper, so it needs a snapshot of the computer package's `box/Dockerfile` (`box/build-daytona.py` builds one and prints its name); until now serve always asked for Daytona's default snapshot, which the mount refuses. Unset, nothing changes. The Daytona box (`AGENTRUN_BOXES=daytona`) never reads it. The variable is declared by Daytona's provider descriptor in a new optional field, `imageEnv` (the server environment variable that names the image of every computer of that provider, in place of `defaultImage`; `descriptorProblems` checks it is a variable name), so serve reads it from the descriptor and names no vendor; another provider can declare one the same way.
249
+ - The server runs workflows on its own code: the durable workflow task, its node runner, decisions and their recovery, and the runner a learned workflow's model nodes use moved into the server from `@parcha/agentrun-pi`, which the server no longer depends on or loads. It depends on `@earendil-works/pi-agent-core` 1.5.0 directly, beside `@earendil-works/pi-coding-agent` 1.5.0. Workflow runs, their decisions and their costs behave as before.
250
+ - An agent can run subagents: a revision that names `subagent` in its tools (pi only) gets a tool that runs a fresh conversation with the call's prompt as its whole task and a subset of the agent's own tools (MCP tools and `bash` included), and answers with the child's final text. The child runs on the agent's own model unless the call names a tier (`fast` or `strong`); a revision's `model_tiers` (a template's `model.fast` / `model.strong` in agent.md) names each tier's model, else the server's `AGENT_MODEL_FAST` / `AGENT_MODEL_STRONG`, else the agent's own model. Every tool call a child makes passes the run's gate, so the agent's bash policy (`read-only`) holds its bash too, and every request books on the run's one cap, which ends a child when it is reached. A child is never given `subagent` or `ask_person` (one level deep), at most 4 children of a run work at once, the run's timeline nests each child under its call, and the run's cost and metrics count every child's requests. A child lives in the run's journal: a restart resumes the same child (a finished request is never sent again), a cancel stops every child, and a cap refusal of a child's request fails its call in the cap's words and parks the run, sending nothing more until a raise, which resumes the run (the agent may call `subagent` again). A tier's model may be another provider's (its saved key is read for the tier's route alone) and runs through a gateway (`AGENT_MODEL_BASE_URL`) too, at the tier's price. A child whose answer was cut at its model's output limit fails its call with the words that say so and what it wrote. On a capped run, a call on a tier whose model has no known price is refused before any child starts, and the cap never reads an unpriced model's placeholder as $0. A call may give its child `max_tool_calls`, which narrows the agent's `max_tool_calls` for that child and never widens it (kept in the child's conversation, so a restart holds it too), and `effort` (`low`, `medium`, `high`), the child's thinking level, else the agent's own.
251
+ - A template can name the computer it prefers and fall back: `computer: [shell, none]` in its agent.md, read like `harness`. Apply takes the first entry this server meets now and saves it as the agent's `computer`: `shell` is Archil's serverless exec on the runner when Archil is on (Settings → Workspace; `bash` alone), else the Docker sandbox where Docker answers; `none` is no shell. With `none`, the shell tools in the package's `tools` and `tool_policy`'s bash are not granted, and a `computer` warning on the apply says so and how to get a shell. A list with `shell` alone, where there is none, refuses the apply (409, nothing made). `computer: default`, or no `computer`, keeps today's behavior. `GET /v2/templates` shows each package's `computer` list and `computer_here`, what an apply here would pick now.
252
+ - A second answer to one tool call's approval is refused by the store as `AnswerTaken`, on SQLite and on Postgres alike, matched by the one-answer index's name (`commands_one_answer`). Before, it was a bare `StoreConstraint`, and the server read back the winning answer for any constraint error. Now an approve that lost a race is the same 409 `not_continuable` (`details.reason: already_answered`, the winner's decision) as one sent after, and a person's message that loses to an approve goes on as a plain message. Any other constraint error is no longer mistaken for an answered call.
253
+ - Archiving a run that is already archived keeps its first `archived_at`: `POST /v2/runs/{id}/archive` again is a no-op, never a new time (#2080). A message to an archived run, or to a run of an archived agent, is refused `409 not_continuable` in words that say it is archived (`details.reason` `archived`, `details.archived` `run` or `agent`), with the way back (unarchive the run or its agent) as its `next_action`. It was already `409 not_continuable`; only its message, its `details` and its `next_action` change. Before, it said the run was "finished", with no `details` and a start-a-new-run `next_action`.
254
+ Upgrading: nothing to do.
255
+ - An agent with no computer is no longer shown bash and the background tools it can't use (#2141). The agent's read and the computer list read where a run has its shell by the claim's own rule (`runShellOf`, on the agent's computer setting, else its place, and the server's folder mode now), as the save check and capabilities already do:
256
+ - `GET /v2/agents/{id}`: a tool of bash's family the run would not have carries `resolved: "unavailable: ..."` in the words a call of it gets there. With no computer that mounts the run's folder the background tools are not there, and bash neither when run folders are on the server's own disk.
257
+ - `GET /v2/computers`: each provider, and the one "no computer" choice (kind `none`), carries `shell` (`computer`, `local` or `none`), `host_tools` (exactly the tools a run of that choice gets: the file tools always, `bash` with a shell, the five background tools on a computer) and, unless its shell is `computer`, a `shell_note` saying what it leaves out.
258
+ Upgrading: nothing to do. A client that read bash as available on an agent with no computer now reads it unavailable, with the reason.
259
+ - A run that asks its person a question with its browser open keeps that browser while it waits, for the person's window, `AGENTRUN_BROWSER_PERSON_WAIT_MIN` (15 minutes by default; the same setting now bounds a take-over with no input and an agent's hand-over ask). Before, the browser's own 3-minute idle release let it go while the run waited, so the page, the live view and Take over were gone just when the person might use them. At the window's end the browser is released with a timeline row saying so ("The browser was released after 15 min waiting for you"), and an answer after that opens a new browser. The Screen tab says the browser was released, and when, instead of "Waiting for the browser" (GET /v2/runs/{id}/computer's `none` carries `ended: {at, why}`). pi-browser's extension handle gains `keepForPerson(tag)`, which holds a session from its idle release until let go.
260
+ - A run that parks at its cap sends nothing more on that claim: once a refusal parks it, every later request (another conversation's of the run, such as a subagent's) is refused in the same words until a raise resumes the run on its next claim. Before, a request of another conversation could still be admitted after the run read `input_required`.
261
+ - A run's spend-cap pause no longer says it spent "$0" when it spent less than a cent. The words round what was spent to the cent, so a run that had spent $0.003 read "this run has spent $0 of its $0.105 cap", as if nothing had been spent. A spend above $0 that rounds to $0 now reads "less than a cent" ("this run has spent less than a cent of its $0.105 cap"). A spend of exactly $0, and any spend of a cent or more, reads as before. The exact amount stays in the pause's `spent_usd`.
262
+ - A Claude Code, Codex or OpenCode run whose model answered or called a tool, but whose model requests reached no booking (they went past the run's model proxy), now reads its cost as unknown: on its row, its view, the runs list, its spend as the cap reads it and the /usage tokens meter. It used to read $0, the sum of no bookings.
263
+ - Removed the file-era budget pause (budget.ts: the budget.json and cap.json marks) and the host-tool api's `conversation` member, which nothing calls; the runner parks and raises through the store's budget entries.
264
+ - Security: the Docker egress proxies now run Node 22.23.5, Node 22's November 2026 security release. The computer provider's `EGRESS_IMAGE` and the server's proxy on macOS Docker move from Node 22.23.4 (bookworm) to `node:22.23.5-trixie-slim`, pinned to its multi-arch index digest (amd64 and arm64). None of that release's CVEs reached the proxies: they speak cleartext `node:http`/`node:net` and pass TLS through CONNECT without terminating it. The new image also brings the release's llhttp, which parses the HTTP the proxies read from a box. A host without registry access pulls the new image ahead, as before: `docker pull` the name `EGRESS_IMAGE` gives.
265
+ - A workflow run started inline (`POST /v2/runs`) under a new version of its agent is titled with that version's name. It used to show the previous version's name on its page and in the run lists. A run of a version already stored keeps the agent's current name.
266
+ - A learned workflow's answer keeps the format its last node wrote (#2412): `learned_workflow` hands back a text output (a string, or an object of one string field) as its text, never JSON-quoted, and its description tells the model that a workflow doing the job asked gives the answer, to reply with as it is. Before, the model got the report as one escaped line and wrote its own reply around it, so a skill's fixed format was lost once its workflow took over.
267
+ The draft side holds it too: the ask for a skill's job as a workflow says the draft's output is the job's answer in the skill's output format, written by its last node; a run's proposal carries the skill of each draft's name as the folder holds it (`drafted`), the grader is shown it under the draft, and its rubric drops a draft whose output cannot give the skill's format (Format). Upgrading: nothing to do.
268
+ - A standing rule for every reply or report that a run proposed as a skill is kept as a note: the grader judges it mis-kept (a skill loads only when a job calls for it, a note is served whole on every run) and re-files it, and the merge writes `<name>.md`, with the skill's description and body, in the skill's place, pending when risky. One that would be no note, or one past the run's 8 new notes (a re-filed note counts as one), is dropped, saying it belongs in a note, and one whose note name the run's own kept note takes is dropped, saying "This run also kept a note named <name>, so the rule was not re-filed over it." At the merge, any note the run keeps (a re-filed skill's too) whose name the agent's notes already hold, another run having merged one meanwhile say, no longer fails the whole learning run: the same rule (its body, case, spacing and front matter aside) in an active note is no change, and the skill it re-files is retired; one a person retired or another note superseded keeps the rule out of every run, so the skill stays and the note is left out as a name already held; a note that supersedes the note of its own name replaces it; any other is left out alone, saying a note of that name was added since or was there already, and the rest of what the run learned merges. A learning run that stopped after its merge's commit and before recording it resumes merged, its notes learned, never dropped as already there. The grader's verdict gains the decision `note`, a skill's alone. Learning keeps one copy of each rule: a new note whose body is exactly an active note's (whitespace and case aside), under another name, is refused at the end-of-run checks (`duplicate`) and left out at the merge, and of two new notes with the same body only the first is kept; a near one stays the grader's to judge, and a note that supersedes the one it repeats still updates it. A copy is never lost to its holder's failure: a holder the other checks refuse hands its rule to the next copy. A note the same run supersedes holds no rule, so a copy of its rule under another name is kept, never left out with the rule served by nothing. An answer that would take the index past 200 lines leaves out its last notes that add lines, never the whole answer. Upgrading: nothing to do.
269
+ - A model request a provider refuses for a while (a 429 at capacity, an overload, a 5xx) no longer ends the run after pi's default three retries of about 17 seconds. The adapter loop gives pi 8 retries, 2s doubling to at most 30s apart (about two and a half minutes), and pi-ai retries a request refused before any output twice more inside each attempt, after the wait the provider asked for: the session's model proxy now passes an error answer's `retry-after`, `retry-after-ms` and `x-should-retry` on to the client. Each retry is a new request the run's cap judges and books: a refused one books nothing, and one that finds no room under the cap parks the run in the cap's words, never retried past it.
270
+ - A run's pull request checkout is removed cleanly at the run's end: its fetches run with git's auto maintenance off, so no detached gc writes into `repo/.git/objects` while the removal deletes it (it failed with "Directory not empty").
271
+ - A person can take over a runner run's desktop or phone and hand it back: the runner's pi and CLI runs now give the adapter loop the hold their claim made, so the computer shows up live and a take-over is no longer refused with "This run has no desktop or phone up now."
272
+ - A server no longer rebuilds the view of each of its 50 newest runs four times a second while it follows run ends for the outbound webhook. Each build redacted the run's title and output again, and read the store, even for a run whose end it had already told, or that had not ended. Now only a run with an end still to tell reads its view, once, and the rest are read from their store row alone. An idle server that had redacted a finished run's view 48 times a second now does nothing for it.
273
+ - A run's view (`GET /v2/runs/{id}`) and its timeline (`GET /v2/runs/{id}/timeline`) each read the store as it stood at one moment. A runner's write that landed while a view was built could show in part: a run read `working` with no result beside the cost of its end, and a timeline held rows from before an answer next to rows from after it. Status, result, cost, pending approval and rows now all come from the same snapshot.
274
+ Upgrading: nothing to do.
275
+ - A request a run's spend cap refused before sending is no model request on the runner, as it was before the cutover:
276
+ - A pi run whose first request the cap refused shows "no model request sent" in its usage, not "Cost so far: $0 over 1 model request", and no "Model request failed" row. The model proxy's refusal comes back through pi-ai's Messages client as `<api> API error (400): <body>`, and the timeline now reads that form as well as the bare `400 <body>`.
277
+ - A claude-agent or codex run whose cap refused its first request shows "no model request sent" in its usage too. Before, it had no usage row.
278
+ - Upgrading: nothing to change.
279
+ - A claude-agent or codex run installs its harness on first use again. When nothing was installing Claude Code or Codex (none started yet, an install cut short or failed earlier, or a server that stopped part way), the run failed saying it was not installed; now the run installs it and runs on it, one install at a time on the data, which every run that needs it waits for. The run's timeline says "Installing Claude Code (first use)…" (or Codex) while it waits, not only once it is done.
280
+ A paid tool call's cost on the timeline names the tool again ("Tool cost: parallel charged $0.0010 for web_fetch"), not what was paid for ("… for Parallel's extract"), and a CLI run's harness is given its tools in the order the agent grants them.
281
+ - A stop wins over a run's first input and over two answers that still slipped past it.
282
+ - A run stopped or cancelled before it started now ends at its runner's claim. No loop starts, and its first input never reaches the model, so it is never billed. This covers a run claimed from queued, and one whose earlier claim was lost before its journal had anything. Before, the runner started the run's loop first, and the input could go out before the stop was applied.
283
+ - An answer to a waiting call is now 409 `already_answered` (decision `withdrawn`, or `canceled` for a cancel) in two more cases where it never runs. One: the run's stopped end took the stop and refused the answer before the answer read back. Two: the answer is a retry of one written behind a stop the runner has not taken yet. Before, both were answered 204.
284
+ - A store transaction that runs out of time, or a write that waits out the store's busy timeout, now says in its logged stack who held the store: where the transaction was opened, and the other transactions open in the process with their age.
285
+ - Settings → Computers (`GET /v2/computers`) no longer offers a computer that needs a network (a cloud phone, Browserbase, Kernel, Local Chrome) on a server whose `AGENTRUN_BOX_ALLOW` is none. Such a provider reads `ready: false`, and its `why` says the server has no network and how to change that. Its `network` says the server refuses a computer that needs a network. A kind that only such providers serve reads `offered: false`, saying why. Its runs were already refused at the start and at the claim. Under a host list, the default or the operator's, nothing changes.
286
+ - The serve README no longer describes the Daytona and Modal run boxes that the deleted pi-transport package provided (the box relay, the run's door token, the copy-back marks, the `box_network` and `box_kept` log lines); computers are the `computer` setting's. It no longer lists a run's door token among the tokens a learning approval or an import refuses.
287
+ - Twenty test cases that were skipped against the cutover run again and pass (cap, cost-so-far, decisions, graph redaction, gateway, capacity, tool plane and others), each checked to reach the behavior its title names. Every skipped case that still fails, or that would pass without reaching its subject, stays skipped.
288
+ - A capped workflow run on the runner takes a paid call node's hold only after the workflow's driver has admitted the call's effect. Held before the admission, a runner that died in between left a hold the next claim counted beside running the call again under a new hold (an `llm` call of $0.001 was counted $0.002). A hold the cap refuses for room now ends the admitted effect held with nothing sent, and the run parks once that end is durable; after a raise the call goes again as a new effect. A hold refused for good, and an answer that cost more than its hold, end the effect failed in the cap's words, as before.
289
+ - A capped workflow pauses at its cap on the runner as it should:
290
+ - A capped workflow run with a Parallel decision no longer fails "spend_cap_reached: Not sent: the next model request's model has no price here". Parallel charges by the request, and its decision was priced as a model with no price. Now it is held at its request price, and a cap too small for it pauses the run for a raise.
291
+ - A workflow paused at its cap names the model node whose request waits (`pending.node`), from the one step under way; `null` when several run at once.
292
+ - A workflow paused again at a higher cap (a raise that did not cover the step) tells its owner's webhook again (`run.needs_input`). Waits at one cap are still told once.
293
+ - Upgrading: a run already waiting at its cap when the server is upgraded tells its owner's webhook once more (`run.needs_input`, a new notice id). A budget wait's marker now names its cap, so the one told before the upgrade reads as a different wait. Nothing to change.
294
+ - The two harness adapters list `@parcha/agentrun-dsl` as a dev dependency, since only their tests import it, and serve's package keywords drop the retired `pi-durable`.
295
+ - The runner claim tests wait for the runner's own `claimed` event before they move the clock or close a runner, not for the store's claim call to return. On Postgres the runner reads the claim's command rows in one more round trip before it holds the claim, so the first case moved its mocked clock with nothing to renew and hit its 60 s timeout, and the close case closed before the loop existed. Both cases now gate that read until both runners' claims are back, so the same order happens on SQLite every time.
296
+ - An MCP server's preview says what its tool list is: the tools the server offers, not what the credential allows. A read-only token still lists the server's write tools, and a call the token can't make is refused by the MCP server when a run makes it. Settings → MCP servers shows the note with every preview, and POST /settings/mcp-servers/preview's description says the same.
297
+ - The server and Pi browser READMEs state the Node minimum the packages enforce: 24.22.3 (the server image and the test suites run on it), not Node 22.
298
+ - The serve README's container guide no longer warns that the root `compose.yaml` passes no `AGENTRUN_SEAL_KEY`: it passes the key from `.env` and refuses to start without it (#2199).
299
+ Upgrading: nothing to do.
300
+ - An agent that learns shows its cost per run, run after run: the Learning tab draws every run's all-in cost (the run's own plus what learning spent for it) as a dot coloured by the path it took (by the agent, a learned workflow that handed back, or a learned workflow alone), a rolling mean through them, the agent's level before learning, a marker where a learned workflow first finished a run alone, and the level held after it, with how many times cheaper once 20 runs stand behind it. A table under it holds every run.
301
+ `GET /v2/agents/{id}/learning/cost` (`learningcost/1`) answers the same series and summary, aggregates only (`?limit=`, `?format=csv`); `agentrun learning cost <agent> [--format csv]` prints it or writes it as CSV.
302
+
5
303
  ## 0.1.0-beta.35 (2026-11-11)
6
304
 
7
305
  - On the runner, a learned workflow node that names a tier (`fast`, `strong`) now runs on the host's model of that tier (`AGENT_MODEL_FAST`, `AGENT_MODEL_STRONG`) instead of the run's own model. Its requests take the run's one route and stay under the run's cap, and each is booked at its own model's price. A tier the host names no model of still runs on the run's own model. A tier whose model can't be reached fails the workflow call and names why; it never runs on another model. This holds on every harness: pi, Claude Agent, Codex and OpenCode. On a CLI harness the tier's requests go through a proxy of their own beside the CLI session's, never through the CLI. A tier's model key saved in Settings → Model keys is opened for that tier's requests alone. It never goes into a tool's environment. A tier whose model has the same id as the run's model is still held and booked at the tier's own price. `AdapterSession.port` and the run ledger's `models` take an optional `tier`. The kernel's `ModelRequest`, `ModelProxyOptions` and in-flight records carry an optional `route`, and the cap's `modelOf(id, route)` prices a request by model and route.