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

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 (568) hide show
  1. package/CHANGELOG.md +452 -0
  2. package/README.md +311 -142
  3. package/dist/agent-rows.d.ts +1 -1
  4. package/dist/agents-store.d.ts +35 -3
  5. package/dist/agents-store.js +39 -14
  6. package/dist/answer-json.d.ts +34 -1
  7. package/dist/answer-json.js +91 -9
  8. package/dist/api-only.d.ts +1 -1
  9. package/dist/api-only.js +2 -2
  10. package/dist/attach-conformance-cli.d.ts +1 -0
  11. package/dist/attach-conformance-cli.js +18 -0
  12. package/dist/attach-conformance.d.ts +25 -0
  13. package/dist/attach-conformance.js +343 -0
  14. package/dist/browser-cost.d.ts +1 -1
  15. package/dist/browser-cost.js +52 -93
  16. package/dist/browser-live.d.ts +20 -8
  17. package/dist/browser-live.js +50 -27
  18. package/dist/cap.d.ts +0 -407
  19. package/dist/cap.js +4 -1028
  20. package/dist/catalog.d.ts +1 -12
  21. package/dist/catalog.js +4 -34
  22. package/dist/cli.js +13 -4
  23. package/dist/composio-preset.d.ts +53 -0
  24. package/dist/composio-preset.js +221 -0
  25. package/dist/computer-attach.d.ts +125 -0
  26. package/dist/computer-attach.js +330 -0
  27. package/dist/computer-calls.d.ts +60 -0
  28. package/dist/computer-calls.js +209 -0
  29. package/dist/computer-channel.d.ts +57 -0
  30. package/dist/computer-channel.js +115 -0
  31. package/dist/computer-commands.d.ts +1 -1
  32. package/dist/computer-held-routes.d.ts +35 -0
  33. package/dist/computer-held-routes.js +106 -0
  34. package/dist/computer-held.d.ts +48 -0
  35. package/dist/computer-held.js +87 -0
  36. package/dist/computer-keys.d.ts +21 -1
  37. package/dist/computer-keys.js +53 -11
  38. package/dist/computer-live.d.ts +165 -0
  39. package/dist/computer-live.js +655 -0
  40. package/dist/computer-setting.d.ts +15 -2
  41. package/dist/computer-setting.js +20 -4
  42. package/dist/computer-view.d.ts +14 -0
  43. package/dist/computer-view.js +51 -3
  44. package/dist/computer-viewer.d.ts +6 -0
  45. package/dist/computer-viewer.js +311 -0
  46. package/dist/computers.d.ts +37 -8
  47. package/dist/computers.js +62 -14
  48. package/dist/console/assets/index-CjqQirbo.css +1 -0
  49. package/dist/console/assets/index-b6-XY5A9.js +576 -0
  50. package/dist/console/index.html +2 -2
  51. package/dist/console-links.d.ts +2 -0
  52. package/dist/console-links.js +3 -0
  53. package/dist/decisions.js +4 -0
  54. package/dist/faux-computers.d.ts +9 -20
  55. package/dist/faux-computers.js +56 -26
  56. package/dist/github-connection.d.ts +10 -2
  57. package/dist/github-connection.js +65 -2
  58. package/dist/github-faux.js +1 -1
  59. package/dist/graph-view.d.ts +1 -1
  60. package/dist/harness-opencode/adapter.js +7 -3
  61. package/dist/harness-opencode/facts.js +0 -2
  62. package/dist/harness-opencode/host/policy.d.ts +2 -5
  63. package/dist/harness-opencode/host/policy.js +8 -32
  64. package/dist/harness-table.d.ts +0 -2
  65. package/dist/harness-table.js +0 -2
  66. package/dist/harness.d.ts +1 -0
  67. package/dist/harness.js +35 -1
  68. package/dist/host-tools.d.ts +2 -6
  69. package/dist/host-tools.js +7 -10
  70. package/dist/hosted-search.d.ts +5 -6
  71. package/dist/hosted-search.js +2 -28
  72. package/dist/import-sources.d.ts +10 -0
  73. package/dist/import-sources.js +44 -2
  74. package/dist/import.d.ts +3 -3
  75. package/dist/import.js +37 -6
  76. package/dist/key-words.d.ts +3 -2
  77. package/dist/key-words.js +4 -2
  78. package/dist/learn/check.d.ts +10 -2
  79. package/dist/learn/check.js +13 -5
  80. package/dist/learn/commit.d.ts +14 -2
  81. package/dist/learn/commit.js +23 -9
  82. package/dist/learn/compile.d.ts +243 -0
  83. package/dist/learn/compile.js +471 -0
  84. package/dist/learn/folder.d.ts +6 -0
  85. package/dist/learn/folder.js +4 -1
  86. package/dist/learn/general.d.ts +69 -0
  87. package/dist/learn/general.js +75 -0
  88. package/dist/learn/grade.d.ts +5 -1
  89. package/dist/learn/grade.js +29 -7
  90. package/dist/learn/notes.d.ts +8 -0
  91. package/dist/learn/notes.js +18 -0
  92. package/dist/learn/promote.d.ts +253 -0
  93. package/dist/learn/promote.js +428 -0
  94. package/dist/learn/refit.d.ts +39 -0
  95. package/dist/learn/refit.js +236 -0
  96. package/dist/learn/reflect.d.ts +9 -20
  97. package/dist/learn/reflect.js +18 -125
  98. package/dist/learn/replay-calls.d.ts +63 -0
  99. package/dist/learn/replay-calls.js +158 -0
  100. package/dist/learn/skills.d.ts +50 -14
  101. package/dist/learn/skills.js +183 -47
  102. package/dist/learn/workflow-nodes.d.ts +15 -0
  103. package/dist/learn/workflow-nodes.js +44 -0
  104. package/dist/learned-nodes.d.ts +50 -2
  105. package/dist/learned-nodes.js +41 -2
  106. package/dist/learned-workflow.d.ts +43 -3
  107. package/dist/learned-workflow.js +170 -28
  108. package/dist/learning-batch.d.ts +283 -0
  109. package/dist/learning-batch.js +574 -0
  110. package/dist/learning-cost.d.ts +18 -6
  111. package/dist/learning-cost.js +15 -7
  112. package/dist/learning-evals.d.ts +33 -0
  113. package/dist/learning-evals.js +98 -0
  114. package/dist/learning-routes.d.ts +37 -2
  115. package/dist/learning-routes.js +52 -8
  116. package/dist/learning-words.d.ts +13 -0
  117. package/dist/learning-words.js +13 -0
  118. package/dist/learning.d.ts +55 -17
  119. package/dist/learning.js +91 -48
  120. package/dist/live/stream.js +6 -3
  121. package/dist/live/translate.d.ts +4 -3
  122. package/dist/live/translate.js +8 -4
  123. package/dist/live-reach.d.ts +37 -0
  124. package/dist/live-reach.js +62 -0
  125. package/dist/llm.js +0 -3
  126. package/dist/mcp-gateway.d.ts +21 -20
  127. package/dist/mcp-gateway.js +76 -55
  128. package/dist/mcp-oauth.d.ts +62 -7
  129. package/dist/mcp-oauth.js +134 -19
  130. package/dist/mcp-pin-first.d.ts +37 -0
  131. package/dist/mcp-pin-first.js +107 -0
  132. package/dist/mcp-private-hosts.d.ts +4 -4
  133. package/dist/mcp-private-hosts.js +20 -12
  134. package/dist/mcp-probe.d.ts +27 -11
  135. package/dist/mcp-probe.js +60 -42
  136. package/dist/mcp-secret-writes.js +4 -0
  137. package/dist/mcp-servers-store.d.ts +115 -25
  138. package/dist/mcp-servers-store.js +241 -43
  139. package/dist/mcp-sources.d.ts +39 -0
  140. package/dist/mcp-sources.js +74 -0
  141. package/dist/mcp-store.d.ts +21 -4
  142. package/dist/mcp-store.js +33 -8
  143. package/dist/mcp-wire.d.ts +22 -0
  144. package/dist/mcp-wire.js +36 -0
  145. package/dist/mcp.js +3 -3
  146. package/dist/meta-tool-names.d.ts +1 -0
  147. package/dist/meta-tool-names.js +3 -0
  148. package/dist/model-form.d.ts +26 -0
  149. package/dist/model-form.js +80 -0
  150. package/dist/model.d.ts +13 -0
  151. package/dist/model.js +69 -25
  152. package/dist/monid.d.ts +51 -25
  153. package/dist/monid.js +226 -140
  154. package/dist/openapi.js +694 -59
  155. package/dist/page.d.ts +18 -0
  156. package/dist/page.js +48 -20
  157. package/dist/paid-calls.d.ts +26 -29
  158. package/dist/paid-calls.js +46 -102
  159. package/dist/place-offers.d.ts +2 -3
  160. package/dist/place-offers.js +3 -7
  161. package/dist/place.js +1 -2
  162. package/dist/print.d.ts +15 -1
  163. package/dist/print.js +14 -3
  164. package/dist/propose.d.ts +10 -1
  165. package/dist/propose.js +30 -10
  166. package/dist/provider.js +12 -4
  167. package/dist/reflect-range.d.ts +8 -1
  168. package/dist/reflect-range.js +3 -2
  169. package/dist/rows.d.ts +5 -3
  170. package/dist/rows.js +15 -4
  171. package/dist/run-launch.d.ts +27 -2
  172. package/dist/run-launch.js +15 -4
  173. package/dist/run-learning-served.d.ts +13 -2
  174. package/dist/run-manifest.d.ts +5 -0
  175. package/dist/run-manifest.js +20 -0
  176. package/dist/run-reads-over-store.d.ts +1 -1
  177. package/dist/run-repo.d.ts +20 -0
  178. package/dist/run-repo.js +63 -0
  179. package/dist/run-secrets.js +2 -3
  180. package/dist/run-timeline-served.d.ts +1 -1
  181. package/dist/run-timeline-served.js +5 -2
  182. package/dist/run-view.d.ts +19 -8
  183. package/dist/run-view.js +62 -26
  184. package/dist/runnable.d.ts +0 -3
  185. package/dist/runnable.js +37 -29
  186. package/dist/runner/adapter-loop.d.ts +47 -17
  187. package/dist/runner/adapter-loop.js +1427 -303
  188. package/dist/runner/adapter-run-spec.d.ts +23 -9
  189. package/dist/runner/adapter-run-spec.js +162 -56
  190. package/dist/runner/adapters/pi-computer.d.ts +9 -0
  191. package/dist/runner/adapters/pi-computer.js +51 -0
  192. package/dist/runner/adapters/pi.d.ts +25 -11
  193. package/dist/runner/adapters/pi.js +168 -45
  194. package/dist/runner/beside.d.ts +7 -3
  195. package/dist/runner/beside.js +21 -11
  196. package/dist/runner/claim-secrets.d.ts +4 -0
  197. package/dist/runner/claim-secrets.js +6 -1
  198. package/dist/runner/cli-run-spec.d.ts +20 -3
  199. package/dist/runner/cli-run-spec.js +174 -64
  200. package/dist/runner/commands.d.ts +3 -1
  201. package/dist/runner/commands.js +28 -3
  202. package/dist/runner/computer-channel.d.ts +34 -0
  203. package/dist/runner/computer-channel.js +62 -0
  204. package/dist/runner/conformance/harness.d.ts +3 -0
  205. package/dist/runner/conformance/harness.js +224 -17
  206. package/dist/runner/conformance/subject.d.ts +12 -5
  207. package/dist/runner/dispatch.js +3 -0
  208. package/dist/runner/end-of-run.d.ts +23 -12
  209. package/dist/runner/end-of-run.js +41 -16
  210. package/dist/runner/feedback-round.d.ts +52 -0
  211. package/dist/runner/feedback-round.js +79 -0
  212. package/dist/runner/github-app.d.ts +2 -1
  213. package/dist/runner/github-app.js +4 -2
  214. package/dist/runner/harness-loops.js +15 -1
  215. package/dist/runner/held-run.d.ts +65 -0
  216. package/dist/runner/held-run.js +158 -0
  217. package/dist/runner/journal-kinds.d.ts +44 -7
  218. package/dist/runner/journal-kinds.js +29 -0
  219. package/dist/runner/journal-reader.d.ts +5 -4
  220. package/dist/runner/journal-reader.js +12 -10
  221. package/dist/runner/learning-ask.d.ts +7 -1
  222. package/dist/runner/learning-ask.js +21 -6
  223. package/dist/runner/learning-dispatch.d.ts +22 -0
  224. package/dist/runner/learning-dispatch.js +77 -10
  225. package/dist/runner/learning-end.d.ts +69 -13
  226. package/dist/runner/learning-end.js +340 -87
  227. package/dist/runner/learning-factory.d.ts +1 -1
  228. package/dist/runner/learning-factory.js +11 -5
  229. package/dist/runner/learning-loop.d.ts +86 -8
  230. package/dist/runner/learning-loop.js +178 -23
  231. package/dist/runner/learning-seed.d.ts +11 -0
  232. package/dist/runner/learning-seed.js +27 -0
  233. package/dist/runner/live-ticker.js +1 -0
  234. package/dist/runner/loop-contract.d.ts +26 -3
  235. package/dist/runner/loop.d.ts +21 -2
  236. package/dist/runner/loop.js +23 -2
  237. package/dist/runner/main.d.ts +13 -1
  238. package/dist/runner/main.js +27 -5
  239. package/dist/runner/mcp-claim.d.ts +15 -8
  240. package/dist/runner/mcp-claim.js +176 -71
  241. package/dist/runner/mcp-github.js +1 -1
  242. package/dist/runner/mcp-run.d.ts +21 -57
  243. package/dist/runner/mcp-run.js +25 -85
  244. package/dist/runner/meta-tools.d.ts +37 -0
  245. package/dist/runner/meta-tools.js +268 -0
  246. package/dist/runner/metrics.d.ts +11 -2
  247. package/dist/runner/metrics.js +26 -5
  248. package/dist/runner/model-route.js +12 -3
  249. package/dist/runner/monid-run.d.ts +16 -0
  250. package/dist/runner/monid-run.js +96 -0
  251. package/dist/runner/pr-checkout.d.ts +1 -0
  252. package/dist/runner/pr-checkout.js +1 -1
  253. package/dist/runner/promotion.d.ts +80 -0
  254. package/dist/runner/promotion.js +562 -0
  255. package/dist/runner/reflect-hook.d.ts +46 -13
  256. package/dist/runner/reflect-hook.js +149 -48
  257. package/dist/runner/runner.d.ts +26 -0
  258. package/dist/runner/runner.js +208 -17
  259. package/dist/runner/scratch-sweep.d.ts +13 -0
  260. package/dist/runner/scratch-sweep.js +62 -0
  261. package/dist/runner/sessions.d.ts +9 -4
  262. package/dist/runner/sessions.js +5 -1
  263. package/dist/runner/step-guard.d.ts +62 -0
  264. package/dist/runner/step-guard.js +93 -0
  265. package/dist/runner/store-port.d.ts +4 -2
  266. package/dist/runner/store-secrets.js +4 -3
  267. package/dist/runner/subagent.d.ts +0 -3
  268. package/dist/runner/subagent.js +10 -13
  269. package/dist/runner/workflow-first.d.ts +216 -0
  270. package/dist/runner/workflow-first.js +303 -0
  271. package/dist/runner/workflow-host.d.ts +6 -1
  272. package/dist/runner/workflow-host.js +1 -1
  273. package/dist/runner/workflow-loop.d.ts +1 -1
  274. package/dist/runner/workflow-loop.js +17 -10
  275. package/dist/runner/workflow-spec.d.ts +15 -2
  276. package/dist/runner/workflow-spec.js +63 -23
  277. package/dist/runs-over-store.d.ts +17 -3
  278. package/dist/runs-over-store.js +59 -20
  279. package/dist/seal-key.js +3 -3
  280. package/dist/sealed-settings-store.d.ts +5 -2
  281. package/dist/sealed-settings-store.js +10 -4
  282. package/dist/secret-writes.d.ts +5 -4
  283. package/dist/secret-writes.js +5 -4
  284. package/dist/server-secrets-store.d.ts +4 -3
  285. package/dist/server-secrets-store.js +15 -9
  286. package/dist/server-secrets.js +3 -2
  287. package/dist/server.d.ts +119 -18
  288. package/dist/server.js +841 -202
  289. package/dist/settings-wake.d.ts +23 -0
  290. package/dist/settings-wake.js +65 -0
  291. package/dist/standard-webhooks.d.ts +4 -1
  292. package/dist/standard-webhooks.js +8 -4
  293. package/dist/store/agent-body.d.ts +14 -3
  294. package/dist/store/agent-body.js +14 -10
  295. package/dist/store/command-wake.d.ts +13 -0
  296. package/dist/store/command-wake.js +37 -0
  297. package/dist/store/dialect.d.ts +6 -0
  298. package/dist/store/dialect.js +5 -0
  299. package/dist/store/index.d.ts +1 -1
  300. package/dist/store/journal/storage.d.ts +3 -2
  301. package/dist/store/journal/storage.js +13 -5
  302. package/dist/store/postgres/connection.js +3 -1
  303. package/dist/store/postgres/dialect.js +4 -0
  304. package/dist/store/postgres/migrations/0005_learning_rounds.sql +14 -0
  305. package/dist/store/postgres/migrations/0006_run_changes_channel_attempts.sql +57 -0
  306. package/dist/store/postgres/migrations/0007_viewer_host.sql +11 -0
  307. package/dist/store/postgres/migrations/0008_paired_computers.sql +30 -0
  308. package/dist/store/postgres/migrations/0009_commands_answer.sql +10 -0
  309. package/dist/store/postgres/migrations/0010_imported_templates.sql +18 -0
  310. package/dist/store/postgres/migrations/0011_revision_mcp_pin.sql +13 -0
  311. package/dist/store/schema.d.ts +10 -1
  312. package/dist/store/schema.js +104 -15
  313. package/dist/store/sqlite/connection.d.ts +2 -2
  314. package/dist/store/sqlite/connection.js +2 -2
  315. package/dist/store/sqlite/run-patch.d.ts +7 -5
  316. package/dist/store/sqlite/run-patch.js +45 -18
  317. package/dist/store/sqlite/store.js +331 -72
  318. package/dist/store/store.d.ts +312 -21
  319. package/dist/store/store.js +12 -1
  320. package/dist/store-reads/cap.d.ts +1 -1
  321. package/dist/store-reads/cap.js +8 -1
  322. package/dist/store-reads/decisions.d.ts +2 -2
  323. package/dist/store-reads/decisions.js +1 -1
  324. package/dist/store-reads/import-summary.d.ts +1 -1
  325. package/dist/store-reads/journal.d.ts +30 -5
  326. package/dist/store-reads/journal.js +128 -56
  327. package/dist/store-reads/learning.d.ts +114 -12
  328. package/dist/store-reads/learning.js +238 -48
  329. package/dist/store-reads/loop.d.ts +61 -0
  330. package/dist/store-reads/loop.js +111 -0
  331. package/dist/store-reads/runs.d.ts +1 -1
  332. package/dist/store-reads/workflow.d.ts +1 -1
  333. package/dist/store-view.d.ts +6 -0
  334. package/dist/store-view.js +59 -26
  335. package/dist/template-eval.d.ts +18 -9
  336. package/dist/template-eval.js +95 -68
  337. package/dist/template-github-permissions.d.ts +24 -10
  338. package/dist/template-github-permissions.js +36 -15
  339. package/dist/template-import.d.ts +31 -0
  340. package/dist/template-import.js +121 -0
  341. package/dist/template-source.d.ts +51 -0
  342. package/dist/template-source.js +371 -0
  343. package/dist/templates.d.ts +218 -46
  344. package/dist/templates.js +493 -181
  345. package/dist/timeline/computer.d.ts +48 -0
  346. package/dist/timeline/computer.js +169 -0
  347. package/dist/timeline/index.d.ts +4 -3
  348. package/dist/timeline/index.js +4 -3
  349. package/dist/timeline/labels.d.ts +6 -2
  350. package/dist/timeline/labels.js +93 -2
  351. package/dist/timeline/origin.d.ts +19 -5
  352. package/dist/timeline/origin.js +11 -4
  353. package/dist/timeline/timeline.d.ts +22 -1
  354. package/dist/timeline/timeline.js +34 -18
  355. package/dist/timeline/util.d.ts +4 -0
  356. package/dist/timeline/util.js +14 -0
  357. package/dist/tool-gate.d.ts +84 -50
  358. package/dist/tool-gate.js +179 -101
  359. package/dist/tool-keys.d.ts +4 -1
  360. package/dist/tool-keys.js +8 -3
  361. package/dist/tool-list.d.ts +26 -0
  362. package/dist/tool-list.js +43 -0
  363. package/dist/tool-names.d.ts +71 -0
  364. package/dist/tool-names.js +99 -0
  365. package/dist/tool-plane.d.ts +33 -27
  366. package/dist/tool-plane.js +72 -39
  367. package/dist/tools.d.ts +32 -7
  368. package/dist/tools.js +37 -24
  369. package/dist/trigger-adapter.d.ts +4 -0
  370. package/dist/trigger-secrets-shown.d.ts +2 -2
  371. package/dist/trigger-secrets-shown.js +1 -1
  372. package/dist/trigger-signatures.d.ts +25 -6
  373. package/dist/trigger-signatures.js +41 -7
  374. package/dist/trigger-targets.d.ts +2 -0
  375. package/dist/trigger-targets.js +1 -0
  376. package/dist/trigger-webhook.js +5 -2
  377. package/dist/triggers.d.ts +7 -3
  378. package/dist/triggers.js +35 -5
  379. package/dist/turns.js +16 -1
  380. package/dist/validate.d.ts +15 -7
  381. package/dist/validate.js +102 -45
  382. package/dist/web-fetch.d.ts +2 -8
  383. package/dist/web-fetch.js +2 -22
  384. package/dist/web-search.d.ts +10 -5
  385. package/dist/web-search.js +7 -6
  386. package/dist/webhooks.d.ts +145 -102
  387. package/dist/webhooks.js +559 -322
  388. package/dist/workflow/decisions.d.ts +1 -1
  389. package/dist/workflow/node-runner.d.ts +2 -1
  390. package/dist/workflow/node.d.ts +2 -1
  391. package/dist/workflow/node.js +3 -1
  392. package/dist/workflow/pi-versions.d.ts +23 -0
  393. package/dist/workflow/pi-versions.js +57 -0
  394. package/dist/workflow/record-tool.d.ts +2 -1
  395. package/dist/workflow/store.d.ts +1 -1
  396. package/dist/workflow/task.js +3 -2
  397. package/dist/workflow-run.d.ts +1 -1
  398. package/dist/workspace/attached-computers.d.ts +41 -0
  399. package/dist/workspace/attached-computers.js +114 -0
  400. package/dist/workspace/computer-deps.d.ts +19 -9
  401. package/dist/workspace/computer-deps.js +24 -9
  402. package/dist/workspace/computer-for-claim.d.ts +23 -8
  403. package/dist/workspace/computer-for-claim.js +92 -33
  404. package/dist/workspace/computer-hold.d.ts +11 -27
  405. package/dist/workspace/computer-hold.js +41 -55
  406. package/dist/workspace/computer-ledger.d.ts +3 -1
  407. package/dist/workspace/computer-ledger.js +4 -0
  408. package/dist/workspace/computer-mcp.d.ts +25 -0
  409. package/dist/workspace/computer-mcp.js +41 -0
  410. package/dist/workspace/computer-ports.d.ts +4 -13
  411. package/dist/workspace/computer-ports.js +4 -107
  412. package/dist/workspace/computer-script.d.ts +53 -0
  413. package/dist/workspace/computer-script.js +172 -0
  414. package/dist/workspace/executors.d.ts +1 -1
  415. package/dist/workspace/index.d.ts +4 -2
  416. package/dist/workspace/index.js +3 -1
  417. package/dist/workspace/kind-skills/desktop/SKILL.md +132 -84
  418. package/dist/workspace/kind-skills/phone/SKILL.md +104 -85
  419. package/dist/workspace/local.js +2 -2
  420. package/dist/workspace/resolve-computer.d.ts +24 -1
  421. package/dist/workspace/resolve-computer.js +40 -16
  422. package/dist/workspace/run-tools.d.ts +56 -21
  423. package/dist/workspace/run-tools.js +55 -34
  424. package/dist/wrap-up.d.ts +21 -0
  425. package/dist/wrap-up.js +21 -0
  426. package/launcher/agentrun-serve +4 -2
  427. package/package.json +19 -16
  428. package/templates/README.md +111 -45
  429. package/templates/code-review/agent.md +30 -14
  430. package/templates/code-review/evals/clean-refactor/case.yaml +2 -1
  431. package/templates/code-review/evals/clean-refactor/graders/head-sha.md +6 -0
  432. package/templates/code-review/evals/injection/case.yaml +2 -1
  433. package/templates/code-review/evals/injection/graders/head-sha.md +6 -0
  434. package/templates/code-review/evals/mentions-defused/case.yaml +2 -2
  435. package/templates/code-review/evals/mentions-defused/fixtures/github-mcp.json +0 -23
  436. package/templates/code-review/evals/mentions-defused/graders/head-sha.md +6 -0
  437. package/templates/code-review/evals/never-flag/case.yaml +2 -1
  438. package/templates/code-review/evals/never-flag/graders/head-sha.md +6 -0
  439. package/templates/code-review/evals/null-name/case.yaml +2 -1
  440. package/templates/code-review/evals/null-name/graders/head-sha.md +6 -0
  441. package/templates/code-review/evals/off-by-one/case.yaml +2 -1
  442. package/templates/code-review/evals/off-by-one/graders/head-sha.md +6 -0
  443. package/templates/code-review/evals/other-repo/case.yaml +16 -0
  444. package/templates/code-review/evals/other-repo/fixtures/github-mcp.json +130 -0
  445. package/templates/code-review/evals/other-repo/graders/head-sha.md +6 -0
  446. package/templates/code-review/evals/other-repo/graders/no-canary.md +6 -0
  447. package/templates/code-review/evals/other-repo/graders/no-other-repo.md +8 -0
  448. package/templates/code-review/evals/other-repo/graders/refused-not-quoted.md +18 -0
  449. package/templates/code-review/evals/other-repo/prompt.md +10 -0
  450. package/templates/code-review/evals/re-review/case.yaml +2 -1
  451. package/templates/code-review/evals/re-review/graders/head-sha.md +6 -0
  452. package/templates/code-review/evals/re-review-open/case.yaml +2 -1
  453. package/templates/code-review/evals/re-review-open/graders/head-sha.md +6 -0
  454. package/templates/code-review/evals/repo-rule/case.yaml +2 -1
  455. package/templates/code-review/evals/repo-rule/graders/head-sha.md +6 -0
  456. package/templates/code-review/evals/two-defects/case.yaml +2 -1
  457. package/templates/code-review/evals/two-defects/graders/head-sha.md +6 -0
  458. package/templates/code-review/rules/CODEREVIEW.md +1 -1
  459. package/templates/code-review/skills/review/DEEP.md +3 -2
  460. package/templates/code-review/skills/review/REVIEWER.md +3 -2
  461. package/templates/code-review/skills/review/SKILL.md +4 -3
  462. package/templates/code-review/{findings.schema.json → skills/review/findings.schema.json} +1 -0
  463. package/templates/inbound-lead/agent.md +26 -16
  464. package/templates/inbound-lead/evals/injection-in-form/graders/no-exfil.md +16 -0
  465. package/templates/inbound-lead/evals/injection-in-form/prompt.md +2 -2
  466. package/templates/inbound-lead/evals/write-back/case.yaml +2 -6
  467. package/templates/inbound-lead/evals/write-back/fixtures/fake-hubspot.json +34 -225
  468. package/templates/inbound-lead/evals/write-back/graders/note-and-score.md +10 -14
  469. package/templates/inbound-lead/evals/write-back/graders/writes-once.md +7 -0
  470. package/templates/inbound-lead/evals/write-back/prompt.md +1 -1
  471. package/templates/inbound-lead/evals/write-back-wrong-record/case.yaml +3 -7
  472. package/templates/inbound-lead/evals/write-back-wrong-record/fixtures/fake-hubspot.json +34 -225
  473. package/templates/inbound-lead/evals/write-back-wrong-record/graders/form-id.md +17 -0
  474. package/templates/inbound-lead/evals/write-back-wrong-record/graders/no-write.md +3 -3
  475. package/templates/inbound-lead/evals/write-back-wrong-record/prompt.md +2 -2
  476. package/templates/inbound-lead/skills/lead/SKILL.md +23 -27
  477. package/templates/kyb/agent.md +15 -5
  478. package/templates/kyb/evals/adverse-media/prompt.md +2 -7
  479. package/templates/kyb/evals/canada-active-filed/prompt.md +2 -6
  480. package/templates/kyb/evals/clean-public-company/prompt.md +2 -6
  481. package/templates/kyb/evals/injection-in-page/prompt.md +3 -7
  482. package/templates/kyb/evals/name-collision/prompt.md +2 -6
  483. package/templates/kyb/evals/no-invention/prompt.md +2 -6
  484. package/templates/kyb/evals/opensanctions-on/prompt.md +2 -6
  485. package/templates/kyb/evals/sanctioned-entity/prompt.md +2 -6
  486. package/templates/kyb/kyb.schema.json +8 -7
  487. package/templates/kyb/skills/kyb/SKILL.md +9 -6
  488. package/templates/market-monitor/agent.md +19 -12
  489. package/templates/market-monitor/evals/post-happens/case.yaml +4 -4
  490. package/templates/market-monitor/evals/post-happens/fixtures/slack-mcp.json +13 -9
  491. package/templates/market-monitor/evals/post-happens/graders/post-is-digest.md +1 -1
  492. package/templates/market-monitor/evals/post-happens/graders/posted-once.md +3 -3
  493. package/templates/market-monitor/skills/monitor/SKILL.md +6 -4
  494. package/templates/release-notes/agent.md +32 -10
  495. package/templates/release-notes/evals/draft-not-publish/case.yaml +4 -3
  496. package/templates/release-notes/evals/draft-not-publish/fixtures/github-mcp.json +29 -51
  497. package/templates/release-notes/evals/every-pr-accounted/case.yaml +2 -1
  498. package/templates/release-notes/evals/issue-write-refused/case.yaml +4 -3
  499. package/templates/release-notes/evals/issue-write-refused/fixtures/github-mcp.json +29 -51
  500. package/templates/release-notes/evals/late-arrival/case.yaml +6 -5
  501. package/templates/release-notes/evals/late-arrival/fixtures/github-mcp.json +29 -51
  502. package/templates/release-notes/evals/learned-style/case.yaml +2 -1
  503. package/templates/release-notes/evals/no-pr-numbers-on-top/case.yaml +2 -1
  504. package/templates/release-notes/evals/other-repo/case.yaml +24 -0
  505. package/templates/release-notes/evals/other-repo/fixtures/github-mcp.json +907 -0
  506. package/templates/release-notes/evals/other-repo/graders/no-canary.md +7 -0
  507. package/templates/release-notes/evals/other-repo/graders/no-other-repo.md +8 -0
  508. package/templates/release-notes/evals/other-repo/graders/refused-not-quoted.md +18 -0
  509. package/templates/release-notes/evals/other-repo/prompt.md +32 -0
  510. package/templates/release-notes/evals/upgrade-line/case.yaml +2 -1
  511. package/templates/release-notes/evals/user-facing-only/case.yaml +2 -1
  512. package/templates/release-notes/notes.schema.json +1 -1
  513. package/templates/release-notes/skills/release-notes/SKILL.md +26 -17
  514. package/dist/console/assets/index-BI4Byidu.js +0 -550
  515. package/dist/console/assets/index-C19gUF2n.css +0 -1
  516. package/dist/run-db.d.ts +0 -53
  517. package/dist/run-db.js +0 -116
  518. package/dist/tool-blurbs.d.ts +0 -4
  519. package/dist/tool-blurbs.js +0 -28
  520. package/dist/tool-budget.d.ts +0 -26
  521. package/dist/tool-budget.js +0 -56
  522. package/dist/workflow/readers.d.ts +0 -36
  523. package/dist/workflow/readers.js +0 -145
  524. package/dist/workflow/wal.d.ts +0 -11
  525. package/dist/workflow/wal.js +0 -106
  526. package/templates/code-review/evals/clean-refactor/graders/schema.md +0 -5
  527. package/templates/code-review/evals/injection/graders/schema.md +0 -5
  528. package/templates/code-review/evals/mentions-defused/graders/schema.md +0 -5
  529. package/templates/code-review/evals/never-flag/graders/schema.md +0 -5
  530. package/templates/code-review/evals/null-name/graders/schema.md +0 -5
  531. package/templates/code-review/evals/off-by-one/graders/schema.md +0 -5
  532. package/templates/code-review/evals/re-review/graders/schema.md +0 -5
  533. package/templates/code-review/evals/re-review-open/graders/schema.md +0 -5
  534. package/templates/code-review/evals/repo-rule/graders/schema.md +0 -5
  535. package/templates/code-review/evals/two-defects/graders/schema.md +0 -5
  536. package/templates/inbound-lead/evals/clear-disqualifier/graders/schema.md +0 -5
  537. package/templates/inbound-lead/evals/injection-in-form/graders/schema.md +0 -5
  538. package/templates/inbound-lead/evals/learned-correction/graders/schema.md +0 -5
  539. package/templates/inbound-lead/evals/strong-fit/graders/schema.md +0 -5
  540. package/templates/inbound-lead/evals/thin-data/graders/schema.md +0 -5
  541. package/templates/inbound-lead/evals/write-back/graders/schema.md +0 -5
  542. package/templates/inbound-lead/evals/write-back/graders/writes-twice.md +0 -7
  543. package/templates/inbound-lead/evals/write-back-wrong-record/graders/proves-record.md +0 -18
  544. package/templates/inbound-lead/evals/write-back-wrong-record/graders/schema.md +0 -5
  545. package/templates/kyb/evals/adverse-media/graders/schema.md +0 -5
  546. package/templates/kyb/evals/canada-active-filed/graders/schema.md +0 -5
  547. package/templates/kyb/evals/clean-public-company/graders/schema.md +0 -5
  548. package/templates/kyb/evals/injection-in-page/graders/schema.md +0 -5
  549. package/templates/kyb/evals/name-collision/graders/schema.md +0 -5
  550. package/templates/kyb/evals/no-invention/graders/schema.md +0 -5
  551. package/templates/kyb/evals/opensanctions-on/graders/schema.md +0 -5
  552. package/templates/kyb/evals/sanctioned-entity/graders/schema.md +0 -5
  553. package/templates/market-monitor/evals/blocked-source/graders/schema.md +0 -5
  554. package/templates/market-monitor/evals/every-competitor-named/graders/schema.md +0 -5
  555. package/templates/market-monitor/evals/learned-preference/graders/schema.md +0 -5
  556. package/templates/market-monitor/evals/no-repeats/graders/schema.md +0 -5
  557. package/templates/market-monitor/evals/nothing-changed/graders/schema.md +0 -5
  558. package/templates/market-monitor/evals/post-happens/graders/schema.md +0 -5
  559. package/templates/market-monitor/evals/pricing-change/graders/schema.md +0 -5
  560. package/templates/market-monitor/evals/pricing-moved/graders/schema.md +0 -5
  561. package/templates/release-notes/evals/draft-not-publish/graders/schema.md +0 -5
  562. package/templates/release-notes/evals/every-pr-accounted/graders/schema.md +0 -5
  563. package/templates/release-notes/evals/issue-write-refused/graders/schema.md +0 -5
  564. package/templates/release-notes/evals/late-arrival/graders/schema.md +0 -5
  565. package/templates/release-notes/evals/learned-style/graders/schema.md +0 -5
  566. package/templates/release-notes/evals/no-pr-numbers-on-top/graders/schema.md +0 -5
  567. package/templates/release-notes/evals/upgrade-line/graders/schema.md +0 -5
  568. package/templates/release-notes/evals/user-facing-only/graders/schema.md +0 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,458 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.0-beta.38 (2026-11-14)
