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

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 (372) hide show
  1. package/CHANGELOG.md +128 -0
  2. package/README.md +260 -168
  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-images.d.ts +15 -0
  15. package/dist/attach-images.js +59 -0
  16. package/dist/background.d.ts +0 -6
  17. package/dist/background.js +0 -28
  18. package/dist/box-image.d.ts +1 -97
  19. package/dist/box-image.js +4 -284
  20. package/dist/box-paths.d.ts +2 -7
  21. package/dist/box-paths.js +7 -13
  22. package/dist/box-settings.d.ts +0 -11
  23. package/dist/box-settings.js +4 -29
  24. package/dist/browser-commands.js +1 -1
  25. package/dist/browser-computer.d.ts +47 -3
  26. package/dist/browser-computer.js +286 -18
  27. package/dist/browser-person.d.ts +19 -2
  28. package/dist/browser-person.js +55 -6
  29. package/dist/browser-wait-ended.d.ts +23 -0
  30. package/dist/browser-wait-ended.js +42 -0
  31. package/dist/cap.d.ts +13 -41
  32. package/dist/cap.js +24 -73
  33. package/dist/cli.js +4 -22
  34. package/dist/computer-routes.d.ts +1 -4
  35. package/dist/computer-routes.js +3 -5
  36. package/dist/computer-setting.d.ts +2 -0
  37. package/dist/computer-setting.js +38 -1
  38. package/dist/computer-view.d.ts +11 -2
  39. package/dist/computer-view.js +2 -1
  40. package/dist/computers.d.ts +48 -7
  41. package/dist/computers.js +100 -23
  42. package/dist/console/assets/index-BI4Byidu.js +550 -0
  43. package/dist/console/assets/index-C19gUF2n.css +1 -0
  44. package/dist/console/index.html +2 -2
  45. package/dist/docker-daemon.d.ts +2 -2
  46. package/dist/docker-daemon.js +2 -2
  47. package/dist/errors.js +5 -5
  48. package/dist/faux-computers.js +4 -0
  49. package/dist/files.d.ts +1 -9
  50. package/dist/files.js +1 -9
  51. package/dist/github.d.ts +22 -2
  52. package/dist/github.js +42 -8
  53. package/dist/gpu-words.d.ts +14 -0
  54. package/dist/gpu-words.js +21 -0
  55. package/dist/graph-view.d.ts +2 -0
  56. package/dist/graph-view.js +25 -1
  57. package/dist/handed-values.d.ts +1 -1
  58. package/dist/handed-values.js +1 -1
  59. package/dist/harness-install.d.ts +60 -3
  60. package/dist/harness-install.js +322 -34
  61. package/dist/harness.js +1 -1
  62. package/dist/host-tools.d.ts +8 -9
  63. package/dist/host-tools.js +7 -7
  64. package/dist/index.d.ts +1 -3
  65. package/dist/index.js +1 -2
  66. package/dist/key-refusal.d.ts +1 -1
  67. package/dist/key-refusal.js +2 -2
  68. package/dist/learn/check.d.ts +7 -1
  69. package/dist/learn/check.js +123 -5
  70. package/dist/learn/commit.d.ts +40 -6
  71. package/dist/learn/commit.js +164 -20
  72. package/dist/learn/folder.d.ts +5 -0
  73. package/dist/learn/folder.js +33 -0
  74. package/dist/learn/grade.d.ts +18 -1
  75. package/dist/learn/grade.js +86 -16
  76. package/dist/learn/index.d.ts +1 -1
  77. package/dist/learn/index.js +1 -1
  78. package/dist/learn/learning.sh +12 -1
  79. package/dist/learn/notes.d.ts +3 -0
  80. package/dist/learn/notes.js +3 -0
  81. package/dist/learn/reflect.d.ts +5 -2
  82. package/dist/learn/reflect.js +43 -29
  83. package/dist/learn/skills.d.ts +4 -0
  84. package/dist/learn/skills.js +7 -0
  85. package/dist/learned-nodes.d.ts +6 -2
  86. package/dist/learned-workflow.d.ts +19 -9
  87. package/dist/learned-workflow.js +62 -34
  88. package/dist/learning-cost.d.ts +79 -0
  89. package/dist/learning-cost.js +69 -0
  90. package/dist/learning-routes.d.ts +8 -3
  91. package/dist/learning-routes.js +9 -6
  92. package/dist/learning-words.d.ts +3 -0
  93. package/dist/learning-words.js +6 -2
  94. package/dist/learning.d.ts +13 -6
  95. package/dist/learning.js +4 -2
  96. package/dist/mcp-probe.d.ts +8 -1
  97. package/dist/mcp-probe.js +62 -20
  98. package/dist/mcp-secret-writes.js +4 -0
  99. package/dist/mcp-servers-store.js +8 -3
  100. package/dist/model.d.ts +5 -5
  101. package/dist/model.js +6 -6
  102. package/dist/openapi.d.ts +2 -0
  103. package/dist/openapi.js +204 -47
  104. package/dist/owner.d.ts +0 -1
  105. package/dist/owner.js +0 -2
  106. package/dist/paid-calls.js +1 -1
  107. package/dist/place-offers.d.ts +97 -0
  108. package/dist/place-offers.js +206 -0
  109. package/dist/place.d.ts +9 -13
  110. package/dist/place.js +22 -32
  111. package/dist/port-models.d.ts +2 -1
  112. package/dist/port-models.js +5 -3
  113. package/dist/print.d.ts +1 -8
  114. package/dist/print.js +1 -14
  115. package/dist/propose.d.ts +1 -0
  116. package/dist/propose.js +25 -10
  117. package/dist/run-cut.d.ts +5 -0
  118. package/dist/run-cut.js +19 -0
  119. package/dist/run-db.js +3 -3
  120. package/dist/run-launch.d.ts +14 -1
  121. package/dist/run-launch.js +7 -2
  122. package/dist/run-learning-served.d.ts +1 -1
  123. package/dist/run-manifest.d.ts +2 -2
  124. package/dist/run-manifest.js +2 -2
  125. package/dist/run-secrets.js +3 -3
  126. package/dist/run-timeline-served.js +56 -44
  127. package/dist/run-view.d.ts +5 -2
  128. package/dist/run-view.js +4 -3
  129. package/dist/runnable.d.ts +2 -2
  130. package/dist/runnable.js +6 -2
  131. package/dist/runner/adapter-loop.d.ts +16 -1
  132. package/dist/runner/adapter-loop.js +131 -30
  133. package/dist/runner/adapter-run-spec.d.ts +25 -4
  134. package/dist/runner/adapter-run-spec.js +103 -24
  135. package/dist/runner/adapters/pi.d.ts +11 -3
  136. package/dist/runner/adapters/pi.js +35 -12
  137. package/dist/runner/beside.js +6 -2
  138. package/dist/runner/cli-run-spec.d.ts +7 -0
  139. package/dist/runner/cli-run-spec.js +92 -38
  140. package/dist/runner/commands.d.ts +5 -1
  141. package/dist/runner/commands.js +3 -3
  142. package/dist/runner/conformance/harness.d.ts +0 -1
  143. package/dist/runner/conformance/harness.js +8 -5
  144. package/dist/runner/github-app.js +2 -2
  145. package/dist/runner/harness-loops.js +1 -1
  146. package/dist/runner/journal-kinds.d.ts +15 -5
  147. package/dist/runner/journal-kinds.js +6 -1
  148. package/dist/runner/learning-end.d.ts +15 -0
  149. package/dist/runner/learning-end.js +26 -5
  150. package/dist/runner/learning-factory.js +6 -2
  151. package/dist/runner/learning-loop.d.ts +73 -1
  152. package/dist/runner/learning-loop.js +203 -18
  153. package/dist/runner/learning-seed.d.ts +2 -0
  154. package/dist/runner/learning-seed.js +1 -1
  155. package/dist/runner/loop-contract.d.ts +8 -0
  156. package/dist/runner/loop-contract.js +6 -0
  157. package/dist/runner/loop.d.ts +5 -1
  158. package/dist/runner/loop.js +20 -0
  159. package/dist/runner/main.js +12 -2
  160. package/dist/runner/mcp-claim.d.ts +4 -0
  161. package/dist/runner/mcp-claim.js +29 -1
  162. package/dist/runner/mcp-github.d.ts +4 -2
  163. package/dist/runner/mcp-github.js +0 -7
  164. package/dist/runner/mcp-run.d.ts +2 -0
  165. package/dist/runner/mcp-run.js +1 -0
  166. package/dist/runner/metrics.d.ts +4 -0
  167. package/dist/runner/metrics.js +9 -0
  168. package/dist/runner/model-route.d.ts +3 -0
  169. package/dist/runner/model-route.js +5 -2
  170. package/dist/runner/pr-checkout.d.ts +59 -0
  171. package/dist/runner/pr-checkout.js +176 -0
  172. package/dist/runner/reflect-hook.d.ts +1 -0
  173. package/dist/runner/reflect-hook.js +3 -3
  174. package/dist/runner/runner.js +47 -12
  175. package/dist/runner/spec-holds.d.ts +8 -3
  176. package/dist/runner/spec-holds.js +12 -10
  177. package/dist/runner/store-port.d.ts +4 -1
  178. package/dist/runner/store-secrets.js +17 -1
  179. package/dist/runner/subagent.d.ts +44 -0
  180. package/dist/runner/subagent.js +188 -0
  181. package/dist/runner/workflow-host.d.ts +18 -2
  182. package/dist/runner/workflow-host.js +23 -3
  183. package/dist/runner/workflow-loop.d.ts +5 -2
  184. package/dist/runner/workflow-loop.js +9 -8
  185. package/dist/runner/workflow-spec.d.ts +26 -14
  186. package/dist/runner/workflow-spec.js +97 -30
  187. package/dist/runs-over-store.d.ts +11 -6
  188. package/dist/runs-over-store.js +111 -24
  189. package/dist/sealing.js +1 -2
  190. package/dist/secret-cut.d.ts +1 -1
  191. package/dist/secret-cut.js +1 -1
  192. package/dist/server.d.ts +32 -49
  193. package/dist/server.js +249 -199
  194. package/dist/store/agent-body.d.ts +9 -2
  195. package/dist/store/agent-body.js +16 -8
  196. package/dist/store/deadline.js +9 -5
  197. package/dist/store/index.d.ts +3 -3
  198. package/dist/store/index.js +2 -2
  199. package/dist/store/journal/storage.js +2 -1
  200. package/dist/store/postgres/connection.js +9 -4
  201. package/dist/store/postgres/migrations/0004_runs_outcome_stop_or_cancel.sql +11 -0
  202. package/dist/store/schema.d.ts +2 -1
  203. package/dist/store/schema.js +11 -8
  204. package/dist/store/seal.d.ts +13 -0
  205. package/dist/store/seal.js +19 -0
  206. package/dist/store/sqlite/connection.d.ts +5 -0
  207. package/dist/store/sqlite/connection.js +88 -47
  208. package/dist/store/sqlite/run-patch.d.ts +18 -2
  209. package/dist/store/sqlite/run-patch.js +31 -2
  210. package/dist/store/sqlite/store.js +65 -11
  211. package/dist/store/store.d.ts +62 -12
  212. package/dist/store/store.js +22 -1
  213. package/dist/store-reads/analytics.js +3 -2
  214. package/dist/store-reads/cap.d.ts +1 -3
  215. package/dist/store-reads/cap.js +8 -6
  216. package/dist/store-reads/decisions.d.ts +2 -2
  217. package/dist/store-reads/decisions.js +3 -6
  218. package/dist/store-reads/journal.js +45 -12
  219. package/dist/store-reads/learning.d.ts +15 -1
  220. package/dist/store-reads/learning.js +68 -10
  221. package/dist/store-reads/runs.d.ts +6 -4
  222. package/dist/store-reads/runs.js +17 -10
  223. package/dist/store-reads/stats.js +5 -1
  224. package/dist/store-view.js +45 -19
  225. package/dist/template-eval.js +2 -1
  226. package/dist/templates.d.ts +64 -0
  227. package/dist/templates.js +101 -16
  228. package/dist/timeline/timeline.d.ts +3 -1
  229. package/dist/timeline/timeline.js +19 -4
  230. package/dist/tool-blurbs.js +1 -0
  231. package/dist/tool-budget.d.ts +8 -0
  232. package/dist/tool-budget.js +7 -1
  233. package/dist/tool-gate.d.ts +7 -1
  234. package/dist/tool-gate.js +7 -2
  235. package/dist/tool-plane.d.ts +33 -19
  236. package/dist/tool-plane.js +64 -27
  237. package/dist/tools.d.ts +18 -34
  238. package/dist/tools.js +104 -70
  239. package/dist/trigger-signatures.d.ts +1 -0
  240. package/dist/trigger-signatures.js +3 -1
  241. package/dist/triggers.d.ts +3 -3
  242. package/dist/triggers.js +2 -2
  243. package/dist/turn-end.d.ts +0 -3
  244. package/dist/turn-end.js +0 -3
  245. package/dist/usage-lines.d.ts +1 -1
  246. package/dist/validate.d.ts +6 -0
  247. package/dist/validate.js +30 -3
  248. package/dist/webhooks.d.ts +2 -1
  249. package/dist/webhooks.js +5 -2
  250. package/dist/workflow/decision-recovery.d.ts +23 -0
  251. package/dist/workflow/decision-recovery.js +80 -0
  252. package/dist/workflow/decisions.d.ts +134 -0
  253. package/dist/workflow/decisions.js +46 -0
  254. package/dist/workflow/host-session.d.ts +5 -0
  255. package/dist/workflow/host-session.js +85 -0
  256. package/dist/workflow/host-tools.d.ts +3 -0
  257. package/dist/workflow/host-tools.js +3 -0
  258. package/dist/workflow/node-runner.d.ts +112 -0
  259. package/dist/workflow/node-runner.js +270 -0
  260. package/dist/workflow/node.d.ts +88 -0
  261. package/dist/workflow/node.js +99 -0
  262. package/dist/workflow/operator-error.d.ts +4 -0
  263. package/dist/workflow/operator-error.js +4 -0
  264. package/dist/workflow/pi-versions.d.ts +9 -0
  265. package/dist/workflow/pi-versions.js +8 -0
  266. package/dist/workflow/readers.d.ts +36 -0
  267. package/dist/workflow/readers.js +145 -0
  268. package/dist/workflow/record-file.d.ts +10 -0
  269. package/dist/workflow/record-file.js +56 -0
  270. package/dist/workflow/record-tool.d.ts +76 -0
  271. package/dist/workflow/record-tool.js +126 -0
  272. package/dist/workflow/record.d.ts +151 -0
  273. package/dist/workflow/record.js +401 -0
  274. package/dist/workflow/run-error.d.ts +16 -0
  275. package/dist/workflow/run-error.js +26 -0
  276. package/dist/workflow/runner.d.ts +6 -0
  277. package/dist/workflow/runner.js +240 -0
  278. package/dist/workflow/store.d.ts +23 -0
  279. package/dist/workflow/store.js +242 -0
  280. package/dist/workflow/task.d.ts +133 -0
  281. package/dist/workflow/task.js +411 -0
  282. package/dist/workflow/thinking.d.ts +3 -0
  283. package/dist/workflow/thinking.js +7 -0
  284. package/dist/workflow/tool-context.d.ts +21 -0
  285. package/dist/workflow/tool-context.js +13 -0
  286. package/dist/workflow/types.d.ts +126 -0
  287. package/dist/workflow/types.js +1 -0
  288. package/dist/workflow/wal.d.ts +11 -0
  289. package/dist/workflow/wal.js +106 -0
  290. package/dist/workflow-run.d.ts +1 -1
  291. package/dist/workspace/agent-computer.d.ts +137 -0
  292. package/dist/workspace/agent-computer.js +292 -0
  293. package/dist/workspace/archil-claim.d.ts +11 -0
  294. package/dist/workspace/archil-claim.js +18 -10
  295. package/dist/workspace/archil-disks.d.ts +49 -0
  296. package/dist/workspace/archil-disks.js +185 -0
  297. package/dist/workspace/archil-exec.js +2 -3
  298. package/dist/workspace/archil-mount-credential.d.ts +20 -4
  299. package/dist/workspace/archil-mount-credential.js +13 -4
  300. package/dist/workspace/computer-deps.d.ts +16 -8
  301. package/dist/workspace/computer-deps.js +18 -7
  302. package/dist/workspace/computer-for-claim.d.ts +42 -6
  303. package/dist/workspace/computer-for-claim.js +209 -9
  304. package/dist/workspace/computer-janitor.d.ts +3 -2
  305. package/dist/workspace/computer-janitor.js +43 -9
  306. package/dist/workspace/computer-ledger.d.ts +3 -1
  307. package/dist/workspace/computer-ledger.js +7 -0
  308. package/dist/workspace/index.d.ts +3 -2
  309. package/dist/workspace/index.js +1 -0
  310. package/dist/workspace/resolve-computer.d.ts +42 -11
  311. package/dist/workspace/resolve-computer.js +65 -13
  312. package/dist/workspace/run-disk.d.ts +34 -0
  313. package/dist/workspace/run-disk.js +91 -0
  314. package/dist/workspace/run-tools.d.ts +4 -4
  315. package/dist/workspace/run-tools.js +8 -6
  316. package/dist/workspace/server-run-workspace.d.ts +3 -2
  317. package/dist/workspace/server-run-workspace.js +17 -4
  318. package/dist/workspace.js +1 -1
  319. package/package.json +10 -15
  320. package/templates/README.md +9 -6
  321. package/templates/code-review/agent.md +27 -11
  322. package/templates/code-review/evals/clean-refactor/graders/coverage.md +4 -0
  323. package/templates/code-review/evals/clean-refactor/graders/risk.md +5 -0
  324. package/templates/code-review/evals/injection/graders/ignores.md +1 -1
  325. package/templates/code-review/evals/never-flag/case.yaml +3 -0
  326. package/templates/code-review/evals/never-flag/graders/only-p0.md +4 -0
  327. package/templates/code-review/evals/never-flag/graders/schema.md +5 -0
  328. package/templates/code-review/evals/never-flag/prompt.md +30 -0
  329. package/templates/code-review/evals/null-name/graders/finds.md +1 -1
  330. package/templates/code-review/evals/off-by-one/graders/finds.md +1 -1
  331. package/templates/code-review/evals/off-by-one/graders/no-repo-reads.md +6 -5
  332. package/templates/code-review/evals/re-review/graders/resolves.md +1 -1
  333. package/templates/code-review/evals/re-review/prompt.md +1 -1
  334. package/templates/code-review/evals/re-review-open/case.yaml +3 -0
  335. package/templates/code-review/evals/re-review-open/graders/schema.md +5 -0
  336. package/templates/code-review/evals/re-review-open/graders/stays-open.md +4 -0
  337. package/templates/code-review/evals/re-review-open/prompt.md +27 -0
  338. package/templates/code-review/evals/repo-rule/graders/cites.md +1 -1
  339. package/templates/code-review/evals/two-defects/case.yaml +3 -0
  340. package/templates/code-review/evals/two-defects/graders/both.md +4 -0
  341. package/templates/code-review/evals/two-defects/graders/schema.md +5 -0
  342. package/templates/code-review/evals/two-defects/prompt.md +25 -0
  343. package/templates/code-review/findings.schema.json +131 -27
  344. package/templates/code-review/rules/CODEREVIEW.md +76 -0
  345. package/templates/code-review/skills/review/DEEP.md +130 -0
  346. package/templates/code-review/skills/review/REVIEWER.md +116 -0
  347. package/templates/code-review/skills/review/SKILL.md +104 -154
  348. package/dist/box/record.d.ts +0 -6
  349. package/dist/box/record.js +0 -41
  350. package/dist/box/sweep.d.ts +0 -53
  351. package/dist/box/sweep.js +0 -193
  352. package/dist/box-egress-vm.d.ts +0 -118
  353. package/dist/box-egress-vm.js +0 -354
  354. package/dist/box-egress.d.ts +0 -105
  355. package/dist/box-egress.js +0 -256
  356. package/dist/box-relay-vm.d.ts +0 -84
  357. package/dist/box-relay-vm.js +0 -437
  358. package/dist/box-relay.d.ts +0 -36
  359. package/dist/box-relay.js +0 -207
  360. package/dist/boxes.d.ts +0 -109
  361. package/dist/boxes.js +0 -249
  362. package/dist/budget.d.ts +0 -71
  363. package/dist/budget.js +0 -199
  364. package/dist/console/assets/index-B7NKTU8E.css +0 -1
  365. package/dist/console/assets/index-CXZMgJE7.js +0 -550
  366. package/dist/daytona-api.d.ts +0 -10
  367. package/dist/daytona-api.js +0 -20
  368. package/dist/egress-proxy.d.ts +0 -45
  369. package/dist/egress-proxy.js +0 -416
  370. package/dist/egress-table.d.ts +0 -24
  371. package/dist/egress-table.js +0 -165
  372. package/templates/code-review/rules/REVIEW.md +0 -41
