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

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 (466) hide show
  1. package/CHANGELOG.md +368 -0
  2. package/README.md +341 -208
  3. package/dist/adapters.d.ts +3 -4
  4. package/dist/adapters.js +18 -15
  5. package/dist/agent-rows.d.ts +99 -0
  6. package/dist/agent-rows.js +1 -0
  7. package/dist/agents-store.d.ts +6 -2
  8. package/dist/agents-store.js +75 -25
  9. package/dist/agents.d.ts +9 -125
  10. package/dist/agents.js +15 -305
  11. package/dist/answer-json.d.ts +23 -0
  12. package/dist/answer-json.js +58 -0
  13. package/dist/api-only.d.ts +1 -1
  14. package/dist/api-only.js +2 -2
  15. package/dist/archil-settings.d.ts +11 -1
  16. package/dist/archil-settings.js +10 -0
  17. package/dist/bash-read-only.d.ts +35 -0
  18. package/dist/bash-read-only.js +778 -0
  19. package/dist/box-settings.d.ts +3 -23
  20. package/dist/box-settings.js +7 -51
  21. package/dist/boxes.d.ts +17 -0
  22. package/dist/boxes.js +27 -20
  23. package/dist/browser-commands.d.ts +5 -2
  24. package/dist/browser-commands.js +4 -4
  25. package/dist/browser-computer.d.ts +5 -0
  26. package/dist/browser-computer.js +21 -0
  27. package/dist/browser-cost.d.ts +9 -6
  28. package/dist/browser-cost.js +95 -51
  29. package/dist/browser-live.d.ts +7 -20
  30. package/dist/browser-live.js +15 -93
  31. package/dist/browser-person.d.ts +18 -51
  32. package/dist/browser-person.js +94 -277
  33. package/dist/budget.d.ts +0 -5
  34. package/dist/budget.js +0 -5
  35. package/dist/cap.d.ts +14 -8
  36. package/dist/cap.js +19 -9
  37. package/dist/cli.js +71 -18
  38. package/dist/closed-pipes.d.ts +2 -0
  39. package/dist/closed-pipes.js +13 -0
  40. package/dist/computer-commands.d.ts +2 -0
  41. package/dist/computer-commands.js +2 -0
  42. package/dist/computer-keys.d.ts +20 -10
  43. package/dist/computer-keys.js +36 -54
  44. package/dist/computer-setting.d.ts +20 -3
  45. package/dist/computer-setting.js +58 -10
  46. package/dist/computers.d.ts +35 -2
  47. package/dist/computers.js +72 -11
  48. package/dist/confine.d.ts +120 -0
  49. package/dist/confine.js +436 -0
  50. package/dist/console/assets/index-B7NKTU8E.css +1 -0
  51. package/dist/console/assets/index-CXZMgJE7.js +550 -0
  52. package/dist/console/index.html +2 -2
  53. package/dist/content-filter.d.ts +7 -0
  54. package/dist/content-filter.js +23 -0
  55. package/dist/decision-cap.d.ts +7 -29
  56. package/dist/decision-cap.js +3 -94
  57. package/dist/decision-rows.d.ts +1 -1
  58. package/dist/decision-rows.js +1 -1
  59. package/dist/docker-daemon.d.ts +31 -0
  60. package/dist/docker-daemon.js +56 -0
  61. package/dist/effort-guidance.js +4 -3
  62. package/dist/environment.d.ts +0 -3
  63. package/dist/environment.js +3 -5
  64. package/dist/errors.d.ts +1 -2
  65. package/dist/errors.js +9 -9
  66. package/dist/explain.js +3 -1
  67. package/dist/filed-answer.d.ts +32 -0
  68. package/dist/filed-answer.js +160 -0
  69. package/dist/files.d.ts +1 -3
  70. package/dist/files.js +2 -4
  71. package/dist/github-connection.d.ts +1 -1
  72. package/dist/github-connection.js +25 -7
  73. package/dist/github-faux.d.ts +26 -0
  74. package/dist/github-faux.js +76 -0
  75. package/dist/github.d.ts +6 -2
  76. package/dist/github.js +5 -3
  77. package/dist/graph-served.d.ts +5 -3
  78. package/dist/graph-served.js +14 -6
  79. package/dist/graph-view.d.ts +3 -5
  80. package/dist/graph-view.js +9 -16
  81. package/dist/handed-values.d.ts +9 -0
  82. package/dist/handed-values.js +26 -0
  83. package/dist/harness-install.d.ts +1 -7
  84. package/dist/harness-install.js +1 -18
  85. package/dist/harness-opencode/adapter.d.ts +7 -0
  86. package/dist/harness-opencode/adapter.js +23 -6
  87. package/dist/harness-opencode/harness.js +0 -1
  88. package/dist/harness-opencode/host/policy.js +2 -2
  89. package/dist/harness-opencode/index.d.ts +1 -1
  90. package/dist/harness-opencode/index.js +1 -1
  91. package/dist/harness-opencode/verify.d.ts +17 -0
  92. package/dist/harness-opencode/verify.js +30 -10
  93. package/dist/harness-table.js +6 -1
  94. package/dist/heard.js +1 -1
  95. package/dist/held-fd.d.ts +5 -0
  96. package/dist/held-fd.js +14 -0
  97. package/dist/host-calls.d.ts +20 -0
  98. package/dist/host-calls.js +12 -0
  99. package/dist/host-tools.d.ts +4 -21
  100. package/dist/host-tools.js +4 -61
  101. package/dist/host.d.ts +2 -4
  102. package/dist/host.js +2 -7
  103. package/dist/import-summary.d.ts +1 -5
  104. package/dist/import-summary.js +0 -21
  105. package/dist/import.d.ts +6 -6
  106. package/dist/import.js +14 -15
  107. package/dist/index.d.ts +1 -0
  108. package/dist/index.js +1 -0
  109. package/dist/key-refusal.d.ts +5 -1
  110. package/dist/key-refusal.js +19 -4
  111. package/dist/learn/check.d.ts +8 -2
  112. package/dist/learn/check.js +85 -31
  113. package/dist/learn/folder.d.ts +11 -4
  114. package/dist/learn/folder.js +17 -19
  115. package/dist/learn/grade.d.ts +18 -1
  116. package/dist/learn/grade.js +108 -14
  117. package/dist/learn/index.d.ts +5 -5
  118. package/dist/learn/index.js +5 -5
  119. package/dist/learn/learning.sh +1 -14
  120. package/dist/learn/notes.d.ts +14 -3
  121. package/dist/learn/notes.js +16 -6
  122. package/dist/learn/reflect.d.ts +31 -2
  123. package/dist/learn/reflect.js +83 -6
  124. package/dist/learn/relevance.d.ts +24 -0
  125. package/dist/learn/relevance.js +91 -0
  126. package/dist/learn/secrets.d.ts +7 -1
  127. package/dist/learn/secrets.js +86 -19
  128. package/dist/learn/skills.d.ts +159 -18
  129. package/dist/learn/skills.js +644 -64
  130. package/dist/learned-nodes.d.ts +14 -0
  131. package/dist/learned-nodes.js +8 -0
  132. package/dist/learned-workflow.d.ts +41 -6
  133. package/dist/learned-workflow.js +153 -18
  134. package/dist/learning-routes.d.ts +49 -4
  135. package/dist/learning-routes.js +113 -31
  136. package/dist/learning-run.d.ts +16 -31
  137. package/dist/learning-run.js +31 -38
  138. package/dist/learning-words.d.ts +12 -5
  139. package/dist/learning-words.js +18 -9
  140. package/dist/learning.d.ts +91 -97
  141. package/dist/learning.js +176 -320
  142. package/dist/live/stream.js +1 -1
  143. package/dist/live/translate.js +12 -2
  144. package/dist/llm.d.ts +4 -1
  145. package/dist/llm.js +4 -2
  146. package/dist/local-models.d.ts +11 -5
  147. package/dist/local-models.js +13 -8
  148. package/dist/mcp-gateway.d.ts +17 -49
  149. package/dist/mcp-gateway.js +55 -136
  150. package/dist/mcp-oauth.d.ts +10 -14
  151. package/dist/mcp-oauth.js +14 -32
  152. package/dist/mcp-probe.d.ts +0 -7
  153. package/dist/mcp-probe.js +4 -10
  154. package/dist/mcp-servers-store.d.ts +18 -18
  155. package/dist/mcp-servers-store.js +12 -14
  156. package/dist/mcp-store.js +3 -4
  157. package/dist/mcp.js +4 -3
  158. package/dist/model.d.ts +9 -7
  159. package/dist/model.js +51 -27
  160. package/dist/monid.d.ts +0 -2
  161. package/dist/monid.js +3 -6
  162. package/dist/openapi.d.ts +8 -1
  163. package/dist/openapi.js +156 -58
  164. package/dist/page.d.ts +1 -3
  165. package/dist/page.js +6 -18
  166. package/dist/paid-calls.d.ts +21 -27
  167. package/dist/paid-calls.js +26 -61
  168. package/dist/pause.d.ts +2 -19
  169. package/dist/pause.js +5 -74
  170. package/dist/port-models.d.ts +10 -3
  171. package/dist/port-models.js +26 -6
  172. package/dist/propose.d.ts +2 -0
  173. package/dist/propose.js +80 -45
  174. package/dist/push-handler.d.ts +1 -1
  175. package/dist/reflect-range.d.ts +25 -0
  176. package/dist/reflect-range.js +30 -0
  177. package/dist/refusal-words.d.ts +5 -1
  178. package/dist/refusal-words.js +5 -1
  179. package/dist/rows.d.ts +1 -1
  180. package/dist/run-cut.d.ts +0 -6
  181. package/dist/run-cut.js +0 -6
  182. package/dist/run-db.d.ts +2 -11
  183. package/dist/run-db.js +2 -37
  184. package/dist/run-launch.d.ts +21 -2
  185. package/dist/run-launch.js +14 -5
  186. package/dist/run-learning-served.d.ts +21 -4
  187. package/dist/run-learning-served.js +23 -13
  188. package/dist/run-reads-over-store.d.ts +5 -3
  189. package/dist/run-reads-over-store.js +25 -14
  190. package/dist/run-secrets.d.ts +1 -1
  191. package/dist/run-timeline-served.d.ts +5 -1
  192. package/dist/run-timeline-served.js +27 -6
  193. package/dist/run-view.d.ts +37 -22
  194. package/dist/run-view.js +85 -38
  195. package/dist/runnable.d.ts +21 -10
  196. package/dist/runnable.js +35 -12
  197. package/dist/runner/adapter-loop.d.ts +36 -5
  198. package/dist/runner/adapter-loop.js +663 -69
  199. package/dist/runner/adapter-run-spec.d.ts +42 -8
  200. package/dist/runner/adapter-run-spec.js +186 -52
  201. package/dist/runner/adapters/index.js +11 -1
  202. package/dist/runner/adapters/pi.d.ts +40 -2
  203. package/dist/runner/adapters/pi.js +110 -27
  204. package/dist/runner/beside.d.ts +38 -3
  205. package/dist/runner/beside.js +54 -5
  206. package/dist/runner/claim-secrets.d.ts +16 -1
  207. package/dist/runner/claim-secrets.js +62 -14
  208. package/dist/runner/cli-run-spec.d.ts +5 -0
  209. package/dist/runner/cli-run-spec.js +159 -41
  210. package/dist/runner/commands.js +1 -1
  211. package/dist/runner/computer-journal.d.ts +15 -2
  212. package/dist/runner/computer-journal.js +41 -5
  213. package/dist/runner/conformance/harness.d.ts +1 -0
  214. package/dist/runner/conformance/harness.js +123 -13
  215. package/dist/runner/conformance/subject.d.ts +4 -1
  216. package/dist/runner/dispatch.d.ts +8 -1
  217. package/dist/runner/dispatch.js +81 -7
  218. package/dist/runner/end-of-run.d.ts +8 -2
  219. package/dist/runner/end-of-run.js +10 -4
  220. package/dist/runner/github-app.d.ts +7 -2
  221. package/dist/runner/github-app.js +47 -16
  222. package/dist/runner/harness-loops.d.ts +15 -2
  223. package/dist/runner/harness-loops.js +38 -2
  224. package/dist/runner/journal-kinds.d.ts +60 -6
  225. package/dist/runner/journal-kinds.js +43 -5
  226. package/dist/runner/journal-reader.d.ts +1 -1
  227. package/dist/runner/journal-reader.js +2 -2
  228. package/dist/runner/learning-ask.d.ts +4 -0
  229. package/dist/runner/learning-ask.js +15 -1
  230. package/dist/runner/learning-end.d.ts +18 -3
  231. package/dist/runner/learning-end.js +194 -20
  232. package/dist/runner/learning-loop.d.ts +7 -0
  233. package/dist/runner/learning-loop.js +36 -8
  234. package/dist/runner/learning-seed.d.ts +6 -0
  235. package/dist/runner/learning-seed.js +6 -0
  236. package/dist/runner/loop-contract.d.ts +4 -0
  237. package/dist/runner/main.d.ts +61 -9
  238. package/dist/runner/main.js +144 -20
  239. package/dist/runner/mcp-claim.d.ts +3 -0
  240. package/dist/runner/mcp-claim.js +7 -3
  241. package/dist/runner/mcp-github.d.ts +11 -2
  242. package/dist/runner/mcp-github.js +55 -4
  243. package/dist/runner/mcp-run.d.ts +2 -0
  244. package/dist/runner/mcp-run.js +16 -5
  245. package/dist/runner/memory-claim.d.ts +9 -0
  246. package/dist/runner/memory-claim.js +25 -0
  247. package/dist/runner/metrics.d.ts +46 -1
  248. package/dist/runner/metrics.js +156 -1
  249. package/dist/runner/model-route.d.ts +16 -0
  250. package/dist/runner/model-route.js +134 -10
  251. package/dist/runner/reflect-hook.d.ts +12 -1
  252. package/dist/runner/reflect-hook.js +33 -3
  253. package/dist/runner/runner.d.ts +20 -0
  254. package/dist/runner/runner.js +146 -18
  255. package/dist/runner/spec-holds.d.ts +7 -2
  256. package/dist/runner/spec-holds.js +4 -3
  257. package/dist/runner/store-port.d.ts +1 -1
  258. package/dist/runner/store-secrets.d.ts +3 -3
  259. package/dist/runner/store-secrets.js +8 -12
  260. package/dist/runner/text-tools.d.ts +44 -0
  261. package/dist/runner/text-tools.js +237 -0
  262. package/dist/runner/workflow-host.d.ts +7 -2
  263. package/dist/runner/workflow-host.js +3 -1
  264. package/dist/runner/workflow-loop.d.ts +10 -1
  265. package/dist/runner/workflow-loop.js +14 -6
  266. package/dist/runner/workflow-spec.d.ts +21 -0
  267. package/dist/runner/workflow-spec.js +217 -93
  268. package/dist/runs-over-store.d.ts +14 -3
  269. package/dist/runs-over-store.js +100 -23
  270. package/dist/seal-key.d.ts +0 -2
  271. package/dist/seal-key.js +5 -45
  272. package/dist/sealed-settings-store.d.ts +19 -4
  273. package/dist/sealed-settings-store.js +9 -9
  274. package/dist/sealing.d.ts +4 -0
  275. package/dist/sealing.js +20 -0
  276. package/dist/secret-cut.d.ts +1 -1
  277. package/dist/secret-cut.js +1 -1
  278. package/dist/secret-name.d.ts +9 -0
  279. package/dist/secret-name.js +15 -0
  280. package/dist/secret-writes.d.ts +0 -1
  281. package/dist/secret-writes.js +0 -1
  282. package/dist/server-fs.d.ts +4 -0
  283. package/dist/server-fs.js +8 -2
  284. package/dist/server-lock.d.ts +0 -24
  285. package/dist/server-lock.js +5 -85
  286. package/dist/server-secrets-store.d.ts +4 -4
  287. package/dist/server-secrets-store.js +9 -31
  288. package/dist/server-secrets.d.ts +4 -9
  289. package/dist/server-secrets.js +12 -36
  290. package/dist/server.d.ts +37 -56
  291. package/dist/server.js +322 -134
  292. package/dist/sign-ins-store.d.ts +34 -36
  293. package/dist/sign-ins-store.js +27 -38
  294. package/dist/sign-ins.d.ts +2 -119
  295. package/dist/sign-ins.js +5 -311
  296. package/dist/standard-webhooks.d.ts +1 -1
  297. package/dist/standard-webhooks.js +1 -1
  298. package/dist/stats.d.ts +3 -2
  299. package/dist/stats.js +1 -1
  300. package/dist/stop-signals.d.ts +4 -2
  301. package/dist/stop-signals.js +5 -3
  302. package/dist/store/agent-body.d.ts +12 -2
  303. package/dist/store/agent-body.js +22 -4
  304. package/dist/store/deadline.d.ts +18 -0
  305. package/dist/store/deadline.js +45 -0
  306. package/dist/store/index.d.ts +2 -2
  307. package/dist/store/index.js +2 -2
  308. package/dist/store/open.d.ts +6 -3
  309. package/dist/store/open.js +2 -2
  310. package/dist/store/postgres/connection.d.ts +22 -2
  311. package/dist/store/postgres/connection.js +211 -41
  312. package/dist/store/postgres/migrate.d.ts +4 -0
  313. package/dist/store/postgres/migrate.js +9 -2
  314. package/dist/store/postgres/migrations/0003_commands_one_answer.check.sql +19 -0
  315. package/dist/store/postgres/migrations/0003_commands_one_answer.sql +13 -0
  316. package/dist/store/postgres/store.d.ts +9 -2
  317. package/dist/store/postgres/store.js +9 -0
  318. package/dist/store/schema.js +1 -1
  319. package/dist/store/seal.js +2 -2
  320. package/dist/store/sqlite/connection.js +14 -5
  321. package/dist/store/sqlite/run-patch.d.ts +3 -0
  322. package/dist/store/sqlite/run-patch.js +3 -0
  323. package/dist/store/sqlite/store.js +41 -12
  324. package/dist/store/store.d.ts +35 -6
  325. package/dist/store/store.js +12 -2
  326. package/dist/store-reads/cap.d.ts +1 -1
  327. package/dist/store-reads/cap.js +22 -4
  328. package/dist/store-reads/journal.d.ts +9 -6
  329. package/dist/store-reads/journal.js +129 -18
  330. package/dist/store-reads/learning.d.ts +82 -8
  331. package/dist/store-reads/learning.js +184 -11
  332. package/dist/store-reads/workflow.d.ts +1 -1
  333. package/dist/store-reads/workflow.js +1 -1
  334. package/dist/store-view.d.ts +19 -1
  335. package/dist/store-view.js +95 -27
  336. package/dist/template-eval.d.ts +60 -4
  337. package/dist/template-eval.js +120 -54
  338. package/dist/templates.d.ts +33 -14
  339. package/dist/templates.js +82 -46
  340. package/dist/timeline/group.d.ts +33 -0
  341. package/dist/timeline/group.js +77 -0
  342. package/dist/timeline/index.d.ts +7 -0
  343. package/dist/timeline/index.js +7 -0
  344. package/dist/timeline/labels.d.ts +79 -0
  345. package/dist/timeline/labels.js +150 -0
  346. package/dist/timeline/origin.d.ts +56 -0
  347. package/dist/timeline/origin.js +92 -0
  348. package/dist/timeline/render-text.d.ts +11 -0
  349. package/dist/timeline/render-text.js +62 -0
  350. package/dist/timeline/timeline.d.ts +282 -0
  351. package/dist/timeline/timeline.js +1308 -0
  352. package/dist/timeline/util.d.ts +17 -0
  353. package/dist/timeline/util.js +49 -0
  354. package/dist/tool-budget.d.ts +18 -0
  355. package/dist/tool-budget.js +50 -0
  356. package/dist/tool-gate.d.ts +47 -218
  357. package/dist/tool-gate.js +87 -545
  358. package/dist/tool-keys-store.d.ts +11 -12
  359. package/dist/tool-keys-store.js +24 -31
  360. package/dist/tool-keys.d.ts +5 -101
  361. package/dist/tool-keys.js +8 -267
  362. package/dist/tool-plane.d.ts +23 -52
  363. package/dist/tool-plane.js +23 -81
  364. package/dist/tool-settings-store.d.ts +1 -2
  365. package/dist/tool-settings-store.js +5 -8
  366. package/dist/tools.d.ts +67 -25
  367. package/dist/tools.js +170 -119
  368. package/dist/trigger-adapter.d.ts +2 -2
  369. package/dist/trigger-targets.d.ts +13 -1
  370. package/dist/trigger-targets.js +31 -1
  371. package/dist/triggers.d.ts +2 -2
  372. package/dist/triggers.js +3 -3
  373. package/dist/turn-end.d.ts +1 -1
  374. package/dist/turn-end.js +1 -1
  375. package/dist/turns.d.ts +0 -6
  376. package/dist/turns.js +0 -19
  377. package/dist/uploads.d.ts +28 -5
  378. package/dist/uploads.js +83 -10
  379. package/dist/usage.d.ts +1 -49
  380. package/dist/usage.js +3 -84
  381. package/dist/validate.d.ts +4 -0
  382. package/dist/validate.js +33 -14
  383. package/dist/webhooks.d.ts +102 -76
  384. package/dist/webhooks.js +266 -233
  385. package/dist/workflow-run.d.ts +114 -0
  386. package/dist/workflow-run.js +144 -0
  387. package/dist/workspace/archil-claim.d.ts +2 -2
  388. package/dist/workspace/archil-claim.js +4 -3
  389. package/dist/workspace/archil-disk.d.ts +10 -1
  390. package/dist/workspace/archil-disk.js +4 -0
  391. package/dist/workspace/archil-exec.d.ts +12 -2
  392. package/dist/workspace/archil-exec.js +16 -0
  393. package/dist/workspace/archil.d.ts +2 -2
  394. package/dist/workspace/archil.js +25 -5
  395. package/dist/workspace/attach.js +2 -0
  396. package/dist/workspace/beneath.d.ts +19 -0
  397. package/dist/workspace/beneath.js +106 -0
  398. package/dist/workspace/computer-deps.d.ts +26 -9
  399. package/dist/workspace/computer-deps.js +144 -43
  400. package/dist/workspace/computer-for-claim.d.ts +17 -14
  401. package/dist/workspace/computer-for-claim.js +99 -26
  402. package/dist/workspace/computer-hold.d.ts +6 -1
  403. package/dist/workspace/computer-hold.js +6 -1
  404. package/dist/workspace/computer-janitor.d.ts +47 -0
  405. package/dist/workspace/computer-janitor.js +182 -0
  406. package/dist/workspace/computer-ledger.d.ts +1 -8
  407. package/dist/workspace/computer-ledger.js +0 -3
  408. package/dist/workspace/computer-providers.d.ts +5 -3
  409. package/dist/workspace/computer-providers.js +11 -9
  410. package/dist/workspace/grep-worker.d.ts +5 -0
  411. package/dist/workspace/grep-worker.js +9 -6
  412. package/dist/workspace/hands.d.ts +5 -2
  413. package/dist/workspace/hands.js +4 -3
  414. package/dist/workspace/index.d.ts +6 -5
  415. package/dist/workspace/index.js +4 -4
  416. package/dist/workspace/local.d.ts +14 -2
  417. package/dist/workspace/local.js +170 -43
  418. package/dist/workspace/paths.js +3 -2
  419. package/dist/workspace/pi-env.d.ts +4 -0
  420. package/dist/workspace/pi-env.js +3 -2
  421. package/dist/workspace/resolve-computer.d.ts +55 -10
  422. package/dist/workspace/resolve-computer.js +66 -14
  423. package/dist/workspace/run-tools.d.ts +15 -31
  424. package/dist/workspace/run-tools.js +19 -30
  425. package/dist/workspace/workspace.d.ts +5 -0
  426. package/dist/workspace-paths.d.ts +0 -17
  427. package/dist/workspace-paths.js +1 -41
  428. package/dist/workspace.d.ts +0 -17
  429. package/dist/workspace.js +4 -110
  430. package/package.json +14 -14
  431. package/skills/agentrun-serve/SKILL.md +1 -1
  432. package/templates/README.md +11 -5
  433. package/templates/code-review/evals/mentions-defused/case.yaml +15 -0
  434. package/templates/code-review/evals/mentions-defused/fixtures/github-mcp.json +254 -0
  435. package/templates/code-review/evals/mentions-defused/graders/no-pings.md +16 -0
  436. package/templates/code-review/evals/mentions-defused/graders/posted-a-review.md +5 -0
  437. package/templates/code-review/evals/mentions-defused/graders/schema.md +5 -0
  438. package/templates/code-review/evals/mentions-defused/prompt.md +10 -0
  439. package/templates/kyb/evals/clean-public-company/graders/no-opensanctions.md +5 -0
  440. package/templates/kyb/evals/opensanctions-on/case.yaml +5 -0
  441. package/templates/kyb/evals/opensanctions-on/graders/licence-and-evidence.md +18 -0
  442. package/templates/kyb/evals/opensanctions-on/graders/schema.md +5 -0
  443. package/templates/kyb/evals/opensanctions-on/prompt.md +11 -0
  444. package/templates/market-monitor/agent.md +2 -2
  445. package/templates/market-monitor/skills/monitor/SKILL.md +6 -4
  446. package/templates/release-notes/agent.md +11 -0
  447. package/dist/bound-files.d.ts +0 -4
  448. package/dist/bound-files.js +0 -164
  449. package/dist/coding-tools.d.ts +0 -47
  450. package/dist/coding-tools.js +0 -189
  451. package/dist/computer-adb.d.ts +0 -12
  452. package/dist/computer-adb.js +0 -14
  453. package/dist/console/assets/index-Dn0ngwG9.js +0 -535
  454. package/dist/console/assets/index-DvW6Aled.css +0 -1
  455. package/dist/grade.d.ts +0 -63
  456. package/dist/grade.js +0 -150
  457. package/dist/mcp-servers.d.ts +0 -269
  458. package/dist/mcp-servers.js +0 -456
  459. package/dist/packs.d.ts +0 -71
  460. package/dist/packs.js +0 -180
  461. package/dist/sealed-settings.d.ts +0 -60
  462. package/dist/sealed-settings.js +0 -171
  463. package/dist/sessions.d.ts +0 -6
  464. package/dist/sessions.js +0 -109
  465. package/dist/workspace/computer-serves.d.ts +0 -12
  466. package/dist/workspace/computer-serves.js +0 -15