6
+
7
+ - Daytona no longer takes an Archil mount: Archil's client hangs on its sandboxes (its FUSE session never answers a `statx` of the mountpoint), so a create that asks for one waited out its 120 s mount bound. Breaking: Daytona's descriptor declares `mounts: []` and its `capabilities().mount` is `[]`; `check()` and `create()` refuse an Archil mount up front, code `refused`, in the words "Archil mounts don't work on Daytona yet: Archil's client hangs on its sandboxes", before anything is asked of Daytona. `DAYTONA_ARCHIL_EGRESS` is no longer a Daytona key, and `DaytonaProvider` refuses the `archilEgress` option at construction; drop both. In serve, a Mode 2 agent whose computer is a Daytona sandbox, with GPUs or without, is refused at its save and its run's start with those words: pick a Modal or E2B sandbox instead.
8
+ A descriptor may now say why it takes none of a mount kind, `unmounted: { <kind>: "<one sentence>" }` (`Unmounted`, also a `HostFacts` field and `checkMount`'s third parameter); `check()` refuses a mount of that kind in those words, and `defineProvider` refuses an `unmounted` that names a kind `mounts` declares.
9
+ - A template's `parameters` are read, compiled and checked as its `inputs` are: one grammar, one compiler, one required rule. Breaking: a parameter is required unless it says `required: false`, a `default` is allowed only beside `required: false`, and GET /v2/templates serves `parameters` as a closed JSON Schema object (`type`, `additionalProperties: false`, `required`, `properties`) where it served a map of descriptors. A package that left a parameter optional by omitting `required` adds `required: false`; a client that read `parameters.<name>.required` reads `parameters.required` and `parameters.properties.<name>`.
10
+ - Apply fills a blank parameter (absent, or `""`) with its default, then checks the parameters with the run input check, so a refusal reads as a run's: `parameters.topic is required`, `parameters keeps no field tone`, the validator's own words for a bound or a pattern.
11
+ - A parameter takes the `inputs` keys (`title`, `examples`, `minimum`, `maxLength`, …); `cron` and `timezone` are in the one format list. The console's Apply form is the run form: a parameter's `title` is its label.
12
+ - Template packages lose three parts that repeated what the server already does. A package that uses one must drop it.
13
+ - The `schema` grader is gone. Every completed graded run of a package that declares `output` is now held to its output schema by an `output` verdict, so a case no longer needs a `graders/schema.md`. A case that still has one is refused: "type is one of llm, regex, tool_used, file_exists".
14
+ - The `examples/` folder is refused ("a package's folders are skills/, rules/ and evals/"), and GET /v2/templates no longer serves `examples`.
15
+ - The `checks` field in agent.md is refused ("no field checks").
16
+ - The run read (GET /v2/runs/{run_id}) now serves `input`, the run's input as it was started (null when withheld), and `file_ids`, its files. The console's "Run again" resends both, so a run whose message is over 2,000 characters, has typed fields or was given files now starts again whole instead of being refused.
17
+ - A template's `mcp` needs name where their tools come from, `{source: composio | github | url, toolkit, tools, required?, reason?, allow?, pin?}`, never a saved server's name: `server:` is removed, and a package that still has it is refused with the new shape in the message. To upgrade a package, replace `server: <name>` with its `source` and `toolkit` (`source: github, toolkit: github` for GitHub; `source: composio, toolkit: <slug>` for a Composio toolkit, its tools by their action slugs; else `source: url` with the toolkit you will set on the saved server). Inside the package its tools are `mcp:<toolkit>/<tool>`, and an apply's `grants` name them that way.
18
+ - Apply maps each need to the saved MCP server whose recorded source and toolkit are the need's; where several are, the owner picks one with the apply's new `servers` (`{<toolkit>: <server>}`), and an apply with no pick is `422` naming them: a server is never picked for the owner. When the server's name is not the toolkit, apply renames the package's tool names (`mcp:<toolkit>/<tool>` and `mcp:<toolkit>/*`) to `mcp:<server>/...` in the instructions, the skills, the tool settings and the grants. The answer's `servers` says which server each need used, or null. A need with none is not set up here: its warning (or a required one's `409`) says how to add one, for Composio the preset with the toolkit and actions filled in.
19
+ - Each saved MCP server records `source` and `toolkit`, shown by `GET /v2/settings/mcp-servers`, when it is saved and from what made it: the Composio preset records `composio` and its toolkit, a `github_app` server is `github`, any other is `url` with the toolkit its owner sets (`toolkit` in the `PUT`, or Settings → MCP servers). `POST .../oauth/start` takes `toolkit` too, for the server its sign-in saves.
20
+ - A template eval's fake MCP server stands in for the need it fakes: the eval's own server records it as the need's source and toolkit. With `--server`, a case that fakes a `composio` or `github` need fails, saying to run it on the eval's own server.
21
+ - New display fields: `category` (one of engineering, security, sales, marketing, research, finance, operations, compliance, personal) and `tags` (at most 8).
22
+ - The shipped packages say where their tools come from, with a reason each: code-review and release-notes from GitHub, market-monitor's sends and inbound-lead's HubSpot and Slack tools from Composio by their action slugs (`SLACK_SEND_MESSAGE` pinned to the channel; `GMAIL_SEND_EMAIL` to the one address, `cc`, `bcc`, `extra_recipients` and `from_email` held absent). An alias neither listing declares (Slack's `channel_id`, Gmail's `to`) needs no pin: the gate refuses an undeclared argument of a pinned tool.
23
+ - Security: code-review and release-notes pin every GitHub tool, reads too, to the one repository, so a hostile pull request or release body can't have the agent read another repository the GitHub App reaches. Their `repo` parameter is now `owner` and `repo`, and their trigger is held to `<owner>/<repo>`. The free-text searches that can't be pinned are dropped: code-review's `search_code`, release-notes' `search_issues` and `search_pull_requests` (it lists with `list_pull_requests` and `list_issues` instead). Each has an eval case where the body asks for another repository's file.
24
+ - Security: inbound-lead reads nothing from HubSpot. It runs unattended on a form anyone can submit and holds `web_fetch`, so a CRM read could be sent out in a fetched URL. Its one HubSpot tool is `HUBSPOT_CREATE_NOTE`, optional: one note, the fit score in its text, on the contact a HubSpot CRM event's own payload names (with none, it answers with the brief and says why). The contact update and the `crm_score_property` parameter are dropped too, since a pin can't limit which fields an update sets. A package that holds `web_fetch` now lists no MCP read.
25
+ - The console's apply screen shows each need's source, reason and the saved server it will use, a choice where several match, and a link to add one where none does; Settings → MCP servers shows and edits each server's source and toolkit.
26
+ - A tool-call budget is removed: `max_tool_calls` on an agent definition and `budget.tool_calls` in a template manifest are refused as unknown fields, and the `subagent` tool no longer takes `max_tool_calls`. The count only ever held on pi; the run's spend cap and its wrap-up stop a runaway loop on every harness. Put a call count in the instructions and set `per_run_usd` (a template's `budget` is now `{per_run_usd}`, required when `budget` is given).
27
+ - A run's MCP tools are host tools on every harness: each call passes the run's one tool gate before anything is sent, and the runner calls the server with the credential, books the call and records it, as it does any host tool. opencode now runs MCP tools (`features.mcp_client.harnesses` lists it, and an opencode agent granted `mcp:<server>/<tool>` saves and runs). claude-agent offers a granted tool as `mcp__hands__mcp__<server>__<tool>` and codex as `mcp_<server>__<tool>` (Codex refuses a dynamic tool named `mcp__*`); the Timeline, tool settings and approvals still name it `mcp:<server>/<tool>`. A call set to ask on claude-agent, codex or opencode holds the CLI's call while the run waits (no "waits for a person's approval" result row while it is parked); on the person's allow the resumed session gets the call's own result, no `[tool approval]` message. A codex run no longer fails at its start when a granted server can't be reached: the server's error shows at the first call, as on pi. On a code-mode Codex model, a script's tool call held for a person's approval runs once on their allow, under its own call id, and the script's cut-off `exec` reads its result (or, when the `exec` had yielded, the model's `wait` on its cell); before, the resume told the model the call may have run, and the call the model made again asked again, so the allow never reached a call.
28
+
29
+ Who breaks: a run parked on an MCP call at the MCP door before this version does not resume its call: cancel it and start it again. A Codex thread started before this version loses its MCP tools when it resumes (Codex resumes a thread with the dynamic tools it started with): start a new run. Code built on the kernel's MCP door breaks too. Removed: `SessionSpec.mcp`, `SessionMcp`, `McpClient`, `AdapterCapabilities` and `AgentAdapter.capabilities()`, `AdapterFacts.mcp`, `ModelProxyOptions.mcp`, `mcpRoute`, `McpHandler` and `McpRouteOptions` (`@parcha/agentrun-kernel/host`), and `McpCallResult.parked`. Hand a session its MCP tools as host tools in `SessionSpec.tools` instead.
30
+ - An MCP tool's name is held to one rule wherever it is taken: `mcp:<server>/<tool>`, the server's name in lowercase letters, digits and `-` (at most 32, starting with a letter), the tool's in letters, digits, `_` and `-` (at most 64). The tool settings (`PUT /settings/tools`, an agent's `tool_settings`), a learned workflow's call nodes, a template's `mcp` tools and its eval fixtures now refuse a name the grant always refused (a `.` in a tool's name, a tool's name over 64 characters, a server's name with capitals, `_` or `.`), where before they took it and the agent could never be granted it. Who breaks: a settings key or template naming such a tool, which now gets 422 `not_allowed`; rename it to the server's listed name, or drop it, since no run could call it. Composio actions (`GITHUB_CREATE_AN_ISSUE`) are unaffected.
31
+ - A provider-native web search's fee is one constant, `NATIVE_SEARCH_USD` ($0.01, $10 per 1,000), instead of three copies. The price does not change.
32
+ - Kernel: `@parcha/agentrun-kernel/host` exports `NATIVE_SEARCH_USD`. The Claude and Codex proxy policies and the runner's hosted search all read it.
33
+ - `@parcha/agentrun-harness-claude` no longer exports `CLAUDE_WEB_SEARCH_USD`; read `NATIVE_SEARCH_USD` from `@parcha/agentrun-kernel/host`.
34
+ - An agent's desktop or phone can be driven by code alone or by tools alone, and can have no shell: `definition.computer` takes `surface` ("code" or "tools") and `exec` (false).
35
+ - `surface: "code"`: the run gets its harness's script tool (pi's `codemode`, else `computer_script`) and the hand-over, and no `computer_observe`, `computer_act` or `computer_screenshot`. On pi, the `codemode` tool's description declares `computer` then, since no `computer_script` is listed to declare it.
36
+ - `surface: "tools"`: the per-step tools and the hand-over, and no `computer_script` and no pi `codemode`. Absent, both, as before.
37
+ - `exec: false`: the agent's card has no `exec` or `processes` group, so no tool or script has `computer.shell` or `computer.processes` (a script that reaches for one is refused in words), no folder is mounted in the computer, and the run has no `bash` or background tool anywhere, Archil's exec included. The run's own computer channel (`POST /runs/{run_id}/computer/call`) keeps every group.
38
+ - Both are a desktop's or a phone's alone: on another kind, 422 `not_allowed`. GET /agents/{agent_id} shows them.
39
+ - A template parameter may be a list of a scalar, so a scheduled agent's scope (the companies it watches) is set once at apply and reaches each run as typed input.
40
+ - `parameters.<name>` takes `type: array` with `items`, a scalar in the `inputs` vocabulary. Apply checks each item as an input's are, and the console asks one item a line.
41
+ - A trigger's `target.input` value that is one placeholder alone (`"${parameters.companies}"`) takes the parameter's value with its type: a list stays a list, an integer an integer. One whose parameter was given no value, and has no default, is dropped, so the input schema sees the field absent. Before, every placeholder filled as text.
42
+ - In text (instructions, display name, `content`) a list fills as its items joined by `, `, an empty one as `""`. Apply checks the filled `target.input` against the agent's input schema.
43
+ - A pin value that is a list parameter's placeholder alone pins the list as a one-of.
44
+ - An eval case whose `prompt.md` body holds its own `Input:` block is refused: the server writes that block from the case's `input:`.
45
+ - ask_person runs on Claude Code and Codex. A `claude-agent` or `codex` agent granted `ask_person` is no longer refused as pi's (`409 agent_not_runnable` with `details.unbound`, and the save's warning on the tool): the tool is bound as a host tool, its call passes the run's gate like any host tool's, and the run waits on the person as a pi run does. Its turn ends at the question, the run parks `input_required` with the question pending and the row saying "Waiting for your reply", and the person's answer resumes it as its next turn. A stop while it waits ends it stopped. `GET /v2/capabilities` lists every harness for `ask_person`.
46
+ - A learning agent now writes its whole job as a learned workflow in a compile turn, which replaces the ask that came after a skill had served 3 runs. The turn runs at the end of a completed run when the agent has 3 or more active notes or 5 or more completed runs, has no learned workflow active or waiting, and compiled nothing in its last 4 runs. It also runs when a workflow handed the run back, when the money rule stopped one, or when its promotion holds it (its replay on the agent's graded inputs, or its graded runs, fell under the bar); then it asks for that workflow's next version, and a held one's ask carries the replay's numbers. A held workflow is asked once per hold. The model gets the DSL's own author contract with this server's rules, one worked example (an extract step, a judge step when the run has a decision provider, a decide step, and an escalate step for a case the policy does not cover), the agent's notes, and the last 5 runs' tool calls, answers and follow-up messages. Every step gets a guard that starts at threshold 0.7. When the run can call Jev, judgment steps (decide, agent, judge, pick, sift) get `{"signal": "both"}` and extract and call steps get `{"signal": "jev"}`. Otherwise judgment steps get `{"signal": "self"}` and the others get no guard. For an agent with an output schema, the turn shows the schema whole as the shape the workflow's final output must have, and the dry run holds the draft's answer to it the same way a serving run shapes it, so a draft that answers one field where the schema asks for more fails its dry run in the schema's words. The draft goes through the static checks and then a dry run. Whatever they refuse goes back to the model, up to 3 more times.
47
+ Every attempt is recorded. `GET /runs/{id}/learning` now always has `compiled` (the workflow, the notes it absorbed in `from_notes`, `attempts` with each one's `ok` and `errors`, the kept draft's `digest`, and `promoted`: true once its promotion record promotes it or a refit of it, false while held, null until decided; or null) and `draft_errors`, which holds the errors of a draft that never passed. A draft that fails also goes into the run's `problems`. When a compiled workflow merges, each note it absorbed gets `compiled_into: <workflow>` in its front matter and is still served to runs the agent does by hand. A run's own note may not set `compiled_into`. The end-of-run look-back no longer asks for a workflow draft. The DSL's `dryRunWorkflow` takes `onOutput`, handed the workflow's output when the dry run passed.
48
+ - computer-bench has a Linux desktop suite, `suites/linux-desktop`: ten tasks (five dev, five held out) in Mousepad, xfce4-terminal, Thunar and Firefox, two of them across two apps. Every task denies the agent `exec`; checks read the files, git config and server logs the work leaves, and every oracle is keyboard input only. All ten are verified live on E2B Desktop for seeds 1, 2 and 3 (untouched fails, solved passes), and the eight without Thunar on Agent37. Teardown stops only the apps its run started, by the pids setup kept. Setup places the windows with xdotool, puts the pointer on the one that takes the keys and activates it, so the tasks run with a window manager or without one.
49
+ - serve's `--faux` desktop answers `ping`. computer-bench pings the computer after the agent's turn, so every bench run on a faux desktop was scored infra.
50
+ - A pi code-mode script's computer calls are on its `codemode` tool call's result row, as a direct computer tool call's are: one `computer_calls` record per call, each with its own `started_at`.
51
+ - Each record also names the call's `app`, and each `ui.act` step the element it acted on (`on`: its role, and its name as the last observe read it, at most 60 characters), the chord it pressed (`keys`, only a chord with ⌘, ⌃ or ⌥, or named keys alone) and a `nav` place. A typed or set value is never kept. An element's name goes through the run's redaction.
52
+ - Console: a step with computer calls shows how many it made and how many failed; open, each call in words ("select all (⌘A); type into the text box “Pears: 41”"), when it started after the first, and how long it took. `@timeline/computer`'s `callWords` gives the same words to any reader.
53
+ - Breaking: a `computer_calls` record now always carries `started_at`; a reader of the old shape that built its own start time from the row's timestamp reads it from the record instead.
54
+ - An agent can open an app on a Linux desktop. Before, every app an agent started there closed right away, so a person watching the Screen tab on E2B or Agent37 saw a black desktop for the whole run. `computer.shell.run` passes no `DISPLAY`, and its command's guard ends everything the command started, `setsid` and `&` included. Two changes fix this:
55
+ - `computer.processes.start(command, { cwd, env })` (on a computer with the processes group) starts a program that keeps running after the call. That program, and any app a launcher forks, runs until it exits or the computer ends. It answers `{ pid }`. In a run it is held to bash's setting, as `bash_background` is, so a read-only bash policy refuses it.
56
+ - On a desktop whose hello names a display, the surface adds `DISPLAY` to the env of `shell.run` and `processes.start`, under the call's own variables. An app opens where the screen is, and a tool such as `xdotool` finds it.
57
+ - The desktop-computer skill's Linux section says how to open an app.
58
+ - A Linux desktop has the `apps` group, as a Mac does: `computer.apps.open("mousepad")` and `computer.apps.list()` read the same on both.
59
+ - computerd answers `apps.list`, `apps.launch` and `apps.terminate` on its X display. `apps.list` reads the desktop's `.desktop` files. `apps.launch` takes an id, a name or a program, starts the app with `DISPLAY` so it runs on after the call, and answers `{}` once the app's window shows, raised and focused. It answers `timeout` ("no window within 10 s") when none does. `apps.terminate` ends the app and waits until its windows are gone.
60
+ - E2B's and Agent37's desktops start xfwm4 once the display is up (the host fact `HostFacts.windowManager`; Docker's desktops run none), so the apps an agent opens are framed and focused.
61
+ - A desktop's init names its user (`agentrun-tool`) when the image has no passwd entry for it, as E2B Desktop has none, so the session bus xfwm4 needs and a terminal's shell work. A window manager that ends within a second of its start fails create in its own words.
62
+ - The Agent37 box image (`agentrun-box`) adds xfwm4, Xfce's terminal, Mousepad, Firefox ESR and xdotool.
63
+ - The conformance case `apps.launch-terminate` runs on any Linux desktop that lists Mousepad, Xfce's terminal or xterm.
64
+ - A computer step reads in one voice wherever a person sees it: a computer tool call's Timeline row, the step's computer call list in the console, and a Mac movie's caption all come from `@timeline/computer`'s `callWords`, in the plain past tense ("Opened TextEdit", "Selected all (⌘A), typed into the text box “Pears”", "Pressed “Save”", "Could not press “Save”"), the same on a phone, a Linux desktop and a Mac.
65
+ - An app is named as a person knows it: "org.xfce.mousepad" is Mousepad.
66
+ - The console's call list shows a failed call's code beside its words.
67
+ - A `ui.observe` call that names no app is recorded with the app its answer showed, so its row and its call both read "Looked at Settings".
68
+ - A step refused after an act's first three is still said ("…, +1 more, could not press “Save”"), not counted away.
69
+ - Breaking: `computer_act` and `computer_observe` rows no longer show a typed or set text, a click's point or a scroll's direction, and `computer_observe` no longer names the window ("Looked at Settings", not "Looked at Display in Settings"): a row says what the call's record says. `callWords` and `stepWords` answer the past tense ("Opened TextEdit", was "open TextEdit"), and a failed call no longer carries its code in its words.
70
+ - A run on a desktop or a phone reads plainly to the person watching it.
71
+ - The timeline says what the agent did on the computer: "Pressed “Display”", "Typed “dark”", "Went back", "Looked at Display in Settings", "Took a screenshot", a script's title. These replace "Using tool: computer_act". A finished act says only the steps that ran; a refused step reads "Could not press “Save”", and the act reads failed with the step and the reason. Typed or set text shows whole or not at all, and only for a step that names its field when that field is not a secure field; a type with no field of its own reads "Typed text".
72
+ - An act's answer names each step's element as the outline does (`2. press @e31 generic "Display": semantic, verified`), `[secure]` by the element's own flag. An element with no name of its own, such as an Android settings row, takes the name of the first named element inside it. A type with no element names none.
73
+ - While a new computer boots, the timeline says so ("Starting a phone from Phone harness…") instead of staying blank until "The phone is ready".
74
+ - The console's Screen tab sizes a phone to the page's visible height, so the whole phone shows without scrolling. The live view says a hand-back once, in words that name the phone.
75
+ - The console's Learning tab now walks through the self-learning loop. A strip at the top shows five stages: the notes learned, the workflow they compiled into, the run where it took over, how much cheaper runs got, and where it is unsure. Each stage has a state and says what happens next ("1 of 3 notes, 0 of 5 runs: a workflow compiles at 3 notes or 5 runs"). The cost chart marks each promotion record on the run it first affected, with a lettered flag for a new revision, a promotion, a hold or a refit; the flags have a key, a hover and table rows. Replay runs are drawn as hollow rings and left out of the rolling mean. Runs with an unknown path or cost are counted in a chip. The headline gives the server's own before and after with the hand-back rate since the takeover. The learned workflow card says whether each revision is serving, served, refit, held or replaying, with the replay's numbers in one line, and how many replayed inputs were skipped because they need a write the recording doesn't have. It shows each step's guard on the step in the graph ("jev ≥0.70") and lists the guarded steps: how often each handed back, and each run's p split into right, wrong and not graded. A learning feed lists compile turns (the notes that went in, each attempt, and the checks' own words when a draft was refused) next to the promotion records. A note compiled into a workflow says so. New: `GET /agents/{id}/learning/loop` (the agent's compile turns and guarded steps, `agentrun agents get-learning-loop`), and each workflow revision now has a `digest`. Every count is over every run, never only the newest a read lists: the cost summary's `hand_backs` (since the takeover), and each guarded step's `right` and `wrong`; a replay run (its guards read at a record-only threshold) is counted apart in `replays`, never as a served run, and a step only replays ran has a null `threshold`. Each round a follow-up opened lists its own compile turn (`round`), and the cost per run counts every round's look-back and grade. A compile in the feed says Serving only for the revision that serves now, and Stopped when the money rule stopped it running first. A guarded step inside a composed child workflow reads its runs by the runner's `parent/child` name. A step's `grades_past` counts runs whose grade is no longer kept (the agent keeps its newest 500 grades), so an old revision never reads "none graded". An agent that learns notes only is promised no workflow.
76
+ - A saved MCP server's read says why a tool can't be granted, and a failed MCP save says it in the one credential word.
77
+ - Each tool of GET /v2/settings/mcp-servers/{name} (and the save's answer) may carry `grant_problems`: why a grant of it is refused where it would run, in the words the save's 422 says. `*` is a refusal on every harness (its wire name `mcp__<server>__<tool>` is past the 52 characters every harness's tool names share); a harness id is that harness alone, whose own MCP client would drop or retype the tool's schema (claude-agent drops a tool whose schema's root has `anyOf`, `allOf` or `oneOf`). The console renders these words and keeps no rule of its own; it also disables a known meta tool (`grantable: false`) in the picker, with the server's reason.
78
+ - A preview, save or refresh that fails now cuts every credential value and its bare token, of any header scheme (`Basic`, `Token`, `Bearer`), from the server's words, as a run's call already did; before, only a `Bearer` token was cut, and any other scheme's bare token a server echoed was shown. The cut text reads `[redacted]`, where the preview used to say `[credential]`. A credential value of any length is cut (a run's call used to leave one under 8 characters in the server's words).
79
+ - One credential scrubber, one 4 MiB cap on an upstream answer and one SDK client setup now serve the probe and the run's gateway (packages/serve/src/mcp-wire.ts); every MCP read of the registry from the runner and the server goes through the sealed layer (mcp-store.ts).
80
+ - An agent's MCP tools are pinned when the agent is saved, not when a run starts.
81
+ - Saving an agent (POST /agents, PUT /agents/{agent_id}/definition, an inline agent's first run of a version, a template's apply) lists each MCP server it grants a tool of, once, and keeps the granted tools on the new revision as the server listed them: name, title, description, input schema, annotations, and the prices set for them. Every run of that revision calls those tools, whatever the server lists by then. A call the server no longer takes as pinned is the server's to refuse, as before.
82
+ - A save is refused (422, on the tool's field) when a granted server can't be listed right now (`The MCP server <name> could not be listed to pin its tools: ...`), or no longer lists a granted tool (`The MCP server <name> has no tool <tool>; ...`). Nothing is saved: save again once the server answers. Applying a template with a GitHub tool ticked, whose GitHub MCP server runs on the GitHub App's tokens, on a server with no GitHub App connected, is refused this way too (`... This server has no GitHub App: Connect GitHub in Settings.`), and nothing is made; it used to make an agent whose every run was refused when it started. Connect GitHub and apply again. An edit that grants nothing new from a server that can't be listed (its instructions, say) saves, keeping the agent's current pin for that server; only a tool new to that pin, or an agent with no pin yet, is refused. A server that keeps no credential of its own (`per_run`), or an OAuth server whose access token only a run refreshes, and that refuses the listing for its credential, is pinned as its last save or refresh listed it.
83
+ - Saving the agent again re-pins: an unchanged definition saved after a server changed a granted tool is a new revision with the new tools; saved again with nothing changed, no revision.
84
+ - GET /agents/{agent_id} and GET /agents/{agent_id}/revisions show the pin as `mcp_pin`: per server, the pinned tools and their prices (never the server's URL); null when the revision grants no MCP tool.
85
+ - A run no longer lists an MCP server at its first claim. A run of a revision that grants an MCP tool its pin does not hold is refused before it starts (409 agent_not_runnable), and at its claim, saying to save the agent again.
86
+ - A revision saved before this release that grants an MCP tool has no pin yet. Its first run pins it, once, as a save would (two first runs at once agree on one pin), and every later run uses that pin. This holds for an inline agent's (POST /runs) version stored before this release too. Nothing needs saving again. That first pin covers every server the revision grants a tool of, or none: if one of them can't be listed, or is no longer saved here, nothing is pinned, the run is refused (409 agent_not_runnable at its start; a run picked up at its claim fails) and the next run tries again, so saving that server again lets the revision run. A run picked up at its claim lists a GitHub MCP server that runs on the GitHub App's tokens with a token of the run's repository that can only read its metadata, revoked at GitHub once the listing is done.
87
+ - The store upgrades itself in place. On SQLite the server's start adds the revision's pin column and drops the per-run pin table (the schema stays version 11, so the previous release's data directory still opens). Postgres migrates itself (migration 0011). A run that already existed (queued, or followed up later) pins its revision the same way at its next claim; its old per-run pin is not carried over, so it runs on the revision's pin.
88
+ - An agent with an `output_schema` is told the schema, and asked once more when its answer misses it, on every harness (pi, claude-agent, codex, opencode).
89
+ - The runner appends the schema to the run's instructions: "End your final answer with exactly one ```json block that matches this JSON Schema:", then the schema.
90
+ - When the final answer has no json block meeting the schema, the run gets one more turn in the same session, under the same cap: "Your final JSON did not match the output schema: <why>. Reply again, ending with the corrected json block." It is booked like any other turn and shows on the timeline as a server message. There is never a second retry, and a run that is parked or at its cap ends without one.
91
+ - A completed agentic run whose answer still misses the schema serves `result.output: null` with `result.output_error`, why it missed. The TypeScript and Python clients carry the field.
92
+ - The console's Report reads an agentic run's `result.output` with its revision's schema, not the answer's text: a string property marked `contentMediaType: "text/markdown"` renders as a Markdown section, at any depth, and a property's `title` names its field. A run that missed says why above the answer as written.
93
+ - Templates: applying one no longer copies its answer schema beside a skill's SKILL.md, since the runner now gives the agent the schema itself. A template whose skill reads the schema as a file keeps it inside that skill's folder (code-review's `findings.schema.json` is now `skills/review/findings.schema.json`). The bundled templates' report fields (kyb's `report_markdown`, release-notes' `draft_markdown`, code-review's `summary`) are marked `text/markdown`.
94
+ - A pinned call now carries only what it may: a pin can fence an MCP tool's object argument to named keys, and a pinned tool takes only the arguments its listing declares.
95
+
96
+ Object keys. `{"keys": ["hs_lead_score"]}` on a CRM update's `properties` lets an unattended write set that one field and nothing else.
97
+ - The argument, when given, must be an object whose keys are all in the list. Any values are allowed. Leaving it out, or passing `null`, also holds.
98
+ - A call that sets another key is refused before it is sent or asked about, under approvals `never` too, and the model reads `properties keys in (hs_lead_score)`.
99
+ - When the agent's settings and the server's settings both pin the same argument to keys, only the keys in both are allowed. If no key is in both, every call is refused.
100
+ - Templates can fill the keys from parameters (`{keys: ["${parameters.crm_score_property}"]}`). A key whose parameter is not given sets the tool to deny, as an empty pin does today. A key that is a list parameter alone adds each of its items.
101
+ - Tool settings and template packages refuse a malformed keys pin with a message. The console shows a keys pin as "properties may hold only the key hs_lead_score (any value)".
102
+
103
+ Undeclared arguments. Some servers take an alias for an argument their listing never declares: Slack's `channel_id` for `channel`, Gmail's `to` for `recipient_email`. A pin on the declared name could be walked around through the alias.
104
+ - A call of a tool with a pin in either layer may carry only the top-level arguments its listing declares under `properties`, plus its pinned ones. The listing is the one the run pinned when it started, the same one its model is offered.
105
+ - Any other argument is refused before it is sent or asked about, directly, through `tools_call` and from a codemode script, and the model reads "`to` is not an argument of GMAIL_SEND_EMAIL; a pinned tool takes only its listed arguments (recipient_email is pinned)." Templates no longer need to pin aliases to `null` by hand.
106
+ - A listing with no `properties` object closes nothing. Tools with no pin are unchanged.
107
+ - A learned workflow's new draft or revision now serves first only after it is replayed on the agent's last 20 graded inputs and its accuracy there is within 2 points of the agent's on the same inputs. Grade a finished run with `PUT /runs/{id}/grade` (`{"correct": true | false, "expected"?: {...}, "source"?: "feedback" | "eval"}`); the grades the agent's runs carry are the inputs a replay uses. A replay starts one run per graded input the workflow fits, with `metrics.path` `replay` and `metrics.replay: {of, outcome}`, at the workflow's cost, and meanwhile the revision promoted last (the champion) keeps serving, or the agent when none was promoted yet. A replayed input the workflow hands back (it escalated: an escalate node or a guard) counts as the agent's recorded answer for it, never as a failure; one it failed on (a step failed) is no evidence and is left out of the score, and a replay with fewer than 5 inputs answered or handed back holds the revision. A replay run has the agent's tool credentials as a served run does: an MCP server's `per_run` credential is the one the claimed run was handed, sealed for the replay alone. A replay never sends a write: each tool is a read or a write (an MCP tool by its server's annotations, read only when `readOnlyHint` is true and `destructiveHint` is not; the built-ins `web_fetch`, `web_search`, `pdf_pages` and `llm` read; anything else writes). A read runs live once a replay, through a cache seeded from the graded run's recorded calls on the same tool and arguments. A write is answered from the graded run's recording when a call there has the same tool and arguments, else that input is skipped (`metrics.replay.outcome` `skipped_write`, with `skipped: {tool, step}`), neither right, wrong nor failed; a replay whose every input was skipped holds the revision, its reason saying it needs a write the recording doesn't have. A replay run runs only while its revision replays: a superseded, promoted or held revision's replay run, or one whose claim cannot lay its revision, ends failed without asking the agent. A replay's answer is right when it matches the grade's `expected` fields, or when it says what the graded answer said and that answer was right. With fewer than 5 graded inputs it fits, the workflow serves on its passing dry run, as before, and its record says so.
108
+ `GET /agents/{id}/learning/promotions` lists each decision as `{workflow, digest, at, decided: "promote" | "hold" | "replaying" | "superseded", source: "replay" | "dry_run" | "refit" | "graded", reason, replay?: {of, n, agree, agent_acc, wf_acc, delta, handed_back, skipped_write}, runs?, refit?: {from, guards: [{node, was, threshold, fit?}]}, commit?, superseded_by?}` (`commit`: the learning commit holding that revision's workflow.json), and `serving: [{workflow, digest, replaying}]`: which revision serves and which one replays. A held revision never serves; the champion keeps serving, also on inputs the folder's revision no longer takes (a new required field). One revision replays at a time: the newest revision (the one the learning folder's main holds; a run pinned to an older commit never counts as newer) supersedes the one replaying, whose replay runs are cancelled (what they spent stays on them) and whose record says `superseded` with `superseded_by`. A wrong served grade asks for a revision and never stops the champion. Escalation never holds a workflow. Two things do: the money rule, and graded runs it served more than 2 points under the agent's graded runs by hand, checked once per 20 new graded runs it served (each grade carries a sequence number the check counts from, so the check keeps coming once the 500 kept grades are full).
109
+ At that check, and when a replay holds, each guarded step's threshold is refit to the cheapest one that keeps the replay's accuracy within the bar (a hand-back its guard made, whose answer nobody read, counts wrong at a threshold that would have let it through, so a threshold never comes down on no evidence), and a `both` guard's `fit` is refit (a logistic over its self and Jev reads) when it has 30 graded rows with 5 wrong. A refit that moves a threshold commits the workflow as a new revision, promoted on the rows it was fit on; its money-rule count starts over.
110
+ A run its learned workflow answered alone, on a CLI-shaped record, now reads its booked cost on `GET /runs/{id}` (it read `null`).
111
+ Breaking: a learned workflow draft that gives two steps one label (a child workflow's step read `parent/child`) is refused at learn time and before a call, as a saved workflow already was (`DUPLICATE_LABEL`): a label names one step, its guard's threshold, replay score and refit included.
112
+ - A workflow step can carry a guard: `"guard": {"signal": "self" | "jev" | "both", "threshold": 0.7, "question"?: "...", "fit"?: {"w": [...], "b": 0, "n": 0, "fitted_at": "..."}}` on an agent, decide, extract, code, call, workflow, judge, pick or sift node. After the step runs, the host puts p, the chance the step is right, against the threshold. Below it, the run escalates at that step with kind `guard`. `self` reads the step's own confidence: an agent or decide node submits a `confidence` between 0 and 1 beside its record, kept at `<as>$confidence` and never in its value, and a judge, pick or sift node uses its weakest answer's (a sift's, over every item). `jev` asks Jev once about what the step was asked to do (`GuardStepParams.task`: its instructions, a judge or sift's questions, the schema of its `out`, a code node's code, a call's tool or command), its input and its output, each cut to a bounded length; a pick's input is what its judge chose among (its state, the candidates), a sift's its state and the items. `both` puts the two through the guard's fitted logistic, or takes the lower of the two when it has no fit. `validateWorkflow` refuses a bad signal, threshold, question or fit, and refuses `self` on a node that reports no confidence, with a message that says what to write. A host that runs guarded workflows passes `WorkflowDeps.guardStep`; a run without it refuses a guarded workflow before any node runs.
113
+ In a learned workflow's call, a guard below its threshold hands the job back to the agent in the same run. The agent's input carries the trace and one line per guard: its signal, what it read, p and the threshold. Jev runs on the pinned model `jev-1.14.0` as a decision of the run, the way a decision node's is: the run gets the Jev key for a workflow whose guard reads Jev, the gate's setting for `jev` applies, and the call is admitted on the run's cap and counts toward the run's cost. A guard with no signal to read (no Jev key, `jev` set to deny, or a failed Jev call) hands back and never passes. A learning run's `metrics.guards` lists every check as `{node, signal, self?, jev?, p, threshold, escalated}`, including those of a map over more items than the call's trace keeps.
114
+ - A template package can be installed from GitHub: `POST /v2/templates/import {source, dry_run?, trust_publisher?}` reads `github:<owner>/<repo>[/<path>][@<ref>]` (or a `https://github.com/<owner>/<repo>/tree/<ref>/<path>` address), resolves the ref to a full commit SHA first, downloads that commit's tarball from GitHub's hosts alone, and checks the package with the same checker the bundled ones pass. Nothing in it runs.
115
+ - A dry run answers the package whole (its instructions and every skill file) and stores nothing. A stored import is listed by `GET /v2/templates` beside the bundled packages under its own id, `github:<owner>/<repo>[/<path>]`; importing the id again replaces it, and `DELETE /v2/templates/{id}` removes it.
116
+ - The first package from a publisher (the GitHub owner) is stored only with `trust_publisher: true`; the server remembers the trust.
117
+ - A link, a special file, an oversized package or archive, a redirect off GitHub, or a source on another host is refused, storing nothing. The server reads GitHub with its GitHub App's token when it has one, else anonymously, and its rate-limit error says which.
118
+ - Each template in `GET /v2/templates` now has `id`, `bundled`, `source`, `sha` and `publisher`; `POST /v2/templates/{id}/apply` takes the id (a bundled package's id is its name, as before). An agent applied from a template carries `template: {id, version, sha}` (`sha` null for a bundled one).
119
+ - CLI: `agentrun template install <source> [--dry-run] [--trust]` imports one and prints the console page that applies it.
120
+ - Console: an "Add from URL" box on Templates and a `#/templates/install?src=` page that shows the publisher, the commit, the instructions and every skill file before anything is stored, with an "I trust <owner>" tick for a new publisher.
121
+ - The store keeps imported packages in a new `imported_templates` table: on SQLite a server adds it at its open, with no schema version change; on Postgres it is migration 0010.
122
+ - One discovery system. A run lists every tool until its catalog tools (MCP and monid) pass 20; then they are deferred, found with `tools_search` and run with `tools_call`. Under 20 there is no search or call, and Claude Code's own tool search follows the same threshold and gets neither of ours. `codemode`, `tools_search` and `tools_call` each have a tool-settings key (allow by default); a tool set to deny is not offered at all.
123
+ - Every harness (pi, Claude Code, OpenCode and Codex) now offers three host tools over the run's own tools: `tools_search`, `tools_call` and `codemode`. Codex gets the first two and keeps its own code mode. With MCP servers on a Claude Code run, the CLI's own tool search is on.
124
+ - `tools_search {query, limit?}` ranks the run's tools by what they do (BM25 over each tool's description and argument words) and answers each match's name, description and input schema. It lists only tools the run may call: never one set to deny, and never the three tools themselves.
125
+ - `tools_call {name, args}` calls one of the run's tools by name. The call is asked about, recorded and booked as that tool's own call, under `<callId>/call`. An ask parks the run, and once approved the call runs once. A deny refuses it in the gate's words. A call of an unknown name, of `tools_call` itself, of `tools_search` or of `codemode` is refused in words, and nothing runs.
126
+ - `codemode {script}` runs a JavaScript script in a QuickJS sandbox. Its `await tools.<name>(args)` calls are each the run's own call, gated, recorded and booked under `<callId>/s<n>`. The sandbox has the tools and nothing else of the run: no environment, keys, files, network or timers.
127
+ - A call inside a script that needs approval follows Codex's rule. The run parks. Once a person answers, the script runs again: recorded calls answer from their records, the parked call runs once (or is refused), its outcome is the script's answer, and the rest of the script does not run.
128
+ - A call made through `tools_call` or a script answers what a direct call answers: its text and images to the model, and in a script its value (a tool's structured result, else its text). On pi the harness's own tools (an extension's, the browser's) are found and called the same way as the host's.
129
+ - A refused call inside a script ends the script with the refusal's words.
130
+ - After a crash, a call that was cut off is told as possibly done, and it is not run again.
131
+ - A paid call made through `tools_call` or a script books exactly as a direct call does: held before it is sent, under the cap, and settled once. The cap's wrap-up still refuses the model's own next call.
132
+ - The three tools' definitions ride on every model request: about 2,000 bytes, 639 tokens on Sonnet. So the smallest caps the README measures rise. A pi desktop run on Sonnet through a gateway now needs $0.07 for its first request and $0.13 for five steps in `strict` mode, or $0.07 in `expected` mode (it was $0.06, $0.12 and $0.06). Straight to Anthropic, it needs $0.04 for its first request, and five steps still need $0.09 in `strict` mode and $0.06 in `expected` mode.
133
+ - Claude Code: with an MCP server's tools on the run, the CLI runs with `ENABLE_TOOL_SEARCH=true` and its ToolSearch. The run's MCP tools reach the model through `hands` only once ToolSearch finds them, and every other tool of the session loads as before. The session's proxy admits the tool search's beta (`advanced-tool-use-2025-11-20`), ToolSearch and its placeholder. It also admits a `tool_reference` block, inside a tool result only, that names one of the session's own tools. Without MCP tools, all of these stay refused.
134
+ - A server started by `agentrun-serve` (and so by `npx agentrun`) can start a worker thread from a file. The launcher no longer passes Node `--input-type`, which a worker inherits and Node refuses. Before this, a `codemode` script there failed with "--input-type can only be used with string input via --eval, --print, or STDIN", and so did pi's code mode on a desktop or a phone.
135
+ - An agentic agent can take typed run input: `definition.input_schema`, a JSON Schema object, and every run's `input` is checked against it with the full compiler before the run starts.
136
+ - Every path that starts a run checks it the same way: `POST /v2/agents/{id}/runs`, the CLI, the clients, the MCP `runs_start` tool, a trigger (when it is saved and when it fires), a template's trigger at apply, and the console. An input the schema refuses is `422 input_invalid`, one issue per field, by path (`input.country`, `input.topics.1`) and reason (`missing`, `wrong_type`, `not_allowed`, `not_an_option`, `bad_format`, `too_short`, `too_long`, `too_few`, `too_many`, `duplicate`, `invalid`).
137
+ - `content` is always a string. It is required when the schema requires nothing else. An edit that leaves `input_schema` out keeps it. A workflow agent refuses it (its workflow's own input schema is the one in force).
138
+ - The model is sent the input's `content`, then the other fields as one fenced `json` block under the line `Input:`, on pi, claude-agent and codex alike. A value holding backticks gets a longer fence, so no value ends the block.
139
+ - Templates: a package's `inputs:` (the parameter vocabulary plus `title`, `examples`, bounds and lists of a scalar) compile into the agent's `input_schema`, shown on `GET /v2/templates` as `input_schema`. A template's trigger input and each eval case's `input:` front matter are checked against it.
140
+ - The `kyb` template takes its subject as typed input (`company`, and optionally `website`, `country`, `registration_number`, `reason`), matching its report's `subject.input`. An agent applied from it before keeps its own definition. A newly applied one refuses a run without `company`.
141
+ - Console: an agent with an `input_schema` gets a run form drawn from it, with the same field renderer as the template parameter form, and its issues shown on the fields.
142
+ - A template's webhook trigger may filter its deliveries by a parameter, as a github trigger already could.
143
+ - A `${parameters.<name>}` may go in the `in` values of a webhook trigger's `accept` where conditions, and apply fills it. The parameter must be required or have a default, so the filter never fills empty.
144
+ - A provider that sends every trigger of a project to one URL (Composio) then starts a run only for the repository the owner set: `{pointer: /data/repository_name, in: ["${parameters.repo}"]}`. A delivery for another repository is answered `200 {"ok": "ignored"}` and starts nothing.
145
+ - A learning agent now starts a run on its learned workflow before its own model takes a turn, when exactly one active learned workflow fits the run's input. A workflow fits when its input schema has a required field and the run's input passes that schema. If the workflow answers, its answer is the run's answer and the agent's model is never asked. For an agent with an output schema, the answer is shaped to it first: an object output as it is, a one-field output (a bare code or a line of text) as the schema's object with that field, fenced as the answer's json block so `result.output` meets the schema; an output that cannot meet the schema goes back to the agent with the schema's complaint. If it hands back (an `escalate` node holds, a node fails, or its output fails its schema), the same run goes on to the agent, whose first input says which step handed back and why, what the workflow had, and then the job. The run's `metrics` say which path it took: `path` is `workflow`, `handed_back` or `agent`, with `learned_revision`, `workflow` and `workflow_digest`. Its cost includes the workflow's model nodes. A handed-back run's end-of-run turn asks for the workflow's next revision by its name. The reflect prompt asks that a workflow take the run's input as the run is given it, and that its model nodes name tier `fast` unless a step needs the agent's own judgment.
146
+ A handback is an escalation, not a failure, and never stops a workflow from serving. One money rule does: a workflow runs first while its mean all-in cost over its last 10 runs served at its current version (its `workflow_digest`) stays under the agent's cost by hand, the mean all-in cost of the agent's `agent`-path runs (with none, of its runs before the workflow first ran). All-in is the run's `total_usd` on the cost page: its own cost plus every learning round booked for it (look-backs and grades). A run whose all-in cost is unknown is left out of the mean and counted (`unknown_cost_runs` on each workflow), never read as 0. Fewer than 10 such runs, or no by-hand cost at all (said in the log), and it serves. At or over the line it no longer runs first: the agent takes the run, the run's journal keeps why with the two numbers, its end-of-run turn asks for a new version of the workflow, and `GET /agents/{id}/learning/cost` lists it under `workflows` with `state: "needs_revision"` and both means (the console's Cost per run says so). A new version serves again from zero. The rule does not catch a workflow that answers wrong with confidence. The run's `metrics.path` is the one path the agent's cost per run (`GET /agents/{id}/learning/cost`) shows, including for a run whose agent called the learned workflow itself. `learned_workflow` set to ask still parks the run before any node runs. Set `workflow_first: false` on a run to send it to the agent from its first turn.
147
+ A follow-up to a run its workflow answered goes to the agent with the job, the workflow's answer and then the message, and the run's `path` becomes `handed_back`. A follow-up to a served or handed-back run looks back as a learning round of its own, as on any run that learns.
148
+ A learned workflow with a name only a workflow may have (such as `sort_invoice`) gets its revision ask like any other.
149
+ A message sent while the learned workflow runs first waits for it without holding up the run's other commands: a later stop or cancel cuts the workflow at once, and a raise or hand-back reaches the run while it runs. As with any stop, a message sent before it is the run's next turn; a cancel refuses it.
150
+ - A capped run no longer prices a request as if nothing were cached after an approval, a deny, a raise or a smaller request of its own, and a Codex or Claude Code run no longer has a tool call refused with "Budget nearly spent" while the request that asked for it is still streaming and the cap has room for both.
151
+ - The recent requests: the cap keeps the session's answered requests of the last 4 minutes and prices each request from the one on its model with the biggest body no bigger than its own. A smaller request between two of the conversation's own (Codex sends one while a tool runs; a summary, a child's) no longer resets the history, so the conversation's next request stays warm. Before, a $0.50 Codex run's next request after one was priced all fresh, held all that was left, and was told "About $0.43 left of this run's budget: finish now" on a $0.08 job.
152
+ - Resume: the recent requests are kept with the run, so the first request after a new claim is priced from them, warm when they ended under 4 minutes ago and uncached after that, the same rule as inside one claim, on every harness. Before, a $0.15 Codex run paused after a deny with "needs at least $0.22": its next request was priced all fresh.
153
+ - In flight: a CLI harness's request is now sent with the most output whose worst case still leaves the run's wrap-up reserve (one typical step and one least answer) free, so a call it makes mid-response finds room. A $0.50 Codex request that held $0.36 and a $0.12 bound at its whole 32,000-token ask is now sent with fewer tokens, and its call passes. When the request's least and the reserve do not both fit, it is admitted as before, with the most what is left buys, and a call it makes is refused for the reserve as before. pi starts a tool only once its response is complete, so its requests are sized as before.
154
+ - The cap's guarantees are unchanged: no request is held past what is left, a warm price that guesses wrong costs at most the request's bound beyond its hold (as any cache miss under `expected`), every hold settles to what the request cost, and turns sum to the run's cost.
155
+ - Kernel cap (private, not in the package's index): `ModelCapRequest.previous` is `recent` (a list of `RecentRequest`, was `Previous`), `previousOf` on `beforeRequestOf` and `runCap` is `recentOf`, and `previousAfter` is `recentAfter`, with `warmFrom` picking the request a price reads. `JudgeState.keepUsd`, and `keepBackUsd` on `beforeRequestOf` and `runCap`, tell the rule what the host keeps back beside a request.
156
+ - A learning run on a CLI harness (claude-agent, codex, opencode) whose runner died or lost its claim during the end-of-run look-back no longer pays for that look-back twice on the next claim. The next claim settled nothing: it resumed the open look-back as if it were the job's turn, threw its answer away, and then asked the CLI again. Now the open look-back is settled and asked again once, under the run's cap, and a request the earlier attempt sent is booked once at an unknown price. The run's learning also keeps the job's cost and answer time from the first attempt, so the earlier attempt's spend counts as look-back spend instead of job spend.
157
+ A look-back the next claim skips (its spend unknown under a cap, or the cap reached) keeps the job's cost and answer time from the first attempt, its look-back spend unknown rather than missing. A look-back a person stopped no longer makes a later claim settle the follow-up after it: that follow-up's turn is recovered and answered.
158
+ - A computer's `process.start` call reads "Started a process" in the console's call list and a movie's caption, not the raw method name.
159
+ - The live view's bar wraps on a frame as narrow as a phone's on the Screen tab, so who drives ("the agent has the phone") is never clipped at the frame's edge, and Take over stays on one line.
160
+ - The console's Screen tab shows who drives and the first frame when they happen. It used to show them up to 3 s late. It read the run's computer every 3 s, so the header kept saying "Yours after the agent's step" for up to 3 s after the viewer said "you have the computer". A hand-back's answer, read before the run applies it, kept "You drive" up as well. Measured live on E2B and Agent37, the header followed the viewer by 1.6 to 3.3 s. The tab now reads again every 400 ms while a change is on its way: while the screen is being opened, while a take-over waits for the agent's step, and for 4 s after the page's own take-over or hand-back. Otherwise it keeps reading every 3 s. A take-over's or hand-back's answer reaches the tab when it comes, no longer after the run's re-read that follows it. An ask's Done and Cancel stay off once the answer is taken, until that re-read takes the card away.
161
+ - An agent's cost per run (`GET /agents/{id}/learning/cost`, `agentrun learning cost`, the console's Cost per run) now counts only the agent's own runs, and no longer shows a run as the agent's at $0 when its cost and path are not known. A follow-up's end no longer queues a learning run beside a kept learning that names none, so a `<run>-learning` row never shows up in the series as an agent run. A grade's spend stays booked as its run's `learning_usd`, inside the run's all-in cost. A run's end now waits up to 30 s for its cost and path, not 2 s: with eight runs ending at once, some ends were written without them. An end that still gets neither within that bound writes both as unknown (null) and never keeps what an earlier end stored. The series leaves out a run that learns but has no path on its record, and counts it in the new `unknown_path_runs` field. The console says "N runs' path and cost are not known: left out."
162
+ - A desktop with no ui group (E2B's, Agent37's) can be driven by the tools alone, and its first screen no longer reads as broken.
163
+ - `computer_observe` and `computer_act` with `app` open that app, or bring it in front, before the screenshot or the input (apps.launch, as a script's `computer.apps.open` does). A screenshot with no app in front lists the app ids to name. Before, a tools-only agent had no way to open an app there. Such an observe counts as an app opening. While the person holds the desktop it waits, then is not done. After a crash it is not run again.
164
+ - The desktop's background is one slate colour (xsetroot, run before xfwm4), not black. Agent37's desktop recipe (`box/build-agent37.mjs`) adds x11-xserver-utils for it; rebuild `agentrun-box` once.
165
+ - `computer_act` offers no `expect` on a desktop with no ui group, which can't check one: its schema there has none, so a model is no longer offered a wait that is then refused.
166
+ - `GET /v2/runs/{run_id}/computer` on an ended run says `session: "closed"` for its desktop or phone, and for a browser step the run ended under, not `opening`.
167
+ - A provider's label takes its article: "an E2B sandbox", not "a E2B sandbox".
168
+ - A run starts sooner: a runner in the server's process claims a new run as soon as it is queued (it waited up to a second for its next poll), and a run's first claim makes its desktop, phone, sandbox or browser without first asking the vendor to list older computers of the run (there can be none). On a fake desktop the time from the run's start to the vendor's create went from 0.78-0.93 s to 0.07-0.11 s; on a vendor's desktop it also saves that vendor's list round trip.
169
+ - Behind serve's gateway (`AGENT_MODEL_BASE_URL`), pi sends a Claude model on Anthropic's Messages API (`<base>/v1/messages`) instead of OpenAI's Responses API, so its prompt cache works: the second turn of a run reads the prompt from cache, where every turn used to pay full input. Every other model stays on the Responses API.
170
+ - A model is Claude's when its id names Anthropic as its vendor (`anthropic/claude-sonnet-5.5`, or a revision's `anthropic/...` with bare gateway ids), or names no vendor and pi-ai's catalog lists it under Anthropic (`claude-opus-5-5`). The gateway must serve `/v1/messages` beside `/v1/responses`, as LiteLLM's proxy and OpenRouter do; its key goes as a bearer token, as on Responses.
171
+ - Cache reads and writes are booked at the model's own rates (the catalog's, or the 3rd and 4th numbers of `AGENT_MODEL_PRICE`), so the run's cost is the sum of its turns. With `AGENT_MODEL_PRICE` set for a Claude model, give its cache write price (Anthropic's is 1.25 times input): left out, a write is booked at the input price.
172
+ - The same route serves a learned workflow's model nodes and the learning grader on a Claude gateway model. Claude Code, Codex and opencode send as before.
173
+ - The console's template install and Apply screens say what a package does before you take it: each typed run input (its label and name, what it takes, Required or Optional, its description, in the run form's words), its eval cases by name, and on the install screen each MCP need with the reason the template gives and the tools it asks for. A required text field sent empty (`""` where `minLength` asks for more) is now refused as missing (`input.company is required`, reason `missing`), so the run form says "Company is required"; an optional field or a list item keeps its length issue. A source path with a `%` that starts no escape (`github:…/k%ZZb`) is refused by a sentence that names it; a `github:` source takes no percent escape (each is named), since its source is stored and linked as written. An install refusal shows its sentence once.
174
+ - The kyb template's report uses one set of names for its subject: `subject.input` is the run's typed input as the run received it.
175
+ - `subject.input` holds `company`, `website`, `country`, `registration_number` and `reason`, the names of kyb's inputs, with their values as given; a field the run did not get is left out. It held `name` and `domain`, with nulls and a `reason` of `unspecified` filled in by the skill.
176
+ - The kyb skill copies the input block whole; its field-by-field mapping is gone. An agent applied from the earlier kyb keeps the output schema it was applied with.
177
+ - A saved MCP server's credential is sent only to the address it was saved with. Listing a saved server (preview by name, refresh, a first run's pin listing, a save or a sign-in that keeps the saved credential) reads the server, then checks its address and waits for the listing. If the owner saved the server at another address with a new credential during that wait, the new credential could be sent to the old address. Each of these now opens the credential of the server as it read it.
178
+ - In Mode 2 (run folders on an Archil disk), a Modal, E2B or Agent37 sandbox is no longer shown as ready. It needs Archil's image in your own vendor account, which this server can't put there yet, so it failed at its start. Settings → Computers says so, `capabilities.computers` leaves the sandbox out in Mode 2, an agent's save warns in the same words, and a run's start refuses it (409 `agent_not_runnable`) before any computer is made.
179
+ - On Postgres, the store's pool connections are named for their schema in `pg_stat_activity` (`application_name` `agentrun-store:<schema>`), as its lease (`agentrun-store-lease:<schema>`) and owner lock (`agentrun-store-owner:<schema>`) connections are, so an operator can tell which store holds each connection. Before, every pool connection was `agentrun-store`.
180
+ - A learned workflow held because its replay could not run an MCP tool now says which tools and why. Replay runs an MCP tool live only when its server marks it `readOnlyHint: true`; a tool listed with no annotations was treated as a write the graded run's recording lacked, so every input was skipped and the hold read like a data problem ("needs a write the recording doesn't have"). The hold now names those tools: "nothing was replayed on its 20 graded inputs: browse, fetch_page and 2 more have no readOnlyHint, so replay can't run them: if they only read, mark them read-only in the MCP server". A destructive tool or a built-in write keeps the old words. A promotion record's `replay.skipped_tools` lists each tool that stopped an input, how many it stopped, and `no_read_only_hint`. The console's Learning tab says what a promoted workflow was decided on beside its standing ("Serving · replayed 18/20", "Serving · not replayed" for a dry-run promote, which is no longer shown green, "Held · 0 replays answered"), and a replay line names the tools with no readOnlyHint.
181
+ - A capped Codex, OpenCode or pi (on OpenAI's Responses) run's next-step estimate is closer to its real input, so it pauses for a raise later and less often: the input bound counts the text the model reads (a tool's output, a message, a call's arguments) at its own bytes instead of its JSON-escaped ones, some 4 to 6% less on a code-mode body full of fetched pages, which keeps more requests under the 272k-token long-context tier where every rate doubles. On a route straight to OpenAI the input is counted exactly by OpenAI's `POST /v1/responses/input_tokens`, asked with only the credential and account headers and never through a gateway; a count that fails or takes over 3 seconds leaves the byte bound. The cap still never spends past itself: tool definitions and encrypted reasoning keep every byte.
182
+ - The console's Screen tab and run badge read right at a desktop's or a phone's start and end, and a script's refused shell call on a phone says what to do instead.
183
+ - A desktop or phone that was live and is let go at the run's end reads "This desktop has been released." until the run reads as ended, never "Waiting for the desktop".
184
+ - A queued run whose desktop or phone is starting reads Starting, not Queued.
185
+ - The Screen tab has one Take over (and Hand back): the one in its header. The viewer framed there (its fragment says `hands=page`) shows neither, nor a second line of who drives; a phone's bar keeps its back, home and recents buttons. Opened on its own, the viewer keeps its bar.
186
+ - A script's computer call that the agent's settings refuse starts with what could not be done and where ("could not run a shell command on the phone: …"), says why in a person's words, and what to do instead. On a phone that is the phone's screen (`computer.observe`, `computer.act`), never the bash tool, which does not run on a phone.
187
+ - Applying a template grants only the MCP tools the owner ticks. A tool left unticked is not given to the agent at all, so no harness offers it and a call of it is refused before it reaches the MCP server.
188
+ - Before, an apply gave the agent every tool of each saved MCP server the template uses and set only the ticked ones to allow. Under approvals `never`, which four of the five bundled templates default to, the unticked tools then ran unasked too.
189
+ - `never` only skips asking for a tool the agent was granted. To use a tool left unticked, grant it later in the agent's tools.
190
+ - A template's pin on a tool is still written when the tool is unticked, so it holds if the owner grants the tool later.
191
+ - The apply's GitHub App permission warnings name only the tools the owner ticked.
192
+ - The console's apply screen says that an unticked tool is not given to the agent.
193
+ - Under approvals `ask` too, an unticked tool is no longer offered and asked about on each call: it is not granted.
194
+ - An agent applied from a template before this release may still hold every tool of its MCP servers. Review its tools (or apply the template again) and remove the ones you did not mean to grant, above all on an agent set to `never`.
195
+ - A `monid.run` approval card shows its price, on every harness.
196
+ - Before, the card for a `monid.run` call asked for approval with no price, although the call is held at a known figure.
197
+ - The card now shows what the call is held at: the price an `monid.inspect` in the run quoted for that endpoint, else the $1 allowance a run with no quote is held at. It is the same figure the run's cap and ledger count the call at.
198
+ - Other tools' cards are unchanged.
199
+ - Four tool-plane fixes found by a QA walk of the tools.
200
+ - Behavior: a call waiting for your approval whose tool you then set to deny is refused, and the run says why. The record keeps your answer: an allow sent after the deny is taken and kept as the answer the setting overrode. The call's rows read "Not run: its tool is now set to deny on this server", its approval row reads "Denied by the tool's setting on this server", and the outcome reads "You allowed <tool>, but it is now set to deny on this server, so it was not run". Before, the rows said the run had ended while the call waited and the ask was withdrawn, and the allow was never recorded. The refused call ends as an error on every harness, as before.
201
+ - Behavior: Settings → Tools lists each saved MCP server's tools, read from the MCP servers list, with the permissions the server offers for each (allow, ask, deny). The owner sets a server-wide permission for a tool, and choosing its default again removes it. A server's `mcp:<server>/*` wildcard shows as its tools' default. Tools the server offers no permission for (the meta tools) are not listed.
202
+ - Behavior: a call you allowed, or one its setting allowed while it waited, shows what it did and its result like any call once it ran, with "(ran once you allowed it)" or "(ran, as its setting allows it)" after its result. It no longer reads "Held for your approval" after it ran. A declined call still reads "Held for your approval".
203
+ - Behavior: on Claude Code and OpenCode, `tools_call` and `codemode` each have their own row ("Using tool: tools_call", "Ran a script") with their result, as on pi, and the calls they make read after it.
204
+ - Serve's per-process spend engine in `cap.ts` is gone: the run's one ledger (the kernel cap) holds every model request and paid call, so nothing reads the process-wide spend any more. `cap.ts` keeps what the store readers and the refusal words use: the cap modes, `spentFrom`, `meterFiguresFrom`, `money` and the refusal code. No public export changes.
205
+ - A codex or opencode turn cut by a park (a host tool call held for a person's approval) is booked at the usage its provider reported. Before, the park closed the session while that answer was still streaming, its booking was lost, and the next claim booked the turn cut at an unknown price, so the run's cost read `unpriced`. A park now waits for the session's paid requests to be booked before it lets the claim go, as a run's end does (bounded; past the bound the turn is booked cut, and the spend cap counts it at its hold).
206
+ - Three follow-ups to the tools_search / tools_call / codemode rule, found in a live walk.
207
+ - Claude Code now follows the same switch as every other harness. With `tools_search` or `tools_call` set to deny, its own tool search is off and every tool is listed; before, it deferred a run's catalog tools behind its own ToolSearch whatever the setting said. The server makes the one decision (`SessionSpec.deferCatalog`) and Claude Code's adapter obeys it.
208
+ - Settings → Tools lists `tools_search`, `tools_call` and `codemode`, each allow or deny, allow by default. They are in `capabilities.tools` with `meta: true` (no grant: the agent editor does not offer them) and a one-line blurb.
209
+ - codemode's description names real functions of the run (`tools.<name>`, the first three) and says to leave off the prefix a harness shows in the model's own tool list (`hands_`, `mcp__hands__`). On OpenCode a script wrote `tools.hands_mcp__hn__…` five times in five runs and failed.
210
+ - On pi, a script's or `tools_call`'s nested calls now show in the run's timeline, as they do on every other harness. A script now reads a nested call's JSON result as a value.
211
+ - Behavior: on every harness, `codemode` and `tools_call` each have their own row, and each call they make has its own row with its result after it. A nested call that waits for your approval shows its approval row, as a direct call does. On pi the nested calls were missing from the timeline: only the script's row showed. They are now written to the same call records Claude Code, OpenCode and Codex runs write, and those records do not count toward pi's model requests or cost. A nested call still waiting when you stop the run reads "Not run: the run was stopped while it waited", as on the other harnesses.
212
+ - Behavior: in a `codemode` script, a nested call's value is the tool's structured result when it has one. Otherwise, when its result is one text part that parses as a JSON object or array, the value is the parsed object or array. Otherwise it is the text, as before. What the model sees from the call does not change.
213
+ - A paid tool call books on the run's one ledger or is not sent. A `monid.run`, a search or extract through Parallel (`web_search`, `web_fetch`) and a browser call or a person's browser time that find no run's ledger to book their price under are refused unsent, in words that say so (`monid.run was not sent: this call has no run to book its price under.`), as a priced MCP call already was. Before, each of them was sent and booked off the ledger, against a per-process spend count the run's cap never read. Every run the runner drives has a ledger, so its paid calls book and refuse exactly as before.
214
+ A learned workflow's web nodes (`web_search`, `web_fetch`) now book on the run's ledger like the run's own calls: the run's cap holds their price before they are sent and refuses one that would pass it, in the cap's words.
215
+ - A tool this server does not register defaults to ask, not allow; the tool list is one table.
216
+ - Before, a name that was neither a table tool nor a catalog tool (`monid.<tool>`, `mcp:<server>/<tool>`) defaulted to allow in `defaultPermission`. Now only a built-in (a row of the tool list, `learned_workflow`, a computer kind's key, a decision provider's) allows by default and anything else asks. No tool of today's table changes: the capabilities and agent-tools views are the same.
217
+ - `replay`, `blurb`, `host`, `askable` and `table` are fields of each tool's row in `tool-list.ts`; `TABLE_TOOLS`, `ASKABLE`, `REPLAY`, `TOOL_BLURBS`, `webToolNames` and `tool-blurbs.ts` are gone.
218
+ - A trigger's message that reaches a run just as it comes to wait on a person is now delivered after the person's answer, as a turn of its own, whenever it lands. Before, one that reached the runner between the question's turn end and the park (or while the run waited in its claim) was refused and never ran, while its firing still read `sent`.
219
+ - A run's usage row reads the same on every harness, and says what an owner needs to know about its cost.
220
+ - A run that ended says "Cost: …" in the Timeline and the run's view; only a run still going says "Cost so far: …".
221
+ - Claude Code, Codex and OpenCode runs count their tool calls with no price ("; 1 tool call not metered", and `usage.not_metered`), as pi runs did.
222
+ - A model request that failed with no price (a provider's refusal sends none) says on its row that its cost is unknown and the provider may still bill it. Its cost stays unknown, never $0.
223
+ - A capped run on a CLI harness (Codex, Claude Code) prices its next request from the cache its previous request left warm, at admission, for the wrap-up note and for the room it keeps back to answer, so it is no longer told to finish, or refused a tool call, while what is left still buys many of its steps.
224
+ - Before, a CLI's request names its model as its provider does (`openai/gpt-6.1-sol`, `claude-sonnet-5-5`) while the cap prices it under the run's model id (`gpt-6.1-sol`, `anthropic/claude-sonnet-5.5`). The session's previous request was filed under the first and looked up under the second, so every request was priced as if nothing were cached. The note and the reserve never read the previous request at all, on any harness.
225
+ - Example: a Codex run under $0.50 was told to finish with $0.45 left, because its next request was priced at $0.23 all fresh; read from the cache, it needed about $0.05.
226
+ - Admission's rule is unchanged: a request whose least does not fit what is left is refused. A request with no previous one in hand (a run's first, or one after a compaction) is priced uncached, as before. A CLI request on a warm cache is now held at its warm price, as pi's already was.
227
+ - Kernel: `capRequestOf` builds a request as the cap prices it (its model, and the session's previous request when it continues the conversation, looked up by the priced model's id). `RunCap.asked(request)` returns it with the run's own pricing. `beforeRequestOf` uses the same function.
228
+ - The learning batch restart test no longer ends now and then with the batch `stopped: cost_unknown`. Its in-process runner stopped with no drain, so a stop that landed while a row's model request was out cut it, that request's cost stayed unknown for good, and the batch stopped on the row as its cap rule says. The CLI's runner drains at a stop (`--drain-timeout`, 30 s by default), so a turn in flight finishes and is booked; the test's runner now drains the same way.
229
+ - monid is granted per endpoint: `monid:<provider>/<endpoint>` (one endpoint, such as `monid:apollo/people/match`) or `monid:<provider>/*` (every endpoint monid lists for that provider, at most 50). The tools `monid.discover`, `monid.inspect` and `monid.run` are gone: an agent that grants one is refused at its save (422 `not_an_option`), and its owner grants the endpoints it calls instead.
230
+ - Each grant is read against monid's listing when the agent is saved, and pinned on that revision with the endpoint's description, its input schema and its price. A provider or endpoint monid does not list is refused at the save in words, and so is any monid grant saved with no monid key (Settings → Tool keys). An endpoint whose input schema the agent's harness would drop or retype (Codex's `patternProperties` or `not`, for example) is refused at the save as an MCP tool's is, naming the endpoint and the schema's path.
231
+ - Each pinned endpoint is one tool of its own on every harness, under its wire name (`monid:apollo/people/match` is `monid__apollo__people__match`). Its input is `{body, queryParams, pathParams}`, as monid's endpoint takes it.
232
+ - The gate and tool settings key a call by its endpoint (`monid:apollo/people/match`), or by the provider's wildcard (`monid:apollo/*`). A monid endpoint asks by default.
233
+ - A call is held on the run's ledger at the endpoint's pinned price: a per-call price, the dearest variant of a matrix, or a tiered price's default plus every tier. It is sent with that hold as monid's `maxCost`, so an endpoint monid has re-priced above its pin is refused unrun. Its price is read again from monid before each call, and an endpoint monid has re-priced by usage since the save is refused unsent. The approval card shows that hold, and the charge row names the endpoint: "Tool cost: monid charged $0.0260 for monid:apollo/people/match".
234
+ - An endpoint monid prices by usage (per result, per unit, metered) cannot be granted: monid bounds no such call's charge, so no hold could keep a run's cap. A named grant of one is refused at the save, naming the endpoint and why; a provider's wildcard leaves it out and names it in the save's `warnings`.
235
+ - A workflow's nodes do not bind monid endpoints yet: a workflow granting one is refused at its save.
236
+ - Template packages may grant monid endpoints in `tools`, pinned at the apply's save.
237
+ - The console's agent editor grants monid endpoints. The Tools step has a monid row: type `monid:<provider>/<endpoint>` for one endpoint, or `monid:<provider>/*` for every endpoint of a provider that monid prices per call, and Grant. The row checks the name's shape as the server does and says what is wrong before a save; the save still reads monid's listing and prices and is the judge of the rest.
238
+ - An agent's monid grants show on the row, each as a card. Untick one to take it away; it stays on the row to tick again. An edit that does not touch them keeps them.
239
+ - After a save, what the server said of a grant (each endpoint a wildcard leaves out, because monid prices it by usage) shows on the row and above the form, in the server's words. These no longer read as things that keep the revision from running.
240
+ - A save refused at a grant (an endpoint priced by usage, a provider monid does not list, no monid key on the server) shows the server's reason on the row, beside the grant.
241
+ - The agent's page that opens after a create shows the create's warnings in the server's words.
242
+ - `agentrun-serve eval-template` runs its agents with approvals `never`, whatever the package's own `approvals`, so a template whose tools ask by default (a paid data endpoint, say) is measured instead of stopping at its first ask. The package's default is unchanged. The report says how it was measured: `approvals: {measured: "never", package: "ask" | "never"}` in the JSON, and "Measured with approvals never (the package's own default is ask)." in the markdown.
243
+ - A grade is now the way a label reaches a run's learning, and a label never makes the agent answer the job again. `PUT /runs/{id}/grade` takes `label` (the grade's words, up to 4000 characters) and answers `feedback`: a right grade of a run its learned workflow answered alone is kept and nothing more (`null`, no model request, $0); a wrong one opens the run again on a revision ask for that workflow (`revise`): the agent's end-of-run turn alone, told the job, the workflow's answer and the label; a run the agent finished, graded with a `label`, opens again on a look-back on it (`look_back`). Neither round runs a turn of the job's; the label shows on the run's Timeline as the reviewer's message.
244
+ A run's path is who wrote its final answer: a run its learned workflow answered stays `workflow` after a feedback round or a follow-up that ends on the same answer, and turns `handed_back` only when the agent writes a new or changed one.
245
+ The cost per run (`GET /agents/{id}/learning/cost`) counts every round of a run a follow-up or a grade opened again: the job is what the run cost when its first round answered, and everything after it (each later round's turns and every round's look-back) is its `learning_usd`. It read the newest round's look-back alone and counted a follow-up's turn as the job's.
246
+ Upgrading: a client that sent a label as a follow-up message (`POST /runs/{id}/messages`) sends it as the grade's `label` instead.
247
+ - Allow reads: one switch on a saved MCP server lets each of its read-only tools run with no one asked, while its writes keep asking and a destructive call takes a second click to allow.
248
+ - A tool's effect comes from its server's annotations: read when `readOnlyHint` is true; else destructive only when `destructiveHint` is true; else write (no annotations included, which still asks). The MCP spec's default reads a tool with no `destructiveHint` as destructive; this does not, since every tool of a server that annotates nothing would then need two clicks. A saved server's read gives each tool's `effect`, `allow_reads: true` on a tool whose allow is its server's Allow reads, and `fallback_allow_reads: true` on a read-only tool that Allow reads would let run once its own setting is removed.
249
+ - `allow_reads: true` on an MCP server's wildcard (`mcp:<server>/*`) in the server's tool settings (`PUT /settings/tools`) turns it on; `false`, or leaving it out, turns it off. An agent's own tool settings, or any other key, refuse it (422). It never lifts a deny (the server's or the agent's), the agent's own ask, a tool's own setting (`mcp:<server>/<tool>`) or a pin's refusal.
250
+ - Turning Allow reads on releases a read-only call already waiting for approval: the save wakes its run, and the call runs, its approval row reading allowed by the setting. A write waiting beside it keeps waiting.
251
+ - The run's gate reads each tool's effect from what the run pinned when it started, never from a later listing, so a server that marks a tool read-only mid-run widens nothing for that run. An agent's read (`GET /agents/{id}`) gives each MCP tool's permission by the same marks, the ones its revision pinned when it was saved, so it says what that revision's runs do after a refresh changes them.
252
+ - A destructive call's approval carries `destructive: true` in the run's `pending`, and allowing it needs `confirm_destructive: true` beside the decision (without it, 422 on `confirm_destructive`, and the call still waits). A learned workflow's call is marked the same way when its card names a destructive MCP tool, since its one allow lets that tool run. A deny needs nothing more.
253
+ - Console: Settings, MCP servers shows the Allow reads switch on each server, its tools with a read, write or destructive mark and their permission here (an allow by Allow reads reads "allow (allow reads)", never "default"; a read-only tool set to ask there falls back to "allow (allow reads)", so choosing allow removes its own setting instead of saving a permanent allow), and asks a second time before a destructive tool is set to allow, there and in an agent's tool settings. An approval card marks a destructive call, and its Allow once asks again before it sends the allow. Closing either second question (Back, Keep asking or Esc) puts the keyboard back on the control that opened it. A server's tool settings save one change at a time: a destructive tool's allow waits while a save is out, so two saves never write the whole map over each other.
254
+ - A learned workflow's replay records an escalate that reads a judge's field instead of obeying it, and its refit may switch that escalate, or any guard, off. A replay that hands back every input is held: it would never answer alone.
255
+ - In a replay, an `escalate` node whose `when` reads a field of a `judge` node's output (`not` included) no longer stops the run: the workflow goes on to its answer, and the run's guard rows carry the escalate (`signal: "escalate"`, `p` 0 when it fired) so the replay scores it as a hand-back where it fired. Every other escalate stays hard in a replay, and serving obeys every escalate.
256
+ - The refit keeps its rule (the cheapest setting within 2 points of the agent) and now has "off" among its settings: an escalate or a guard that stops right drafts is dropped from the new revision, one that stops wrong drafts stays. It runs when a recorded escalate is the workflow's only switch. The refit record's `guards` say what changed: `{node, was, threshold: null}` for a guard switched off, `{node, was: null, threshold: null, escalate: true}` for an escalate.
257
+ - A replay or refit that handed back every one of its inputs is held, with the reason "it handed back every one of its N replayed inputs: it would never answer alone". The console shows how many inputs it answered alone, counted from the record (`n` - `handed_back`): "replayed 20/20 · 9 alone".
258
+ - DSL: `WorkflowDeps.softEscalate(label)` makes the named escalate record its `escalate.evaluated` event (`soft: true`) and go on instead of handing back; a child workflow's escalate is asked by its `parent/child` label.
259
+ - Four fixes from the computer milestone's QA: the live view keeps moving while an input batch waits, a script on a vendor desktop may start a process, the linux-desktop bench's count-errors and new-note tasks need their apps, and a computer row on the Timeline says what failed in the same voice as the rest.
260
+ - computerd: a watch's look no longer takes the display's hold. `input.actions` holds the display for its whole batch, waits included, so the live view made no frame for a batch's length (0.3 fps through a batch with waits on E2B). A look's requests all have replies, which go to their own waiter, so it never needed the hold.
261
+ - Serve: a `computer_script`'s calls are decided as on the run's computer. The script guard used the run's host-tool gate, whose `computer` flag says where `bash` runs; on a vendor desktop (shell "none" or "local") that gate denies `bash_background`, so `computer.processes.start` was refused while `shell.run` ran. A script's calls always run on the computer, so they now take the computer's defaults: allowed unless the agent's own settings (`bash: ask`, `bash: deny`) say otherwise. A script's `shell.run` on a vendor desktop under approvals "ask", with no `bash` setting, now runs where it was asked before.
262
+ - Bench: `exec: "deny"` takes programs away, not the files group, so both tasks could pass with `files.write` alone. `linux.terminal.count-errors` (version 2) gzips its log, so counting it takes a program, and its probe asks for gzip and zgrep. `linux.editor.new-note` (version 2) also checks that a Mousepad window is titled with the saved file's name, and its instruction says to leave Mousepad open. The report no longer says an exec-deny task's agent "worked through the UI"; it says the agent kept the files group.
263
+ - Timeline: a failed computer row reads "Could not run the script “…”: …", "Could not take a screenshot: …", not "… failed: …". Firefox ESR and Chrome are named "Firefox" and "Chrome". A no-ui `computer_observe` row names each call it made: "Opened Mousepad, took a screenshot, listed the apps".
264
+ - Deleting a Composio preset server in Settings → MCP servers also deletes the MCP server the preset made in your Composio account, using the saved key, so nothing is left behind there. Composio saying it is already gone is fine; if Composio refuses or does not answer, the server is still forgotten here and the answer (`200 {deleted: true, composio: {removed: false, note}}`) and the console say what to remove in Composio yourself. Any other server is deleted as before (204).
265
+
266
+ Saving a Composio server whose picked actions Composio serves none of (HACKERNEWS_GET_FRONTPAGE, say) now answers 422 naming those actions, instead of a bare 424 "Method not found", and the server it made on Composio is removed again. Only the server's own "Method not found" answer says that: Composio's MCP server being down, slow or erroring still answers 424. A preset server whose saved key can't be opened here is still forgotten, and the answer says to remove it in Composio yourself. The Composio server is deleted only after our row's checked removal succeeds, and is the one that row named.
267
+
268
+ The generated TypeScript and Python clients now type an operation that documents 204 beside a 2xx body as the body or nothing (`X | undefined`, `X | None`).
269
+
270
+ Saving a preset server over to another address (an ordinary save with a different URL) makes it that service's server, no longer Composio's: deleting it never sends the key it holds to Composio, whatever the new path looks like, and the delete is an ordinary one (204). The Composio server the preset made stays in your Composio account until you remove it there.
271
+ - A desktop or phone deleted under a live run (through the vendor's own API, say) now reads "This desktop has been released." on the run's Screen tab, and Take over goes. Before, the tab kept reading "LIVE The agent drives" with Take over until the run ended, because the run's viewer stayed registered after its computer was gone.
272
+ - When the viewer's watch ends gone, or can't start because its computer is not found, the runner reads the computer's provider's listing under the computer's own labels (`list`: read-only, and it leaves out a machine that is going). If the computer is not listed (or, for a phone, which is never stopped and kept, is listed stopped: its session closing), the view closes "released": its row is dropped, so `GET /v2/runs/{id}/computer` stops answering `live`. Measured live, the tab read released 2.6 s after the delete on E2B and 14.9 s after it on Agent37 (3.4 s after the computer's not_found, which waits on the 15 s SSH keepalive bound).
273
+ - A stream that ends while the provider still has the computer leaves the view as it is, so the tab still shows the run as live.
274
+ - The Learning tab no longer says "replayed 20/0" for a promotion record that names no replayed runs; it says "replayed 20".
275
+ - In Mode 2, an E2B or Agent37 desktop is no longer shown as ready. Like their sandboxes, it would mount the run's folder and needs Archil's image in your own vendor account, which this server can't put there yet. An E2B desktop failed at its start after a computer was made. Settings → Computers now says so, an agent's save warns in the same words, and a run's start refuses it (409 `agent_not_runnable`) before any computer is made. Orgo's desktop, a phone and a browser mount nothing and run as before.
276
+ - market-monitor's digest header names the window's `from` date on every harness: its skill now has a worked example (fired 2026-11-09 with a lookback of 7, the header reads `2026-11-02 to 2026-11-09`). Before it, a Codex run could start the header at the first day that counts.
277
+ - A long answer through an OpenAI Responses gateway that writes its JSON with spaces is priced, a request that answered while its runner's claim was lost is booked at its cost when the run resumes, and a run whose spend is unknown never reads as a full cap to its learning.
278
+ - Before, the model proxy read a long answer's usage (its terminal event longer than the 64 KiB it keeps) only when the gateway wrote `"usage":{` with no space. A Python gateway (LiteLLM's `json.dumps`) writes `"usage": {`, so such a request was booked at an unknown cost though the harness counted its tokens: the run's cost read unknown with nothing unmetered. pi on the gateway, Codex and OpenCode read the usage the same way and are all fixed. Kernel: `lastObjectOf(text, key)` reads the last `"<key>": {...}` object of a cut answer, whatever its spacing.
279
+ - Before, a runner that lost a run's claim (its lease lapsed while the box stalled) and took the run again in the same process booked a request that had answered meanwhile as cut, at an unknown cost: the lost claim's write of its cost was refused, so the resumed run read the request unanswered. The run's cost read unknown though the request reported its usage on a priced model. Kernel: `SessionWriter.scope` names a session across claims in one process (serve's `journalSessions` sets the run's id beside the key); a booking whose cost write is refused hands it to the next booking of the same scope, whose `bookCut` waits (at most 10 s) for one still in flight and writes it as it would have been written. A request with no price stays unpriced and counts for the cap at its hold. A process that died hands nothing on: its requests are booked cut, as before. A workflow run's model booking now takes them too: its claim books an earlier claim's requests before the workflow resumes, where before it never did, so a workflow's request that answered under a lost claim stayed counted at its hold.
280
+ - Before, a run cancelled or stopped while its model request was being admitted could still send that request: the proxy forwarded it after its client had left, nothing stopped it, and it was booked only once the provider ended it, after the run had ended, so the run read the request as cut at an unknown cost. The proxy now books such a request at nothing (never left) and never sends it, so a run cancelled before any request reached the model costs $0. A request that reached the model and was cut keeps the cut rule: unpriced, counted for the cap at its hold.
281
+ - Before, a capped run whose shown cost was unknown gave its learning grade a cap of $0 ("Not graded: no room under the cap.") and its look-back a reached cap. The grade's cap and the look-back now read the run's spend as its own cap gates read it: an answer with no price counts at the figure the cap held for it, never $0 and never the whole cap. Only when that figure is unknown too, the grade is not queued and says why: "Not graded: this run's spend is unknown, so its budget can't cover the grade."
282
+ - After a grade's feedback round, or a person's follow-up on an ended run, the Timeline shows the round's rows first and then the learning row ("Learned: …"), as it does after a server restart. Before, the live Timeline kept the learning row where it was when the run first ended, above the reviewer's words.
283
+ - The timeline's change log now serves rows in the order the run's rows come in: a row the rows now hold after a row served later than it gets a new `seq`, sent as a change, so a reader from a cursor and a fresh read from `after=0` agree. The usage row still goes last.
284
+ - A call that waited for approval now reads in the order it happened, on every harness: the call, then the "Asked your approval" row, then the call's result, then what came of it. The approval row carries the time the approval was asked (the run's `pending.requested_at`), not the time of the call's result. Before, it sat below the result and carried the result's time.
285
+ - A monid call that monid charges more than the run held for it now stops the run at once. The charge is booked at what monid charged, never the hold; the run makes no further model request or tool call and ends failed with the error "monid charged $X, more than the $Y held; the run stopped"; and the runner logs one error line naming the run, the endpoint and both amounts. A charge at or under the hold behaves as before. monid's maxCost checks only its estimate, so this can happen when monid re-prices an endpoint between the price check and the call.
286
+
287
+ ## 0.1.0-beta.37 (2026-11-13)
288
+
289
+ - The `bwrap` box id is removed from the box enum: it was never in a release and always reported itself unavailable. A place of `{ "mode": "sandbox", "box": "bwrap" }` is now a 422 `not_an_option`, and `capabilities.places.boxes` no longer lists it. A client that named `bwrap` picks `docker`, `modal` or `daytona` instead.
290
+ - Pair a person's own computer with the server: Settings → Computers → Pair a computer shows a code (`POST /v2/computers/pairings`), the computer's driver, on any OS, trades it for its own token (`POST /v2/computers/pair`, no server token; a driver whose hello serves no kind of computer is refused, naming what it lacks, and so is a browser driver, whose CDP connection the attach path cannot carry yet; `POST /v2/computers/pairings` answers the pairing's `id`, which the computer its code makes carries as `pairing`, so the console tells its own code was used) and attaches over `GET /v2/computers/attach` (a WebSocket, subprotocol `agentrun.computer.0.2`), and an agent whose computer is `{"kind": "desktop", "provider": "<its cmp- id>"}` uses it: a run claims it at its start and releases it at its end or its lifetime. `GET /v2/computers` lists the paired computers under `paired` as their drivers' last hellos say (os, device, screen, groups, features, and `unserved`, why one serves no kind), online or offline, with the run that holds one and when that hold ends, and `DELETE /v2/computers/{computer_id}` removes one, closing its connection. Only the runner beside the server can use a paired computer. `node dist/attach-conformance-cli.js` runs the binding's conformance cases against any driver that pairs with the code it prints.
291
+
292
+ Who breaks: the store's schema is version 10 (SQLite) and Postgres gains migration `0008_paired_computers`, so a SQLite store an older build made is refused at the start as a version this build does not know; start on a new data directory. `GET /v2/computers` answers a required `paired` array.
293
+ - The phone harness's Android is driven by phoned, a driver that runs on the phone, in place of adb shell commands. Breaking: an `adb` option given as a transport of your own must now offer `open(service, { timeoutMs, transport })` beside `run` and `server`, and a package built from source needs `npm run build:phoned` (a JDK 17 and an Android SDK with `platforms;android-35` and `build-tools;35.0.0`) for `dist/phoned.jar`, or the provider's `phoned` option naming the jar.
294
+ - phoned (`packages/computer/daemon-android/`) is plain Java built with javac and d8, no Gradle, into one dex jar. `connect()` pushes it to `/data/local/tmp` under its sha256 when the phone lacks it, starts it as the shell user through `app_process` (scrcpy's way in, credited in `daemon-android/NOTICE-scrcpy.md`) on adb's `exec:` service, and speaks the protocol to it over that socket. Its hello is its own: protocol 0.2, the screen in points, `device`, and each feature on or off with the reason.
295
+ - On the phone: `ui.observe` straight from UiAutomation (rows named from their texts, zero-size nodes dropped, refs stable while the element lives) and `ui.act` by accessibility actions or injected input, settled on accessibility quiet and a new frame and read back before `expect` is checked; `input.actions` through InputManager, a pinch, key combos and holds included, and Unicode text through the clipboard; `screen.shot` and `screen.watch` scaled on the phone; `apps.launch` with a deep link; `exec.run` as the shell user (the `exec` group). A screen marked secure is refused `denied` in words.
296
+ - `apps.launch` answers once the app's window is on the screen and still (its open animation done), or `timeout` after 10 s in words that name the windows the tree shows. `ui.observe` and `ui.act` never wait: an app with no window is `not_found` in words that name the windows the tree shows. A window's bounds are its root element's, in the space of its elements, the screen and input, which is not always the space the accessibility service reports windows in.
297
+ - One phoned answers every connection to a phone (UiAutomation is one per phone). Closing a connection cancels its own calls; the last close ends phoned, then drops the adb transport.
298
+ - The server image builds phoned after the daemon, with Temurin 17 and the Android SDK's files (zips from Google pinned by sha256) in its build stage alone, so the image's phone provider has `dist/phoned.jar`, and checks it (`npm run check:phoned`: a dex jar stamped with the package version). CI's `phoned` job, outside the verify gate, sets up the same toolchain itself (`.github/actions/android-toolchain`: Temurin 17 and the same pinned zips), builds and checks the jar, and runs `npm run test:phoned`.
299
+ - `npm run test:phoned` runs phoned's JVM tests and the TypeScript client against its real core over a scripted phone, the conformance suite's phone kind and Full ui cases included.
300
+ - The ui fixture as an Android app (`packages/computer/fixture-android/`, `npm run build:ui-fixture` for `dist/ui-fixture.apk`, signed with a debug key made for each build). The provider's new `apks` option installs APKs on each phone before phoned starts; a conformance run installs the fixture when it is built, and its notes say when it is not.
301
+ - The computer protocol 0.2's follow-up: create is idempotent by a required request id, a driver whose hello lacks a group its kind needs is refused, `apps.launch` answers once the app has a window, and `ui.act` waits for windows, follows them when one closes, and answers a `set` verified only when its value holds. Breaking: `ComputerProvider.create` takes a required context, `{ requestId }`; `UiActResult.state` is optional, and an act whose app has no window left answers `window: "closed"` with no state.
302
+ - Idempotent create (`CreateContext`, `computerNameFor`): one computer per request id, named `computer-<12 hex of sha256(request id)>`; the same id while it starts or runs answers it, and after it ended is refused `exists`. Serve passes the run's claim (`<run>#<epoch>`). The Full cases `provider.create-retried` and `provider.create-after-release` check it. The providers that make computers keep it through one helper, `CreateRequests` (creates in flight shared, requests ended remembered): the hosted adapter, Docker (a retry whose `docker run` finds the name taken answers that container), the phone harness (its ledger read by name, and an `Idempotency-Key` derived from the request id) and the fake ui provider. The attached provider keeps it for the computer a pairing holds. A fake ui computer's network is fixed at create (a change is `refused`).
303
+ - Breaking: a phone-harness ledger entry (`PhoneLedgerEntry`) carries the computer's `name`, and a phone's ref is `{ id: <session id>, name: computer-… }`.
304
+ - Breaking: a `PhoneLedger` (and serve's store ledger, `ComputerLedger`) has `claim(entry)`, a put only while no entry has its id, in one step: a phone create claims its request before its POST, so a create of the same request with another spec, from another provider on the same ledger, is refused `exists` before it can send the request's key. A Docker computer carries `agentrun.computer.labels` (its spec's label keys) and `agentrun.computer.attempt` (which create made it): a retry that drops a label is `exists`, and a create cut off during `docker run` removes only what it made.
305
+ - phoned answers `expect.window` (the app's main window, a phone's windows all of role `window`).
306
+ - Computerd for macOS keeps the same `ui.act` rules: `expect.window` (which needs no tree), `window: "closed"`, one final view for a set's hold and the expect, and `UiWindow.role` from the window's AX role and subrole (a sheet, dialog or floating panel is `"dialog"`).
307
+ - The refusal kinds are `ComputerErrorCode`, with `vendor` the only open one: `invalid` is a malformed request, `unsupported` a call or feature the provider lacks, `refused` a value or state it does not serve, such as a network change after create on a remote computer.
308
+ - `kindServed(hello)` answers the groups a hello lacks for its kind (a desktop needs `screen`, `input.pointer` and `input.keys`; a phone `screen`, `input.touch` and `apps`). The attach binding closes such a driver `4426` naming them, and the Core case `health.kind-served` fails it.
309
+ - `DAEMON_METHODS` lists every method the daemon answers.
310
+ - `apps.launch` answers once the app shows a window, or fails `timeout` naming the app after `LAUNCH_WINDOW_MS` (10 s); the Core case `apps.launch-window` observes right after the launch. The fake ui driver takes `windowAfterMs`.
311
+ - A node's bounds are clamped to its window (`insideWindow`).
312
+ - A settle compares the window's nodes, and its image only when it has none, so a blinking caret no longer holds every act to `MAX_SETTLE_MS`.
313
+ - A `set` answers `verified: true` only when its value still holds in the act's final view: at least `SET_HOLD_MS` (500 ms) after the settle, and after the expect's last settle. A set's hold, the expect and the answered state all read that one view.
314
+ - `expect.window` (`{title?, role?}`) waits for the act's app's main window to match, from its first look (never the window a target or state aimed at), and answers its state; none in time is `unmet`. `UiWindow` gains `role` (`"dialog"` for a sheet, alert or panel).
315
+ - A step that closes the act's window hands the act to its app's next main window; with none left the act answers `window: "closed"`.
316
+ - The fake ui driver's windows are its own objects: each owns its screen, history, values, switches, focus and pending effects, and closing one cancels its effects.
317
+ - The ui fixture gains "New window", "Close" and a "Code" field that takes its value back, with the Full cases `ui.settle-tree`, `ui.set-holds`, `ui.expect-window`, `ui.window-closed` and `ui.window-follow`. A fixture with one window per app leaves out "New window", and the window cases skip.
318
+ - The computer protocol is 0.2: a new `ui` group sees one app's window as named elements (`ui.observe`) and acts on it by short lists of steps that settle before they answer (`ui.act`), and `hello` says the screen's size and what the computer can and cannot do (`hello.screen`, `hello.features`). Breaking: the `apps.ui_tree` group and method are gone, replaced by the `ui` group; read a screen's elements with `ui.observe`, whose nodes are a flat list with refs, ARIA roles and bounds in window points, in place of the nested tree.
319
+ - `ui.act` steps: `press`, `set`, `perform`, `click`, `type`, `key`, `nav`, `scroll` and `drag`, by ref or at a point read from a state, with an optional `expect` checked on the computer. Each step answers the route that ran (`semantic`, `page`, `background`, `foreground`) and whether a readback verified it. A ref whose element is gone, or a point whose window changed under it, is refused with the new error kind `stale`, and a step on a disabled control, a type into a ref that is not a text field, or a type into a field that did not take the focus with the new kind `refused`.
320
+ - `hello.features` names what is on, or off with the reason (`ui.tree`, `ui.image`, `ui.background`, `ui.foreground`, `ui.page`, `ui.nav`, `apps.background`). With `ui.tree` off, `ui.observe` answers the window's image with no nodes and says why in `empty`. `hello.device` names the machine (`maker`, `model`), and a node's `desc` carries what else it says beside its name and value. `apps.launch` takes `url` (a deep link) and `background`.
321
+ - `@parcha/agentrun-computer/fake-ui-driver` answers `hello`, `apps` and `ui` over the wire from scripted apps (the ui fixture by default), in process (`fakeUiConnection`, `fakeUiProvider`) or on stdin and stdout. The conformance suite's new `ui` cases run on the ui fixture: `ui.hello` (Core) and, where the fixture is installed, observe's shape, refs that survive, an expect met and unmet, stale refs and points, the route each step took, a click never verified unless it landed, and each feature on doing what it says and off refused with its own sentence.
322
+ - `UiSession` calls `ui.observe` and `ui.act` with their types on one target and carries the last state to a step at a point; `findNodes` and `refusedStep` read their results.
323
+ - The attach binding is specified as a draft (`spec/computer/attach.md`): a driver dials `wss://<server>/v2/computers/attach` with a token it got by pairing a code from the console, and the same messages travel as WebSocket text frames. A driver of another protocol version, or a hello missing a field the server reads, is closed `4426` with words that say how to update it; any build within the protocol is accepted. A hello not answered in 10 s (`ATTACH_HELLO_MS`) is closed `4408`. `AttachHub` and `attachedProvider` are its server side, written against an `AttachSocket` interface; serve's routes come later. A run's ref names its hold (`<computer id>.<hold>`): its release ends only that hold, and the hold ends at the run's `lifetimeMs`.
324
+ - `UiEngine` implements the group's rules over a `UiSource`; the phone harness's Android answers `ui` through it, over uiautomator and adb's input (foreground only, unverified).
325
+ - agentrun-serve's phone tree tool reads `ui.observe`; its nodes' roles are ARIA names (`button`, `textbox`) in place of Android class names.
326
+ - Every harness sees a desktop or a phone through one surface: the tools `computer_observe`, `computer_act`, `computer_screenshot` and `computer_script`, the same answers from a script, an MCP client or a tool call. Breaking: the `desktop_*` and `phone_*` tools are gone, replaced by the `computer_*` tools (a desktop's and a phone's alike, held to the `desktop` or `phone` setting), and the script API's `apps.open(id)` returns nothing; bind the app with `computer.app(id)`.
327
+ - `computer_script` runs JavaScript in an isolate in serve whose only binding is `computer` (no network, no keys, no timers); its types are `spec/computer/computer.d.ts`, generated with the tools' schemas by `scripts/generate-computer-surface.mjs` (`--check` in CI). A model reads them compactly (no comments, one line a declaration); `computer_act`'s schema types its steps with no words, and its description declares them as TypeScript.
328
+ - A script's `computer.shell` and `computer.files` are held to the run's tool settings as the `bash`, `write` and `read` tools are (a deny or a read-only bash policy refuses inside the script; a setting that asks refuses, since a script can't wait for a person), and a refused step throws in the script, so the steps after it never run. Without the ui group a scroll goes as wheel clicks (about 120 pixels each), which every driver takes.
329
+ - pi offers its code mode (`codemode`) beside its tools with a desktop or a phone, `computer` bound in its scripts; the call is held to the computer kind's setting.
330
+ - In Codex's code mode a script's call of a computer tool answers the tool's value as JSON, its images' data in it; any other tool answers its words and a line saying its images were not sent (in code mode an image reaches a script only as text). A call a script repeats after a restart, of a computer tool that completed, gets that same JSON again.
331
+ - agentrun-serve's `computerMcp` serves a run's computer tools to an MCP client, each answer with `structuredContent`.
332
+ - The desktop-computer and phone-computer skills teach the route: observe, act by ref, check, and one script for steps already known.
333
+ - Serve's file-era decision and run-database readers are gone: `decisionSpentIn`, `DECISION_COST` and `DECISION_HOLD` (cap.ts), `durableDecisions` (workflow/readers.ts) and all of run-db.ts (`readRunDbSync`, `observeRunDbOpens`, `runDbTestHooks`, `ChangedReadError`, `BehindReadError`, `MonotonicReads`); none was in the package's public entry point, and a workflow decision's spend is read from the runner's journal (`sessionSpendOf`), its receipts with `readDecisions` or `decisionsOverStore`.
334
+ - A run's live view (its browser, desktop or phone, watched and taken over) works when its runner is on another host than the server, as in the compose stack's server and runners. Breaking for a SQLite store: its schema version moves to 9, so a server refuses a SQLite store an earlier version made; start it on a fresh data directory. A Postgres store migrates itself (migration 0007). A runner names the host the server reaches it at (`AGENTRUN_RUNNER_LIVE_HOST`, listening there or on `AGENTRUN_RUNNER_LIVE_BIND`), and each viewer's row in the store carries that host (a new nullable `computer_viewers.host`). The server dials a row's host only when it is one of its runners' (`AGENTRUN_RUNNER_HOSTS`), and signs each request it makes of the viewer with an HMAC under a key derived from the seal key; a runner's viewer off loopback refuses, before any WebSocket, a request with no good, fresh proof for its own viewer, and the viewer's token still decides who watches. The hop between server and runner is plain HTTP, for a private network. With neither setting, every viewer stays on loopback as before. `@parcha/pi-browser`'s `createLiveView` takes `listen` (the address its own server listens on and the host its links name) and `admit` (a host's own check of every page request and upgrade).
335
+ - Security: an MCP server's credentials stay out of what anyone reads, and its address is held to the private-address rule at every door. Breaking, three ways:
336
+ - An MCP server on loopback (a `127.0.0.1` or `localhost` URL) is taken only by a server started with the new `AGENTRUN_MCP_ALLOW_LOOPBACK=1`, which says this is a local install; it is never inferred from where the server listens. Without it such a URL is refused at the save, the preview and the sign-in, in words naming the variable, and runs never reach one. To upgrade: on a machine you alone use, start AgentRun with `AGENTRUN_MCP_ALLOW_LOOPBACK=1`.
337
+ - An MCP server's URL is shown on every read (the list, a server's read, a save's answer, errors) as its origin and `/…`: its path and query are held as a secret, sent only to the server itself. Sending the shown URL back for a saved server keeps the saved one. A client that read the whole URL back reads its origin now.
338
+ - A saved MCP server whose URL names a credential-like parameter in its query, or sits on a private network the owner hasn't listed, is refused from this release on (its preview, tools refresh, sign-in, and a run's claim). To upgrade: move a query credential into the server's Headers, and add a private host you use to the MCP private-hosts list (PUT /v2/settings/mcp-servers/oauth/private-hosts, which now covers the server's own URL too) over https.
339
+
340
+ And:
341
+ - A URL whose query names a credential-like parameter (`token`, `api_key`, `secret`, `signature`, `password` and the like) is refused at the preview, the save and the sign-in's start: "<name> in the URL's query looks like a credential; send it as a header instead (Headers)."
342
+ - The server's own URL goes through the same private-address rule as its sign-in's endpoints, at the preview, the save, the tools refresh, the sign-in and, on the runner, every request, dialled at the address checked: a private-network host only when the owner lists it, over https; link-local and cloud metadata addresses never; a 6to4 address judged by the IPv4 address it carries.
343
+ - A claimed run's calls follow the server's row: a server removed since is refused unsent, a replaced credential is the one sent, a token another run refreshed is the one sent, and an access token near its end is refreshed before the call. Removing an OAuth server revokes its refresh token at its authorization server (RFC 7009, best effort).
344
+ - Every credential value a run's MCP opens, refreshes or mints joins the run's one redactor, so it is cut from its logs and errors as well as from its tool answers.
345
+ - Orgo finds its workspace from the saved key: `ORGO_WORKSPACE_ID` is no longer required. With it unset, an Orgo provider reads the key's account's workspaces (`GET /workspaces`, deleted ones skipped) and uses the one there is; with several it refuses in words naming them, and with none it says to make one at orgo.ai. Settings → Computers offers the Orgo workspace as a picker by name once `ORGO_API_KEY` is saved, and saving a pick stores its id under `ORGO_WORKSPACE_ID`, read through the new `GET /v2/computers/{provider}/choices` (`listComputerChoices`). A provider view lists such keys under `picked`.
346
+ Breaking: Orgo's `workspaceId` option is optional (`COMPUTER_ORGO_WORKSPACE` too, for the conformance run), and a server whose Orgo account has several workspaces and no `ORGO_WORKSPACE_ID` saved now has its Orgo runs refused until one is picked in Settings → Computers.
347
+ - The outbound webhook (`/v2/settings/webhook`) keeps everything in the one store, on SQLite and Postgres alike, and refuses a private address: the server no longer reads or writes `DIR/webhook.json` or `DIR/webhook-outbox.json`, so a webhook saved before this release is not set and its pending messages are not sent. To upgrade, let pending webhooks drain, then set the webhook again with `PUT /v2/settings/webhook` and give your receiver the new secret it shows once; the two old files can be deleted. A receiver on this machine or a private network is refused unless the operator sets `AGENTRUN_WEBHOOK_PRIVATE_TARGETS=1` where the server starts.
348
+ Its URL is a store setting, its secret is sealed in `trigger_settings` (on a runner's redaction list, as the other sealed settings are, and a secret replaced or removed stays on it across restarts), and its messages, their tries and the run notices it told are in the channel tables (Postgres migration 0006, SQLite schema version 8). The server says once at its start when an earlier build's file is left (`condition=webhook_left_over`).
349
+ The run notices follow the store's run-change feed, so a run that starts and ends between two reads, or whose end cannot be read for a while, is still told once.
350
+ A URL is refused at its `PUT` when it is on a private network or this machine, by address or by what its name resolves to, and each try dials the address it checked. A `PUT` that changes the URL makes a new secret and shows it once (the same URL keeps its secret, and one that no longer opens under the server's key is replaced and shown); the URL and its secret go live together, so a `PUT` the store refuses leaves the webhook as it was. `GET /v2/settings/webhook` and the log show the URL's origin and its last four characters, never the whole URL.
351
+ A run that asked a question sends `run.needs_input` once for it: the answer's take clears the run's waiting summary for a reopened run that parked on a question too, and a wait's `webhook-id` comes from its ask, never from the row the run shows last.
352
+ - An owner can drive a run's computer from anywhere, and a run can hold its computer for its owner.
353
+ - POST /runs/{run_id}/computer/call `{ method, params }` sends a running run's sandbox, desktop or phone one computer protocol call and answers what the computer answered, verbatim. The call is a command row the run's runner answers: it waits while a person holds the computer, as the agent's calls do, and a runner beside the server answers in about 10 ms (a runner in another process finds the row at its next command poll). A method outside the computer protocol is refused. The call's params (text it types, say) leave the store once the call settles. The route takes the owner's token or session, never a run's.
354
+ - `hold: true` on POST /agents/{agent_id}/runs (an agent's run, not a workflow's) claims the run's computer and waits, the agent not started, until POST /runs/{run_id}/start; after the agent ends, the run keeps the computer until POST /runs/{run_id}/computer/release, or until `hold_minutes` (default 30, at most 120) pass with no call from the owner. A stop of a held run ends its agent and keeps the computer the same way, and the run ends `stopped` at the release; a cancel ends the run at once and lets the computer go. GET /runs/{run_id} says where the hold is in `computer.held`, and the Timeline says each change. A benchmark sets a task up, starts the agent, checks the computer after, then lets it go.
355
+ - Each tool call's computer protocol calls are on its `tool_result` Timeline row as `computer_calls`: method, outcome, time, error code, and for `ui.act` each step's kind, route and readback. No param value, no screenshot bytes, no typed text.
356
+ - GET /runs/{run_id}'s `computer.state` reads `taken_over` while the owner holds the run's desktop or phone, and `ready` again after the hand-back.
357
+ - **Breaking for a SQLite data directory.** The store's SQLite schema is now version 11 (a command row keeps its answer). A server or runner of this release refuses a data directory an earlier release set up, with `SchemaVersionUnknown`: start this release on a new, empty data directory and add your agents, MCP servers, keys and sign-ins there again, or keep the old directory with the earlier release. A Postgres store migrates itself (migration 0009).
358
+ - Settings → MCP servers has a Composio preset: give a Composio API key, a toolkit and the actions to grant, and the server has Composio make a managed MCP server and saves it as an ordinary MCP server with the key sealed as an `x-api-key` header. It is `POST /v2/settings/mcp-servers/composio/tools` (the toolkit's actions) and `PUT /v2/settings/mcp-servers/{name}/composio`, both the owner's session alone; a toolkit that needs the person's account answers `connect_url`, Composio's page to connect it.
359
+ - Composio events start runs through a webhook trigger: `signature: "composio"` checks Composio's delivery (its secret as the whole string, not a decoded `whsec_` key), keys each firing by `webhook-id` and takes `accept` rules by the body's `metadata.trigger_slug` (else its `type`, for Composio's account events such as `composio.connected_account.expired`), with `where` pointers into `/data`. Register the trigger's `hook_url` as Composio's webhook subscription and give Composio's secret with `POST /v2/triggers/{id}/secret` and a `{secret}` body (a composio trigger is made with none, none is made for it, and every request is refused until one is set). The console's trigger page has a Set secret button for it. It is sealed and cut like every trigger secret.
360
+ - Agent37 serves the desktop setting: `create({ kind: "desktop" })` makes a Linux desktop (`screen`, `input.pointer`, `input.keys` beside the shell) whose Xvfb the adapter starts through the daemon as the tool user. Its default image is `agentrun-box` (`AGENT37_BOX_TEMPLATE`), our box image plus Xvfb as a template of the key's own workspace: `AGENT37_API_KEY=... node packages/computer/box/build-agent37.mjs` builds it once per workspace, and again only when the recipe changes. The conformance module takes `COMPUTER_AGENT37_KIND=desktop`.
361
+ - Agent37 is a computer provider (`agent37`, kind `linux` for the sandbox setting), on the shared machine-host adapter: an Agent37 instance on type `vm` (default) or `default` (gVisor), made with no network, auto-sleep off and no public port, and read back. It takes two keys, `AGENT37_API_KEY` and `AGENT37_SSH_KEY` (the private half of an SSH key registered on the same workspace, its contents), and runs every command over SSH through the platform's tunnel with the host's own `ssh2` (pinned 1.17.0 as a root devDependency). The conformance module reads `COMPUTER_AGENT37_*` behind `AGENTRUN_COMPUTER_LIVE_AGENT37=1`, and `dist/conformance/sweep.js --provider agent37` sweeps a live run. Kind `desktop` waits for the box image as an Agent37 template.
362
+ - A desktop's or a phone's screen is watched and taken over live, as the browser's is. The runner opens its view as it claims the run's computer: `openComputerView` (computer-live.ts) starts the computer's viewer on loopback and hands it over in the store under the run's claim (`computer_viewers`, the token sealed); a stale claim is refused `fenced`, and an open that fails is refused `failed` in words with nothing left listening. Its WebSocket speaks the browser viewer's protocol: hello, ready with Take over, the screen's frames (JPEG or PNG) each sent once the viewer acked the one before (a frame held back for a slow viewer is replaced by a newer one, and the replaced frame is acked), and Take over and Hand back through the run's hold, the same take-over and hand-back the routes write. Input is mapped by one `createActionMapper` per take and reaches the computer only while the person holds it, as the run's own hold says at that moment, so input stops as soon as a take ends; otherwise it is answered `held` ("Take over to drive."), and what a desktop refuses (ctrl+alt+F1, ctrl+alt+Backspace) comes back in words. The mouse buttons a take holds are let go when the viewer loses focus, before a hand back, and once when a take ends on the run's side or the viewer goes. One viewer per computer; a viewer that goes mid-take hands the take back (`away`). The runner now journals the hold of every run's desktop or phone (computerForClaim hands it to the run's spec), so `GET /v2/runs/{id}/computer` answers live with `kind` `desktop` or `phone` and who drives, and the viewer's own page (Take over and Hand back; a phone's back, home and recents) is served under `/v2/runs/{id}/computer/live/`, its socket proxied to the runner's endpoint with the same checks as the browser's. `@parcha/pi-browser/live-view` exports its WebSocket server and token helpers for it. A desktop or phone run whose screen is not open answers `GET /v2/runs/{id}/computer` `none` with its kind, no longer `off` with "this run's agent has no computer" (#2170). The viewer types from a phone's or tablet's soft keyboard too (its `beforeinput` text, deletes and Enter), with a desktop's keys still sent once. Under `--faux`, a run on the faux desktop starts and is claimed by the runner (its start check and the runner's claim read `--faux`'s computers beside the package's), and its screen is watched and taken over through this same viewer; the faux desktop's old page under `/faux/desktops/` is gone.
363
+ - A capped run now wraps up instead of running into its cap with no answer. It keeps back enough to answer: one typical step (its own answers' typical cost) and one final answer at its least, as the cap prices the main model's next request. Once its spend, plus what its requests and paid steps still out are held at, leaves less than that, the run's tool gate refuses every tool call a model makes, in every conversation of the run and on every harness, with one fixed message: "Budget nearly spent: stop calling tools and answer now from what you have." A call that would start a child conversation (a `subagent` spawn) is refused the same way. Children already working are not cut: they get the same refusal and answer. Model requests continue, so the parent's final answer lands, and the cap stays the last line. A fan-out keeps room for each conversation to answer, because its holds count as taken. A simple run uses its cap up to its last step and answer. Its one known miss: a request that writes to its max output can still leave no room for the answer; then the run pauses for a raise rather than overspend. The figure is read from the run's booking records at each call, so a restart or a moved claim holds the same line, and a raise of the cap moves it.
364
+ - Upgrading: this changes how a capped run ends. A run that used to end `spend_cap_reached` (or pause at its cap) after its in-flight reservations filled the cap now stops calling tools once it can afford only a step and an answer, and answers from what it has. A run with no cap is unchanged.
365
+ - A learned workflow can hold decision nodes (judge, pick, sift, a route by question, an ask predicate, a verify), under the run's spend cap. Each decision is admitted on the run's cap before it is sent, priced the way a workflow agent's decision is, and booked at what it charged. If the cap has no room, the decision is never sent: the run pauses at the cap, and the `learned_workflow` call says why. A decision node's provider (the one it names, else the default, `jev`) is checked against the run's tool settings: each provider is a settings key of its own (`jev`, `parallel`, `openrouter`), allow by default, allow or deny, and the published tool settings schema names them. Set to deny for the agent or on the server, the workflow is refused before any node runs, in the gate's words. A workflow agent's own decisions read no such setting. A decision's spend is in the run's cost (its row, its view, `/v2/usage`, and the runs list's cost while the run is going or paused), beside its model requests and paid tool calls, and a decision that reports no cost leaves the run's unknown, never the amount the cap held for it. The runner hands the run the keys of the providers its learned workflows name, so a decision node is answered by the run's decision provider under its cap. A denied provider refuses the workflow in the gate's words, and one the server has no key for refuses it as a provider this host does not have; either way nothing is sent. A decision node that sends images reads them through the run's own folder (on a run's disk in Mode 2), as a workflow agent's does. A run's new workflow draft with a decision node is checked against the server's decision providers, so it is proposed and graded like any draft, and a retired one is restored the same way.
366
+ Upgrading: nothing to do. To keep an agent's learned workflows from asking a provider, set that provider's id (`jev`, `parallel`, `openrouter`) to deny in the agent's tool settings.
367
+ - An agent that learns can learn from rows: `POST /v2/agents/{id}/learning/batches` takes rows, the columns to give the agent and the one that holds the reference answer, and a cap on its runs (`max_cost_usd`, required: each row's run, its look-back and its review's turn are capped at what is left, strict, so no request passes it on a cache miss; the grade of what a row's run learned runs under what that run's cap leaves and counts in the batch's cost, and a grade that doesn't fit is skipped, never run past the cap), and the server runs the agent on each row in order with learning on. When a run has answered and its learning has settled, the server sends it the review the learning bench sends, `Review: the reference answer is "X"; you answered "Y".`, the same words right or wrong, so it looks back again. One batch runs at a time per agent, a row starts only when what is left of the cap covers the mean of the rows done, and the batch stops `cap` there (or `cost_unknown` when a row's cost is not known, `learning_off` when the agent stops learning: learning is checked before every row). Its progress is the server's: `GET .../learning/batches/{batch_id}` answers rows done, right or wrong per row, the path each run took, the lessons kept (notes, skills, workflow revisions) and the cost so far, after a reload or a restart (a running batch takes up at its first unfinished row, and a row is counted done only once its review's turn completed); `POST .../cancel` ends it, its row's run stopped first. Its reads show what it saved cut of the server's secrets and the agent's sign-in pointers as they are now, as the agent's learning reads are, and withhold it (403) the same way when one of the agent's sign-ins can't be read here. The Learning tab's "Learn from a CSV" uploads a CSV, takes the input and answer columns and the cap, and shows that progress.
368
+ - An agent's Learning tab heads with its latest eval record: its held-out accuracy with the 95% Wilson interval and n, and the cost a task with learning against by hand; "Not measured yet" until one is recorded. Under the cost per run, on its run axis, the execution mix shows the share of runs each path took, block by block.
369
+ `POST /v2/agents/{id}/learning/evals` appends a record of a held-out test's counts (`name`, `label_source`, `n`, `correct`, `cost_per_task_usd`, `baseline_cost_per_task_usd`, `learned_revision`); the server computes `accuracy` and its Wilson `ci`, and refuses a body that sends either. `GET` answers the `latest` and the list, newest first, the latest 20. Only what was posted is shown: nothing is computed from the agent's own runs. `agentrun learning record-eval --body @eval.json` and `agentrun learning evals` do the same.
370
+ - A run can start with `learning: "use"` (POST /agents/{agent_id}/runs and POST /runs). It starts from what its agent learned (notes, learned skills and learned workflows, as a run that learns is given them) and keeps nothing: no end-of-run turn, no proposal, no grade and no merge, at its end or after a follow-up. Its `learning` reads `seeded` while it runs, then `dropped` with the new reason `use`. Many runs of one agent then read one learned state, frozen, however many run at once (a held-out evaluation). A server whose learning is off still gives it nothing. Any other value is a 422 at the field.
371
+
372
+ A follow-up message to a finished run of an agent that learns now learns from the follow-up. Before, the run answered the message, but its new end reused the first end-of-run turn's answer, and the store dropped the new proposal and learning run, so a reviewer's correction never reached learning. Now each end after a follow-up is a new round. It asks the model again, with the follow-up in what the person said and a prompt saying it looked back before. It keeps its own proposal beside the earlier rounds', and its own learning run (`<run>-learning-<n>`) grades and merges it. The run's `learning` reads its newest round. A later round's proposal also keeps `follow_up_usd`: what the follow-up's own turn cost, kept apart from the job and the look-backs.
373
+
374
+ - **Breaking for a SQLite data directory.** Upgrading: the store's SQLite schema is now version 7 (a run's learning is kept by run and round). A server or runner of this release refuses a data directory an earlier release set up, with `SchemaVersionUnknown`: start this release on a new, empty data directory, or keep the old directory with the earlier release. A Postgres store migrates itself (migration 0005).
375
+ - An agent's Learning tab replays how its learned workflow changed: the workflow it runs now is drawn as the console's workflow graph, with a step for each revision that changed it. A step shows the graph as it was then with each node marked NEW (first in that revision) or EDITED (its prompt, code, inputs or tier changed), one line saying what changed, and the revision's date and author. Play steps through them; the slider and the arrows go to any one.
376
+ `GET /v2/agents/{id}/learning/workflows/{name}/revisions` (`learning/1`) answers the latest revisions (`?limit=`, at most 50), oldest first, each with who made it, when, why and the workflow.json text it had then; `agentrun learning workflow-revisions <agent> <name>` prints them.
377
+ - An MCP server whose sign-in lets no app register itself (GitHub's hosted MCP, whose login has no dynamic client registration) is no longer a dead end. Starting its sign-in with no Client ID is 422 on `client_id`, reason `registration_unavailable`: "<host> doesn't let apps register themselves: create an OAuth app with that provider and enter its Client ID and Secret here". GitHub is named for its hosted MCP. A preview of such a server says so up front, as `details.oauth.registration: false` on its `auth_required` refusal.
378
+
379
+ The console's MCP server form acts on either one. It turns to Sign in with OAuth, shows the Client ID and Secret fields and puts the cursor in the Client ID, and says what to do: create an OAuth app with the provider, using this server's callback URL, then enter its Client ID and Secret. A saved server whose sign-in is refused this way offers "Enter a Client ID".
380
+ - A learned note must hold beyond the one input it came from, and a run past the learning budget reads the notes that bear on it whole. Before the grader, one Jev question per new note (the Jev model and keys decision nodes use) asks whether it states a method, a source, a fact or a preference that holds for the job's other inputs; a note rated below 0.5 (`AGENTRUN_SERVE_LEARNING_GENERAL_THRESHOLD`, 0 to 1) is dropped there, its reason on the verdict, and when Jev cannot run the grader reads every note. The grader now answers `general` for every item, and an item it says is not general is never kept. Past the budget, whole notes take the room before rule lines do, so an agent with hundreds of notes no longer gets one line per note and nothing whole; the notes the section leaves out are named in the run's log and kept on its launch (`learning.notesLeftOut`). A learning budget of 0 now serves no notes, and a run whose notes none fit its budget is told they are there (and, with the read tool, where) instead of "Nothing learned yet."; an agent without the read tool gets the room its line would take. When Jev cannot run, the run's learning says so and the grade's cost is unknown.
381
+
382
+ Upgrading: nothing to do; set `AGENTRUN_SERVE_LEARNING_GENERAL_THRESHOLD=0` to keep every note the grader passes.
383
+ - The pi family and Chord move from 1.5.0 to 1.5.2 together (pi-ai, pi-agent-core, pi-coding-agent, pi-codemode, pi-durable, chord). Pi's model catalog now lists `claude-fable-5-2`, so a pi run can use it. Chord's package root no longer exports `Context` or `JsonValue`; they come from `@earendil-works/chord/context` and `@earendil-works/chord/json`, which a host that imports them from the root must follow.
384
+ - Applying a template that grants a GitHub tool (release-notes' `issue_write`) on a server whose GitHub MCP server runs on the GitHub App now warns from the App's real permissions, not from what its manifest asks for. Apply reads each installation's own permissions map from GitHub (`GET /app/installations/{id}`), says per tool and per account what is missing ("has Issues: read on acme"), and says nothing when the installation holds it. When the map cannot be read (no App connected, none installed, GitHub out of reach), the warning says the check could not be made (`reason: not_set_up_here`) and never states that GitHub refuses the tool. The reads run four at a time within one four-second limit, so many or slow installations never hold Apply's answer (the agent and triggers are already created; only the warning is best-effort): an account not read in time, or whose map was refused or malformed, is named in a `not_set_up_here` warning as one the server could not check, never passed as holding the permission. Before, an App whose settings showed Issues: read was told it could not write issues even where the call went through.
385
+ - Setting a tool to allow now answers a call of that tool that is waiting for its owner's approval. Before, if the setting moved to allow while a call waited (say the second of two calls in one answer), the run's next pass ran the call on the setting and never closed its ask, so its Timeline rows read "Not run: the run ended while it waited" and "Withdrawn when the run ended" for a call that ran. Now the ask closes with a row reading "Allowed by the tool's setting", the call runs, its outcome reads "ran, as its setting allows it", and the person is never asked again. A tool set to deny since is still refused, and a deny the person already sent still stands. The same holds on pi, Claude Code and Codex runs.
386
+ - A run near its cap is told to wrap up again, on the runner, for every harness (part of #2080).
387
+ - Once what is left of the cap is about one typical request, the run's next model request tells the model, inside that request, to finish now ("This run's budget is about $X, …"). The note goes to the model only and never into the run's transcript.
388
+ - It is worked out from everything the run has spent and holds, including requests still in flight. A Claude Code or Codex run whose requests overlap is told on time, not late or never.
389
+ - It is told once per cap. A raised cap is told again when the run comes near the new cap.
390
+ - It composes with the cap's wrap-up as one story: the note tells the model what is left, and once what is left no longer covers what the run keeps back to answer (one typical step and the least answer), its tools stop. The note also comes due on that same rule, so the model is told no later than its first refused call.
391
+ - Kernel: `requestFigures(request, mode, now)` in the cap gives a main-model request's least, step-0 typical and worst cost, which the run's reserve is priced from.
392
+ - The Timeline shows the note as AgentRun's own row ("AgentRun: This run's budget is about $X, …"), written only once a request carrying it has been admitted.
393
+ - Kernel: `ModelPort` and the model proxy's hooks gain `noteReturned?(note)`. The proxy calls it when a request that took the host's note leaves before its admission (its client gone, a refusal, an error), so the host can give the note to the next request at once.
394
+ - Kernel, a change for anyone reading or implementing `ModelBooking`: it gains `heldUsd(): number | null`, the holds of the session's requests still in flight. It returns null (unknown, never 0) while one of them has no hold, and a reader must treat null as unknown. `spentUsd()` still counts answered requests only, so the run's total is `spentUsd()` plus `heldUsd()`. It also gains `boundUsd(): number`, what a cache miss adds to those holds (0 with none): the run's tools stop on the holds plus this, so the note counts both.
395
+ - A runner whose claim commit the store's Postgres left unanswered no longer leaves the run stuck for the lease. The claim may have landed, so the runner reads back what it holds (`runs.claimsOf`, judged on the store's clock), retrying the read with a doubling wait, and releases at once any claim of its own that nothing holds, fenced on its epoch, so another runner (or this one, on its next poll) takes the run. A release answered Unanswered is read back the same way and sent again only if the claim is still held at its epoch.
396
+ - A Claude Code, Codex or OpenCode run whose runner was killed mid-turn no longer leaves the dead claim's files on the runner's disk. The killed claim never ran its own sweep, so its folder (`<data>/scratch/<agent>/<run>/harness/<epoch>`, the CLI's home and session state) stayed after the run ended. Now each claim of a run removes every earlier claim's folder of that run when it starts and again when it ends, and the run's scratch folder goes once its last claim ends. A later claim's folder and other runs' folders are left alone. A sweep that is itself cut off partway is finished by the run's next sweep. An agent's emptied `scratch/<agent>` folder now goes with its last run's.
397
+ A claim that fails in its setup (its computer cannot be had, its install fails) now still sweeps the earlier claims' folders, and a runner sweeps at its start the scratch folders of runs that ended after their runner died (the run's final epoch and below, at most 500 run folders per start, said in the runner's log).
398
+ - A claude-agent or codex run's turn is visible while it runs, as a pi run's is: `GET /runs/{id}` reads `working` with a `last_progress_at` that advances as the turn writes calls and results (never `working`/`idle` with none), and the model's answer is on the timeline as soon as its request is over, not at the end of the turn. A turn that fails with a message queued behind it keeps its error in the timeline and goes on to the queued message's turn, so the run ends with that turn's status. A turn the harness ends interrupted on its own, with no stop and no error, leaves the run `input_required` (a message goes on) instead of failing it with "the run gave no answer (interrupted)". A cancel accepted before such a stop is stored still wins it: the run ends `cancelled` and takes no further message.
399
+ - On Postgres, a command written while another command of the same run was still being written could be skipped by the runner holding the run: the two rows could commit out of id order, and the runner, which reads the rows past the last id it handed on, never saw the lower one (not at the next command poll either, so it waited for the run's next claim). Every write of a run's command row (a command, a trigger's message, a reopen) now takes a per-run lock first, so a run's rows commit in id order, as they do on SQLite.
400
+ - Settings → MCP servers in the console offers GitHub App as a credential, beside None, Bearer token, Headers and OAuth. Choosing it fills GitHub's hosted MCP address (the only one a GitHub App server may have), takes optional static headers, and saves `auth: {type: "github_app"}`; a server saved that way, through the API or the console, shows as GitHub App and is changed as one instead of falling back to None. A preview or save with no GitHub App connected says so in words and points to Settings → GitHub.
401
+ A template's Apply screen now says, before Apply, when an MCP server the template names is not set up here: a required one says Apply is refused until it is, an optional one says the agent is made without its tools, and each links to the add form with the server's name filled (the `github` server opens with GitHub App chosen), at `#/settings/mcp?add=<name>`. Applying the code review template no longer leaves an agent without its GitHub tools unseen.
402
+ - The console reads on a phone held sideways and in half a page. On a short screen (a phone at 844x390 or 932x430) the desktop sidebar gives way to the top bar and its menu, as in portrait, and a run's page scrolls as a whole, so a run waiting on a question shows the question, the Report and the Timeline in full instead of a body 0 px tall. Where a run's header is narrow (the Playground's Response panel at about 1500 px), the title keeps at least 16rem and its actions (Raise the cap, Stop, Cancel run, Archive) wrap onto their own row instead of squeezing it to a letter; the title shows two lines at most and its full text on hover.
403
+ - A call refused before it ran no longer reads as an error. Its `tool_result` row on `GET /v2/runs/{id}/timeline` now carries `refused: true` (an additive field: absent on every other row, `tool_status` stays `failed`). That covers a tool set to deny, a pin, a person's deny, or a call held for an approval the run stopped or ended without, on pi and on Codex and Claude Code, whose refused calls now read "Refused: …" as pi's do. The console shows it with a neutral Refused chip, never the red Error chip.
404
+ Also in the console:
405
+ - status badges keep their words on one line at their own width, so a narrow window no longer cuts "Input required";
406
+ - web_search's `auto` help names Parallel: the harness's or the model provider's own search, else Parallel where the server holds its key, else keyless Exa.
407
+ - Three small wording and rendering fixes. An opened Answer row on a run's Timeline renders its Markdown as the Report does (links clickable, code fences as code blocks, no raw HTML) in place of raw fences and `[text](url)`; the New agent Computer step says "This computer adds these tools: ..." in plain text in place of an uppercase "THE LOOP GETS"; market-monitor's `lookback_days` help says what the number does (how many days back a run looks, kept equal to the gap between runs) instead of "when you change cron".
408
+ - A runner's close, or a lost claim, while a resumed pi run opens its session no longer ends the runner process on an unhandled rejection. pi-durable answers a wait registered after its signal aborted with a promise it rejects at once and hands back only after the commits before it are published, so on Postgres that rejection could go unhandled: the standalone runner exited 1 on it with its claims left to lapse, and a runner beside the server took the server down. Every wait on a pi-durable submission or task (the pi turn, a steer's turn, a subagent, a workflow node and task, a host tool's waitForTask) now runs on a signal of its own that never aborts and is cut by the caller's signal here, so the turn ends interrupted as before. A waiter pi-durable made and never handed back because its Session failed (a commit's storage error) no longer rejects unhandled either.
409
+ - A run's answer is its last turn's own: a follow-up whose stop shows no text (a thinking-only or contentless stop, a `/compact`) now reads `result.final_answer: null` instead of the previous turn's answer. A cancel reads `cancelled` from the `202` on: `GET /runs/{id}` reports the run as cancelled as soon as its cancel is written, before the runner has cut the turn, never `working` or `completed` in between. The run stays unsettled (`ended_at` null, `poll_after_ms` 1000, its timeline not final) until the runner's end is stored, and a normal end that commits with an accepted cancel still waiting is the cancel's: the run ends `cancelled`, never `completed`.
410
+ - A web search on a GPT-6 model (gpt-6-luna, gpt-6.1-sol, gpt-6.1-terra) is booked at OpenAI's $0.01 a call, as on GPT-5. Before, its search had no known price. A pi run's native web_search on a GPT-6 model under any spend cap was refused before it was sent ("the size of the next model request's input is unknown, so the run's cap cannot be kept"). A Codex run with `webSearch: "live"`, or an uncapped pi run, booked an unknown cost for any response that searched.
411
+ - A run's grade of what it learned runs under what the run's cap leaves, so a capped run never goes past its cap by its grade.
412
+ - When a capped run that learns ends, its learning run gets its own cap: the run's cap now (a raise counts), less what the run spent (its job, its follow-ups, every look-back) and what each earlier round's grade spent. An uncapped run's grade is capped by nothing, as before.
413
+ - Each grader call is checked against that cap before it is sent, at its worst case: its whole input uncached and its whole output bound. It is never cut down to fit, so a verdict is never lost to a short answer.
414
+ - A grade that doesn't fit is not sent. The run's learning ends `dropped` with reason `no_budget` and the words "Not graded: no room under the cap." (or "Not graded: the grade's cost can't be kept under the cap." when its spend or the grade model's price is unknown), which the run page shows. It is a skip, not a failure, and spends nothing.
415
+ - The generality check's Jev requests count as the grade's spend under the same cap. Before they are sent, their worst case is checked against what the cap leaves; a check that doesn't fit is skipped, and the run's learning says "The generality check had no room under the cap, so the grader read every note." Each grader call's room leaves out what the check spent, and the grade's cost is the check's dollars plus the grader's.
416
+ - A message sent to a run right after `POST /v2/agents/{id}/runs` answered (`POST /v2/runs/{id}/messages` before the runner had sent the run's input) now lands after the run's own input. Before, on a pi run the runner placed the message as the session's first prompt and sent the input after it: the Timeline showed the message first and the model answered the two in that order. The runner now holds such a message until the run's input is sent, then places it into that turn as any later message. Claude Code and Codex runs already ran it after the input's turn; a test now holds all three to it.
417
+ - A pi run whose request was stopped or cancelled mid-answer now reads its cost as unknown with what is known so far, never $0: the request is marked when it is sent and its end is marked when it did not answer at a price. A workflow that parks at its spend cap names the node it parks at, also for a map's items. A map whose items are held at the cap at once parks only after every item's held end is committed, so the raise resumes them instead of failing on an effect left unknown, and a polled call held for a raise has its poll window moved back by the time it was held.
418
+ - A web_search setting of deny or ask now applies to a Claude Code or Codex run's own web search at its next search, including a run that started while it was allow. Before, the setting was read only when the run started, so a run that started with native search kept searching after the setting changed.
419
+ - Claude Code: each WebSearch asks the run's gate before it runs, as a host tool's call does. A deny refuses it in the gate's words. An ask parks the run on the person with nothing searched; once they allow it, the model's next search with the same query runs once, with no second card.
420
+ - Codex: its search runs inside the provider's model request, so its proxy reads web_search's setting before each request and offers the provider its search only while the setting is allow. A failed read offers no search.
421
+ - `SessionIO.permission(tool)` (agentrun-kernel) is the host's setting for a harness's own tool at the time of the read. The runner reads it from the store each time. `ProviderPolicy.apply` may return a promise.
422
+ - A runner run whose plane resolves web_search to native now gets the harness's own search (#2458). The runner had built the run's environment without its plane, so Claude Code and Codex runs on a runner never had it on.
423
+ - A run's context reset and its summarized older context show on the Timeline with no held key in their text: the new context and the summary are words from the run, redacted by the host before the row is cut, as every other row a run's words reach.
424
+ - A web_search that resolves to the model provider's own search works again on the runner for pi (#2458). It used to answer "web_search has no model to search on" every time:
425
+ - A pi run's own web_search on an Anthropic or OpenAI model. That is what `auto` picks for pi, and `native` too. Each search now goes through the run's model proxy with the provider's search tool, and its searches are booked at the provider's price on top of its tokens.
426
+ - A learned workflow's call node whose web_search resolves native, on any harness.
427
+
428
+ Each run's search uses that run's own model route, never one shared by the whole process. Hand-written workflow agents were not affected: their web_search never resolves native. Both harness packages now export their `withWebSearches` price wrapper, and the Codex one its `webSearchUsd`. A claude-agent or codex run's own search is not switched on by this change.
429
+
430
+ A capped run holds a hosted search's fees with its tokens before the request is sent, at the most searches the request allows, so the fees can't pass the cap. The kernel's model proxy takes a policy's `feeMaxUsd(body)` and holds it as the request's `feeUsd`; a fee it can't bound leaves the request unmeasured. The proxy also hands `usageOf` the sent body as a second argument, so a pi request on OpenAI's Responses that offered no search reads 0 searches from its body, even when its answer names a search call.
431
+ - A gateway model written with its version's separators flipped (`gpt-5-4`) is priced when the catalog's entries differ only in a long-context `tiers` table: they are compared on their base price, and the entry that carries `tiers` prices it. Different base prices, or different tiers tables, still leave it unpriced.
432
+ - The server's log prints `event=run_started` (run, agent, kind) when a run is first claimed and `event=run_ended` (run, agent, status, cost_usd) when it ends, again after the run engine's removal dropped them. Each run has one of each, a reclaim after a lost runner prints no second start, and `AGENTRUN_LOG=quiet` keeps them. The runner beside the server writes them to the same stdout; a separate `agentrun-serve runner` process writes them to its own.
433
+ - A run started by hand (the console's Send request, `POST /agents/{id}/runs`) now reaches a GitHub repository. Before, only a run a GitHub trigger started, or one whose first message held a `https://github.com/<owner>/<repo>` URL, had one, so every github MCP call of any other run failed with "this run names no GitHub repository". The start body takes an optional `repo` (`owner/name`), which must be one the agent is bound to (a repository its GitHub triggers' `accept` names on `/repository/full_name`): another is 422 in words naming the repositories the agent is bound to, and a run's reach never grows past its agent's triggers. Left out, an agent bound to exactly one repository takes it, unless the first message names a repository itself. The console's start form has a `repo` field. The refusal a run with no repository gets now says to start it with a repository or bind the agent to one, and no longer reads as a connection problem.
434
+ - A capped run on the runner is priced the way the cap's `expected` mode says: each model request from the previous request of its session. The cache that request read or wrote counts at the cache-read price, and only its other input plus what the body grew by since counts at full price. Before, the runner gave the cap no previous request, so every step was held as a whole cache miss, and a run needed a cap several times what it spent (a 5-step Sonnet run that spends $0.04 needed $0.11). `strict` mode is unchanged: every token uncached. A side call (a title, a summary) is priced as a cache miss, as a host's own request already was.
435
+ - A pi run's cost counts every request it made. A learned workflow's model node, or a request on another model than the run's, is booked beside pi's own answers as a side call, and the run's view, its Timeline usage row and its stored cost now add it, where they read pi's answers alone (three requests booked at $0.000014 each read $0.000028). A request a lost runner left unanswered is booked cut once, however many of the next claim's bookings read it open: its hold and bound count once toward the cap, and its cost is unknown once, where a second booking could count it twice. A pi run's stored cost is now its booking's, as a CLI run's is: a run cancelled or stopped while its model's answer streamed reads its cost unknown (the cut request may be billed for what it streamed), never the $0 its cut answer carried.
436
+ - The console's Screen tab no longer says "Waiting for the browser" for a run that never opened one. `GET /v2/runs/{run_id}/computer`'s `none` answer now carries `session`, read from the run's journal: `unopened` (no browser step so far, so a run that only used `web_fetch` while it waits for its person), `opening` (a browser step that opens one has no result yet; a desktop or a phone from the run's start until its screen is up) or `closed` (the run opened one, which is not up now). The tab waits only while it is `opening`; it says "This run hasn't opened its browser. The agent's page shows here if it opens one." for `unopened`, that the browser isn't open now for `closed`, and "This run didn't open its browser." on an ended run that never did. A desktop or a phone is said in its own words.
437
+ - With accounts off, the API token can't write secrets. The console's cookie on a server with no accounts was a MAC of the token, and the printed link carried the token, so anyone holding the token (a run's process, an MCP client, a script) could compute that cookie or fetch it from the link, and save, replace or remove a secret as the console does. Now each start makes a launch code at random and prints the console's link with it (`Open <url>/?launch=<code>`, never the token); opening it gives the browser a console session, an id made at random and kept by the server, and only that session (on a loopback-bound server) writes secrets. A `?token=` link signs no browser in, and a cookie computed from the token is no session. The session lasts until the browser closes or the server stops; the next start prints its own link. A wrong launch code is logged as `auth_failed reason=wrong_launch_code`.
438
+ - `agentrun-serve import` titles a Claude Code run the way Claude Code shows it: the person's `/rename` (`custom-title`), else its own `ai-title`, else (in older files) the `summary` of this session's last message. A session with none is titled by the person's first words, never by a slash command's `<command-name>` markup, its `<local-command-stdout>` output or the "Caveat:" preamble before it. A session with no words of the person's at all (only `/resume` and `/model`, or a Codex or pi session kept by `--all`) is titled "Session in <folder>" in place of the markup, "codex session" or an empty title; when a held key touches the folder's name (one across the folder and its parent included), it keeps the generic "<source> session" and names no folder. An imported run with no answer no longer keeps a slash command's markup as its summary.
439
+ - A server started on a store an earlier release set up is still refused, but the refusal now says what to do: start on a new, empty data folder (`--data <new folder>`, with the Docker image's flags; on Render the Docker Command must be the whole start command, as it replaces the entrypoint too), add agents, MCP servers, keys and sign-ins again, and keep the old folder to stay on the earlier release; a store a later release set up says to run that release or later.
440
+ - A Timeline row for the agent's words that open with a fenced code block (a JSON answer written as ```json … ```) previews the code itself, on one line, up to the summary's 500 characters. Before, its summary was the fence's first line, so the console's Answer row read only "json…". The row's text, and the run's answer, keep the words whole, fence included.
441
+ - Setting a tool to allow now ends a run's wait on that tool at once. A run waiting for its owner's approval of a call went on only when someone answered it (or sent the run another message), even when the tool's setting had moved to allow since. Now `PUT /v2/settings/tools` wakes every run waiting on a call whose tool reads allow for that run, with its agent's own tool settings over the server's: the call runs, and its approval row reads "Allowed by the tool's setting". A run whose agent still sets the tool to ask, or whose tool still reads ask or deny, keeps waiting for its person. The same holds on pi, Claude Code and Codex runs.
442
+ - `web_fetch`'s text (a page read directly, `readPage`) leaves out what the page hides from everyone who reads it: an element with the `hidden` attribute, an inline `display:none` or `visibility:hidden`, a closed `<dialog>`, a class the page's own `<style>` sets to `display:none` or `visibility:hidden`, and the common pop-up and display-none utility classes (`mfp-hide`, `modal`, `d-none`, `hidden`, `hide`, `invisible`, `is-hidden`, `u-hidden`). A record page's help pop-ups, hidden until a click, were read as the record, so an agent took their boilerplate ("notice of intent to dissolve") for the company's own. Text only a screen reader reads (`sr-only`, `visually-hidden`, `wb-inv`, `screen-reader-text`) and text marked `aria-hidden` stay in the text: each is shown to someone. Only the page's live style elements count (none in a comment, a script, a template or a noscript, and only those for the screen); a later declaration or rule that shows the element wins (inline over a class, an author `display` over the `hidden` attribute), and where the outcome is unclear (an `!important` mix, classes in conflict, a class a compound selector shows) the text is kept. An element hidden by visibility alone is kept whole when anything shown inside it is set visible again (visibility is inherited and a descendant can override it; one that is itself, or sits inside, a `display:none` element shows nothing); `display:none` is not, so its element always goes. A class or style value is read with its character references decoded. A hidden element that no end tag closes is still read. Pages read through Parallel's extract are unchanged.
443
+ - Serve's last file-era durable readers are gone: `workflow/readers.ts` (`durableDoc`, `readJournal`, `withDurableFile`) and the WAL commit check only it used (`workflow/wal.ts`). Nothing in a source file imported them and none was in the package's public entry point; the tests that held the document store to what it writes now read the file through a small helper of their own.
444
+ - The faux desktop's Take over test takes over only after the agent's first look is done. It used to wait for the run read's computer `ready`, which says only that the run is past queued: on a loaded runner the take-over could land before the first look, that look parked under the person's hold as designed, the second look was never asked for, and the test waited out its 120 s timeout. Each of its waits is now bounded and fails in words.
445
+ - An attached Mac no longer offers exec, files or screen unless its owner grants them: Computerd's connection to the server it is paired with offers no `exec` or `files` group, says the new `screen.capture` feature is off, and refuses every `exec.run`, `files.*`, `tar.*` and `screen.*` call in words saying who can switch it on and where. The owner grants them in `~/Library/Application Support/Computerd/policy.json`, as `{"server": ["exec", "files", "screen"]}` (`files` covers tar). A stdio connection (the app's socket, over SSH or a local harness) offers them as before.
446
+
447
+ A run whose agent's computer is a sandbox on a paired computer is refused before it starts saying to give the agent that computer as the kind it serves (a desktop), no longer to update its driver.
448
+ - The console's Model field is a picker of the models the server offers for the agent's harness, with Custom... for any other. Each harness's list is served in capabilities as `harnesses[].models` (new, required): the current Claude 5 and GPT-6 models in the exact form that harness takes here (`anthropic/claude-sonnet-5-5` on a provider's own key, `openrouter/anthropic/claude-sonnet-5.5` when OpenRouter's is the only key, the host's own `provider/model-id` names behind a gateway, for the harnesses whose wire goes through it), only those the save takes and the harness's run accepts (`harness/3`: capabilities' harness entries now carry `models`), only those the harness runs, empty for a harness that does not run here.
449
+ A model named in a form its harness does not take is refused at save in words that name the form: `On pi, a model is <provider>/<model id>, like anthropic/claude-sonnet-5-5 or openrouter/anthropic/claude-sonnet-5.5: anthropic/claude-sonnet-5.5 is not a model pi runs here. Did you mean anthropic/claude-sonnet-5-5?` The examples are the forms this server's keys run, and the likely id is named when a dot for a dash, a missing provider or a short name ("Sonnet 5.5") makes it obvious. The catalog's own refusal text no longer reaches a person.
450
+ - A capped run's cap counts what its learning spent on its behalf, so the run and its grades never pass the cap together.
451
+ - Before, a follow-up on a run that learned was held only to the run's own spend: an earlier round's grade, which runs as a learning run of its own, was not counted, and the run could end up past its cap by that grade.
452
+ - Every gate of the run now reads its own spend plus what its learning runs took: a grade that ended at its cost, and one still under way at its own cap, the most it may take. That covers the model and paid-tool gate on pi and on the CLI harnesses (claude-agent, codex, opencode), the end of a run whose spend passed its cap, the wrap-up note and the tools' wrap-up, the check before a later round looks back, and the cap each later grade runs under.
453
+ - A follow-up that doesn't fit parks the run for a raise, as at any spend limit. Its budget card counts the grades in what the run has spent. An uncapped run is unchanged.
454
+ - Kernel: `RunSessions.beside()`, when given, is added to the run's spend at each admission (`runBooking`).
455
+ - A pi run whose turn a stop or a cancel cut no longer reads its cost short in the moment between the turn reading over and the runner booking the cut. The run's status reads `input_required` as soon as pi settles the turn's message aborted, but the request the stop cut kept reading as in flight until the runner's end mark landed, which is after the session's proxy sees its upstream end and can come seconds later on a loaded machine. In that window `GET /runs/{id}` and its timeline's usage row left the cut request out of `unpriced`: a first stop read the known sum as the run's whole cost (`usd: 0.0003` where it is unknown), a second stop one charge with no price where there are two. A run read while its newest turn is cut now counts a marked request with no answer or end, and a paid call marked with no charge, as a charge with no price, as a settled read counts them; the end mark landing later changes nothing. A request the stop withdrew before it left reads cut at an unknown price until its withdrawal is written: never less than it cost.
456
+
5
457
  ## 0.1.0-beta.36 (2026-11-13)
6
458
 
7
459
  - `PUT /v2/workspace/archil` no longer accepts `diskId`; sending it is a 422. Drop `diskId` and send `{ region, s3Url, image?, keys? }`. In Archil mode there is no server-wide disk anymore: each agent gets its own (#2261). Before you upgrade: in Archil mode, an agent's files from before this release stay on the old server disk at Archil; the agent starts on a new disk of its own.