package/CHANGELOG.md CHANGED
@@ -2,6 +2,134 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.0-beta.36 (2026-11-13)
6
+
7
+ - `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.
8
+ - **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.
9
+ - **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.
10
+ - **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.
11
+ - **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.
12
+ - **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.
13
+ - **API-only mode.** An API-only server (`AGENTRUN_API_ONLY=1`) serves both agent disk routes.
14
+ - 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`).
15
+ - `@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.
16
+ - `@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.
17
+ - 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.
18
+ - 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).
19
+ - 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.
20
+ - 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.
21
+ - 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.
22
+ - Runs execute on computers only: the old box stack is gone from the server, and `@parcha/pi-transport` with it.
23
+ - `@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`.
24
+ - 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.
25
+ - 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`.
26
+ - 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`.
27
+ - 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`.
28
+ - 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.
29
+ - 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`.
30
+ Upgrading: nothing to do; a run that merged before the upgrade reads as merged, with no item decisions and no `skills` or `workflows` listed.
31
+ - 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".
32
+ Upgrading: a client that reads `definition.learning` handles the value `"notes"` beside `true` and `false`.
33
+ - 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.
34
+ 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`.
35
+ - Three fixes from a live QA run:
36
+ - **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\"").
37
+ - **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.
38
+ - **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.
39
+
40
+ 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.
41
+ - A person's stop ends the turn, not the run, and a message goes on from any run the person may still talk to:
42
+
43
+ - **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).
44
+ - **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).
45
+ - **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.
46
+ - **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.
47
+ - **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.
48
+ - **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.
49
+ - `@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.
50
+ - 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.
51
+ - `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.
52
+ - `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.
53
+ - `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.
54
+
55
+ 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>]`.
56
+ - `@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.
57
+ - 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.
58
+ - The server's workflow engine moved in from `@parcha/agentrun-pi`, with no fallback to it:
59
+ - `@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.
60
+ - 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.
61
+ - `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.
62
+ - `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.
63
+ - 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.
64
+ - 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."
65
+ - 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.
66
+ - A model node says which model it ran on, so a node on a cheaper tier reads as cheaper:
67
+ - 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.
68
+ - 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.
69
+ - A call node never carries a model.
70
+ Upgrading: nothing to do; a run from before this keeps no models, and its nodes read their kind alone.
71
+ - 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).
72
+ - 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.
73
+ - 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`.
74
+ - 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`.
75
+ - 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.
76
+ 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.
77
+ - 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.
78
+ - `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.
79
+ - 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.
80
+ - 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.
81
+ - 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.
82
+ - 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.
83
+ - 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`.
84
+ Upgrading: nothing to do.
85
+ - 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:
86
+ - `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.
87
+ - `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.
88
+ Upgrading: nothing to do. A client that read bash as available on an agent with no computer now reads it unavailable, with the reason.
89
+ - 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.
90
+ - 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`.
91
+ - 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`.
92
+ - 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.
93
+ - 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.
94
+ - 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.
95
+ - 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.
96
+ - 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.
97
+ 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.
98
+ - 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.
99
+ - 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.
100
+ - 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").
101
+ - 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."
102
+ - 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.
103
+ - 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.
104
+ Upgrading: nothing to do.
105
+ - A request a run's spend cap refused before sending is no model request on the runner, as it was before the cutover:
106
+ - 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>`.
107
+ - 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.
108
+ - Upgrading: nothing to change.
109
+ - 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.
110
+ 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.
111
+ - A stop wins over a run's first input and over two answers that still slipped past it.
112
+ - 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.
113
+ - 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.
114
+ - 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.
115
+ - 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.
116
+ - 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.
117
+ - 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.
118
+ - 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.
119
+ - A capped workflow pauses at its cap on the runner as it should:
120
+ - 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.
121
+ - 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.
122
+ - 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.
123
+ - 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.
124
+ - 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`.
125
+ - 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.
126
+ - 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.
127
+ - 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.
128
+ - 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).
129
+ Upgrading: nothing to do.
130
+ - 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.
131
+ `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.
132
+
5
133
  ## 0.1.0-beta.35 (2026-11-11)
6
134
 
7
135
  - 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.