package/CHANGELOG.md CHANGED
@@ -2,6 +2,374 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.0-beta.35 (2026-11-11)
6
+
7
+ - 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.
8
+ Who breaks: a host that already sets `AGENT_MODEL_FAST` or `AGENT_MODEL_STRONG` changes with no action. Its learned workflows' nodes of that tier now run on that model and at its price, and when that model can't be reached the learned_workflow call fails where it used to run on the run's own model.
9
+ Upgrading: a host whose `AGENT_MODEL_FAST` or `AGENT_MODEL_STRONG` names a model it can't reach should unset it or make the model reachable; learned tier nodes now run on it.
10
+ - A retired note, skill or workflow draft that waited for its owner's OK waits again when it is restored: a restore gives back the status it had before its retire, and only an approval makes it active. Before, Retire then Restore made a held rule active, and the restore was recorded as the owner's approval. A retire now records the status it took the item from (`retired_from: active | pending` in its front matter), the learning view says it (`retired.from`), and the console's Restore confirm says what the restore does: "It becomes active again" only for an item that was active, else that it goes back to waiting for your OK. A person's edit of a retired note keeps it retired with what its retire recorded, and a run's note may not set `retired_from`. An edit (`PUT /v2/agents/{agent_id}/learning/files/{file}`) that drops or changes a retired note's `status: retired`, or changes its `retired_from`, is now refused (400 `bad_request`, rule `status`); before, an edit that dropped it made the note active.
11
+ Upgrading: restore a retired note with `POST /v2/agents/{agent_id}/learning/files/{file}/restore`; an edit that drops or changes its `status: retired` is refused.
12
+ - A note, skill or workflow draft retired before this upgrade has no recorded status, so its restore puts it back waiting for its owner's OK, never active: approve it after the restore to make it active again. Upgrading: nothing to do.
13
+ - A capped run now wraps up instead of running into its cap with no answer. Once its spend plus what its requests and paid steps still out are held at reaches 75% of the cap, 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. 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.
14
+ - 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 at 75% and answers from what it has. A run with no cap is unchanged.
15
+ - A learned workflow draft may run an MCP tool in a call node (`"via": "tool"`, `"tool": "mcp:<server>/<tool>"`) when the agent's revision grants it, by its own name or under its server's wildcard `mcp:<server>/*` (read against the tools the server lists), and its gate does not deny it (one set to ask is offered where someone can answer an ask, the server's accounts on: its learned_workflow call asks once, naming its MCP tools; with no one, it is not, since that call would be refused at once); a draft naming any other is refused, and one the gate denies is refused in the gate's words. The end-of-run turn's draft ask says what each such tool takes and gives, from its server's listing. The grader is told, under each draft, the MCP tools its call nodes run, by server and tool, and holds the draft for its owner's OK when one writes or sends: the learned workflow runs it unattended at every call. A draft's dry run synthesizes an MCP node's output from its `out`, as any call's, and sends nothing.
16
+ A draft whose MCP tools set to ask would not all fit on its learned call's approval card is refused when it is proposed, in the gate's words, by the gate's own rule. A draft with a step calling an MCP tool that has no declared per-call price waits for its owner's OK whatever the grade says, since such a tool runs outside the run's cost and cap; the reason names the step, the tool and its server, and the grader is told it.
17
+ Upgrading: nothing to do.
18
+ - A learned workflow can be made an agent of its own. The owner clicks "Make this an agent" on an active learned workflow in the Learning tab (`POST /v2/agents/{agent_id}/learning/workflows/{name}/promote`), and the server makes a new workflow agent from its `workflow.json`: its runs run the workflow's nodes with no agent loop and answer the workflow's output, and pipelines and triggers can call it as any agent. Only an active workflow is made an agent (one that waits for the owner's OK, or was retired, is `409 learned_not_active`), only from the owner's password session (a token is 403), and only once it passes the checks a restore makes and a workflow revision's save makes. The new agent's tools are the ones its call nodes call, under the source agent's own tool settings, approvals and default cap, never more. The new agent's id is the workflow's name, or the name with `-2`, `-3` and so on when an agent (archived ones too) already has that id or name. The request may give the new agent a `name`, 1 to 200 characters; without one it is named as its id. A retry with the same `Idempotency-Key` answers the agent the first request made, never a second one. The learned workflow stays where it is.
19
+ Upgrading: nothing to do.
20
+ - See learning at work, from the server:
21
+ - A learned workflow's call shows which of its nodes ran: its `tool_result` row in a run's timeline carries `learned_nodes`, each node's label, kind, how it ended (`ok`, `failed`, `escalated`) and how long it took; never why a node failed, whose text can hold part of a secret. A call stopped part way keeps the nodes that ended before it stopped.
22
+ - An agent whose learning is only skills or only workflows now has an impact: a run whose claim laid a learned skill or workflow counts on the "after" side, as one that started from a note does. A run's launch records the learned workflows it was offered beside its skills, and its claim records which skills and workflows it laid.
23
+ - `GET /runs/{id}/learning` gains `used`: which learned skills the run's claims laid and whether its job read each one (`used.skills`; a skill a revision's own skill of that name kept out is not one), and which learned workflows it called, how many times and how many of those failed (`used.workflows`; a call with no result yet is not a failure), apart from `skills` and `workflows`, what it learned.
24
+ A run from before this change: its `used.skills` is empty (its claims recorded no laid skills, `agentrun.learning.laid`), and its `used.workflows` lists its learned_workflow calls, read from its journal, when its launch named notes or skills (one whose launch named neither reads both empty); the agent's impact counts it by its notes, as before.
25
+ There is no "saved vs by hand" figure per run: no per-run baseline exists that is not a guess; the agent's impact (before and after) says it per agent.
26
+ Upgrading: a client reading `GET /runs/{id}/learning` gets a new `used` object (empty lists when none), and a timeline row may carry `learned_nodes`.
27
+ - An agent can now cap its tool calls: `max_tool_calls: N` on the definition (a template's `budget.tool_calls`) gives each conversation of a pi run N tool calls. Past N, the run's tool gate refuses every further call with one fixed message telling the model to stop calling tools and answer from what it has. That refusal is not counted, and the run is never ended by it, so the model's final answer still lands. The count is read from the conversation's journal, so a restart or a moved claim keeps it, and a conversation a tool opens counts its own calls. An edit that leaves the field out keeps it, 0 clears it, and on another harness the save is refused.
28
+ - Upgrading: nothing to change; an agent with no budget runs as before.
29
+ - A Mode 2 server with no exec image saved now runs its Archil execs in Docker's `buildpack-deps:trixie-scm`, pinned by digest (`buildpack-deps@sha256:4f34e1d6…`, git 2.47.3), instead of Archil's default exec image. Archil's image has git 2.34.1, and a shell under a bash policy runs git only at 2.43 or later, so a read-only agent on Archil got no git. An image saved through `PUT /v2/workspace/archil` (`image`) still replaces the default; it needs git 2.43 for a read-only agent, and GNU coreutils and perl for the exec line, as Debian-family images have. The console's image field says the new default.
30
+ - A shell under a bash policy (`tool_settings.bash.policy: "read-only"`) now runs git with its config locked down, so a read of someone else's checkout can't run a program that git config names. git reads no system or global config (`GIT_CONFIG_NOSYSTEM=1`, `GIT_CONFIG_GLOBAL=/dev/null`). Command-line config (`GIT_CONFIG_COUNT`, which outranks a repository's own `.git/config`) turns off core.fsmonitor and hooks, sets cat as the pager, reads no attributes (so no textconv, external diff or filter driver attaches to a path), finds a bare repository only when named (`safe.bareRepository=explicit`, against one planted in the tree), allows no transport and runs no signature program. `GIT_PAGER`/`PAGER` are cat, with no prompt, no optional lock and no lazy fetch. The lock-down needs git 2.43 (`attr.tree`), and an older git ignores what it doesn't know, so under a policy `git` runs only at 2.43 or later. An older one (a stock serverless exec image's 2.34) refuses each git call with words saying why, and nothing runs; give a read-only agent's exec image a newer git. A run with no bash policy keeps the plain shell environment.
31
+ - A capped run straight to Anthropic is no longer paused by a cap it could work under. Before each answer request on a route to `https://api.anthropic.com` (pi and claude-agent), the model proxy asks Anthropic's free token count (`POST /v1/messages/count_tokens`). It sends only the credential and version headers, and never goes through a gateway or any other base. The request's input bound is then that count plus the tool-use prompt, where before it was the body's bytes (about two to three times the tokens billed). A count that fails, says nothing or takes over 3 seconds leaves the byte bound, and the request goes on. Through OpenRouter or any other gateway the bound stays the bytes, so the cap still never passes.
32
+
33
+ The serve README's spend-cap section now states the smallest cap that works, by cap mode, measured on a pi desktop run on Sonnet. In `strict` mode (and in `expected`, the default, until the runner prices a step from the previous request's cache, #2504) it is $0.05 for the first request and $0.11 for a five-step run through a gateway, and $0.03 and $0.09 straight to Anthropic. The console's cap fields say it in a line, with a link. A cap below these still pauses with `Not sent: ... the next step needs at least $X`. A policy may count a request through `ProviderPolicy.countInput` (`InputCounter`, `countedInputOf` in the kernel host).
34
+ - A run paused at its cap and raised goes on the way the API says, on the runner.
35
+ - The raise's answer names the follow-up turn (`message_id`): the id the runner sends "The cap was raised to $X; continue the task." under, one per pause, so two raises sent at once, or a retry, name the same message.
36
+ - That follow-up shows in the Timeline as the server's row ("AgentRun: The cap was raised to $X; continue the task."), never as the person's "You: …", on pi. (A CLI harness's run records it with its per-request follow-up record, which comes separately.)
37
+ - A retry of a raise once the run has paused again under the raised cap is no raise of the new pause: it answers `resumed: false`, and the run stays paused.
38
+ - A CLI run (Claude Code, Codex) that waits for its harness's first-use install shows the "Installing … (first use)…" row on its timeline while it waits, not once the install is done.
39
+ - A run on a CLI harness (claude-agent, codex, opencode) now counts its tokens and its model requests in its metrics, and GET /v2/stats' analytics sum them, as a pi run's are. They are what the run's model proxy booked each request at, which the run's cost already came from; before, every CLI run read 0 requests and 0 tokens. A request booked with no usage, or sent and never answered, is counted unmetered, in no token sum; one answered at no known price keeps its tokens, its cost unknown.
40
+ Upgrading: nothing to do.
41
+ - A Claude Code, Codex or OpenCode run's files on the server's machine (its scratch folder under `<data>/scratch/`: the CLI's working directory, its home and state, the skills laid for it) are now removed when the run's claim ends, as the data layout always said, instead of staying for ever. Each claim gets a private folder of its own, so a run reopened by a follow-up while the last claim is still letting go never loses the new claim's files. The harness's session comes back from the run's journal at the next claim, as before.
42
+ - `deploy/compose.yaml` gives each runner container a memory limit, 2 GB by default (`AGENTRUN_RUNNER_MEMORY` in `.env` sets another). A runner claims runs by its memory, which it reads from its container's limit. With no limit, each of the two runners read the whole host's memory and budgeted all of it, so together they could claim twice what the host holds and an out-of-memory kill would take every run on it. Now each holds 1920 MiB of runs (six claude-agent runs or fifteen pi runs at once); the rest wait queued. A runner process also says its budget once at its start, on the line after its ready line: `Runner <name> memory: <N> MiB for runs, each weighed by its harness`.
43
+ - Upgrading: on a compose host with less than about 5 GB, set `AGENTRUN_RUNNER_MEMORY` (`1g`, say) so the runners' limits and the server fit.
44
+ - A Claude Code or Codex call that needs approval shows on the run's timeline while it waits, and the test harness for those CLIs asks the tool gate before each call, as the real ones do:
45
+ - serve: a CLI call the tool gate asks about goes on the run's record as it parks, its start marked parked, the way an MCP call parked at its door already did. Before, the timeline showed the approval card with no call row above it until the call ran. An allowed call then runs under that one start; a stop withdraws it and its row reads "Not run: the run was stopped while it waited".
46
+ - kernel: `askGate(gate, call, signal)` (`process/tools.ts`) is the gate step every tool bridge takes first: undefined for an allow, the refusal for a deny, and a park holds the call until the signal aborts. The faux harness in `@parcha/agentrun-kernel/testing` now asks it before each call: a deny is the call's answer, recorded so it is never asked again, and a park holds the turn. A recovered turn first runs the calls its last request left with no intent and no result (a parked one), under their own ids, as a real CLI's resume does. A test that scripts a faux CLI call to a tool set to ask (a `monid.` or MCP catalog tool by default) now sees the run park on it.
47
+ - A workflow run's graph read again with the same held keys redacts nothing again (#2464). `GET /v2/runs/{id}/graph` reads only the run's facts (its kind, revision, status, times, and whether it is withheld), never the run's served view, whose output and words were redacted again on every read. Every top-level field of the graph, its name and its value, scalar or not, is cut once per content and held-key set and kept as cut, as its parts already were. A key saved since makes a new set, cut on the next read. The read's own `read_at`, the server's clock, is served as it is.
48
+ Upgrading: nothing to do.
49
+ - Fixes a learned workflow draft that calls a tool the agent's own tool settings deny being left out "set to deny on this server". The words now name where the deny was set: "set to deny for this agent" for the agent's tool settings, "on this server" for the server's. The same holds when an owner restores a draft or makes a learned workflow an agent.
50
+ - Upgrading: nothing to change.
51
+ - Fixes a learning run whose cap you raised mid-run being told it had no budget left to look back. A run paused at a $0.001 cap and raised to $1 completed, then its learning read "Skipped: no budget left in this run to look back" with $0.994 of the $1 left: the end-of-run check compared the run's spend with the cap it started with. It now reads the cap the run is held to after a raise, the same one each of its requests is admitted under and its view shows, on pi and on claude-agent, codex and opencode.
52
+ - Upgrading: nothing to change.
53
+ - A run whose files live on the run's Archil disk (Mode 2) can read what its browser saved. browser_read and screenshot file their evidence in the run's own folder on the disk, where the run's `read` opens it; before, they wrote to a local folder that a Mode 2 run never has, so the call failed. browser_upload chooses from the same folder, and refuses a path that would leave it. browser_downloads, which copies into a folder of the runner's machine, is offered only where the run's files are on that machine (Mode 1), so a Mode 2 run is never told a file was saved where it cannot open it.
54
+ pi-browser exports `uploadMime(name)`, the media type browser_upload gives a file by its name.
55
+ - A data root serves one server again, whatever its store, and a server that replaces another waits for it instead of exiting. Since the switch to the one store, a server took only its store's owner lock, so two servers on one data root, each on a store of its own (two Postgres schemas, or SQLite and Postgres), both started and shared what the server writes beside its store (its token, its seal key, uploads, harness installs). A server now also takes `<data>/server.lock` once it holds its store, and reads or writes its token only after. A start that finds either held by the server it replaces (a redeploy, a restart that starts the new server before the old one has exited) says `another server holds this data root: waiting up to N s for the previous server to stop` and waits up to its `--drain-timeout` and 30 s, then exits 1. A server that died holds neither: both are kernel locks. `serveWithRunner(options)` is exported: a server and a runner beside it in one process, as the CLI's start composes them, for a launcher that starts serve in-process (a server alone leaves every run queued).
56
+ - A run whose paid tool call the cap refuses for room reads waiting on a raise only once the call's "Not sent: …" result is on its Timeline. The pause was journaled inside the call, before the harness stored its result, so for a moment the run showed its budget card with no row saying which call was refused. The pause now lands at the model's next request, as a refused model request's does.
57
+ - Runs left by a server that stopped are taken up correctly by the next start. Two cases were wrong. A run of a harness this host's memory can never hold (say a claude-agent run left working, restarted on a 384 MB host) used to be claimed anyway and read working forever. Now its claim fails it, in the same words a new start of it is refused with ("This server has 384 MB of memory … so it can't start here."). A stop or cancel sent just before the server stopped used to be left for the next start, whose runner could resume the run's turn before applying it. Now the closing runner applies it: the run ends stopped or cancelled before the stop is done, and the next start never opens it again.
58
+ - Upgrading: nothing to change.
59
+ - Runs on the runner behave as before the cutover in four places a person could hit:
60
+ - A run keeps the files it was started with. The server holds each of a run's `file_ids` for it at the start, so a file deleted between the start and the runner's claim is still copied into the run's `inputs/`. The hold goes once the copy is made, or when the run ends without one.
61
+ - A copy of a run's files that fails ends the run failed with "The run's files could not be copied into its workspace: <why>", instead of the bare error.
62
+ - A message sent while a turn works is answered before the run ends. The runner hands a turn's end every message it has not handed on yet, rather than at its next poll half a second later, so the run's end no longer refuses one the API took. On pi, a message placed as the turn answered was answered after the run's end was written: the run read completed, then wrote another answer.
63
+ - A claude-agent run's rows name a file it wrote or read by its name in the workspace (`Wrote hello.md`, `Saved hello.md`), not by the absolute path the Claude CLI sends, which named a folder on the runner's machine. The call's input preview keeps the path as sent.
64
+ - The test kit's faux adapter tells its script the session's working directory (`script(spec, { cwd })`), as a real CLI builds its absolute paths from it.
65
+ - A run's spend cap reads on the runner as it did before the cutover:
66
+ - A run paused at its cap shows the server's row "Paused at the run's cap" on its timeline, and, while it waits, "Waiting for you to raise the cap". The banner keeps the pause's sentence (`pending.said`). Before, nothing on the timeline said the run had paused.
67
+ - A run whose booked spend passed its cap shows by how much, after its usage row ("Spent $0.50, $0.20 over the run's cap of $0.30"), or that a cache miss did it within its bound.
68
+ - A run that passed its cap (`spend_cap_reached`) keeps the answer it paid for as `result.final_answer`, cut as it came. Before, its result was null.
69
+ - A run on a model with no price (a `--faux` module whose `cost` is `"unknown"`) costs unknown (`null`), never $0.
70
+ - Upgrading: nothing to change.
71
+ - A tool call the runner runs again after a crash meets the run's gate again. Before, a replay-safe call (web_search, web_fetch) that pi reran after a crash skipped the gate: a deny set since its first attempt didn't stop it, and a tool set to ask since ran it with no one's approval. Now a deny or a pin refuses the rerun in words saying the earlier attempt may have taken effect ("whether it took effect is not known"), never "nothing was sent", and a tool set to ask parks the run on it, the owner's answer then acting on it. A stop that lands while the rerun is asked wins over a permission that comes after it: the call never starts. Codex and Claude Code reruns say the same.
72
+ - A capped run that reads screenshots is no longer refused at its cap after the first one. A model request's input bound counted an image's base64 as one token per byte, and then the image's billed maximum on top. A 1280x720 screenshot (about a megabyte of base64) read as some 1.3 million input tokens, so a Sonnet step under a $1.50 cap "needed at least $4.83" when Claude bills it a few cents.
73
+
74
+ Each image, in every turn, now counts at what the routed model's provider can bill it as, in place of its data's bytes, whatever API carries it. The size comes from the image's own header (PNG, JPEG, GIF or WebP):
75
+ - Anthropic: its 28-pixel patches or its area at 750 pixels a token, whichever is more, at most 4,784.
76
+ - OpenAI: its 512-pixel tiles after resizing (85 + 170 each; 85 at detail low), or for a patch-billed mini or nano model its 32-pixel patches at that model's multiplier when more, at most 73,800.
77
+ - Google: 258 per 768-pixel tile, at least 1,120.
78
+ - Any other provider: the most of the three.
79
+ An image whose size can't be read counts at its provider's per-image maximum, never at its bytes. An image-shaped object outside where the API reads images (a tool call's arguments) is counted at its bytes, as text.
80
+
81
+ `InputShape.images` (the kernel host's `providerInputOverhead`) is now a list of images, each with the bytes its data takes and its size when known; `InputShape.model` names the routed model; the figure can be below 0, and so can a policy's `serverInputOverhead`, never past the body's bytes. Upgrading: pass `images: [{ bytes, width?, height? }]`, built with `imageInputOf`, `messagesImagesIn` or `responsesImagesIn`, and the model, in place of a count.
82
+ - Three fixes found by running again the tests the cutover skipped:
83
+ - A paid tool call's cost row on a run's timeline names the tool it ran (`web_search`, `web_fetch`) in its `tool_name` and its words, as the API docs say. Before, it named the fee ("Parallel's search").
84
+ - Saving an agent whose workflow the DSL can't read, with `POST /v2/agents` or `PUT /v2/agents/{agent_id}/definition`, answers 422 on `definition.workflow` in the DSL's words. Before, it answered 500.
85
+ - The contract's form of `PUT /v2/agents/{agent_id}/definition` takes any `version` past the current revision's, as the contract says; the revision is numbered the next. Before, a version further on than the next was refused 422.
86
+ - On a Postgres store, a write held up by the server process (its event loop busy with other work) no longer rolls back when the transaction itself was fine: its deadline, counted from the transaction's begin, counts only the time the process could run, as on SQLite. A lease's renew, whose deadline runs from its call, still counts the wall clock.
87
+ A pause longer than the database's idle-in-transaction timeout (the deadline plus 5 s) still ends the session at the database's end, which rolls the transaction back. The write now answers 409 `home_busy`, which is safe to retry, never a 500. A pause that ends just before the commit is credited to the commit's time too.
88
+ - Upgrading: nothing to change.
89
+ - Template follow-ups after launch:
90
+ - `release-notes` makes its own GitHub trigger: each release published on the repository it was applied to starts its notes (only that repository's). Applied where GitHub is not connected, the agent is made and the trigger is skipped with a warning. The GitHub App that Connect GitHub makes now subscribes to `release` events too, beside pull requests and comments.
91
+ - Upgrading: an App connected before this release is not subscribed to releases, so its release-notes trigger never fires. In GitHub, open the App's settings, then Permissions & events, tick Release under Subscribe to events, and save.
92
+ - A skipped GitHub trigger's warning says what it would run on, in the template's own words ("…so it runs by itself: Release notes runs on each release to acme/widgets."), never "review pull requests" for every template.
93
+ - New eval cases: `code-review/mentions-defused` (a review of a PR whose body and diff mention people and a team posts no plain @-mention) and `kyb/opensanctions-on` (with OpenSanctions on, its pages are an index cited as aggregators, the list owners' records stay the evidence, and the licence is stated); `kyb/clean-public-company` checks that with it off, opensanctions.org is never touched.
94
+ - A workflow run on the runner whose decision's provider reported no cost now saves its cost as unknown, not as the decision's hold. The run's end cost read the cap's own figure for its decisions, which counts a decision of no reported cost at its hold, so a run saved the hold (a guess) as a known cost. It now reads its decisions' cost from their booking records, as a pi or CLI run does: an unknown charge leaves the run's cost unknown. The cap still counts such a decision at its hold, so the run's cap is kept as before.
95
+ - What a run shows on the runner is right again:
96
+ - A run a provider's content filter stopped fails `moderated`, in words a person can act on ("The model provider stopped this answer (its content filter). Rephrase the request, or try another model."), on every harness. It failed `run_failed` in the provider's words. The Timeline's error row keeps them.
97
+ - An escalated run's `review` names the escalate node's kind, its label and its summary (`{kind: "review", node: "too big", reason: "needs a person"}`), in the run, in the lists and after a restart. It read `kind: null, node: null` and the reason "escalated at <node>".
98
+ - `GET /runs/{id}/graph` lists a workflow's call nodes' calls in `effects` again, each with its status and, for a refused one, the gate's words. The runner kept no node log, so every workflow run's `effects` was empty.
99
+ - An `llm` call's answer names the model it ran on as the run names it (`faux/faux-strong`), not the runner's internal session provider (`workflow-session-strong/faux-strong`).
100
+ - A workflow run refused for a wrong-typed input field (`input at #/properties/question`) is offered an input its workflow takes (`example`), as a missing or wrong-shaped input already was.
101
+ - Most of the learning tests that were skipped for the CLI harnesses run again. A test's harness table now reaches the in-process runner with or without the faux model, so a CLI run on a gateway runs on the test's harness, never on an installed CLI. These now pass: learned_workflow on claude-agent and codex, the gateway route on codex and opencode, both capped-codex cases, the side-call and claude-agent proxy cases, the real-adapter ask-and-allow cases, and the usage meter. Their checks of root entries the old per-run process wrote now read the runner's request records. Four cases that can't run on the in-process runner are gone, each still covered elsewhere:
102
+ - a learned call set to ask on the faux CLI harness, which asks no gate: covered by learned-route-real's real-adapter ask-and-allow cases on claude-agent and codex;
103
+ - a call cut off with its process, which would kill the test's own process: covered by the kernel's runner tests (a request a crash cut off is booked once, cut) and learned_workflow's never-replay case;
104
+ - claude-agent on OpenRouter alone, which needs a preload in a separate run process: covered by openrouter-route's or-1 and the kernel's side-key test;
105
+ - a call beside learned_workflow staying on its answer, which read the old root entries: covered by the kernel's side-key test (a side request is never the turn's answer).
106
+ Three sites in learn-workflow-run stay skipped, under reasons of their own: the two claude-agent native-search cases (:369, :383) wait on #2458, and the allow-before-the-parked-result race (:430, on codex and claude-agent) waits for the faux harness to ask the gate. learned-route's R2 and R3 no longer check the network guard: its preload can't reach an in-process runner, so those checks proved nothing.
107
+ Upgrading: nothing to do.
108
+ - The learning docs' "Coming" list no longer names what is on main: a grade that contradicts itself is asked once more, and a learned workflow's call node runs a granted MCP tool under the run's gate, each now in the learning section's text; the checker's refusal of a bank account, IBAN, routing or sort-code number is said beside the grader's rule. What a run's own draft may call of MCP stays under "Coming".
109
+ - The server README's GPU section says what a Daytona GPU sandbox is: one `H100` from Daytona's `daytona-gpu` snapshot, with its 16 vCPUs, 100 GiB of memory and 400 GiB of disk, and no mount, so this server refuses a Daytona sandbox with a `gpu` where its run folder is an Archil mount. It used to list six GPU types, up to eight, at 192 GiB of memory and 512 GiB of disk each.
110
+ - Each computer provider is now declared once, in a descriptor (`defineProvider`: its id, label, keys and the option each fills, settings, mounts, configurations, default images, whether it prepares its image, runs on this host or takes a ledger, and a lazy `load()`), and the registry and the kind registry's `PROVIDERS` are derived from the descriptors. `ProviderId` is any string; the built-in ids are `BuiltinProviderId`. The server reads every provider from its descriptor and names none, and an agent's computer can name an image a provider's configurations offer.
111
+
112
+ Who breaks, and what to do:
113
+
114
+ - The package root no longer exports the provider classes or their option types. Import `DockerProvider`, `DaytonaProvider`, `ModalProvider`, `BrowserbaseProvider`, `KernelProvider` and their helpers from the provider's subpath (`@parcha/agentrun-computer/docker`, `/daytona`, `/modal`, `/e2b`, `/orgo`, `/orgo-desktop`, `/phone-harness`, `/browserbase`, `/kernel`), or build a provider by id with `providerFor(id, options)`. Their option types (`DockerProviderOptions`, `ModalSdk` and the like) come from the same subpaths. Each provider's default image (`DAYTONA_DEFAULT_SNAPSHOT`, `MODAL_DEFAULT_IMAGE`, `E2B_BASE_TEMPLATE`, `ORGO_BASE_IMAGE`, `PHONE_IMAGE`, `BROWSER_IMAGE` and so on) is its descriptor's, exported from the root and no longer from its provider module. `ProviderKey` is gone: use `DescriptorKey`.
115
+ - A vendor's own failure is now code `vendor`, with the provider's id in the error's `vendor` field, where it was code `docker`, `daytona`, `modal`, `e2b`, `orgo` or `phone`. Match on `code === "vendor"` and read `vendor`. Settings → Computers' test reads it as "<provider> answered with an error"; an old code has no words of its own.
116
+ - `ComputerSpec.lifetimeMs` is optional in the type: a run's computer still needs it (`checkTenure`, which replaces `checkLifetime` in a provider's `check()`, refuses a spec without it), and an agent's computer has none.
117
+ - A provider whose descriptor declares `prepareImage` has `prepareImage()`, the image a computer starts from, built or pulled (Docker's is its `image()`). The server calls it before the first create and refuses the computer in words when it is missing; nothing looks for an `image()` method instead.
118
+ - Orgo offers Linux desktops only: its Windows and macOS desktops are parked (the descriptor's new `parked` list). An agent whose computer names Orgo's `windows` or `macos` image is refused at its run's start in words saying the desktop is parked and naming the image Orgo offers, `linux`; Settings → Computers lists no Windows image. `create({ os: "windows" })` and `create({ os: "macos" })` still build their providers, for the conformance suite.
119
+ - Local Chrome, the keyless local browser that 0.1.0-beta.34 shipped as the provider `local`, is the provider `local-chrome` (its descriptor `descriptors/local-chrome.ts`; `LocalBrowserProvider` from `@parcha/agentrun-computer/local-chrome`, its provider id's subpath; `./local` is gone): an agent's computer names `{ kind: "browser", provider: "local-chrome" }`, and one saved as `provider: "local"` is refused at its run's start as a provider this server does not know: set it to `local-chrome`.
120
+ - A provider module no longer exports `NETWORK`: the networks a provider makes are its descriptor's `network` (`ORGO.network`, for one), which the kind registry's entry carries and of which each built provider's `capabilities().network` is its own configuration's. Its conformance names are `AGENTRUN_COMPUTER_LIVE_LOCAL_CHROME`, `COMPUTER_LOCAL_CHROME_PATH` and `COMPUTER_LOCAL_CHROME_HEADED`. A descriptor's `hostEnv` names the server's own environment variables its provider reads on this machine (Local Chrome's Chrome lookup), which the server passes as `options.env`.
121
+ - Orgo computers made by a release before this one are swept at the next janitor pass; release them before upgrading. An Orgo computer's deadline is the one in its name alone, never Orgo's own end (`ends_at`) or its labels file, so one whose name carries none is a run's computer with no deadline, which the janitor ends.
122
+
123
+ Persistent computers are in the provider contract: `capabilities().persistence`, `spec.owner` (`{ agent, idleTtlMs? }`, labelled `agentrun.owner=agent:<id>`), `release(ref, "detach")`, `attach(ref, { claim })` under a new claim epoch, and on `ComputerInfo` `owned`, `owner` and `detachedAt`. Every built-in provider refuses `spec.owner` and `detach` in words; none declares persistence yet. `sweep` never deletes an agent's computer by a deadline, only when `ownerGone(agent)` says so or after its owner's idle TTL; `releaseOlder` detaches an agent's computer instead of deleting it (`ReleasedOlder.detached`). Only a provider that declares persistence has agents' computers: of one that does not, an owner label a caller put on a run's spec keeps nothing from the janitor. The conformance suite adds `provider.owner` and `provider.detach` (Core) and `provider.persistence` (Full, where persistence is declared). Docker's inspect read-back moves to `src/docker/inspect.ts`, with the same exports.
124
+
125
+ A configuration (`KindCapabilities`) may name the `image` an agent's setting selects it by and the create() `options` that build it (`imagesOf`, `configurationOf`). An agent's computer may name one: `computer: { kind, provider, image }`, such as `{ kind: "desktop", provider: "orgo", image: "linux" }`. It selects the provider's configuration of that name, built by its options beside the keys' (Orgo's `os`); absent, the kind's default. GET /computers lists each provider's `images` for the kind, the default first. An image the provider does not offer saves with a warning naming the ones it does, and its runs are refused at their start in the same words.
126
+
127
+ The server reads what each provider takes from its descriptor: its saved keys fill the options the descriptor names, a setting it declares (Modal's `modalApp`) fills its option from the server's settings or its default, the store's session ledger goes to a provider that declares one, and the image and host options go to one that declares `prepareImage` or `local`. A provider added to the computer package needs no server edit; an id no descriptor declares is refused.
128
+
129
+ Orgo's Windows desktop (parked: built, not offered to an agent): `create({ os: "windows", apiKey, workspaceId })` (`@parcha/agentrun-computer/orgo-desktop`) gives a desktop with daemon `none` that answers the protocol over Orgo's REST API. The screen is Orgo's screenshot; the pointer and keys are its click, drag, scroll, type and key calls; exec is its bash call, PowerShell, and the files methods go through PowerShell too. A cwd or variable that cannot be set runs nothing, and a move with overwrite replaces what is at its target as rename(2) does. Settings → Computers asks for Orgo's workspace beside its key: `ORGO_WORKSPACE_ID` fills `workspaceId`, which every Orgo provider is built with. The network is `open`, since Orgo has no egress control. Orgo's descriptor offers one configuration, `linux` (the default), and parks `windows` and `macos`. Nothing runs in a computer Orgo does not read running. What Orgo's API cannot do (a triple click, a held key) is refused in words. A `down` and its `up` become one click or drag, and a cancelled batch lets go of its press. Each Orgo provider's list keeps to its own system's desktops (Orgo's listing names each one's os), so no janitor sweeps another's. The conformance suite skips, in words, a case written for another system (`Case.os`, `caseOs`): the Linux exec and process cases, and the files cases on Windows. Such a skip (`CaseResult.os`) is not this computer's to pass or fail, so it leaves Core's verdict as an undeclared group's does. With `COMPUTER_ORGO_OS=windows`, `--kind desktop` runs the desktop's cases against a Windows fixture this package carries, a PowerShell script.
130
+ - A run whose bash has a policy (`tool_settings.bash.policy: "read-only"`) now runs each shell command on Archil's serverless exec (Mode 2, no computer) with its egress denied (`network: {egress: {default: "deny"}}`), so a command can reach the run's folder and nothing on the network. If the owner's Archil plan takes no network policy (a 403 such as `network_plan_required` on the Free plan), the command runs with the network open, and its stderr starts with one line saying so, with Archil's words in it. The workspace remembers the refusal and doesn't ask again. The read-only gate still holds either way. Only the shell's commands are denied: the server's own execs on the run's folder keep Archil's default network. A command on a local folder or in a computer can't be given a network policy, and a Workspace exec that asks for one there is refused before anything runs.
131
+ - The console's agent cards keep their chips on one row at every width: when a card's chips and its three actions don't fit side by side, the actions move to a row of their own and the chips keep theirs ("1 revision · 1 run" stacked one under the other at 820 px, and the Learning chip dropped under its counts at 1440 px). A real-browser flow (`agent-card-footer` in `npm run test:e2e`) measures every card at 1440, 1150, 820 and 390 px: each chip on one line, a card's chips on one row whenever that row fits, nothing past the card's right edge, every action the same square.
132
+ - A paid call the cap refused for room pauses the run with the run's spend as it is when the pause lands, and never refuses a person's answer to a question the same turn ended on:
133
+ - The budget card (and its words) count what calls beside the refused one charged before the model's next request, not the spend at the refusal. A call that would now fit (one beside it settled for less than it held) pauses nothing.
134
+ - A turn that ends on a question to the person (ask_person) with no next model request drops the refused call's pending pause, so the person's answer reaches the model and is never refused in that call's words, on this claim or the next.
135
+ - The kernel cap's refusal for a paid call names the call (`figures.step`: its name, hold and basis), and `paidRefusal` is exported, so a host can say a refusal again with the run's spend later.
136
+ - Security: on the runner, a claude-agent, codex or opencode run's CLI process now starts under `setpriv --no-new-privs`, as pi's commands do, so a setuid program or file capability that the CLI or a command it runs reaches grants nothing. It has been unconfined since the per-run process went. It uses pi's own rule (`noNewPrivsPrefix`, new in `@parcha/pi-durable-disk/internals`): Linux only, nothing on macOS, and on Linux a run is refused with pi's `SETPRIV_UNAVAILABLE` words where `/usr/bin/setpriv` (util-linux) is not usable.
137
+ - A separately started runner (`agentrun-serve runner`) no longer loads a faux module named in its environment. `AGENTRUN_SERVE_FAUX*` and `AGENTRUN_HARNESS_TABLE` left in an operator's shell or a platform's settings decided what a run answered. A runner now loads the faux model only from its own `--faux <module>`, as the server does. Test setups that gave a runner `AGENTRUN_SERVE_FAUX` pass `--faux` instead (`deploy/walk/compose.walk.yaml` does).
138
+ - A capped workflow run on the runner keeps three money rules it used to keep. A raise too small for the step that parked the run shows the new pause at the raised cap, not the launch cap, so the next raise is checked against the cap the run has. A decision whose OpenRouter catalog price can't be read for a moment is read again (three reads) before its node fails, and a catalog still down fails the node unsent, never as the cap's stop. A decision's hold is taken only after the workflow's driver has admitted its request, so a runner that dies in between no longer leaves a hold the next claim counts beside asking the decision again (a $0.40 decision was counted $0.80). In the DSL, a decision request that never left (an `unsent` refusal) now ends failed even when the run is stopping, so the next process asks it again instead of escalating it as asked and never answered.
139
+
140
+ ## 0.1.0-beta.34 (2026-11-11)
141
+
142
+ - An agentic run's structured answer is its result: `result.output` on `GET /v2/runs/{id}` is no longer always null for an agentic run (#2145). An agentic definition takes `output_schema`, a JSON Schema of at most 64 KiB, refused at save when it does not compile or sits on a workflow. A completed run's `result.output` is its final answer's last fenced json block when that meets the schema, else null. An edit that leaves `output_schema` out keeps it. A template's answer schema (its manifest's `output`) is set on the agent at apply, so a template agent's runs now answer there. A triggered agentic run is also handed its trigger's last completed result after its message, as a fenced json block, so a repeat run (market monitor's weekly digest) leaves out what the last one reported (#2144). Only the same trigger's runs are read, and a result over 32 KiB is named but not handed.
143
+ Upgrading: a client that read an agentic run's answer by parsing `result.final_answer` reads `result.output` instead. An agent applied from a template before this release has no `output_schema`: apply the template again, or `PUT` its definition with the template's schema as `output_schema`. A trigger's run message now ends with the previous result when there is one.
144
+ - Browser hand-over requests an earlier server wrote as files in a run's workspace (`work/browser-ask/`) are not read. Who breaks: a run that is waiting on a hand-over when the server is upgraded; its wait ends when the request expires, and the agent can ask again. To avoid it, answer or cancel pending hand-overs before upgrading.
145
+ - A browser session's open record is now flushed to disk before its vendor is asked to create the session. Until now, on the runner, the record was committed but not yet on disk when the vendor started billing: the runner's flush before a tool call comes before the call opens its session. A box lost in that window left a billed session that no record named, so the next claim could not release it. Who breaks: a program that binds an entry of the exported `TOOLS` table with a run ledger must now pass the ledger's `flush` (the store flush that runs before the vendor is asked) beside `paid` and `pause`.
146
+ - A Daytona GPU computer is now made from Daytona's GPU snapshot `daytona-gpu` and has its one H100: give image `"default"` or `"daytona-gpu"` and `gpu: { type: "H100", count: 1 }`, with no mount. Any other snapshot, type or count, or an Archil mount (so serve's Mode 2), is refused in words; the create sends no resource fields beside the snapshot, and notes who installed the daemon.
147
+ - A gateway model is never priced at $0 by a subscription plan's listing in the model catalog. `deepseek-v4-flash`, which the catalog lists under its bare id only on $0 plans, was booked at $0 through a metered gateway: its runs and grades cost nothing and passed any cap. It now takes the metered price a gateway lists under its vendor's id (`deepseek/deepseek-v4-flash`). A model listed only at $0, with no metered listing anywhere, has no price: its cost reads unknown and a cap refuses it, as for any unpriced model.
148
+ - Upgrading: for a gateway model (run through `AGENT_MODEL_BASE_URL`) that the catalog lists only at $0, set `AGENT_MODEL_PRICE` (input,output[,cacheRead,cacheWrite] USD per million tokens); without it the model is unpriced, and a run under a spend cap is refused.
149
+ - A server no longer removes the Claude Code install an earlier build left at the top of `<data>/harnesses` (read-only, beside the per-harness installs). If a Claude Code or Codex install fails after upgrading, delete `<data>/harnesses` and start the server again: each harness installs anew on its first use.
150
+ - The server checks a harness's pinned binary (claude-agent's CLI, Codex, OpenCode: its sha256, then the version it reports) without holding its event loop, so requests, timers and store answers go on while a binary of hundreds of MiB is hashed and run. Before, the first check in a process held every request for one to several seconds (GET /v2/capabilities, a server's start, an adapter made for a run). The binary is now hashed off the loop a chunk at a time and run as a child the loop does not wait on. A pass is kept for the adapter's own check, which then reads nothing, and two checks of one binary at once read it once. New: `checkedOnceAsync` and `sha256OfFileAsync` (kernel host), `verifyClaudeAgentCliAsync` (claude-agent), and `verifyCodexAsync` and `verifyCodexBinaryAsync` (Codex). Who breaks: a program that calls the kernel's `checkedOnce` with its own check. A check is now a `BinaryCheck`, a generator that yields each probe (`{ kind: "sha256", path }` or `{ kind: "run", path, args, env, timeoutMs }`) and is given back its answer, so one check runs either way.
151
+ - What a run proposes to learn is refused when it holds a bank account, IBAN, routing or sort-code number beside its word ("send refunds to account 4471-0098", "IBAN GB82 …", "routing number 021000021", "sort code 12-34-56"), as text shaped like a secret, whatever the grader made of it. A count of accounts, a date or a card's last four is not one. The same holds where the number is spelled in escapes: a skill's front matter read as YAML reads it, and a workflow draft's workflow.json read as JSON reads it (every string it decodes to); a saved learned workflow holding one is never chosen for a run. A file name refused for one (`account12345678.md`) is cut of the number wherever learning prints or serves it: the run's learning problems and the learning reads. A run's own view still shows its user such a number: only learning refuses and cuts it.
152
+ Notes already stored with such a number now change too: a run is given them cut of it, a name holding one reads `[redacted]`, and an edit that keeps it is refused.
153
+ Upgrading: an owner rewrites or retires a note that holds a bank account number, since a run no longer gets the number from it.
154
+ - A learned skill or workflow draft that was served as active before this upgrade, though its front matter does not read one way, now reads retired and is given to no run until its front matter is fixed. A learned skill's SKILL.md and a workflow draft's README.md are read by one front-matter reader for what they say of themselves (their keys, name, description and status): the checks, the learning folder's snapshot (and so the console), the learning routes and a run's seed agree. A front matter that does not read one way (not closed, a key indented under another, an indented first line, a key set twice) or a status other than active, pending or retired now reads as retired, never active, so no run is given it; before, the server read it as active while another reader could read it as held. A restore of one is refused in words until its front matter is written so it reads one way, and a run's skill or draft with such a front matter is refused at its end. A status is one plain line (`status: pending`): one that runs on over more lines (a quoted value that continues, a block, a wrapped value) reads as retired too, so an approve or a retire never edits part of it, and an approve whose result would not read active fails rather than answer OK. A front matter with a YAML explicit key (`? status`, `? hooks`) does not read one way either: it reads as retired, is never served, and a run's skill or draft that sets one is refused. A learned skill is now always served with its name and description quoted (`name: "find-policies"`), so a harness reads them as the text they are, never as a number, date, boolean or null (`08`, `1e3`, `yes`); and its share of the learned skills' budget counts the SKILL.md as served, not as stored, so a quoted description near the cap can no longer push the agent's own skills into the prompt. OpenCode lists a revision's own skill with its description even when another key in its front matter is in a form the strict reader refuses (`"license": MIT`): the description is read from its `description:` line, as the adapter's check reads it. A workflow draft whose description its block quoted (`"\"a\" plus"`) keeps it quoted in its README.md, so it reads back as written. OpenCode's check of a revision's skills reads them as it is handed them (each SKILL.md as served), so a set at its 1 MiB limit that serving grows past it is kept in the prompt rather than handed on.
155
+ Upgrading: a learned skill or draft whose front matter doesn't read one way now reads retired: fix its front matter (one plain `status:` line) to use it.
156
+ - A run started before this upgrade whose learning seed failed reads no reason (it used to read "could not be copied"). Upgrading: nothing to do.
157
+ - The server's half of learning is deleted. A run's end-of-run turn, its check, the grade and the merge are the runner's (`runner/learning-end.ts`, `reflect-hook.ts`, `learning-loop.ts`).
158
+
159
+ Deleted:
160
+ - `learning-run.ts` loses the reflect and propose flow: `beforeFinish`, `onAdopt`, `onLaunch`, `beforeSettle`, `afterSettle`, `afterReopen`, recover's re-propose, `close`, `idle`, `heldLearning`, the turn's ask and wait, its check, its tool list and refusal list, and the kernel calls they needed. `LearningRuns` keeps the seed and the view: `onStart`, `copyThrew`, `onSaved`, `onLoad`, `onReopen`, recover's ledger pass, `current`, `view`, `short`, `shown`, `keysChanged`, `counts` and `ofAgent`.
161
+ - `grade.ts` is deleted (`judgeProposal`, `graderAuth`, the grader's model). The grade's prompt, caps and verdict reader stay in `learn/grade.ts`.
162
+ - `learning.ts` loses the host git (`git`, `readBlobs`, the git `readSeed`, `agentFolder` and its link checks), `keepTurn`, `readTurn`, `LEARNING_TURN`, `KEPT_LEARNING`, and the `git`, `afterMkdir` and `beforePropose` test hooks. Nothing in `serve/src` runs git now except the learning script, through the folder's Workspace.
163
+ - `runs.ts` loses its calls into that flow, the end-of-run turn's text and hearing it collected, and `toLiveDoor`. The `reflectTimeoutMs` option is gone from `ServeOptions` and `RunsOptions`.
164
+ - The stop words nothing says any more are gone (`crashedLooking`, `notAsked`, `notSetAside`).
165
+
166
+ The end-of-run turn's range in a run's record (`Reflect`, `reflects`, `labelled`, `reflecting`, `TurnOrigin`) moves to `reflect-range.ts`, for the runner's learning end, the store's reads, the store-backed view and the tool gate.
167
+
168
+ Also on the switch line: the grade model the server names (`--grade-model`, `AGENTRUN_SERVE_GRADE_MODEL`, else `AGENT_MODEL_STRONG`) travels on each run's launch (its learning start's `gradeModel`), and the runner grades on it as the strong tier, as main did; before, the runner graded every run on the default model. `GET /v2/usage`'s `learning` meter and `GET /v2/stats` read each run's grade from the store, not the learning ledger; a learning run stopped after its grade was paid keeps that cost (unknown when the grade request was cut). A run's view, its list row, its learning row and `GET /v2/runs/{id}/learning` read what it held for the owner's OK as it stands on the folder's main, a run's learning reads `seeded`, then `reflecting`, while it runs, and the notes a run read are matched before its view cuts their names. A learning run (a run's grade and merge) is no listed run: no run list, count, stat, usage line or `run.ended` notice names it. A claude-agent, codex or opencode run's end-of-run answer shows as its learning row's text, as pi's does. A grader's answer that could not be read is no longer kept with the run (main kept it, never served, in `serve.json`). `scripts/learn-eval.mjs` grades as the runner's learning run does (`gradePrompt`, `parseVerdict`).
169
+
170
+ Upgrading: drop `reflectTimeoutMs` from a `startServe` call; the end-of-run turn's deadline is the runner's (`REFLECT_TIMEOUT_MS`). Learning grades recorded before this upgrade read unknown in `/v2/usage`: their learning runs never wrote a cost, and nothing backfills them.
171
+ - The webhook outbox file moves to version 4; an outbox from an earlier server is discarded at start, so deliveries still pending in it are not sent; let pending webhooks drain before upgrading.
172
+
173
+ With it, the outbound webhook sends `run.needs_input` once per wait. Before, a run that parked on a question could send it a second time, under a new `webhook-id`, right after the person answered. Each wait's `webhook-id` now comes from its own ask (a question's waiting row, an approval's call, a budget pause's time, a hand-over's ask), the ledger keeps every wait it told each run of, and the answer to a parked question clears the run's "Waiting for your reply" summary in the commit that takes it.
174
+ - The server no longer answers `/api/*` (`/api/store`, `/api/agents/{id}`, `/api/runs` and the rest of the old store page's read-only JSON): it read the earlier agent store, which this version no longer keeps. Every path under `/api/` is now the API's 404. Read the same data through `/v2` (`GET /v2/agents`, `GET /v2/agents/{id}`, `GET /v2/runs`), with the token or the console's cookie.
175
+ - What an upgrader of a client or a script against `/v2` changes:
176
+ - `GET` and `PUT /v2/agents/{id}/home` (a home's packed export and import) are gone (`404`, and out of the served OpenAPI document): read and write a home's files with `/v2/agents/{id}/home/files`.
177
+ - `POST /v2/runs/{id}/kill` is gone (`404`): end a run with `POST /v2/runs/{id}/stop` or `/cancel`.
178
+ - The `no_sealing_key` error code is gone: the server always has its seal key, so drop any branch on it.
179
+ - `seal_key_missing` is gone from a tool key's `reenter.reason` and a webhook's `signing`: what does not open says `seal_key_changed` (tool keys) or `unreadable` (webhook).
180
+ - The `store_unreadable` error code is gone, and `GET /v2/settings/mcp-servers` no longer sends `file_unreadable`: drop those branches.
181
+ - Now required in answers: a run's `place` (`GET /v2/runs/{id}`), and capabilities' `models`, `places` (with `places.default_place`), `tools` and `learning`: a client validating answers against the document may read them without a presence check.
182
+ - `startServe`'s `ServeOptions` drops nine fields the server never read: `settleRetryMs`, `carryBackRetry`, `readyTimeoutMs`, `openTimeoutMs`, `fauxHandedNonce`, `beforeRaiseLaunch`, `onPauseCheck`, `beforeSubmit` and `beforeMetaSave`. They belonged to the per-run process the server no longer starts, and setting one had no effect. An embedder that passes one in TypeScript removes it; nothing else changes.
183
+ - A stop now drains: the server's own runner lets each busy run finish its turn for up to `--drain-timeout` (default 30s), and a runner process (`agentrun-serve runner`) for up to `--drain-timeout` or `AGENTRUN_DRAIN_TIMEOUT` (default 6s), before it hands the rest back. For the old instant hand-back, pass `--drain-timeout 0s`.
184
+
185
+ A runner now holds at most `--max-runs` runs at once (a runner process: `--loops`), default `AGENTRUN_MAX_RUNS`, else as many pi runs as the host's memory holds, where it took up to 300 before. To raise the cap, set `--max-runs`, `--loops` or `AGENTRUN_MAX_RUNS`.
186
+ - A start over the run limit is queued, not refused: a run start past `--max-runs` (by default, as many pi runs as the host's memory holds) answers `202` with the run `queued`, and the runner takes it up when a place frees, where the server once answered `429 rate_limited` with `retry-after`. A client that retried on that 429 can drop the retry and follow the run. A harness whose one run never fits the host is still refused at once (`409 agent_not_runnable`).
187
+ - A forgotten browser sign-in's pointer is kept for good (the server kept only the newest 32 per agent), so what an agent learned and what a run it was handed shows stay cut of it however many sign-ins are forgotten since. A run handed a pointer the server would have dropped is now served cut instead of withheld. Pointers dropped before the upgrade are gone and not read back from anywhere, so they are not cut.
188
+ Upgrading: if an agent forgot more than 32 sign-ins before the upgrade, read its learning for a sign-in pointer it forgot long ago and retire any note that holds one.
189
+ - The tool gate, the host tools and the MCP gateway keep only the runner's path; their per-run-process half (the gate's enter, park, executor and extension, the kernel drive's session store, `hostTools()`, the coding source, the MCP gateway's pi registrations and copied credentials) had no caller after the old run engine went. What an upgrader and an operator see:
190
+ - The last reader of a `tool-settings.json` file in the data directory is gone: the server's tool settings live in its store alone. A data directory that still holds that file from an older release: set the tools once, in the console's Settings → Tools or with `PUT /v2/settings/tools`, then delete the file; nothing reads it.
191
+ - A priced MCP tool's call is held and booked on the run's one ledger only. A call with no ledger to book it on is refused unsent, never run on another reading of the cap: the run's timeline shows the call failed, and the model reads `mcp:<server>/<tool> was not sent: this call has no run to book its price under.` A run on the runner always has its ledger, so its priced calls are booked as before.
192
+ - The `TOOLS` table's `bind` is no longer handed a coding source (`ToolHost.coding`): a run's file and shell tools come from its workspace.
193
+ - The outbound webhook (`/v2/settings/webhook`) is in the one store, on SQLite and Postgres alike: its URL and state, its signing secret (sealed under the server's seal key, among the server's sealed settings) and its outbox of messages, attempts and per-run notices. The server no longer reads or writes `DIR/webhook.json` or `DIR/webhook-outbox.json`. A webhook saved before this release must be saved again (`PUT /v2/settings/webhook`, which shows a new secret once): the old files are not read, and their pending messages are not sent. They can be deleted. The webhook's secret is now on a runner's redaction list from the store, as the other sealed settings are, and a secret replaced or removed stays on it across restarts.
194
+ - An agent can make its bash read-only: `definition.tool_settings.bash.policy: "read-only"`, or `tool_policy: {bash: read-only}` in a template's agent.md, which apply writes there. The tool gate reads each shell call's command before it runs or anyone is asked, and refuses, in words the model reads, one that could write, run code or read outside the run's folder: a program outside the read list (git's read subcommands, grep, sed -n 'N,Mp', cat, head, tail, wc, ls, find without -exec and the like), redirection other than `2>/dev/null` and `2>&1`, `$` and backticks, a pipe into anything but a filter, an unquoted glob, or a path outside the folder or on the never-open list. `bash_background` and `bash_input` are refused under it. Like a pin, the policy adds to bash's permission and is never one: approvals `never` lifts none of it, and an approved call is decided again before it runs. `GET /v2/templates` shows each package's `tool_policy`.
195
+ - GPU computers on Modal and Daytona. `ComputerSpec.gpu: { type, count }` asks for GPUs, by the vendor's own type names. `ComputerCapabilities.gpu` declares the ones a provider offers, `{ types, max }`. It also states where its GPU computers differ from its others: `isolation`, `preemptible`, `stopDeletes`, `region`, `perGpu` and `mounts`. The static `CAPABILITIES` of each configuration, and its entry in `PROVIDERS`, carry the same `gpu`. Every provider's `check()` uses the shared `checkGpu`. Before any vendor call it refuses, in words:
196
+ - a GPU type the provider does not offer;
197
+ - a count outside 1 to `max`;
198
+ - any GPU at all where a provider declares none;
199
+ - a mount whose kind its GPU computers have not proven (`gpu.mounts`).
200
+ - Modal: `T4`, `L4`, `A10`, `L40S`, `A100`, `A100-40GB`, `A100-80GB`, `RTX-PRO-6000`, `H100`, `H200`, `B200`, `B300`, up to 8.
201
+ - A GPU computer runs on Modal's gVisor runtime, its only GPU runtime, so it declares `gpu.isolation: "gvisor"`. It is preemptible (`preemptible: true`).
202
+ - The SDK gets `gpu` as one string (`"A100-80GB:2"`). The drift check holds the runtime from both sides, gVisor's kernel exactly on a GPU computer.
203
+ - The spec tag records the GPUs, and `attach` reads them back.
204
+ - `gpu.mounts` is empty, so a GPU with an Archil mount is refused as not proven.
205
+ - Sometimes Modal refuses an exec because the sandbox is shutting down (its init exited). The create now fails as `gone` and waits up to `timeouts.endedMs` (30 s) for the sandbox to finish. It then reports init's exit code and words.
206
+ - Daytona: one `H100`, the GPU of Daytona's GPU snapshot `daytona-gpu` (`DAYTONA_GPU`: `types: ["H100"]`, `max: 1`). Another type or count needs a snapshot of its own, so `check` refuses it, and the create sends no resource fields beside the snapshot. A Daytona GPU is preemptible (`preemptible: true`).
207
+ - A GPU computer is created in region `earth` with `autoDeleteInterval: 0`. Stopping it deletes it (`stopDeletes`): there is no pause or snapshot, so nothing on it persists.
208
+ - A GPU computer has the snapshot's 16 vCPUs, 100 GiB of memory and 400 GiB of disk (`perGpu: { cpus: 16, memoryMb: 100 * 1024, diskMb: 400 * 1024 }`), and takes no mount (`mounts: []`).
209
+ - The org needs GPU credits.
210
+ - The read-back's `gpu` and `gpuType` must match, and `attach` reports them.
211
+ - Conformance: `provider.check-refuses` holds every provider to the GPU rule. Two new Full cases in group `gpu` each make one computer with the GPU the run names (`--gpu <type>[:<count>]`). Without `--gpu` they skip, since a GPU bills by the second.
212
+ - `gpu.present` checks attach's read-back and `nvidia-smi -L` run as the computer's user. It also records, with nothing mounted, what that user sees of FUSE.
213
+ - `gpu.archil` makes the computer with the run's Archil folder too, and checks that the folder reads at `/workspace` and that a program's write there is on the disk after release. It skips where `gpu.mounts` leaves out `archil`.
214
+ - Serve: an agent's sandbox computer takes an optional `gpu: { type, count }`.
215
+ - The save checks its shape, and only a sandbox takes one (422). The revision keeps it.
216
+ - The run's start (409 `agent_not_runnable`) and the claim hold it to what the provider declares, in `checkGpu`'s words. The server's folder mode counts as the mount.
217
+ - The claim passes it into the computer's spec.
218
+ - `GET /v2/computers` shows each sandbox provider's `gpu`. Its `why` says when a run on this server cannot have those GPUs. In Mode 2 Modal's GPUs say so, since the run's folder is an Archil mount.
219
+ - The OpenAPI document and the generated clients carry both.
220
+ - The loopback fence now holds on gVisor, so Modal GPU computers can start. Root there has no CAP_SYS_ADMIN, so `computerd init --own-network` couldn't make its programs' network namespace.
221
+ - Init still tries the plain network namespace first. On EPERM alone, it makes the same namespace inside a user namespace instead, whatever the vendor.
222
+ - It starts itself again as `computerd userns-init`, in a user namespace that maps every uid and gid to itself. Files and the run's folder keep their owners.
223
+ - The first init stays PID 1 with no capability, passes SIGTERM and SIGINT on, and ends with the init it started.
224
+ - If neither way works, init refuses to start in words that name both.
225
+ - Init brings the loopback up over rtnetlink alone (RTM_NEWLINK on lo's index, plus RTM_NEWADDR for 127.0.0.1/8 where the kernel gave none). The SIOCSIFFLAGS ioctl is gone: gVisor's netstack refuses it in a new namespace (ENOTTY). Init then reads back lo up and running, 127.0.0.1 on it, and a listener there reached. computerd's probe tries to raise an interface the same way.
226
+ - `hello` reports which fence holds: `fence: "netns" | "userns-netns"` (`NetworkFence`, `NETWORK_FENCES`). Every provider that starts init with `--own-network` refuses a hello that names neither: Daytona, E2B, Orgo and Modal.
227
+ - Modal declares `gpu.fence: "userns-netns"`. Its create notes the fence when it is `userns-netns`, and a conformance report's `daemon.fence` records it. `GET /v2/computers` shows the GPU's `fence`.
228
+ - A keyless local browser: the computer package's `local` provider (`LocalBrowserProvider`, kind `browser`) runs this machine's Chrome or Chromium, with no vendor and no key, and pi-browser's new `cdpDriver()` (`@parcha/pi-browser/driver/cdp`) drives it with raw CDP.
229
+ - Each browser is one headless Chrome (`headed: true` shows the window) with a throwaway profile and a random debugging port on 127.0.0.1. `connect()` hands over its `ws://` DevTools URL. `release("delete")` ends it and removes its files.
230
+ - A supervisor process of its own ends each browser at its deadline, on release, or when Chrome exits, so a run that crashes leaves no Chrome behind.
231
+ - Chrome's sandbox is always on: a start as root, or where Chrome cannot start its sandbox, is refused in words. Every request goes through an egress proxy that reaches public addresses only. This machine's loopback, private networks, link-local and the cloud metadata address are refused, and Chrome resolves no name itself, speaks no QUIC and sends no WebRTC UDP.
232
+ - Chrome is the `executablePath` option, or `CHROME_PATH` or `PI_BROWSER_CHROME` in the `env` a host passes, or the first on that env's `PATH`. With none, `check()` and `testConnection()` say what to install.
233
+ - Its known limits: the debugging port has no auth (any local process can drive it), and the browser is a process of this host isolated by Chrome's sandbox alone. It is for local and development use.
234
+ - `ComputerCapabilities.isolation` takes `"host"`, and Settings → Computers lists "Local Chrome" with no key.
235
+ - pi-browser's `run` takes a `goto` action (`{"op":"goto","url":"https://..."}`) on every browser. On a browser computer (`cdpDriver()`: Browserbase, Kernel or Local Chrome), `run` takes actions only and refuses code in words (`CDP_CODE_REFUSED`). Its snapshot keeps the "frame-node" ids and names each cross-origin frame it could not read. The driver is adapted from Browser Use Pi (MIT, see pi-browser's NOTICE).
236
+ - An agent's learned workflow can ask its typed questions on the runner: when a run's claim lays its learned workflows, it opens the decision keys of the providers those workflows name (Jev for a node that names none, Parallel, OpenRouter), from the server's environment first and then its saved keys, as it opens the run's own. They go to the run's tools alone, never to its model or a CLI harness's own environment, and are cut from its record like every key the claim opens. A provider the run's tool gate denies gets no key; a run with no learned workflow gets none, as before; and each claim reads its own, so no run holds another's.
237
+ Upgrading: nothing to do. A learned workflow's decision node that failed with "names the decision provider jev, which this host does not have" runs once the server holds that provider's key.
238
+ - A learned workflow can call the agent's MCP tools. A call node `{"node": "call", "via": "tool", "tool": "mcp:<server>/<tool>", "args": {…}, "out": …}` runs that tool through the run's own MCP, the same path the harness's own MCP calls take. It answers the tool's text as JSON when it parses, else `{ "text": … }`.
239
+
240
+ The call is held to the run's tool gate:
241
+ - **allow:** it runs, and its price is booked as the run's tool cost, under the run's cap.
242
+ - **deny:** the workflow is refused before any node runs, in the gate's words, and nothing is sent.
243
+ - **ask:** the `learned_workflow` call asks once for approval, and the run parks; the owner's allow runs that call's MCP nodes, and only that call's, and only the tools its card named: a tool set to ask after the card was shown is refused, never run under that allow.
244
+
245
+ The approval card of a `learned_workflow` call whose workflow calls MCP tools set to ask leads with two new fields, before the call's own input: `mcp_arguments`, which says the tools' arguments are "decided by the workflow while it runs, from its input and its earlier steps", and `mcp_calls`, every one of those tools by name (`mcp:<server>/<tool>`).
246
+
247
+ On a server with accounts off (AGENTRUN_ACCOUNTS=0, or AGENTRUN_API_ONLY=1), no one can approve, so such a call is refused at once and never parks: "The learned workflow <name> was not run: Permission denied: mcp:<server>/<tool> needs the owner's approval, and this server has accounts off (AGENTRUN_ACCOUNTS=0), so no one can give it: set the tool to allow or deny in the agent's Tools. It was not run: nothing was sent and nothing was charged."
248
+
249
+ A workflow whose ask-set MCP tools are too many to all show on the 2 KB approval card is refused instead of asked, so no approval covers a tool its approver couldn't see: "The learned workflow <name> was not run: its approval card can't name all <n> MCP tools it would call that are set to ask: set some of them to allow or deny for this agent."
250
+
251
+ A stop cuts an MCP call in flight. A node may name only an MCP tool that the agent's revision grants and the run's pin holds.
252
+ Upgrading: nothing to do. An API client that reads a `learned_workflow` call's approval card (its pending approval's arguments) finds `mcp_arguments` and `mcp_calls` first when the workflow calls MCP tools set to ask; the call's own arguments follow them unchanged.
253
+ - The `learned_workflow` tool's description, sent with every model request of a run that has learned workflows, is shorter: one line for what the tool does, then one line per workflow, its input's fields before what it does (`- answer {question* string}: Answers a question …`), with "* required" said once; its `name` and `input` parameters carry no words of their own. Nothing a model needs to call it is gone. For one workflow it adds 180 tokens to a request on gpt-5-4-mini instead of 216, and 635 on claude-haiku-4-5 instead of 678; for three workflows, 264 instead of 311, and 729 instead of 788.
254
+ Upgrading: nothing to do.
255
+ - When the end-of-run turn asks for a skill's job as a workflow draft (after the skill has served 3 runs), it also says what each tool a draft's call node may run takes and gives, in the server's own words for that tool (`{ query, n? } -> { provider, query, results: [...] }` for web search, and so on), so a draft's call nodes are wired to the real shapes. Nothing more is said in a turn that asks for no draft.
256
+ Upgrading: nothing to do.
257
+ - A workflow draft a run proposes is dry-run before it is kept: the workflow DSL runs it on the run's own input (its block's new `example:` front-matter line, else an input made from its schema) with every model and tool answer synthesized, so no request is sent, nothing is paid and no tool runs. Only a draft every static check passes is dry-run, and no code in it runs in the host: a code node is refused before the dry run, and the dry run hands any code node to a runner that refuses it. Nor is a huge value built from the draft's schemas: a schema whose synthesized value would be too large (a minItems past 100, a minLength past 1,000, more than 2,000 values or 64,000 characters in all) is refused before any dry run, and a dry run handed one stands down. A draft's loops are bounded too (a loop's `maxIters` past 50, or nested loops past 1,000 iterations together, is refused), so a loop whose body asks no model cannot spin the runner, and a dry run stops after 10 seconds. The bounds read a draft's schemas and nodes where they are schemas and nodes: a `const`, `enum`, `default` or example holding `minItems` or a loop's shape is data, never a bound or a loop. A draft whose wiring breaks at run time (an output path no step produces, a step's output that fails its schema), which validation alone passed, is left out alone, and the end-of-run turn is asked once more to fix it; a draft that passes is proposed with its dry run, and the grader is told it; what a dry run's check said is made from the draft's own text, so the grader reads it only inside a data fence. The example is the run's input, so it is never written to the learning folder, and one holding a secret refuses the answer as any text does.
258
+ Upgrading: nothing to do; a run's proposal may now carry `dryRuns` beside its files.
259
+ - An agent whose notes no longer fit the learning budget (8 KB by default) now gives each run the notes that bear on it, not the newest. Each note is scored against the run's first message by a lexical match (BM25 over its name, description and body; a code review's changed paths, from a diff or a file list, weigh three times its prose; no model call), and the run reads the best ones whole while they fit, then one line (`- <name> (<file>): <description>`) for each of the rest in place of the index. A run whose message shares no word with any note, and every agent whose notes fit the budget, reads exactly what it read before.
260
+ - The choice is one port, `NoteSelector` (`learning.ts`): `byRelevance` is the default and `byRecency` the old rule. The run's `# Learned` section and the notes it is given come from one choice, and nothing else about seeding, pinning or the cut of secrets changes.
261
+ - Upgrading: nothing to change.
262
+ - A learning run whose only tool work was its learned workflows, each answering, with nothing said after its first message (no follow-up, no approval, no tool error or refused call), is no longer asked its end-of-run turn: no model request is sent and looking back costs $0. Its learning ends `dropped` with reason `empty` and the words "Nothing new: the run only ran a learned workflow." Any other tool, a follow-up, or a learned workflow that fails is asked as before. On every harness the runner runs (pi, and a CLI harness's `learned_workflow` by its own name or claude-agent's `mcp__hands__` alias).
263
+ Upgrading: nothing to do; a client that reads a run's learning sees reason `empty` for these runs, with its `detail` saying why.
264
+ - Learning asks for a workflow draft once a job repeats: when a run that learns ends, and a learned skill it was given has been given to 3 or more earlier runs of its agent with no learned workflow of that name (active or waiting for its owner's OK), its end-of-run prompt gains one line asking for that skill's job as a workflow draft under the skill's name, which the usual checks and grader judge. One skill at most per run, and no extra request. A run's learning start now records the learned skills its seed offered it (`learning.skills` in its launch), which is what the count reads.
265
+ Upgrading: runs started before the upgrade recorded no skills, so they count for none; the first ask comes 3 learning runs after the upgrade.
266
+ - Local Chrome honors this server's `AGENTRUN_BOX_ALLOW` when the operator sets it: its egress proxy then reaches only those hosts, on ports 80 and 443, and refuses any other host by name before its lookup. The fence on this machine's loopback, private networks and the metadata address holds either way. With the setting unset, Local Chrome stays open: the default list is a sandbox's package registries, not a browsing policy. Under `none` it is refused at the run's start.
267
+ - `LocalBrowserProvider` declares network `["open", "allow"]` and takes `{ allow: [names and CIDRs] }`. A CIDR that covers a range the proxy refuses is refused at `check()`. `list`, `attach` and `network()` read the list back.
268
+ - A run's launch records whether the operator set `AGENTRUN_BOX_ALLOW` (`box_allow_set`), so a browser is held to the operator's list and never to the default.
269
+ - Settings → Computers says so for Local Chrome: "open unless this server sets AGENTRUN_BOX_ALLOW; then only those hosts".
270
+ - Under `AGENTRUN_BOX_ALLOW=none`, a computer whose provider makes no "none" is refused at the start and at the claim, now saying it "needs a network".
271
+ - On a Postgres store, a recreate deploy hands the schema over at once, and a lost owner connection is taken back. A server started while another holds the schema waits up to 2 minutes for the old one to let go, saying so once, then serves, instead of exiting at once with "another server holds the store". Deploy the server with recreate (stop the old, start the new). API calls fail for the few seconds the new server takes to start, so a launcher should retry them. A deploy that waits for the new server's health before stopping the old one can't hand a schema over. A server whose owner-lock connection is lost (a failover, a database restart) refuses calls while it takes the lock back on a fresh connection, then serves again. If another server took the schema meanwhile, the schema was migrated past this build, or the lock can't be taken back within 2 minutes, it exits 1 so its platform restarts it, rather than answering 503 for as long as it runs.
272
+ - Each computer provider declares the networks it makes without being built: its module exports `NETWORK` (`"none"`, `"open"`, `"allow"`; the `NetworkForm` type), its `capabilities().network` returns it, and the kind registry's entry carries it as `network`. Settings → Computers (`GET /v2/computers`) says what this server's allow-list means for a vendor-hosted computer in a provider's `network` field: "no network, so this server's allow-list isn't offered" for one that makes none alone (Daytona, E2B, Modal, Orgo), and "the vendor's own network; this server's allow-list doesn't apply" for one on the vendor's own network (the cloud phone, Browserbase, Kernel). Docker, which takes the allow-list, has no such field.
273
+ - A run on OpenRouter's `particle-ai/particle-1` reads most of its input from the provider's prompt cache, so a tool-using run such as a code review costs about a sixth of what it did. Particle AI, its one provider, caches no prefix of a request that carries a `tools` parameter (measured: 0-30% of a review's input cached); serve now sends particle-1 its tools as text, and 76-92% of the input is read at the cached price:
274
+ - A model's catalog entry says how it takes its tools (`toolsAs` in `local-models.ts`, beside the prices serve sets): `"text"` for particle-1, native for every other model. On the runner's translated route the tools go in the system prompt in DeepSeek's call format, every earlier call and result in the history as text, rebuilt the same way each turn so each request's prefix is the last one's, and the calls in the model's reply come back as Messages `tool_use` blocks. A reply that opens a call block with no call readable in it is asked for again, at most three times in all, its usage summed, and only out of what the cap held for that one request: a re-ask's output limit is what is left of the hold once the tries so far and its own input, uncached, are paid, and with nothing left it is not sent. Anthropic models, Responses models and every other translated model are unchanged.
275
+ - A text-tools reply is sent once it ends, whole, not streamed token by token.
276
+ - A long `get_diff` answer filed in the run's files is indexed in its note: each file past the cut, the line it starts at in the filed copy and how many lines it runs (`; files past the cut, from the line each starts at (its lines): src/a.ts 908 (120), ...`), so the model reads the files it needs by range and passes a generated one by.
277
+ - serve no longer imports `@parcha/pi-durable-disk`. The file confinement its reads and writes go through, and the rule that names a secret's variable, are now serve's own. The per-run journal barriers it called are gone: nothing had set up the per-run store they synced since the old run engine went, so on the runner they did nothing. On the runner, a paid call's hold is still flushed by the run's ledger before the call is sent. Nothing an operator or an API client does changes.
278
+ - `agentrun-serve eval-template` can replay recorded data for a case: a fake MCP server's answer may name a list of `when` mappings (any one matching), a tool may answer calls no answer matches with `search`, a code search over files the fixture holds (`path:line: text`; a `/.../` term is matched as literal text, never run as a regular expression, and `NOT` excludes a qualifier's files too), and a package's `evals/` files are bounded at 32 MiB each instead of the agent's 256 KiB / 1 MiB (the answer's schema, which ships beside each SKILL.md, keeps the agent's limits wherever it lives). The JSON report keeps each run's answer, tool calls, MCP calls and start and end times, so a caller can score a run after the eval's server is gone.
279
+ - A template eval's report keeps each run's metrics: `cases[].runs[].metrics` holds its input, cache-read, cache-write and output tokens, its model requests (and how many of them were unmetered), and its tool calls by tool, read from `GET /stats?agent=` over the run's own agent once the run has ended. A run whose end wrote no metrics, or whose read fails, has `metrics: null`; its result does not fail on them. Upgrading: nothing to do.
280
+ - A template's string parameter can say what its value is with `format`: `cron` (a schedule's cron line) or `timezone` (an IANA time zone), shown on `GET /v2/templates`, so a form can ask for it with a schedule picker and a time-zone choice instead of raw text. `market-monitor` marks its `cron` and `timezone` parameters so.
281
+ - A Postgres store that holds two answers to one tool call's approval (an approve and a deny that raced before migration 0003) now refuses the server's start in words: the run, the call, its answer commands, and the statement that keeps the first answer and refuses the rest. It showed Postgres's own "could not create unique index" before. Nothing in the store is changed for you; a migration may now ship a `NNNN_name.check.sql` beside it, run first, whose rows refuse the migration.
282
+ - Upgrading: nothing to change, unless the server names such a run: run the statement it gives, then start it again.
283
+ - On a Postgres store, an approve and a deny of one tool call sent at once now write one answer: the first one written wins, the other is 409 `not_continuable` with details `{reason: already_answered, decision}`, and the run acts on the winner only. SQLite already refused the second answer with its one-answer index; Postgres had no such index, so both could be written. A new migration (0003) adds it.
284
+ - Upgrading: nothing to change. The server applies the migration at its start.
285
+ - An agent whose computer is a Browser (Browserbase, Kernel or Local Chrome) now runs on a real server, where it used to fail at its claim with "it gave no CDP connection". The run's browser tool opens each session through the computer's provider at its first call, releases it when it lets the session go, and drives it over the provider's CDP URL with pi-browser's raw-CDP driver. So a session's whole life is the time the run's spend books against its cap. Its live view and hand-off work as the `browser` tool's always have, and no `browser` grant is needed. The model drives it with snapshot ids and actions (`run.code` is refused on a browser computer).
286
+ - A pi agent gets the browser tool from its computer. On Codex, Claude or another CLI harness, a browser computer is refused at the run's start, saying that only pi drives it.
287
+ - A tab the page opens (a popup, or a link that opens a new tab) becomes the tab the model drives, and the answer says so. When that tab closes, the model is back on the tab that opened it.
288
+ - Local Chrome's session time is priced at $0.
289
+ - The agent's browser hand-over request (`browser_request_handoff`) is no longer written as a file in the run's workspace. Its only record is its waiting entry in the run's journal, so `GET /v2/runs/{id}/files` no longer lists it, and the agent's file tools (read, write, edit, bash) cannot read, change or plant one. The live view's Hand back and a run taken up again after a restart read pending requests from the journal, so a file the agent writes changes nothing the person sees or what Hand back answers. A browser session that saved its sign-in no longer leaves a `sign-in-saved` file in the run's workspace either; the save's time is the store's alone.
290
+ - A browser run's money on the runner is counted once and shown. `/v2/usage` shows a runner run's browser time again (its `browser_time` meter read per-run files the runner never writes). A run parked at its cap by a browser call shows the cap's words on its budget card, where its reason was empty. Each browser charge is booked once on the run's ledger, under its real call when it has one, named by its session and time so a reopen never books it twice; a charge owed at the provider (a session's release, a person's carried time) is booked past the cap, as main kept it. The browser's holds (a call's, a session's reserve, a person's time) are money reserved, never spent: a lost claim gives them back, never leaves them counted as spent.
291
+ - A message sent to a claude-agent, codex or opencode run while it is working is no longer lost. The API accepted it (202, mode `follow_up`), but the runner then refused it because these harnesses take no message mid-turn. Now each such message is sent as a turn of its own once the current turn ends, in the order they came, and shows on the run's timeline. A pi run still takes it mid-turn, as before.
292
+ - Upgrading: nothing to change.
293
+ - A message sent to a claude-agent, codex or opencode run while it is working, and sent again after its runner restarted, now says so on the run's timeline. Such a message goes to the model as a turn of its own once the turn in flight ends, and is recorded only after it is sent. A runner lost in between used to send it again on the next claim with nothing to show for it: a second paid turn the person never saw. Now the runner marks the message as being sent before it sends it. When the next claim finds that mark on a message it has to send, a row reads "Your message was sent again after the runner restarted: it may have reached the model before, and this turn is paid again." before the message. Each turn is booked as it is sent.
294
+ - Upgrading: nothing to change.
295
+ - A Claude Code or Codex run whose MCP call waits for approval now shows that call on its Timeline while it waits, with its approval beside it, and the call runs once when allowed, even if the runner that parked it goes in between. A stop while the call waits withdraws it: the run stops cleanly instead of being picked up again and again, and the call's row says it was not run. A stop while an allowed MCP call is running cuts that call at the server. A Claude Code or Codex call cut by a crash reads interrupted on the Timeline, in the words the model was given, instead of "failed: no detail". A Timeline page no longer reports a waiting run before the rows that led to it.
296
+ - A Claude Code or Codex run whose MCP call waits for approval shows the call's result row with the gate's waiting words ("This mcp:… call waits for a person's approval…"), as a pi run does. The row shows from the call's ask until the call is sent or ends. Once it runs, is refused or is withdrawn, the row is the call's outcome alone.
297
+ - A tool call the gate refuses on a claude-agent, codex or opencode run now shows on the run's Timeline as it does on pi: the call's row, then its result's row, failed, in the gate's words (a deny set for the agent or on the server, an ask where accounts are off and no one can approve, or a person's deny of the call's approval). On the runner, the loop wrote a CLI call's record only once the gate allowed it, so a refused call had no row, though its model was told of the refusal.
298
+ - Upgrading: nothing to change.
299
+ - A learning run on a CLI harness (claude-agent, codex, opencode) now reads `learning.state: "reflecting"` while its end-of-run turn runs, as a pi run does, and its Timeline shows the turn's "Looking back on this run." row from the moment the turn is asked, a Timeline stream already open included. Before, the run read `seeded` through the whole turn and went straight to `proposed`, so for the length of the turn (about 10 seconds on a live model) nothing said it was looking back.
300
+ Upgrading: nothing to do.
301
+ - A Claude Code, Codex or OpenCode run is priced: its model requests are counted at what the run's model proxy booked them at, as a pi run's are at its answers' costs. Its Timeline has a usage row again (the cost, the requests, its paid tool calls), and its run row's cost, its run view's cost, `/v2/usage` and `/v2/stats` carry that figure, where they read $0 or unknown before (#2275). A request booked at no known price, or one with no booked answer yet (in flight, or cut off by a crash), leaves the cost unknown, with what is known so far.
302
+ Upgrading: nothing to do. Runs that ended before the upgrade keep the cost their row stored; their Timeline now shows the usage row their booking holds.
303
+ - A codex, opencode or claude-agent run that reads one of its skills' files (`read_skill_file`) now shows the call and its result on the run's Timeline, as pi's tool calls are shown. On the runner, the adapter's own skill reader ran outside the run's record, so the Timeline had no row for it. The read now goes through the host's tool path (the record, the rule before a side effect, the host's hooks on its result); a new `SessionIO.hostTool` hands an adapter's own tool to the host, and the kernel's `hostedTool(io, tool)` applies it.
304
+ - Upgrading: nothing to change.
305
+ - Settings → Computers and the new agent's Computer step, from QA on a hosted deploy:
306
+ - Docker is no longer shown ready on a server with no Docker daemon (Render and most hosted services run none). `GET /v2/computers` asks the daemon (`docker version`, bounded to 3 s), keeps the answer for 30 s and asks again after, so a daemon that stops is seen. A daemon started after the server is taken at the next restart. Docker's sandbox and desktop then say "No Docker on this server: Render and most hosted services run none.", followed by what works in the server's folder mode, naming this server's vendors: for a sandbox with run folders on this server's disk, "A vendor sandbox (Daytona, Modal or E2B) needs Archil turned on in Settings → Workspace."; with Archil on, "Use a vendor computer, e.g. Daytona, Modal or E2B for a sandbox."; for a desktop, "Use a vendor computer, e.g. E2B or Orgo for a desktop.". A run's start and a Docker launch that fails for want of a daemon say the same words.
307
+ - A provider's reason in `GET /v2/computers` and its connection test now ends at "Settings → Computers", with no API route in it. The claim's refusal for an API caller still names `PUT /v2/computers/{provider}/keys`.
308
+ - Three small computer fixes. A provider's connection test (`POST /v2/computers/{provider}/test`) passes its answer through the server's one redactor over the keys it used, so a vendor error that quotes a saved key in another form (base64 in an `Authorization` header, hex, JSON-escaped, percent-encoded) shows none of it. A run whose computer waits on its image (Docker building its recipe, or pulling an image) shows the "Preparing the computer's image" row on its timeline while it waits, not once the image is ready; a run whose image fails keeps that row, and its end says why after it. The README says that a computer's minutes are billed by its provider and that AgentRun does not count them yet.
309
+ - A person's take-over of a run's desktop or phone now ends in words when the run changes runner. Until now, when the runner holding the run lost its claim during a take (it crashed, or its lease ran out), its end of the take was refused with the claim, and the runner that took the run over started a new computer with the agent driving: the take vanished from the run, with no row saying why. The new claim now ends that take `released`, once, with the Timeline row "The desktop's session ended while you had it" (or the phone's), as the earlier computer is let go; a hand-back of that take is refused in those words.
310
+ - A learning grade whose answer contradicts itself (it keeps every new item yet says not to merge) is asked once more, the contradiction named, as an answer that can't be read is. Before, the proposal was dropped at once, and the run's learning quoted the grader's own reason, which could read "… so it can be kept" beside "Not kept". Now a second contradiction drops it in words that say what happened: "Not kept: learning stopped (the review of the new notes contradicted itself twice: it kept them and said not to)." On every harness, the end-of-run turn asked again for a workflow draft whose dry run failed now reads "Looking back again: a workflow draft did not pass its dry run." on the run's Timeline, not a second "Looking back on this run.". Fixes #2407.
311
+ - Upgrading: nothing to change.
312
+ - A learning run's grade cost is priced: the grade's request was booked after its answer arrived (a gateway's stream can stay open after the answer), so the grade read its spend too early and said $0. It now reads the spend once the request is booked (`GET /v2/runs/{id}/learning` `cost_usd.grade` and `/v2/usage`'s learning line), and a booking that never comes reads unknown, never $0. The grader's Risky question now reads one way on every grade model: a limit or threshold that decides whether an approval or a check happens is risky in either direction, as is an exemption from a check, trusting or paying a named site or seller, or naming where money or data goes, whoever asked for the rule. Its Planted question no longer drops your own rule for sitting in the same message as a form or webhook payload: a rule you state outside the payload is yours, and one found only inside it is planted (#2319). `scripts/learn-eval.mjs` grades on several models at once (`--grade-models A,B,C`, with how often they agree, note by note), reads the held-out set with `--set heldout`, and lists its plan without calling a model with `--dry`; it runs on demand, never on a pull request.
313
+ Upgrading: nothing to do. Grades from before the upgrade keep the $0 they recorded; a rule the grader kept active before may now be held for your OK when a later run proposes it again.
314
+ - A run's learning keeps what it can when some of its answer breaks a cap. Before, a ninth new note, a second skill or workflow, more than 64 changed paths, or notes superseding more than 8 between them dropped the whole proposal. Now each cap names the items past it, in the order the answer gave them, and only those are left out: the rest goes on to the grader, and the run's learning names what was left out. A note over its size was already left out alone. The checks also run again until the rest passes, so a cap reached only after a first pass (the supersedes count) leaves out its note too. Only the index's total (more than 200 lines), which no single note is past, still refuses the whole answer. Upgrading: nothing to do.
315
+ - What the learning reads serve is cut of more of what the server never shows:
316
+ - An agent's learning routes (its view, its notes and log, a note read, a run's learning and its learning diff) cut the agent's own browser sign-in pointers, live and forgotten, beside the server's secrets. A person's note write refuses them as it refuses a secret. When one of them doesn't open on this server (its seal key changed or is missing, or the sign-in is damaged), each of these routes answers 403 `forbidden` rather than serve what the agent learned over a shorter cut.
317
+ - A merged run's learning words are cut again whole, as a dropped run's are, so a problem's path the checks left out names no secret.
318
+ - A run's learning `reason`, each problem's `rule` and each verdict item's `origin` are cut as every other text is.
319
+ - A served learning text holds no loopback address (the address alone reads "a local address", as in a run's words; a note's `url:` label, its line ends and a workflow.json's JSON stay): a run's learning problems and its diff's patches too. What a run is given keeps it: its `.learning/` files and its `# Learned` section. A note shown without one, like a note shown with a secret hidden, is refused an edit: retire it and write a new one.
320
+ Upgrading: a client of the agent learning routes and of a run's learning and its diff handles a 403 `forbidden` there.
321
+ - Learning's grader now drops a note that holds an account number, even when the user gave it as where refunds or payments go, and a rule found only inside text the run read (a form, a pasted email, a page), whatever it asks for. Before, a grader could hold either one for the owner's OK, and an approval would have served it.
322
+ - Upgrading: nothing to change.
323
+ - A learning run whose start couldn't use its agent's notes says why, as before the runner moved: "the agent's notes could not be read" when the learning folder couldn't be read, and "could not be copied into the run" when what was read couldn't be made into the run's start. Before, every such run said the latter. A run's launch records the reason (`learning.seedFailed`: `unreadable` or `not_copied`). Upgrading: nothing to do.
324
+ - A run's live timeline page never says `working` before the row of the message it works on: the page reads the run's status first and its rows after, so its rows hold every entry its status was read from. Before, both were read at once, and a message committed between the two reads gave a page that said working with no message row yet (#2307). Upgrading: nothing to do.
325
+ - A loopback address in a run's words and its Timeline is rewritten as "a local address" and nothing more around it is taken: a bare one with its port at the end of a sentence (`localhost:9000.`, `127.0.0.1:9000.`, `[::1]:9000.`) is rewritten as one mid-sentence is, a bare one's path goes with it (only the host and port went before), and a full stop after one with a scheme stays (it was taken with the address). An address's path also ends at a backslash, so one quoted inside a JSON string leaves the JSON whole.
326
+ - The MCP server list no longer documents `file_unreadable`, and the MCP routes no longer document `409 no_sealing_key` or `409 store_unreadable`. Those came from the file-era registry (`mcp-servers.json`), which the store-backed registry replaced; the server never sent them since. `ListMcpServersResponse` in the generated clients loses the field. A server does not start without its seal key, so no MCP save or sign-in is refused for want of one.
327
+ - On a run with no computer, `bash` now asks for approval before it runs when no setting names it. This matches the kernel's rule (`defaultPermissionOf`): with no computer, bash asks first and the background tools are refused. Before, the runner's gate used the computer's default and allowed bash unasked. That mattered in Mode 2 (Archil), where a no-computer run still has bash on the folder's own exec, on pi and on the CLI harnesses. A tool setting still wins over the default, and a run on a computer allows them as before.
328
+
329
+ Serve's first-use Codex install is now fenced to the pinned tarballs: a test holds the install lock serve ships (`harnesses/codex/package-lock.json`) to the Codex adapter's `CODEX_NPM_INTEGRITY`, so a lock that drifts from the pin fails CI before `npm ci` would trust it.
330
+ - An approval, or a browser hand-back, answered while its run is parking, ending or being stopped no longer fails with "Session is closed". The runner used to check or write the answer through a session the run had already closed. Now the answer is left for the run's next claim, which checks it and resumes the run. An answer replayed at a claim's start that fails is logged and left untaken instead of crashing the runner with an unhandled rejection. The tool-gate test no longer waits a real minute: it checks that the parked run's claim was let go.
331
+ - Upgrading: nothing to change.
332
+ - A run's effort is its own, else its agent revision's saved `thinking`, else the host's `AGENT_THINKING`, as documented: before, a run started with no `effort` dropped the other two, so its harness thought at its default, it got no effort note and its metrics named no effort. A pi run now thinks at that level too: its agent was given none, so even a run's own `effort` changed only its note. A CLI run's metrics now name the level its harness ran at (`max` on Codex or OpenCode runs at `xhigh`, and says so). A claude-agent session resumed on a later day is now told that day: the CLI resends the system prompt recorded at its first request, so the first message on each later day starts with `Today is <date> (UTC).`, in the CLI's transcript only (fixes #2416). `thinkingOf` and `EFFORT_ENV` are gone from the server's `model` module: `thinkingLevel` checks a level.
333
+ - On the runner a run's folder is its workspace, which the agent's own file tools and the run's file list reach, and the server now neither trusts nor writes anything there for itself. The tool gate no longer reads `turn-origin.json` from the run's folder: nothing on the server wrote it any more, so a file the agent wrote there could make the gate refuse the agent's own writes under `.learning/`. The end-of-run turn's refusal of those writes is the adapter loop's own. A browser viewer's hand-over goes only through the store under the run's claim; with no store seam none is handed over, never as a file holding the viewer's token in the run's folder.
334
+ - Approvals on the runner:
335
+
336
+ - **An answer after a stop or cancel is 409.** An answer to a waiting call sent after the run was stopped or cancelled is now refused at once with 409 (`already_answered`, with decision `withdrawn` or `canceled`), even before the runner has applied the stop. It used to be accepted with 204 and then dropped, though the call never ran.
337
+ - **A cancel's waiting calls read cancelled.** A cancelled run's waiting calls read cancelled with their run ("Withdrawn when the run was cancelled", "Not run: the run was cancelled while it waited"), not stopped. Their answer entry's decision is `canceled`.
338
+ - **A call that waited reads in order.** Its rows read: the call, then its approval row, then what came of it. That holds when the call's result arrives after the answer, and when a second call is waiting too.
339
+ - **A write that waited shows no "Saved" row of its own.** What an allowed write saved is its outcome row's to say, and a denied one saved nothing.
340
+ - **A declining message is the person's own row.** A person's message that declines a waiting call shows as their own message row, between the approval row and what came of it. An allow written before such a message stands: the call runs once, and the message reaches the run as its next message.
341
+ - A workflow run shows what it cost. Its Timeline's usage row read "Cost so far: $0 over 3 model requests", because its model nodes' answers carry pi-ai's $0 for a model it has no price for, while each request was booked at its price beside them. Its usage row is now its booking's, as a Claude Code or Codex run's is: its model nodes, its `llm` calls and its paid tool calls at what they were booked at. Its decisions count once, from their receipts, on the Timeline and in the run's cost (a run's view counted none of them before). The runs list and `/v2/usage` read a running Claude Code, Codex or workflow run's booked spend, where they read $0, and an unknown booked spend reads unknown, never $0. A run that ended reads a request it left unanswered as a cost unknown on its Timeline, as its view does.
342
+ - A command the runner's dispatch held before it chose a run's loop (an approval's answer, a message, a steer) is no longer lost when its first delivery fails. The dispatch tries it again while the loop runs, at most five times in all, and then leaves it for the run's next claim. A standalone runner (`agentrun-serve runner`) that meets an error nothing handles now says so with the stack and exits 1, so its claims lapse and another runner takes the runs back, instead of holding runs whose loop is dead.
343
+ - A run with a spend cap no longer passes it quietly. When an answer costs more than the cap had room for (an answer longer than expected, a native web search), the answer is booked and the run ends failed with error code `spend_cap_reached` and "The run cost $X, $Y over its cap of $Z.", as before the runner; it used to end completed, or pause for a raise at its next request. A cache miss within the bound its request was admitted at still pauses the run at its next request. A paid tool call (a web search or fetch, a paid MCP call) cut off by a runner crash or a takeover is booked as a charge of an unknown amount at the next claim: the run's cost reads unknown, counted at the call's hold for the cap, where it read as free. A model answer with no price (a gateway model the catalog does not list, with no price set) makes the run's cost unknown, never $0. A Claude Code, Codex or workflow run's `/v2/usage` tokens meter is its model requests' booked cost, where it read $0.
344
+ - A stop sent to a run before its runner had chosen the run's harness loop could end the whole runner process, along with every run it held, if that loop's stop threw. The throw is now logged instead. A run whose session fails to open at a new claim fails with the reason, and the runner keeps claiming other runs; a new test covers this with a message and an approval sent before the claim.
345
+ - Upgrading: nothing to change.
346
+ - `agentrun-serve runner` treats a SIGTERM or SIGINT that arrives during its start as its own stop. Before, the runner began claiming runs before its stop handlers were installed, so a signal in that window (a platform's redeploy) ended the process by the signal itself, with its claims still held and any paid request in flight cut. Now the runner listens from before its start, keeps a stop asked during it, says "stopping: a stop came during its start" once the start is done, and closes the way a later stop does (its runs handed back, its store closed, exit 0). The server's own CLI got the same fix in #2410.
347
+ - A held secret is cut, and refused in a learning note, in more of the spellings a path tool's error writes it in. Its ".." segments are now resolved as the resolver resolves them ("a/x/../b" is "a/b"). Each leading ".." can be taken by a folder of the path the model wrote, so "../KEY" named by pi's read of "notes/../KEY.txt" comes back as "KEY.txt", and that is found too. Its encodeURI spelling is cut where it stands, beside the encodeURIComponent ones. Before, the run's Timeline could show such a key with its leading ".." gone, and learning could keep a note quoting it.
348
+ Upgrading: nothing to do.
349
+ - A run no longer lets its desktop or phone go while a person holds it. When the agent finishes while you have taken over its computer, the run waits for you to hand it back before it ends, and the Timeline says so ("The agent is done. The run ends when you hand the desktop back, or after 15 minutes with no input from you"). A forgotten take-over still ends at the hold's 15-minute idle bound, and stopping the run ends it at once. Once the agent is done, the computer can't be taken over again, and a message sent while the run waits doesn't start a new turn: the run's end refuses it as having come after the answer.
350
+ - The server now ends computers a crashed runner left behind. When its runner starts, and every 10 minutes after, it looks at each computer provider whose keys it has and whose vendor doesn't end computers itself (Docker, Orgo), and ends this server's computers that are past their deadline. It never touches another server's computers on a shared account or Docker host, or a computer a run's claim still holds. A provider it can't reach is logged once, and the others are still swept; stopping the server never waits on a stuck sweep for more than a few seconds. It doesn't run under `--faux`. The computer package exports `runHash` and `RUN_HASH_LABEL`, and Orgo's `list({})` gives each computer's run hash under `agentrun.run.hash`, so a caller can tell whose run it is. A server or runner whose terminal closed its stdout or stderr (piped to `head`) no longer ends at the next line it writes there: the line is lost and it goes on.
351
+ - `AGENTRUN_BOX_CPUS`, `AGENTRUN_BOX_MEMORY` and `AGENTRUN_BOX_PIDS` size a Docker computer (a sandbox or a desktop) again. Since the old box stack went, the server read and checked them at its start and then gave them to nothing, so every Docker computer ran with the provider's defaults (2 CPUs, 4 GiB, 1,024 processes) whatever an operator set. The claim now puts them on the computer's spec, and the Docker provider runs the container with them. Unset, the provider's defaults hold. A vendor's computer (Daytona, Modal, E2B, Orgo, a phone, a hosted browser) sizes itself and is never given them. A value the Docker provider refuses stops the server's start, naming the setting, in the provider's words. The Docker provider's `check()` also refuses a `cpus` too large for a CPU quota (more than 90,071,992,547), which it used to pass and Docker then refused at every create.
352
+ - On macOS a local run's file calls work again: each open in the run's folder passes O_NOFOLLOW_ANY alone, since the kernel refuses it beside O_NOFOLLOW (EINVAL), which failed the first folder open of every call.
353
+ - An agent with `read` and no shell (no computer, as on a hosted server) reads an MCP answer too long to read whole to its end, so the code-review template reviews a pull request whose diff is past 60,000 characters without asking for a sandbox:
354
+ - The rest of a long MCP answer is filed under the run's `evidence/mcp/<server>/` as lines, a `.txt` (or `.json`, laid out a value a line), never one line of the answer's JSON, which `read` could show only the first 50 KB of before asking for bash. A line past 10,000 characters is broken into pieces of that length, and the note says so. The layout is bounded: its indent stops at 32 levels, and JSON whose layout would pass twice its size and 64 KiB (thousands of nested arrays, say) is filed as written, in lines, so a deeply nested answer never exhausts memory. The model reads the answer's first lines, whole, and a note naming the file and the `read` offset that goes on: `[cut at line 664 of 2192 (59980 of 200098 characters); the whole answer is in the run's files at evidence/mcp/github/<file>.txt: read it with offset=665 to go on]`.
355
+ - An embedded text resource (GitHub's `get_file_contents` answers a file as one) is read inline with the answer's text, under a `[resource <uri> (<type>)]` line, instead of filing the whole answer as JSON.
356
+ - On pi, a host tool's answer reaches the model whole within the host's result bound, as each CLI harness is told; pi's own default (50 KB or 2,000 lines, its head kept) cut off the end of a long MCP answer, where it names the file, and a read's "Use offset=<n> to continue".
357
+ - In Mode 2 (Archil), an agent on the runner (computer kind `none`, or no place named) may name `bash`: its save, its run's start and a template's apply ask where this server's runner has its shell (`bash` on Archil's serverless exec) instead of refusing it with `422`. `capabilities.tools` shows `bash` available there. The background tools still need a box, and in Mode 1 `bash` on the runner is refused in the same words as before.
358
+ - An agent edit whose checks run while another request moves the agent's current revision is built again on the new one, or, sent with `If-Match`, answers `412`: the write is conditional on the revision it was built on, compared in the store's own transaction, so two servers on one store never both pass an `If-Match`, and an edit never carries over a place, harness or learning switch from a revision it does not follow.
359
+ - On macOS, a run's folder can no longer be used to reach host files through a symlink swapped in mid-walk. Every file or folder serve opens in the run's folder is opened with O_NOFOLLOW_ANY, so a link anywhere on the way fails the open: a read, a file GET, a write, an append or grep never opens a host file, however the swap is timed. The end-of-run sweep removes a link itself, never what it points at. On Linux, behaviour is unchanged (it was already safe through O_NOFOLLOW and /proc/self/fd). On a host that is neither Linux nor macOS there is no way to refuse a link on the way, so a local run's file calls there fail instead of following one.
360
+ - A runner no longer takes more runs than its host's memory holds. The run count (`--max-runs`, by default as many pi runs as fit) let a 2 GB host take 15 claude-agent or codex runs at once, about 3.2 GB of claude-agent runs as measured, and the out-of-memory kill then took every run on the box. Now a runner claims a waiting run only while the runs it holds and that run's harness size (pi 128 MB, codex 192, claude-agent 288, opencode 704) fit the host's memory (its container's limit when it has one) less the server's 128 MB; a run that does not fit yet waits queued, oldest first, until one ends. A run larger than all of it still runs, alone.
361
+ - The runner honours `--drain-timeout` and `--max-runs` again. When the server stops (a redeploy, a restart, Ctrl-C), each busy run now finishes its turn for up to `--drain-timeout` (default 30s; the image's is 6s) and keeps its outcome, where before the turn was cut at once and its model request, already paid, was sent again on the resume. And the runner holds at most `--max-runs` runs at once (`AGENTRUN_MAX_RUNS`, else as many pi runs as the host's memory holds, the number the capabilities' `max_concurrent_runs` report); the rest wait queued, where before it took up to 300 at once and could run a small host out of memory. A runner of its own (`agentrun-serve runner`, beside a `--no-runner` server) holds the same: `--loops`, else `AGENTRUN_MAX_RUNS`, else what its host holds, and on SIGTERM it drains for `--drain-timeout` (new; default `AGENTRUN_DRAIN_TIMEOUT`, else 6s).
362
+ - `POST /v2/agents`, and every other write, no longer answers 500 when the server's own process is held up while the write is open. On SQLite a write's 10 s deadline is a timer on the server's event loop. When other work in the process held that loop past the deadline (a harness's pinned CLI hashed, or its `--version` run, synchronously, as the harness check does), the timer fired after the write's statements had already been answered, and the write was rolled back as if it were slow. The deadline now counts only time the process could run, on the monotonic clock: every hold of the process while the write is open is given back, whether it ended before the deadline or past it, and the host's clock set forward or back is never counted. A write that really stays open past its deadline is rolled back as before, and the request is answered `409 home_busy` (retryable), as a store busy past its wait is, never 500. An MCP client's tool call (such as `agents_create`) is refused the same `home_busy` instead of `internal`.
363
+ Upgrading: nothing to do.
364
+ - A run on a model the runner bridges into Messages (a model whose API is not Anthropic's Messages, or the faux model) shows its thinking on the Timeline again. The runner's model route sent the model's text and tool calls but no thinking block, so the thinking never reached the run's record. It now sends the thinking as a Messages thinking block, its whole text cut by the run's redactor first, so a held key the model quoted in its thinking is never written to the run's record, not only hidden when the Timeline is read.
365
+ - An explicit `AGENTRUN_BOX_ALLOW=none` is honoured for a computer that runs only on the vendor's own network (a cloud phone, Browserbase, Kernel): its run is refused at the start and at the claim, in words that name the setting, instead of running open. Under a list, the default or the operator's own, it still runs open, and Settings → Computers says so. A run whose launch names no box allow-list (one started before every launch carried it) now reaches what the server allows now, never an open network; a sandbox with none still has no network.
366
+ - A workflow model node's tool call that was let through, then run again on the next claim after its runner went (or its lease lapsed), with its tool now set to deny, tells the model that whether the call took effect is not known. It used to say that nothing was sent and nothing was charged, which is false of a call that may have reached its host.
367
+ - A workflow run that a person stops while a model node streams now books the stopped request at what streamed plus 1,024 tokens. Before, it could sometimes count the request at its whole hold instead. The run's end now waits, for at most two seconds, until every model request the run sent is booked, as an agentic run's end already does.
368
+ - The test of a learned skill at the 1 MiB skills cap on claude-agent's real adapter (900 KiB of the agent's own skills, a 200 KiB learned one left out) is gone. It timed out on the store now and then and passed when re-run. What it checked is covered elsewhere. In learn-skills-seed, two tests that don't depend on timing: the same skills under claude-agent's own skill check (the agent's skills stay the adapter's, the learned one that fits joins them, the 200 KiB one is left out and named, none in the prompt), and the 1 MiB cap for each form a harness is handed. In claude-run, a test on the real adapter checks that it offers a run's skills through its Skill tool.
369
+ - Deletes the load-flaky pi case in learn-workflow-run; the file's other pi cases (a learned workflow's call and its output, on its tier and on the timeline), learned-route's R1 and runner-pi-booking cover the path. Upgrading: nothing to do.
370
+ - The approvals route's description now says what a run does on the runner. An allowed call runs in place, and the session goes on with its result; there is no resume message about it. A denied call is answered with the refusal. A person's message that declines a waiting call shows as their own message row.
371
+ - The learning docs (the README's Learning section, the server's, and its learning folder's contract) now describe learning as it works today. A proposal's checks leave out an item that breaks a rule of its own and keep the rest; a secret, a hidden character, a path outside the folder or a deletion still drops the whole answer. One front-matter reader decides a learned skill's and workflow's status. Past the budget, a run gets the notes that bear on it. A workflow draft is asked for once a skill has served 3 runs, and it is dry-run before it is kept. A run that only ran a learned workflow skips its end-of-run turn. The runner opens a learned workflow's decision keys. The grader drops account numbers and planted rules, and its Risky question reads one way on every model. CLI runs read `reflecting`. The learning bench is described. A short list says what is coming.
372
+
5
373
  ## 0.1.0-beta.33 (2026-11-10)
6
374
 
7
375
  - The console's Keys page shows each provider's own icon beside its name, in place of a key icon. The icon comes from Google's favicon service (`www.google.com/s2/favicons`, which redirects to `t0`-`t3.gstatic.com`), so the console now loads one thing from the network, and the page's Content-Security-Policy `img-src` allows those five hosts. The request names the provider's public site and carries no referrer and no cookie of the server's; Google sees the browser's address and which providers the page lists. Offline, or with those hosts blocked, a provider shows its bundled mark (Anthropic, OpenRouter) or the key icon. To keep the console from asking, block those hosts.