@parcha/agentrun-serve 0.1.0-beta.43 → 0.1.0-beta.45

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 (388) hide show
  1. package/CHANGELOG.md +231 -0
  2. package/README.md +580 -320
  3. package/dist/acp-package.d.ts +28 -0
  4. package/dist/acp-package.js +23 -0
  5. package/dist/adapter-facts.d.ts +8 -1
  6. package/dist/adapter-facts.js +9 -1
  7. package/dist/adapters.d.ts +5 -0
  8. package/dist/adapters.js +36 -3
  9. package/dist/agent-delete.d.ts +50 -0
  10. package/dist/agent-delete.js +125 -0
  11. package/dist/agents-store.d.ts +9 -3
  12. package/dist/agents-store.js +22 -8
  13. package/dist/agents.d.ts +5 -1
  14. package/dist/agents.js +8 -4
  15. package/dist/api-only.d.ts +8 -3
  16. package/dist/api-only.js +10 -4
  17. package/dist/archil-routes.d.ts +5 -1
  18. package/dist/archil-routes.js +57 -2
  19. package/dist/browser-wait-ended.d.ts +2 -0
  20. package/dist/browser-wait-ended.js +2 -0
  21. package/dist/calendar/ics-faux.d.ts +3 -1
  22. package/dist/calendar/ics-faux.js +12 -2
  23. package/dist/calendar/tools.js +5 -2
  24. package/dist/chatgpt-plan.js +3 -1
  25. package/dist/claude-login.d.ts +135 -0
  26. package/dist/claude-login.js +244 -0
  27. package/dist/cli.js +92 -22
  28. package/dist/composio-preset.d.ts +4 -3
  29. package/dist/composio-preset.js +81 -11
  30. package/dist/composio-triggers.d.ts +34 -2
  31. package/dist/composio-triggers.js +261 -31
  32. package/dist/computer-attach.d.ts +40 -5
  33. package/dist/computer-attach.js +130 -15
  34. package/dist/computer-keys.d.ts +3 -0
  35. package/dist/computer-keys.js +7 -1
  36. package/dist/computer-live.js +3 -2
  37. package/dist/computer-lost.d.ts +11 -0
  38. package/dist/computer-lost.js +19 -0
  39. package/dist/computer-record.d.ts +10 -2
  40. package/dist/computer-record.js +50 -18
  41. package/dist/computer-setting.d.ts +1 -0
  42. package/dist/computer-setting.js +2 -2
  43. package/dist/computers.d.ts +21 -10
  44. package/dist/computers.js +39 -28
  45. package/dist/console/assets/index-3O2Yl6hZ.js +701 -0
  46. package/dist/console/assets/index-DaFsZuzQ.css +1 -0
  47. package/dist/console/index.html +2 -2
  48. package/dist/decisions.d.ts +1 -1
  49. package/dist/dial-relay.d.ts +29 -0
  50. package/dist/dial-relay.js +94 -0
  51. package/dist/email/tools.js +10 -5
  52. package/dist/env-proxy.d.ts +2 -0
  53. package/dist/env-proxy.js +35 -0
  54. package/dist/errors.d.ts +4 -1
  55. package/dist/errors.js +10 -4
  56. package/dist/faux-computers.d.ts +8 -2
  57. package/dist/faux-computers.js +83 -6
  58. package/dist/harness-archive.d.ts +67 -0
  59. package/dist/harness-archive.js +177 -0
  60. package/dist/harness-goose.d.ts +34 -0
  61. package/dist/harness-goose.js +87 -0
  62. package/dist/harness-install.d.ts +21 -0
  63. package/dist/harness-install.js +24 -11
  64. package/dist/harness-opencode/adapter.js +1 -1
  65. package/dist/harness-table.d.ts +59 -3
  66. package/dist/harness-table.js +119 -14
  67. package/dist/harness.d.ts +17 -1
  68. package/dist/harness.js +22 -11
  69. package/dist/host.d.ts +12 -10
  70. package/dist/host.js +19 -16
  71. package/dist/import-worker.d.ts +3 -0
  72. package/dist/import-worker.js +7 -5
  73. package/dist/import.d.ts +22 -1
  74. package/dist/import.js +141 -28
  75. package/dist/key-check.js +3 -0
  76. package/dist/learn/audit.d.ts +6 -6
  77. package/dist/learn/audit.js +3 -7
  78. package/dist/learn/check.d.ts +26 -89
  79. package/dist/learn/check.js +58 -336
  80. package/dist/learn/commit.d.ts +63 -90
  81. package/dist/learn/commit.js +124 -316
  82. package/dist/learn/compile.d.ts +53 -50
  83. package/dist/learn/compile.js +88 -103
  84. package/dist/learn/corrections.d.ts +13 -0
  85. package/dist/learn/corrections.js +23 -0
  86. package/dist/learn/delete.d.ts +17 -0
  87. package/dist/learn/delete.js +42 -0
  88. package/dist/learn/folder.d.ts +35 -47
  89. package/dist/learn/folder.js +118 -134
  90. package/dist/learn/index.d.ts +3 -5
  91. package/dist/learn/index.js +6 -9
  92. package/dist/learn/learning.sh +45 -15
  93. package/dist/learn/promote.d.ts +20 -2
  94. package/dist/learn/promote.js +17 -4
  95. package/dist/learn/{skills.d.ts → workflow-draft.d.ts} +34 -38
  96. package/dist/learn/{skills.js → workflow-draft.js} +65 -59
  97. package/dist/learn/workflow-nodes.d.ts +22 -1
  98. package/dist/learn/workflow-nodes.js +29 -10
  99. package/dist/learned-workflow.js +2 -2
  100. package/dist/learning-cost.d.ts +127 -13
  101. package/dist/learning-cost.js +142 -10
  102. package/dist/learning-routes.d.ts +99 -170
  103. package/dist/learning-routes.js +199 -420
  104. package/dist/learning-run.d.ts +19 -40
  105. package/dist/learning-run.js +23 -93
  106. package/dist/learning-setting.d.ts +4 -4
  107. package/dist/learning-setting.js +6 -6
  108. package/dist/learning-words.d.ts +28 -74
  109. package/dist/learning-words.js +64 -162
  110. package/dist/learning.d.ts +62 -393
  111. package/dist/learning.js +101 -651
  112. package/dist/listen-first.d.ts +30 -0
  113. package/dist/listen-first.js +115 -0
  114. package/dist/live-reach.d.ts +25 -2
  115. package/dist/live-reach.js +46 -4
  116. package/dist/llms.txt +2 -1
  117. package/dist/local-models.d.ts +3 -11
  118. package/dist/local-models.js +5 -6
  119. package/dist/mcp-servers-store.d.ts +16 -16
  120. package/dist/model-form.js +6 -5
  121. package/dist/model.d.ts +12 -4
  122. package/dist/model.js +41 -16
  123. package/dist/native/binding.js +1 -1
  124. package/dist/native/connection.js +1 -1
  125. package/dist/native/discovery.js +1 -1
  126. package/dist/native/instructions.d.ts +3 -0
  127. package/dist/native/instructions.js +5 -3
  128. package/dist/native/remote-worker-bridge.js +9 -43
  129. package/dist/native/remote.d.ts +8 -15
  130. package/dist/native/remote.js +3 -3
  131. package/dist/native/schema.js +1 -1
  132. package/dist/native/types.d.ts +2 -2
  133. package/dist/openapi.js +375 -347
  134. package/dist/owner.d.ts +8 -0
  135. package/dist/owner.js +11 -0
  136. package/dist/paid-calls.d.ts +14 -0
  137. package/dist/paid-calls.js +31 -1
  138. package/dist/particle-provider.d.ts +11 -0
  139. package/dist/particle-provider.js +135 -0
  140. package/dist/place.d.ts +8 -3
  141. package/dist/place.js +13 -9
  142. package/dist/port-models.d.ts +12 -4
  143. package/dist/port-models.js +28 -11
  144. package/dist/print.d.ts +27 -0
  145. package/dist/print.js +21 -0
  146. package/dist/provider.d.ts +7 -0
  147. package/dist/provider.js +30 -2
  148. package/dist/reflect-range.js +2 -3
  149. package/dist/run-launch.d.ts +14 -28
  150. package/dist/run-launch.js +9 -12
  151. package/dist/run-learning-served.d.ts +16 -90
  152. package/dist/run-listing.d.ts +34 -0
  153. package/dist/run-listing.js +128 -0
  154. package/dist/run-model-key.d.ts +64 -0
  155. package/dist/run-model-key.js +147 -0
  156. package/dist/run-timeline-served.js +5 -3
  157. package/dist/run-trace.d.ts +97 -0
  158. package/dist/run-trace.js +253 -0
  159. package/dist/run-view.d.ts +15 -0
  160. package/dist/run-view.js +9 -0
  161. package/dist/runnable.js +2 -1
  162. package/dist/runner/adapter-loop.d.ts +14 -6
  163. package/dist/runner/adapter-loop.js +25 -14
  164. package/dist/runner/adapter-run-spec.d.ts +22 -7
  165. package/dist/runner/adapter-run-spec.js +130 -77
  166. package/dist/runner/adapters/index.d.ts +4 -2
  167. package/dist/runner/adapters/index.js +35 -4
  168. package/dist/runner/adapters/pi.d.ts +4 -12
  169. package/dist/runner/adapters/pi.js +2 -2
  170. package/dist/runner/audit.d.ts +5 -1
  171. package/dist/runner/audit.js +31 -12
  172. package/dist/runner/beside.d.ts +7 -2
  173. package/dist/runner/beside.js +41 -9
  174. package/dist/runner/claim-secrets.d.ts +66 -1
  175. package/dist/runner/claim-secrets.js +136 -3
  176. package/dist/runner/cli-run-spec.d.ts +2 -1
  177. package/dist/runner/cli-run-spec.js +82 -59
  178. package/dist/runner/commands.d.ts +3 -6
  179. package/dist/runner/conformance/harness.d.ts +6 -0
  180. package/dist/runner/conformance/harness.js +16 -5
  181. package/dist/runner/dispatch.d.ts +2 -2
  182. package/dist/runner/end-of-run.d.ts +6 -14
  183. package/dist/runner/end-of-run.js +8 -33
  184. package/dist/runner/feedback-round.d.ts +5 -4
  185. package/dist/runner/feedback-round.js +14 -10
  186. package/dist/runner/github-app.js +3 -1
  187. package/dist/runner/harness-loops.d.ts +0 -8
  188. package/dist/runner/harness-loops.js +30 -56
  189. package/dist/runner/held.d.ts +170 -0
  190. package/dist/runner/held.js +57 -0
  191. package/dist/runner/journal-kinds.d.ts +7 -3
  192. package/dist/runner/journal-kinds.js +2 -3
  193. package/dist/runner/learned-first.d.ts +40 -0
  194. package/dist/runner/learned-first.js +32 -0
  195. package/dist/runner/learning-end.d.ts +77 -66
  196. package/dist/runner/learning-end.js +250 -299
  197. package/dist/runner/learning-seed.d.ts +15 -33
  198. package/dist/runner/learning-seed.js +24 -45
  199. package/dist/runner/loop-contract.d.ts +8 -3
  200. package/dist/runner/loop-contract.js +4 -0
  201. package/dist/runner/loop.js +6 -2
  202. package/dist/runner/main.d.ts +18 -9
  203. package/dist/runner/main.js +82 -22
  204. package/dist/runner/mcp-run.d.ts +11 -0
  205. package/dist/runner/mcp-run.js +67 -0
  206. package/dist/runner/memory-claim.d.ts +14 -6
  207. package/dist/runner/memory-claim.js +18 -9
  208. package/dist/runner/model-route.d.ts +7 -4
  209. package/dist/runner/model-route.js +22 -10
  210. package/dist/runner/native-loop.d.ts +0 -7
  211. package/dist/runner/native-loop.js +9 -101
  212. package/dist/runner/promotion.d.ts +13 -6
  213. package/dist/runner/promotion.js +63 -17
  214. package/dist/runner/reflect-hook.d.ts +64 -91
  215. package/dist/runner/reflect-hook.js +112 -206
  216. package/dist/runner/run-channel.d.ts +43 -0
  217. package/dist/runner/run-channel.js +467 -0
  218. package/dist/runner/run-child-host.d.ts +169 -0
  219. package/dist/runner/run-child-host.js +1222 -0
  220. package/dist/runner/run-child.d.ts +1 -0
  221. package/dist/runner/run-child.js +254 -0
  222. package/dist/runner/run-errors.d.ts +2 -0
  223. package/dist/runner/run-errors.js +20 -0
  224. package/dist/runner/runner.js +58 -9
  225. package/dist/runner/sdk-ask.d.ts +78 -0
  226. package/dist/runner/sdk-ask.js +158 -0
  227. package/dist/runner/sdk-loop.d.ts +2 -4
  228. package/dist/runner/sdk-loop.js +29 -49
  229. package/dist/runner/store-secrets.d.ts +5 -3
  230. package/dist/runner/store-secrets.js +14 -6
  231. package/dist/runner/workflow-first.d.ts +5 -0
  232. package/dist/runner/workflow-first.js +4 -0
  233. package/dist/runner/workflow-spec.js +17 -4
  234. package/dist/runs-over-store.d.ts +21 -32
  235. package/dist/runs-over-store.js +44 -41
  236. package/dist/sdk/runs.d.ts +6 -11
  237. package/dist/sdk/runs.js +20 -41
  238. package/dist/sdk/schema.js +3 -4
  239. package/dist/sdk/workflows.d.ts +1 -1
  240. package/dist/seal-key.d.ts +5 -0
  241. package/dist/seal-key.js +7 -0
  242. package/dist/secrets.d.ts +3 -0
  243. package/dist/secrets.js +16 -3
  244. package/dist/server.d.ts +119 -83
  245. package/dist/server.js +1121 -419
  246. package/dist/sign-ins-store.d.ts +8 -0
  247. package/dist/sign-ins-store.js +36 -1
  248. package/dist/skills.js +1 -1
  249. package/dist/store/index.d.ts +3 -3
  250. package/dist/store/index.js +2 -2
  251. package/dist/store/journal/storage.js +3 -0
  252. package/dist/store/postgres/migrations/0017_run_listing.sql +83 -0
  253. package/dist/store/postgres/migrations/0018_trigger_template.sql +6 -0
  254. package/dist/store/postgres/migrations/0019_runner_relays.sql +28 -0
  255. package/dist/store/schema.d.ts +53 -4
  256. package/dist/store/schema.js +137 -6
  257. package/dist/store/seal.d.ts +20 -2
  258. package/dist/store/seal.js +24 -8
  259. package/dist/store/sqlite/connection.d.ts +2 -0
  260. package/dist/store/sqlite/connection.js +3 -1
  261. package/dist/store/sqlite/run-launch.d.ts +4 -1
  262. package/dist/store/sqlite/run-launch.js +12 -0
  263. package/dist/store/sqlite/run-patch.d.ts +0 -17
  264. package/dist/store/sqlite/run-patch.js +4 -33
  265. package/dist/store/sqlite/store.d.ts +3 -2
  266. package/dist/store/sqlite/store.js +360 -75
  267. package/dist/store/sqlite/worker.js +25 -0
  268. package/dist/store/store.d.ts +231 -39
  269. package/dist/store/store.js +25 -3
  270. package/dist/store-reads/analytics.js +11 -1
  271. package/dist/store-reads/learning.d.ts +131 -194
  272. package/dist/store-reads/learning.js +292 -301
  273. package/dist/store-reads/loop.d.ts +0 -1
  274. package/dist/store-reads/loop.js +1 -1
  275. package/dist/store-reads/stats.js +13 -3
  276. package/dist/store-view.d.ts +34 -2
  277. package/dist/store-view.js +108 -41
  278. package/dist/telemetry.d.ts +59 -0
  279. package/dist/telemetry.js +153 -0
  280. package/dist/template-eval.d.ts +3 -6
  281. package/dist/template-eval.js +22 -36
  282. package/dist/templates.d.ts +2 -1
  283. package/dist/templates.js +6 -3
  284. package/dist/timeline/index.d.ts +1 -1
  285. package/dist/timeline/index.js +1 -1
  286. package/dist/timeline/timeline.d.ts +5 -1
  287. package/dist/timeline/timeline.js +16 -0
  288. package/dist/tool-gate.d.ts +0 -7
  289. package/dist/tool-gate.js +1 -15
  290. package/dist/tool-keys-store.d.ts +1 -1
  291. package/dist/tool-keys.d.ts +6 -4
  292. package/dist/tool-keys.js +12 -6
  293. package/dist/tool-plane.d.ts +12 -12
  294. package/dist/tools.d.ts +13 -13
  295. package/dist/tools.js +29 -9
  296. package/dist/trigger-adapter.d.ts +3 -0
  297. package/dist/trigger-adapters.d.ts +4 -0
  298. package/dist/trigger-adapters.js +13 -0
  299. package/dist/trigger-composio.d.ts +58 -1
  300. package/dist/trigger-composio.js +160 -6
  301. package/dist/triggers.d.ts +64 -5
  302. package/dist/triggers.js +141 -17
  303. package/dist/validate.d.ts +11 -7
  304. package/dist/validate.js +9 -8
  305. package/dist/webhooks.d.ts +4 -1
  306. package/dist/webhooks.js +11 -4
  307. package/dist/workspace/agent-computer.d.ts +2 -0
  308. package/dist/workspace/agent-computer.js +2 -0
  309. package/dist/workspace/archil-claim.d.ts +7 -0
  310. package/dist/workspace/archil-claim.js +29 -0
  311. package/dist/workspace/archil.d.ts +9 -1
  312. package/dist/workspace/archil.js +165 -3
  313. package/dist/workspace/attach.d.ts +3 -1
  314. package/dist/workspace/attach.js +2 -0
  315. package/dist/workspace/attached-computers.d.ts +16 -5
  316. package/dist/workspace/attached-computers.js +25 -9
  317. package/dist/workspace/computer-deps.js +1 -1
  318. package/dist/workspace/computer-for-claim.d.ts +22 -8
  319. package/dist/workspace/computer-for-claim.js +339 -46
  320. package/dist/workspace/computer-hold.js +2 -1
  321. package/dist/workspace/computer-kept.d.ts +11 -1
  322. package/dist/workspace/computer-kept.js +24 -3
  323. package/dist/workspace/resolve-computer.d.ts +41 -21
  324. package/dist/workspace/resolve-computer.js +172 -64
  325. package/dist/workspace/revision-skills.d.ts +1 -2
  326. package/dist/workspace/revision-skills.js +3 -4
  327. package/dist/workspace/run-workspace.d.ts +1 -1
  328. package/dist/workspace/run-workspace.js +5 -0
  329. package/dist/workspace/synced-folder.d.ts +85 -0
  330. package/dist/workspace/synced-folder.js +230 -0
  331. package/dist/workspace/workspace.d.ts +4 -0
  332. package/launcher/agentrun-serve +1 -1
  333. package/package.json +10 -9
  334. package/templates/README.md +7 -7
  335. package/templates/inbound-lead/agent.md +3 -3
  336. package/templates/inbound-lead/evals/learned-correction/case.yaml +3 -3
  337. package/templates/inbound-lead/evals/learned-correction/fixtures/corrections.md +1 -0
  338. package/templates/inbound-lead/evals/learned-correction/graders/applies-correction.md +22 -0
  339. package/templates/inbound-lead/evals/learned-correction/graders/learned-origin.md +1 -1
  340. package/templates/inbound-lead/evals/learned-correction/prompt.md +1 -1
  341. package/templates/inbound-lead/lead.schema.json +6 -5
  342. package/templates/inbound-lead/rules/RUBRIC.md +4 -4
  343. package/templates/inbound-lead/skills/lead/SKILL.md +4 -4
  344. package/templates/market-monitor/evals/learned-preference/case.yaml +4 -4
  345. package/templates/market-monitor/evals/learned-preference/fixtures/corrections.md +1 -0
  346. package/templates/market-monitor/evals/learned-preference/graders/omits-junior-post.md +3 -3
  347. package/templates/market-monitor/evals/learned-preference/prompt.md +1 -1
  348. package/templates/release-notes/evals/learned-style/case.yaml +4 -4
  349. package/templates/release-notes/evals/learned-style/fixtures/corrections.md +1 -0
  350. package/templates/release-notes/evals/learned-style/graders/same-changes.md +2 -2
  351. package/templates/release-notes/evals/learned-style/prompt.md +1 -1
  352. package/dist/console/assets/index-BrcDSBD8.css +0 -1
  353. package/dist/console/assets/index-Bz6IWncl.js +0 -711
  354. package/dist/learn/grade.d.ts +0 -138
  355. package/dist/learn/grade.js +0 -682
  356. package/dist/learn/notes.d.ts +0 -81
  357. package/dist/learn/notes.js +0 -178
  358. package/dist/learn/reflect.d.ts +0 -77
  359. package/dist/learn/reflect.js +0 -228
  360. package/dist/learn/relevance.d.ts +0 -24
  361. package/dist/learn/relevance.js +0 -91
  362. package/dist/learn/seed-check.d.ts +0 -74
  363. package/dist/learn/seed-check.js +0 -103
  364. package/dist/learning-batch.d.ts +0 -291
  365. package/dist/learning-batch.js +0 -600
  366. package/dist/learning-evals.d.ts +0 -33
  367. package/dist/learning-evals.js +0 -98
  368. package/dist/native/context.d.ts +0 -6
  369. package/dist/native/context.js +0 -22
  370. package/dist/propose.d.ts +0 -52
  371. package/dist/propose.js +0 -224
  372. package/dist/runner/learning-ask.d.ts +0 -47
  373. package/dist/runner/learning-ask.js +0 -128
  374. package/dist/runner/learning-dispatch.d.ts +0 -45
  375. package/dist/runner/learning-dispatch.js +0 -99
  376. package/dist/runner/learning-factory.d.ts +0 -16
  377. package/dist/runner/learning-factory.js +0 -50
  378. package/dist/runner/learning-loop.d.ts +0 -273
  379. package/dist/runner/learning-loop.js +0 -521
  380. package/dist/usage.d.ts +0 -11
  381. package/dist/usage.js +0 -11
  382. package/templates/inbound-lead/evals/learned-correction/fixtures/learning/MEMORY.md +0 -1
  383. package/templates/inbound-lead/evals/learned-correction/fixtures/learning/no-agencies.md +0 -14
  384. package/templates/inbound-lead/evals/learned-correction/graders/applies-note.md +0 -21
  385. package/templates/market-monitor/evals/learned-preference/fixtures/learning/MEMORY.md +0 -1
  386. package/templates/market-monitor/evals/learned-preference/fixtures/learning/skip-junior-job-posts.md +0 -8
  387. package/templates/release-notes/evals/learned-style/fixtures/learning/MEMORY.md +0 -1
  388. package/templates/release-notes/evals/learned-style/fixtures/learning/say-agent-not-bot.md +0 -13
package/CHANGELOG.md CHANGED
@@ -2,6 +2,237 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.0-beta.45 (2026-11-18)
6
+
7
+ **Breaking:**
8
+
9
+ - An agent learns two things now: its owner's corrections and its compiled workflow. Notes, learned skills, the end-of-run look-back turn and the learning grader are gone. <!-- changes/delete-notes.md -->
10
+ - Corrections: an owner's words after a run (a grade's words, or a message after the job's first) become one line of the agent's `corrections.md`, with no model turn. Every run reads the file whole under `# Learned`. It holds at most 2048 bytes; a line that would pass the cap, or that holds a secret, a secret's shape or a hidden character, is refused whole and the run's learning says why. `GET /v2/agents/{agent_id}/learning/corrections` reads it with its ETag, and `PUT` replaces it whole under `If-Match` (CLI: `agentrun learning corrections`, `agentrun learning write-corrections`; client: `learning.corrections`, `learning.writeCorrections`).
11
+ - The compiled workflow is committed as soon as its checks and dry run pass, with no grader: its one promotion check against the agent's own answers decides whether it serves.
12
+ - A grade's `feedback` round is `correction` (was `look_back`). The run's learning carries `corrections` (lines added) and `workflows`; `given`, `read`, `learned`, `pending` notes and the grader's `verdict` are gone, and so are the `proposed` state and the `unparsed`, `propose_failed`, `grader`, `grade_failed` and `reflect_timeout` reasons.
13
+ - Removed routes: `GET .../learning/notes`, `PUT .../learning/files/{file}`, `POST .../learning/workflows/{name}/promote`, the learning batches and the learning evals. `GET .../learning` answers `{agent, main, corrections, workflows, log, counts, impact}`. `approve`, `retire` and `restore` act on a workflow's `README.md`.
14
+ - Removed server options: `--learning-budget` (`AGENTRUN_SERVE_LEARNING_BUDGET`) and `--grade-model` (`AGENTRUN_SERVE_GRADE_MODEL`); `capabilities.learning.grade_model` is gone. A definition's `learning: "notes"` is refused.
15
+ - A native source (Claude Code or Codex, local or through the connector) is handed no learned skills and runs no grader turn: the connector's remote `grade` command is gone. A native target's `capabilities.notes` and `capabilities.skills` are one `capabilities.learning`: whether its runs may learn.
16
+ - Upgrading: read a native target's `capabilities.learning` in place of `notes` and `skills`; move what an agent should always follow into its `corrections.md` (one `- ` line each) with the PUT (JS client: `learning.notes` and `learning.write` are now `learning.corrections` and `learning.writeCorrections`; Python client: `learning.notes` and `learning.write` are now `learning.corrections` and `learning.write_corrections`), and stop reading `learning/notes`, a run's `given`/`read`/`learned`/`pending`/`verdict`, and `feedback: "look_back"`. Existing notes and learned skills on an agent's `main` are no longer served; delete the flags above from your start command.
17
+ - The Learning tab tells one story: one run numbering, one takeover, one cheaper ratio and one figure for what learning costs a run, each read from the server once. <!-- changes/learning-tab-one-story.md -->
18
+ - `GET /agents/{id}/learning/cost` numbers the runs that do a job as the bill does: a run's `n` is its job's number and a replay run's is null (it does no job). `summary.takeover` is the bill's `promoted` run, the first run a learned workflow served, alone or handed back, found by its place in the series, never by a start time two queued runs can share. Each run has `digest`, the workflow revision that ran it (null for the agent's own), `took_over`, true on the first run its revision served (over every run, `limit` aside: where a promotion's flag stands), and `audited`, whether an audit's shadow run checked it, in place of `learned_revision` (the learning folder's commit, which moved with every audit). The CSV has `digest` and `audited` columns. `bill.learning_usd` is what learning booked beyond the jobs' own cost, and `bill.revisions[].served` counts every run a revision served, not only the ones that carry its spend.
19
+ - `GET /agents/{id}/learning`'s `impact` sides are `runs` and `median_duration_s` only: `median_cost_usd`, `cost_runs` and `median_learning_usd` are gone. What a run costs is the cost read's all-in `summary.before` and `summary.after` (a median of the job's own cost left learning out and said a second ratio, -86% beside 2.0x cheaper), and what learning itself costs a run is the bill's `learning_usd` over its runs, which counts the audits' shadow runs and replays a median of mostly-zero rows read as $0.
20
+ - The console's Learning tab: the cost chart, its table and markers number jobs only (the replays between two jobs are spread across the gap, unnumbered, each hovered on its own), and the takeover line is its P marker's line, the P on the run the server marks `took_over`; the cheaper stage says the chart's ratio ("7.7x cheaper", never "About 8x"); the "Since it learned" card has no cost of a run of its own; answer times show to a tenth under 10 seconds, with the change of the times shown; "Learning itself" is the bill's figure a run, booked; the levels and the bill's end labels sit in a gutter right of the plot, off the lines; the bill's dollar axis tops out just above its largest figure; an audited row says so in the table; the audit card counts the audited runs the ledger has not scored yet; and the captions say compile turn and audit shadow run, not look-back, grade or notes.
21
+ - Upgrading: read a cost run's `digest`, `took_over` and `audited` instead of `learned_revision`, allow a null `n` on a replay run, read a run's cost before and after learning from the cost read's `summary` instead of `impact`'s `median_cost_usd`, and what learning costs a run from `bill.learning_usd` instead of `impact.after.median_learning_usd`.
22
+ - The container image's default command now starts the server and its runner as two processes, so a busy runner's journal writes no longer hold up the API's reads. The command is `server-and-runner --data /data --listen 0.0.0.0 --port 7340 --drain-timeout 6s`: the server with `--no-runner`, and one runner on the same data once the server answers `GET /v2/health`, with the server's `--faux`, `--faux-browser`, `--max-runs` and each `--harness-module` (a runner takes `--faux-browser` now, with `--faux`, as the server does). `render.yaml` and the Railway template run that command too. A `docker stop` reaches both, and if either exits, the other stops and the container exits non-zero. <!-- changes/run-list-rows-image-two-processes.md -->
23
+ Who breaks: an operator who gives the image server options of their own (`docker run IMAGE --data /data --port 7340`) still gets one process with the runner inside it. Put `server-and-runner` before those options to get the two processes. `runner ...` and the other commands run as before.
24
+ A paired computer needs the runner in the server's process: an operator who uses one gives the image the server's options alone, without `server-and-runner`. On a server started with `--no-runner` (the image's default included), the pairing code, the pair answer and each paired computer in `GET /v2/computers` carry `runs_refused`, which says no run there can use it and gives that fix; the console shows it with the code and on the computer's row. A run that names such a computer is refused in the same words. So is a run on a provider whose machines dial the server (Fly Machines and Cloudflare): a runner in a process of its own has no socket to take them, and its create refuses naming the same fix. Such a server says it before any run: each dial provider's row in `GET /v2/computers` carries `runs_refused` (every provider row has the field, null where runs can use it), the console shows it on the row, and the provider's test (`POST /v2/computers/{provider}/test`, the console's Test connection) fails in those words with no call to the vendor. The computer package says whether a provider's machines dial from its descriptor (`connect`, read by `connectOf(descriptor, options)`), the same answer its host's `facts.connect` gives; `connectOf` replaces the internal `hosted/values` helper of that name.
25
+
26
+ - `GET /v2/runs` (and an agent's runs) reads each run's listing from its row: the status filter, the order, the limit and the cursor are one query, so a list costs the same at 10 runs and at thousands, however long their journals. Each item is what `GET /v2/runs/{id}` gives for the run, as before. The SQLite store goes from version 11 to 12 and Postgres takes migration 0017. The server brings the store up at its first start; a runner refuses a version 11 store until the server has. After the upgrade the server builds each run's listing in the background, runs no runner holds first; a list that reaches a run not built yet builds it then.
27
+ - `GET /settings/tool-keys` (`listToolKeys`) names a key row's harnesses by harness id: `items[].harnesses` is an array of strings (a harness id, `HARNESS_ID_PATTERN`), no longer of the four built-in names, since a harness its owner installs (`goose`) is named there once it is installed. The TypeScript client's and the console's types say `string[]`, and so does the Python client. <!-- changes/tool-keys-harnesses-ids.md -->
28
+ Upgrading: a caller that switched over the four names (`pi`, `claude-agent`, `codex`, `opencode`) handles any other id too, for example by showing it as given.
29
+ - `GET /v2/agents/{id}/learning` says of each workflow whether it serves: `workflows[].status` is `serving`, `checking`, `held` or `stopped` (the state `GET .../learning/promotions` gives it, from the same records; one with no promotion record yet reads `checking`; a champion the cost rule stopped running first reads `stopped` in both, never `serving`), else `pending` or `retired` as its README.md says. `active` is gone: a reader that tested `status === "active"` for a workflow given to runs tests that it is neither `pending` nor `retired`. <!-- changes/learning-view-status.md -->
30
+
31
+ **Changes:**
32
+
33
+ - `DELETE /v2/agents/{id}` deletes an agent another system owns (one an inline run made with `external`), whole, and answers 204. <!-- changes/agent-delete.md -->
34
+ - The order is fixed. First the agent refuses new runs, and that refusal is stored, so a run POST, a message that would start a run, a trigger firing, a schedule and an SDK run are all refused (409 `agent_not_runnable`, "being deleted"); then its runs and learning runs are cancelled and waited on until each is final. Then its learning is deleted: every file of its learning folder, then its promotions and grades. While learning work is in flight that delete refuses, and the DELETE answers 409 `learning_busy`, naming the work in `details.runs`, with the agent left refusing runs. Last, its triggers, sign-ins, own computer, disk, folders, kept idempotent answers, runs (journal, launch records, channel posts, changes) and revisions are deleted, then the agent.
35
+ - Nothing the agent owns elsewhere is left behind: a trigger's registration upstream, a saved sign-in at its vendor, its own computer and its Archil disk are each deleted there before the record here that names them. While one is not (the vendor or Archil failing, or Archil turned off on this server with a disk still stored on the agent), the DELETE answers 503 `unavailable` (retryable) with the agent kept and refusing runs.
36
+ - A run whose launch named an Archil disk (`archil_disk`, the caller's) kept its folder there: that folder is deleted on the disk before the run's launch record, and the disk and everything else on it are kept; a disk Archil says is gone has nothing left to delete. While Archil refuses (a computer still holds the folder, Archil is not reached or is off), the DELETE answers 503 the same way.
37
+ - From the first step the agent also takes no new trigger, not even one made off (Composio registers those too), no trigger moved to it or turned on, and no write to its home or its learning (a home file's write or delete, a corrections.md edit, a learned workflow's approve, retire or restore, a run's grade, a replay): each is 409 `agent_not_runnable`. Such a write sent while a DELETE runs waits for it, then finds the agent gone (404), so none lands after the learning went. A trigger that reached it anyway keeps the agent (503 `unavailable`) until the next DELETE removes that trigger upstream and here. A kept idempotent answer whose removal failed to save is removed by the next DELETE, and a request still at work under its key when the DELETE removed its run keeps no answer, so a key never replays a deleted run, a restart included.
38
+ - A trigger's adapter settings (a webhook's secret, a poll's cursor) are removed before its row, on this delete and on `DELETE /v2/triggers/{id}`, so a failure between the two leaves the trigger for the next DELETE to find.
39
+ - Sending the DELETE again finishes the job after a crash at any step; once it has finished, the agent is 404.
40
+ - An API-only server (`AGENTRUN_API_ONLY=1`) serves it too, for the backend that made the agent.
41
+ - An agent made here is never deleted: 409 `agent_not_external`, pointing at `POST /v2/agents/{id}/archive`. A run that cannot be ended from here answers 409 `runs_in_flight` (retryable).
42
+ - Shared things stay: MCP servers, sealed keys, paired computers, tokens and uploaded files.
43
+ - The clients gain `deleteAgent` (TypeScript and Python) and `agentrun agents delete-agent`.
44
+ - The runner now writes a warn line when a paid model request bills more input than the bound its spend-cap hold was priced on: the one way a cap can be passed, a hold that was too small. <!-- changes/cap-bound-warn.md -->
45
+
46
+ The line is `event=cap_hold_short`, in the same logfmt shape as the server's other log lines, written to stderr once for each such request as its answer is booked: by an agent's run, by a workflow run's model nodes (harness `workflow`), and for a request that answered after its run's claim was lost, by the booking that writes it later. It carries the run id, the request's session and turn, the harness, the model, the bound and the billed input in tokens (input, cache reads and cache writes together), and in USD what was held, what the answer billed and the shortfall (billed less held) when the answer was priced.
47
+
48
+ No line is written for a request billed at or under its bound, for one whose answer reported no usage, for one billed to a ChatGPT plan or on a free model (held at $0 whatever its input), or for one with no hold (no cap). The line carries ids and figures only: never any prompt or answer text, header, key or token. Billing, holds and refusals are unchanged.
49
+ - The console's Settings → Model keys has the row "Use Claude Code's login on this machine". Off, it asks where the login is (AgentRun's own by default, this machine's `~/.claude` by choice) and for the owner's word that only they run agents on the server. On, it shows the account and plan the CLI reports, or the command that signs the CLI in, plus a button that starts the CLI's own sign-in when the console is on the server's machine. A server that refuses the mode shows its one-line reason, and a server with the mode switched off shows no row. A run on the login reads "On your Claude plan" with no dollars. The Anthropic key's row says which Claude plans include monthly API credits. <!-- changes/claude-code-login-console.md -->
50
+ - A self-hosted server one person runs can run Claude Agent on that person's Claude plan through the Claude Code CLI's own login on the same machine: `PUT /v2/settings/claude-login` with `only_me: true` turns it on, and the CLI keeps the login and calls Anthropic itself. AgentRun only asks the CLI `claude auth status`; it never reads, stores or relays the login. A run on it gets no model key, endpoint or proxy, books its tokens and no dollars (`cost.plan.on: "claude_code"`), and fails in words when the login is signed out. A server where more than one person can start runs refuses the mode. It exists only on a server that listens on loopback: one bound to `0.0.0.0` or another address has it off by default. `AGENTRUN_CLAUDE_CODE_LOGIN=off` removes it anywhere, routes and all, and `on` allows it past loopback. <!-- changes/claude-code-login.md -->
51
+ - The server and the runner make every computer provider's vendor call through the standard `HTTPS_PROXY` (or `HTTP_PROXY`), with `NO_PROXY`'s hosts, loopback and the server's own public address direct: fetch and WebSocket providers through Node's own proxy support, Modal and boxd through gRPC's `grpc_proxy`, E2B through its SDK's `proxy` option, and Morph's SSH gateway through a CONNECT tunnel. Unset, nothing changes. Archil's SDK takes no proxy, so the Archil mount still connects direct. <!-- changes/computer-https-proxy.md -->
52
+ - `curl -fsSL https://agentrun.ai/install | sh -s -- --vps` sets up AgentRun on a Linux server you rent (Ubuntu or Debian, as root), with a shell for its agents in Docker sandboxes. It runs the release's published image (`ghcr.io/parcha-ai/agentrun-server:v<version>`, the server the launcher depends on) with Docker Compose in `/opt/agentrun`, and gives it the server's Docker socket. It prints the address, the setup link with its code, and the line that reads the code again later. <!-- changes/installer-vps.md -->
53
+ - Docker: one already on the server is used as it is (Docker Engine 26 or later with the compose plugin) and never changed. With none, the installer installs Docker Engine and the compose plugin from Docker's apt repository.
54
+ - `/opt/agentrun/.env` (mode 600) holds `AGENTRUN_TOKEN` and `AGENTRUN_SEAL_KEY`, made once with `openssl rand` and kept on every later run, with the lines you add, which reach the server too. `compose.yaml` is written again on every run; a `compose.override.yaml` of your own stays. Running it again upgrades to the release it names. `--version V` picks a release and `--image IMAGE` names an image.
55
+ - Private by default. With Tailscale logged in, AgentRun is served on your tailnet only, through `tailscale serve` and never Funnel, by the same step as `--tailscale`, run in the server's image. Without Tailscale it listens on the server's loopback, and the installer prints the steps to add Tailscale and exits 0; it never installs Tailscale or logs in. `--public` listens on every address, port 7340, over plain HTTP, and says what that exposes first. If the first visit would not ask for the setup code, the installer stops the server.
56
+ - `lib/tailscale.mjs serve` takes the place of the setup code's line as a fifth argument.
57
+ - Server: under `--faux`, a server whose own environment names `AGENTRUN_SERVE_FAUX_MOUNTINFO` hands it to the runner it starts beside it, so a test server in a container runs Docker sandboxes as the real one does.
58
+ - Run Particle-1 directly on Pi with `particle/particle-1` and `PARTICLE_API_KEY`, available in Settings → Model keys <!-- changes/particle-direct-provider.md -->
59
+ and the model picker. Keys use provider-scoped custody. Native streaming tools, reasoning continuation and cache
60
+ affinity travel through Pi's local proxy; existing OpenRouter support and its text-tools workaround remain separate.
61
+
62
+ Token accounting distinguishes cached input and includes reasoning in output once. Costs use regular peak list-price
63
+ estimates, not Particle's account bill. Missing or malformed usage fails with unknown cost; cancellation and errors
64
+ do not silently resend a paid request. Pi claims with a Particle route disable automatic conversation retries,
65
+ including mixed-provider claims with a Particle subagent tier.
66
+
67
+ The direct route supports Pi and workflow model nodes (including nested learned workflows). Side calls inherit
68
+ the live port's model metadata; calls with no conversation ID use route-local cache affinity. HTTP Responses gateways
69
+ and CLI harnesses are unsupported; configuring Particle as `AGENT_MODEL_BASE_URL` is refused with setup instructions.
70
+ Live validation requires a key and explicit spend authorization; see the server README's Direct Particle-1 section.
71
+
72
+ The Compose files (`compose.yaml`, `deploy/compose.yaml`) pass `PARTICLE_API_KEY` through to the server.
73
+ - Each run is a process of its own under its runner, and in the image a user of its own; `GET /v2/capabilities` says which as `run_isolation` (`"uid"` or `"process"`). <!-- changes/run-process-and-user-of-its-own.md -->
74
+ - The run's process is handed its own keys on a pipe and a channel to its runner. Over the channel it reads and writes its journal, under the runner's fence, and the store's rows of its own run and agent, each call checked against its claim. What the seal key opens for the run, the runner opens and hands over; the seal key, the API token and the store's URL stay in the runner. A run's own model key (`model_key`) is opened by its runner, at its claim and for each message that hands one; a run that holds one is handed none of the server's model keys. A frame past 32 MiB, or one that is no message of the channel, fails the run.
75
+ - In the image, slot `s` of a runner runs as uid and gid `1001 + s`, through `agentrun-runas` (root:node `0750`, file capabilities `cap_setuid`, `cap_setgid`, `cap_setpcap`): its slot's group alone, no capability, `no_new_privs`. The data directory is `0711` (the Railway template's start command sets its volume so too) and the store's files `0600`. At a run's end every process of its uid is killed and its files in `/tmp`, `/var/tmp`, `/dev/shm`, `/run/lock` (`/var/lock`) and `/dev/mqueue` are removed (SysV IPC objects are not), and its runner sweeps the run's scratch folder, its temporary folder with it.
76
+ - A platform that strips file capabilities or sets `no-new-privileges` makes the runner refuse to claim, in words naming the setting; `AGENTRUN_RUN_USER=same` runs every run as the runner's own user instead, said on its log. Runners in containers of their own on one `/data` volume take slots from an `AGENTRUN_RUN_SLOT_FIRST` of their own (`deploy/compose.yaml`: 0 and 128); a runner told to hold more runs than the slots from its first to 255 refuses to start, and each run's slot is locked on the volume (`run-slots`) until its reap, so runners whose ranges overlap never run two runs as one user.
77
+ - What a run's process is handed is bound to its claim: a GitHub token only for its own pull request's repository, contents read; decision and tier model keys only for the learned workflows its runner chose for it; of the settings, the server's shared configuration and its own run's and agent's rows; its runner's live address with a proof key of its own run alone. Its uploads and opening message are placed by its runner before it starts, and the learning its end takes (a check's replays, a promotion) is its runner's. A slot is reaped before its first run too, and a reap that does not hold retires the slot. The server started with its runner beside it in one process (the image's default) runs each run as a process of its own. A run that runs no agent's code on the runner stays in the runner's process: a learning run, an SDK backend run (its agent runs in the caller's application) and a native run (its agent is the source machine's own sign-in). So does a workflow run on a server started with `--documents` (its reads and pages are rooted in a folder the server's user alone reads, and its nodes run the server's own tools alone). Where each run is a user of its own, a `claude-agent` run on Claude Code's login on this machine, with no `model_key` of its own, is refused at its claim: it fails in words naming the login and `AGENTRUN_RUN_USER=same`, which runs every run as the server's own user and lets such a run go on the login. A run handed its own `model_key` runs on that key, as a process of its own. An installed harness (`claude-agent`, `codex`) is readable by every user and writable by none, one installed before this release too. A computer made for a run is let go by its runner at the run's end even when the run's process never let it go.
78
+ - A local install has no helper: each run is a process of its own as the user who started the server (`run_isolation: "process"`).
79
+ - A run's trace: `GET /v2/runs/{id}/trace` serves each model request that answered and each tool call of a run as one span, and the console's run page has a Dev tools tab that reads it. Use it to see where a run's time and money went and why a call failed. <!-- changes/run-trace-dev-tools.md -->
80
+ - A span has its kind, its name (the model or the tool), when it started and ended, how it ended, and the span it ran under. A model request also has its tokens (input not read from cache, cache read, cache write, output, and thinking tokens where reported), and its cost. A tool call also has the head of its arguments and of its output, as the Timeline shows them, and what was charged under it (a browser session's time, a paid tool's fee), or that its tool has no price set.
81
+ - The trace says only what the run's record keeps, in `model_requests`: `priced` (each request has its cost), `tokens_only` (a workflow run: its model nodes' requests carry tokens and no cost, since the cost is booked for the run, and each of its decisions is a span with its own cost), or `not_recorded` (a CLI harness's record keeps no request, so the trace is its tool calls). A computer's own time is billed by its provider and is in no span. One read serves the run's first 2,000 spans and counts the rest in `dropped`.
82
+ - The Dev tools tab shows the run's totals, every request and call on one time axis and in one table (filter by kind or words, sort by duration, size or cost, zoom the axis), and a panel for the span you open: its tokens by line and the share read from cache, its cost, the request that called it and the calls it made, and a call's arguments and result. Its Breakdown view says what stands out (what failed, the slowest call, the most expensive request), where the time and the cost went, each request's input and cost in order, and the same by model and by tool. Export JSON saves the trace as served.
83
+ - The TypeScript client has `runs.trace(runId)`, the Python client the same operation, and the CLI `agentrun runs trace RUN_ID`.
84
+ - In Mode 2, a sandbox or desktop whose provider takes no Archil mount here, or whose image has no Archil client, now holds the run's folder as a synced folder instead of being refused: hosted Daytona (no `DAYTONA_ARCHIL_EGRESS`), a Daytona sandbox with an egress but no `AGENTRUN_DAYTONA_SNAPSHOT`, and Daytona's and Modal's GPU computers. The runner keeps the folder on the run's Archil disk as it does today, pushes it into the computer's `/workspace` when the run claims it, and lands each change on the disk before the call that made it answers. <!-- changes/serve-synced-folder.md -->
85
+ - A folder over 20000 entries or 2 GiB refuses the claim before anything is rented, in words naming its size and the cap. A change the disk refuses fails its call with "`<method>` ran, but the run's folder could not be made durable: ...", and is sent again at the next change.
86
+ - The folder's modes and links are kept beside it, in `runs/<run>/sync.json`, since the disk's file API keeps neither. A run synced before and claimed again on an Archil mount (its provider now takes one) has them put back over the mount before any tool runs.
87
+ - A park lands the folder's changes before the computer is kept, and keeps nothing if they don't land. A kept computer attached again by a new runner is read back whole, as is one whose keep runs out on the runner that parked it, before it is deleted. A computer kept holding the folder another way (an Archil mount, a bind) is deleted, not taken back. A claim that doesn't take a kept synced computer back ends it, or waits for its end already under way, before it reads the folder, so no old write lands after a new one. At release a final sync runs before the computer goes; if it fails, the release says "writes since the last sync may be lost".
88
+ - A provider whose machines dial this server (Modal, E2B or Daytona with its connect setting on `dial`) holds the folder as a synced folder in Mode 2 instead of an Archil mount its check refuses.
89
+ - The claim reads each provider as the run's start does (the keys that turn on its mounts, and whether its image is named here), so it holds the folder the start said it would.
90
+ - Conformance: `mount.sync-durable`, `mount.sync-push`, `mount.sync-delete` and `mount.sync-cap` check a provider's synced folder (need `mount:sync`). `FolderSync.adopt(held)` starts a sync of a folder whose copy in the computer may be newer than the sink's.
91
+ - Applying a template again can update the agent it made instead of making a second one. `POST /v2/templates/{name}/apply` takes an optional `agent_id`: the apply writes a new revision of that agent, answered 200 with the same id, and its runs and its learning (corrections and workflows) stay. The parameters and grants are checked as a fresh apply checks them. Its triggers are matched by name: one the agent has is changed in place (a feed trigger keeps the items it has seen, a webhook trigger keeps its secret, and one the owner turned off stays off; a trigger setting its new version leaves out, `catchup_window_s` or `max_active_runs`, goes back to its default, as a fresh apply would make it; a source the new version leaves as it was is not rewritten, so a schedule keeps its next time, and an every-N-seconds one with no `start_at` keeps the grid its first apply set), a new one is made, and one the package made or kept and no longer lists is removed. Each trigger now records which template package made it, which no API body can set and which moving the trigger to another agent clears: a trigger the owner added, one moved in from another agent, and one made before this release are left alone, and a removal that fails is done by the next apply. A Composio trigger an update removes goes at Composio first: if Composio does not delete its instance, the trigger is kept here as it was (on or off, its config sealed) and the next update removes it; a dropped one is named in the answer's `warnings` with what is left at Composio. Updates of two agents at once that remove triggers sharing one Composio instance delete it with the last of them. A trigger moved to another agent while an update runs is neither changed nor removed. A trigger without that record that has the name of one of the package's triggers (the owner's, or one an apply made before this release) is taken over only when it can be changed in place, and is the package's from then on. If it would have to be removed and made again (another kind, or another Composio server, event or config), or another template package made it, the update is refused with 409 `name_taken` under `triggers.<i>.name` before anything changes: rename or delete that trigger, then apply again. A Composio trigger whose config seals a key from a parameter keeps it sealed when the update sends the same key; a different key, or another server, event or config, makes it again, as a change of source kind does: the old trigger and its Composio instance are removed first, and the new one stays off if the owner had turned the old one off. If Composio does not delete the old instance, the new one is not made, the old trigger is kept as it was, and the apply answers 424 `upstream_failed`; the next apply, once Composio deletes it, makes the new one off where the owner had turned the old one off. A source the package leaves as it was is compared with its defaults filled in, so a feed whose package gives no `every_s` is not polled again by an update that leaves it alone. What the package sets and its new version leaves out (an input or answer schema, a checkout, a default cost cap, learning) is removed from the agent; the harness, computer and sdk references the host set are kept, and an agent in the box keeps the shell tools a fresh apply gave it when the package names none. The store gains a nullable `triggers.template_id` column: SQLite adds it when the server opens the store (a runner waits for the server), and Postgres adds it in a new migration. Two updates of one agent run one after the other, and an update whose read of the agent went stale before it wrote (an edit, or an update on another server) answers 412 `precondition_failed` with nothing changed. An agent not made from that template is refused with 422 under `agent_id`, saying where it came from, and an unknown id is 404. A fresh apply of a template whose same parameters already made a live agent still makes one, with a `duplicate` warning naming that agent. The agent keeps only a keyed digest of the parameters it was applied with, never the parameters. In the console, a template that already made an agent shows "Update <agent>" next to Apply. <!-- changes/template-apply-update.md -->
92
+ - The Composio preset reads a toolkit's actions at its latest version, and a save refuses an action Composio doesn't list before it makes anything there. <!-- changes/composio-save-slug-check.md -->
93
+ - `POST /settings/mcp-servers/composio/tools` asks Composio for `toolkit_versions=latest`. Without it Composio lists the toolkit's base version, which leaves out actions added since (on 2026-11-18 Linear listed 21 of 48 and Stripe 33 of 435), so the picker didn't offer actions templates use, such as `LINEAR_LIST_ISSUES_BY_TEAM_ID`.
94
+ - `PUT /settings/mcp-servers/{name}/composio` reads the same list, every page, before it makes an auth config, an MCP server or a connect link. A slug that isn't on it is `422 input_invalid` with reason `not_found` under `tools`, naming each such slug and the likely one when it is obvious ("ad (did you mean add?)"; a slug past 128 characters by its first 64 and its length), and nothing is made at Composio. `not_served`, for an action Composio allows but its server leaves out, is unchanged.
95
+ - The console's run timeline reads a link in a step's one-line preview as its words: an answer whose first line has `[example.com](https://example.com)` shows "example.com", and `<https://…>` shows the address. Opened, the answer still shows the link as a link. <!-- changes/console-answer-links-picker-description.md -->
96
+ - Every picker in a console form is described by its field's note and error, so a screen reader says them with the picker (the agent's Model field's refusal, for one). Before, only text fields were.
97
+ - The console's Dev tools tab no longer scrolls the whole page on its Breakdown view. The switch beside the per-request chart has hidden radio inputs that were positioned against the page instead of the tab's own scrolling section, so on a long breakdown the page grew a second scrollbar and showed empty space under the message box. The tab's scrolling panes now hold their own out-of-flow content, and only the section scrolls. <!-- changes/dev-tools-breakdown-scroll.md -->
98
+ - A held computer's run released before its owner started it now always ends cancelled with its agent never run. Before, a release that reached the runner just as it took up the run (after the hold began waiting, before the runner's wait for the start) was missed: the agent ran and the run ended as a plain completion. <!-- changes/held-release-before-start.md -->
99
+ - The console's API playground names an agent's model with the agent editor's Model picker, in both "POST · Create an agent" and "PUT · Edit agent": the models the server offers for the form's harness, the server default first and Custom... last, the free-text box only once Custom... is picked. A model the harness can't run is refused at the field in the editor's words. In both the playground and the editor, what the server said of a model shows at the field only while the form names the harness and model it was said of: a switch of harness hides it, an answer that arrives after the switch included. <!-- changes/playground-agent-model-picker.md -->
100
+ - A server started while the one it replaces is still closing its store no longer exits with "database is locked". Its check for an earlier version's store read the store file before taking the owner lock, with no wait, so a read that landed during the old server's last checkpoint failed and the new server exited 1. The check now waits for that lock as long as the store's own connection does (10 s by default). <!-- changes/replace-waits-on-closing-store.md -->
101
+ - SDK compile asks are held to the run's cap. <!-- changes/sdk-ask-cap-hold.md -->
102
+
103
+ A backend SDK run's end-of-run compile ask is judged by the run's cap before it leaves, as every other paid step is: on the run's whole spend (the job its backend reported and every ask before it) and at its whole output bound. One that would pass the cap is not sent and books nothing; its learning is dropped as "Skipped: no budget left in this run to write what it learned.", and the run keeps the job's cost and outcome. Its requests on free models now count toward the run's limit of them (`AGENTRUN_FREE_MODEL_REQUESTS`).
104
+ - A synced folder keeps its links and modes when the run moves off an Archil mount, and a runner that lost its claim can no longer write the run's folder. <!-- changes/serve-synced-folder-reverse-fence.md -->
105
+ - A run whose folder was on an Archil mount and whose next claim syncs it (Daytona's `DAYTONA_ARCHIL_EGRESS` removed, or a provider moved to connect `dial`) now finds its links and modes there. Before, the claim failed on a link an exec made (`read "go": 501`), and every file came back at 0644. An Archil computer's park and release record the folder's modes and links in `runs/<run>/sync.json` (read through computerd, which sees the mount, for at most a minute), and the synced claim pushes them, then removes the exec-made link objects from the disk.
106
+ - Every write a claim makes to the run's folder on the disk (each put, mkdir, remove and sync.json write) first reads the run's row from the store. Once a later claim has taken the run, whether it still holds it or has ended, the write is refused and never sent: "this runner no longer holds the run's claim, so its write to the run's folder was not sent". Before, a runner whose run was claimed by another went on writing the folder.
107
+ - `FolderSync.recordMeta()` writes a folder's modes and links, as the computer lists them, to its sink, and nothing else.
108
+ - A run a person stops no longer reads as waiting on them with nothing to answer. Before, for up to half a second after the runner cut the turn and before it ended the run stopped, `GET /runs/{id}` could read `input_required` and `idle` with nothing pending. Now a stop that is accepted and not yet applied reads stopped as soon as nothing in the run is working: at once for a run waiting on an approval, a person or a browser, and from the turn's cut for a run mid-request (until then it reads working, so its cost is never the known sum while the cut request is still unbooked). <!-- changes/stop-reads-stopped-at-once.md -->
109
+
110
+ While the stop is not yet applied, every tool call still waiting for approval reads withdrawn in the timeline, as an answer sent then is already refused with `withdrawn`. The `run.needs_input` webhook tells the stop once, after the run's end, as before.
111
+ - Goose is a harness in serve's table (`goose`), run by `gooseAdapter` on the host's Anthropic Messages provider, the same origin and key claude-agent's proxy takes, priced and capped by the same hooks. Its owner installs it with `agentrun harness install goose` (`agentrun-serve install-harness goose`), never a run: nothing on a run's path downloads anything. <!-- changes/goose-install-and-harness-row.md -->
112
+ - The install downloads the pinned archive for this platform (`GOOSE_PIN`) with node's fetch, checks its sha256 before unpacking, unpacks it with the system `tar -xjf` (a fixed argument list, no shell) into a fresh folder beside `<data>/harnesses/goose`, checks the binary's sha256, then renames the folder into place and makes it read-only. A crash part way leaves the old folder or none, and the next install sweeps what it left. Every failure is named (`HARNESS_PLATFORM_UNSUPPORTED`, `HARNESS_DOWNLOAD_FAILED`, `HARNESS_ARCHIVE_MISMATCH`, `HARNESS_UNPACK_FAILED`, `HARNESS_BINARY_MISMATCH`, `HARNESS_INSTALL_BUSY`) with the command to try again. Run again with the pinned binary in place, it downloads nothing. No provider key reaches it.
113
+ - Capabilities list Goose (label, its promises `resume: load`, `tool_gate: permission`, `billing: proxy`) only once the pinned binary is installed and verified, read at AgentRun's start: restart AgentRun after installing it. Before then an agent on goose saves with a warning, and its run is refused (`agent_not_runnable`), each naming `HARNESS_NOT_INSTALLED` and the install command.
114
+ - `@parcha/agentrun-harness-acp` exports Goose's facts (`gooseFacts`), its install command (`GOOSE_INSTALL`) and its code (`GOOSE_NOT_INSTALLED`). The package is held from npm for now, so a serve installed from npm has no goose row until it ships.
115
+ - A provider whose machines dial the server (Fly Machines, Cloudflare, and E2B, Daytona or Modal set to dial) now works under a runner in a process of its own, the image's default `server-and-runner` included. The server stays the one public address: a machine dials its `/v2/computers/attach` as before, and the server relays the socket to the runner that made the machine. Give the runner the server's public address (`AGENTRUN_PUBLIC_URL`, as the server reads it; the image passes the environment to both); across hosts, give it `AGENTRUN_RUNNER_LIVE_HOST` and list that host in the server's `AGENTRUN_RUNNER_HOSTS`, as for a run's live computer view. Nothing changes on the machine. <!-- changes/dial-relay.md -->
116
+ The runner mints each machine's token into the shared store with its name and incarnation on the token's row, and serves its own attach hub on a private listener (loopback beside its server, its live host across hosts). The server opens a socket to that listener with a proof under the seal key that binds the token, the runner, its incarnation and a time within 10 seconds, taken once: the listener answers nothing without it, and takes only a token its own runner minted in this incarnation. The relayed socket keeps the server's attach limits (frame size, binary refusal, idle timeout), and a close on either side closes the other. A dial whose runner is gone, does not answer or restarted since is answered 503 in words that name its run, `a dial for run <run> (machine <machine>)`, and never its token; the server's log line says the same, and the run makes a new machine at its next claim. The server keeps those words on the token's row, and the runner's create, waiting for the machine to dial, ends at once in them (`the server refused a dial for run <run> (machine <machine>): ...`) instead of waiting out its create timeout; the machine is deleted. `MachineTokens` gains `refused(machine)`, which a hosted provider's dial wait reads. A hosted provider's create names the machine's run in its token's mint (`MachineMint.run`, from the create's `agentrun.run` label), and the token's row keeps it.
117
+ With such a runner, each dial provider's `runs_refused` in `GET /v2/computers` is null and its test reads the vendor's account again. A runner with no public address relays nothing, and the row, the test and the runner's create keep their words.
118
+ The SQLite store goes to version 13 at the server's first start (from 11 or 12), and Postgres takes migration 0019 (`minted_tokens.runner`, `.incarnation`, `.run` and `.refused`, and `runner_relays`). A runner refuses a version 12 store until the server has upgraded it.
119
+ - A runner started beside its server in the image (`server-and-runner`) no longer gets the server's own API tokens (`AGENTRUN_TOKEN`, `AGENTRUN_TOKENS`, `AGENTRUN_API_KEY`); it still gets every other secret the launcher hands over.
120
+ - A webhook try's bound can be set: `Webhooks`' `timeoutMs` option, and the server's `webhookTimeoutMs` (15 s by default, as before). It is whole milliseconds, refused at zero, in part of a millisecond, or at or past the 60 s claim a try holds its message by, so no try outlives its claim. A try cut by it says the bound it had (`no answer in <n> s`). <!-- changes/webhook-try-bound-option.md -->
121
+ - A learning pi run that compacted its context two or more times now reads its stored cost on `GET /runs/{id}` and in `GET /agents/{id}/learning/cost`, instead of `cost.usd: null` beside a known figure and a count in `unknown_cost_runs`. The job's cost its learning keeps (`job_cost_usd`) is read from the run's booking by the same rule its end stores its cost by, so with no compile turn after the job it is the stored cost, and a compile turn's spend is that cost less the job's. <!-- changes/learning-job-cost-booked.md -->
122
+ - CI's store-on-Postgres job runs the database `test/pg/compose.yaml` runs locally: its data on tmpfs, `fsync` and `full_page_writes` off. With a schema per test, a checkpoint on the runner's disk synced 80k-150k files over 90-180 s, and a commit behind it went past the store's 10 s deadline. A lock wait past 1 s is now logged with its holder. <!-- changes/ci-postgres-test-database.md -->
123
+ - An API-only server (`AGENTRUN_API_ONLY=1`) now serves `GET /v2/computers` and `GET /v2/workspace/archil` with its token, so a backend in front of it can read which computer providers are ready and whether runs' folders are on Archil before it launches. Both answer key names and whether each is saved, never a value. Their writes, tests and key choices (`PUT`, `DELETE` and `POST .../test` on either, `PUT /v2/computers/{provider}/keys`, `GET /v2/computers/{provider}/choices`) are still refused there. <!-- changes/api-only-computer-reads.md -->
124
+ - A Linux box with no display pairs with `computerd pair` as a sandbox, and in Mode 2 holds a run's folder as a synced folder in its `/workspace`: serve pushes the folder in at the claim, syncs each change back before the call that made it answers and once more at release, all through the claim's epoch fence, and the next run on the box finds its folder. Its network is `open`; any other is refused. Mode 1 runs a sandbox only on Docker, as before. <!-- changes/paired-linux-sandbox.md -->
125
+ - `/workspace` is a directory of computerd's user's own, mode 0700, never a link, made once as root with the tmpfiles.d line in spec/computer/attach.md (`d /workspace 0700 <user> <user> -`). A claim refuses a box whose `/workspace` is missing, a link, not a directory, another user's or open to others, in words naming that fix, and lets the box go. Each claim first ends every program an earlier run left running there and empties it of that run's files.
126
+ - The synced folder writes only under `/workspace` and never through a link: init extracts the push opening each name `O_NOFOLLOW`.
127
+ - `attachedProvider` gives a Linux box daemon `child`, `mount: ["sync"]` and no vendor agent ports, and reads its folder back as `{ kind: "sync", epoch }`.
128
+ - A desktop or a phone named as a sandbox computer is refused saying only a Linux box paired with no display can be one.
129
+ - The fake calendar (`startIcsFaux`, which calendar tests and a template's eval read) counts the requests for its own paths only: the calendars it serves, the paths it moves and their targets. A request for any other path is answered 404 and not counted, so a host process that polls every loopback listener (GET /) no longer fails a test that counts the calendar's reads. <!-- changes/ics-faux-own-paths.md -->
130
+
131
+ ## 0.1.0-beta.44 (2026-11-17)
132
+
133
+ - A run can bring its own model key, such as a LiteLLM virtual key minted for it: `model_key` on `POST /v2/runs`, `POST /v2/agents/{agent_id}/runs` and `POST /v2/runs/{run_id}/messages`. Every model request tied to the run carries it in place of the server's key, through the model proxy: its turns, subagents, learned workflows' nodes, workflow model nodes and end-of-run look-back. AgentRun never mints, lists or revokes it.
134
+ - Custody follows `mcp_auth`: taken out of the body first, sealed with the run bound to the gateway's origin, opened at each claim (a reclaim after a crash too), erased by the write that ends the turn, redacted, and never seen by the harness, its tools or its sandbox. A message's key replaces the run's from the turn it starts.
135
+ - No setting: a server with a gateway (`AGENT_MODEL_BASE_URL`) and no model key of its own starts and reads ready, and its callers bring their own. A run whose model goes to the gateway with no key to spend is 422 `model_key_required` at its start, as is a message that would start a new turn without one; a trigger's firing on such a server fails the same way.
136
+ - Behavior change for a gateway that takes no key: a server with `AGENT_MODEL_BASE_URL` and no `AGENT_MODEL_API_KEY` used to send `none` as the key; its runs now need `model_key`. Set `AGENT_MODEL_API_KEY` to any value to keep the old behavior.
137
+ - claude-agent with `ANTHROPIC_BASE_URL` on the gateway's origin no longer needs a standing `ANTHROPIC_API_KEY`: it runs on the run's key.
138
+ - `model_key` where the run's model never goes to the gateway (no gateway, a native run, a model routed elsewhere) is 422 at `model_key`.
139
+ - Spend after a run's turn ends is never sent on the run's key or the server's: a run that brought its own key queues no learning grade (dropped `grade_failed`, in words), starts no shadow audit or replay check, and a server with no key skips them, refuses an owner's replay (409) and learning from a CSV, and opens no grade feedback round.
140
+ - A harness is one entry in serve's harness table: capabilities, a revision's save check, the runner and the console all read the table. An owner can add harnesses with a harness module. Start the server (and any separate runner) with `--harness-module MODULE` (repeatable) or `AGENTRUN_SERVE_HARNESS_MODULES` (comma-separated). MODULE is a path, or a package installed with `npm install --prefix <data>/harnesses <package>`, that exports the `entries(builtins)` shape test tables already use.
141
+
142
+ A module adds whole entries of new ids. A module's harness runs on its own runner's adapter, and a run of it reserves the memory its entry declares (`runMib`). A module's harness without adapter facts runs pi's tools, and capabilities list it on each of those tools (`tools[].harnesses`, now ids of the table, not an enum) and on MCP grants, so an agent on it keeps its tool choices. A module that gives an id outside `^[a-z][a-z0-9-]{0,39}$`, names an id serve's own runs carry (`learning`, `sdk`, `workflow`, `claude-agent-sdk`, `codex-sdk`) or every object already has (`constructor`), names a built-in harness (pi, claude-agent, codex, opencode), names an id another module adds, or leaves out a member refuses the start of the server or of a separate runner, naming the module and the id.
143
+
144
+ Capabilities' `harnesses` now carry each harness's `label` and `promises`: `resume` (`exact`, `load`, `restart`), `tool_gate` (`every_call`, `permission`, `config`) and `billing` (`proxy`, `plan`). The built-in harnesses promise exact resume, every call gated, and proxy billing. A harness id in the API is now a string (pattern `^[a-z][a-z0-9-]{0,39}$`), not an enum of the four built-in ones. The console offers a harness the server adds after the built-in ones, under the label the server gives it; one named `decision` stays a harness, never the Decision starter.
145
+ - An agent whose computer is a browser can record its runs: `computer: {"kind": "browser", ..., "record": true}` makes a video of each browser session's page, `recordings/<computer>.mp4` with one file per session, under the same caps, pause and stop rules as a desktop's or a phone's, listed in the run read's `recordings` and served by the files route. A browser with `record: true` was refused with 422 before.
146
+ - The video is the live view's own CDP screencast of the session, shared with a person's viewer (one screencast per session, never a second); each frame is stamped as it comes, so a page that sits still does not shorten the video.
147
+ - `@parcha/pi-browser`'s live view takes a host's watch of a session's frames, with or without a viewer: `liveView.watch(tag, { frame, ended })`. A viewer that joins a stream already running is sent the page, any dialog and the newest frame.
148
+ - The server can count itself, anonymously: `server_started`, a daily `heartbeat` and `first_run_completed`, each with a random id kept in the data directory, the version, the platform and how many runs ended as a range. **This release sends nothing**: the receiver's key is not set, and the release that sets it will say so. `AGENTRUN_TELEMETRY=0` or `DO_NOT_TRACK=1` turns it off, as do `CI` and `--faux`; `AGENTRUN_TELEMETRY=debug` prints each event and sends none. [docs/telemetry.md](https://github.com/Parcha-ai/agentrun/blob/main/docs/telemetry.md) lists every field.
149
+ The start that first could send prints one notice on stderr and sends nothing at that start.
150
+ A send never delays a start, a run or a stop; a failed one is dropped.
151
+ - On an agent's page in the console, shown side by side (1024 px and wider), the agent's name, description and id stay in place and the details under them (its facts, tools, configuration and live jobs) scroll in their own box; the workspace beside them (runs, versions, learning, analytics) scrolls by itself. The whole page scrolled before, taking the name with it. Each box's scrollbar is slim, sits in a gutter of its own beside the cards, never over their edge, and shows only while the box is being scrolled or the pointer is on the bar; an edge the content goes on past fades out. The name, description and id take at most half the column: a description longer than that scrolls in a box of its own between the name and the id, so the details under them can always be reached. In one column, on a narrower window, the page scrolls whole as before.
152
+ - The console's coding-agent menu (Connect agent, Build an agent, Run agent and the like) opens under its control from the control's left edge. It was placed by the chevron's right edge, so a control narrower than the 240 px menu, near the left of the page, pushed the menu left of the control and over the navigation. Where the left edge would leave the viewport (a control at the right of a toolbar), the menu still opens from the control's right edge.
153
+ - More of a Composio trigger's config credentials are now sealed.
154
+ - The name rule reads each word as its singular, so `tokens`, `secrets`, `api_keys` and `private_keys` are sealed. It also takes `hapikey`, `pat`, `pwd`, `passcode`, `jwt`, `dsn` and `connection_string`. Names such as `key_id`, `keyword`, `status`, `pattern`, `path` and `address` stay as they are.
155
+ - A field that the event's schema marks with `format: "password"` or `writeOnly: true` is sealed whatever its name, and the events list names it under `sealed`. To check this, the create now reads the event's schema from Composio.
156
+ - A number in a credential's field is sealed like a string, at any depth. Composio still gets it as a number, and answers show `"[sealed]"`. A PATCH that leaves it out keeps it. A run's output is cut of its decimal text when that text is 8 characters or more.
157
+ - On SQLite, the cleanup after the start-time sealing waits briefly and tries once more when another connection is writing to the store. If it still can't finish, the log says `store_scrub_not_done` and the next start finishes it.
158
+ - Deleting a trigger retires its sealed values into a sealed row until the runs that saw them end. The docs used to say the values are removed.
159
+ - A Composio trigger's config seals addresses that carry a credential, and stops sealing counts.
160
+ - A credential word right next to a count word names a count, so `max_tokens`, `token_count`, `token_limit`, `tokens_used` and `maxTokens` stay as they are, a number in one too. `access_token`, `token`, `api_tokens`, `refresh_token`, `token_secret` and `bot_token` are still sealed. A field the event's schema marks as a password is sealed whatever its name.
161
+ - An address in any scheme (`https`, `postgres`, `redis`, `amqp`, `mongodb+srv`...) with a user part (`user:pass@`, `:pass@`, or a token alone as in `https://TOKEN@host`), or with a query or fragment parameter named like a credential (`token`, `api_key`, `access_token`, `sig`), is sealed whole, whatever its field's name. A create with one below the config's top level is refused `422`; one an earlier server kept is masked on reads and sealed at the next start. An address with none stays as it is.
162
+ - After a start, the server reads the schema of each event an older trigger uses, once, and seals the fields it marks, logging `composio_config_sealed`. A create answer kept under an Idempotency-Key for that trigger is masked too. If that file can't be written, the log says `idempotency_not_saved` with a code and the trigger stays sealed; the next save writes the record masked, and a start before then masks it before serving: each kept create answer is checked against its trigger's sealed fields. It writes a trigger only while it is as it read it; one changed or deleted meanwhile is left for the next start, with nothing sealed left behind for it. It runs no `VACUUM` while serving: the log says `store_scrub_not_done` with `reason=deferred`, and the next start's scrub finishes before it serves. When Composio can't be reached, it logs `composio_config_schemas_unread` once with a code and tries again at the next start. The start doesn't wait for this.
163
+ - A field named `sig` is now sealed.
164
+ - A Composio trigger's config field named like a credential is now sealed when the trigger is saved. This covers names like `developer_api_key`, `api_key`, `client_secret`, `access_token` and `password`: any field where a word of the name is secret, password, passwd, passphrase, token, credential, apikey, authorization, bearer or cookie, or where the last word is key, and the value is a string. The value is kept in the composio source's sealed settings, next to the subscription's secret. Composio still receives it when the server creates the trigger instance. Every trigger answer (create, GET, list, PATCH, template apply) shows `"[sealed]"` in place of the value and names the field in the source's new read-only `sealed_config`.
165
+ - A create whose config holds such a value below its top level (inside an object or a list) is refused with a 422 that names the field. Composio's trigger configs are flat.
166
+ - A PATCH that leaves a sealed field out, or sends `"[sealed]"`, keeps the value. Sending a different value is a config change and is refused, as any config change to a composio trigger already is. To change a key, delete the trigger and make a new one; the refusal says so.
167
+ - Deleting the trigger retires its sealed values into a sealed row until the runs that saw them end. A trigger saved before this release with such a value in plain text is answered masked at once, at any depth, and sealed at the next start; its Composio instance is not changed. On SQLite the store's files keep no copy of the old row after that rewrite, including copies that earlier updates of the row left in free space. If that cleanup can't finish (another connection holds the database's log), the log says `store_scrub_not_done` and the next start finishes it. The log names the trigger and the field, never the value.
168
+ - The events list (`GET /v2/settings/mcp-servers/{name}/composio/events`) names each event's sealed fields under `sealed`, and the console's form takes those as password inputs. A trigger's page shows them as sealed.
169
+ - When a call to Composio involves a trigger's sealed value, a refusal is answered and logged in the server's own words (the step and the HTTP status), never Composio's. On other calls, Composio's words still pass on with the API key removed, including its JSON-escaped and percent-encoded forms.
170
+ - An Idempotency-Key's record in the data directory now keeps an HMAC of the request body under a key derived from the server's seal key, not the body itself, and keeps a trigger create's answer masked. Other answers, such as a run's input, replay as they were. Records an older server wrote (kept for up to a day) are rewritten at start, and the log says how many.
171
+ - Console polish:
172
+ - **Use your agent** stands at the same height as **Send request** beside it, in the API playground's three footers (it was a toolbar-sized control beside a form-sized button). The coding-agent control takes a `size`, a Button's.
173
+ - An agent card's icon is level with the agent's name and its chips: it sat 2 px above the line's centre.
174
+ - A page's header shows the icon its navigation item does: Mission Control's and Connected agents' headers showed other icons.
175
+ - `scripts/dial-conformance.mjs` creates no machine until its public address reaches it. Its `GET /v2/health` now carries the run's id in `x-dial-conformance-run`, and the script asks `AGENTRUN_PUBLIC_URL/v2/health` once a second until three answers in a row carry that id, for up to 10 minutes. A host that swaps instances, such as Render on a deploy, keeps answering from the previous process for a while. Before this, a machine that dialed in that window was refused its token there (401) and never joined, so every Core case failed with "create did not answer within 180 s". While it waits the script says so, and it says how long the wait took. If the address never reaches it, the run fails in words without creating anything.
176
+ - The API playground's operation picker keeps one width. The field was as wide as the operation picked, so it grew and shrank with each choice, and its list, as wide as the field, wrapped "POST · Apply a template" onto two lines. The field is now as wide as its longest operation needs on one line, and the list is never narrower than its longest row. The console's `Picker` takes this as `steady`; every other picker is unchanged. A real-browser flow (`playground-operation-width` in `npm run test:e2e`) measures it at 1280 and 390 px: one field width whichever operation is picked, every row of the list on one line, no sideways scroll, and in a narrower space a field that shrinks and cuts its words with an ellipsis.
177
+ - A run whose sandbox is lost mid-run now gets a new one. Before, every later tool call went to the deleted sandbox and failed, and the run could still end `completed`.
178
+ - A sandbox is lost when its provider no longer has it: the hosted connection says it was deleted, or a call answers gone and the provider's read of the machine answers not found.
179
+ - The tool call that finds it lost fails in the provider's words. The next tool call starts a new sandbox under the same claim (its own create request, the claim's labels and epoch) and runs there, also when the lost sandbox was kept through a park. A start that fails is tried again at the next tool call under the same request, and does not count toward the bound. In Mode 2 the new sandbox mounts the run's folder with a new Archil mount credential, and the lost one's credential is removed.
180
+ - The timeline says `Its computer was lost; started a new one (<name>).`
181
+ - A claim starts at most 2 new sandboxes. The next loss fails the run at once, whichever call finds it (the owner's computer channel too), even if the model answers without another call, served with error code `computer_unavailable` and the provider's words.
182
+ - A 5xx, a timeout, or a failed read of the machine is not a loss and starts nothing. Desktops, phones, paired computers and an agent's own computer are never started again this way. The run's end and the owner's computer channel never start one either.
183
+ - A learned workflow this release's DSL refuses is held with the DSL's reason and recompiled once; it no longer reads `serving` while every run hands back.
184
+ - The first run a refused revision serves hands back as before, and writes one promotion hold for that digest: `reason` "this release's workflow DSL refuses it: <code> at <path>: ...", cut of the host's secrets, with neither `check` nor `audit`. Concurrent and later runs write nothing more; the agent takes them. The promotions read says `held`, and the agent's next run asks the one recompile with that reason; a recompile that is held again stops.
185
+ - Shadow audits draw only runs the workflow answered alone (path `workflow`). A run it handed back is never drawn and never counts as a served run for `learning.audit_later_after`, `learning.stop_window` or `not_auditable`.
186
+ - A first agent that needs no shell starts at once, and a local model's reasoning stays out of its answer.
187
+ - A new agent with no place whose tools need no shell (`tools: []`, or tools such as `read`, `write` and `web_fetch`) is saved with no place and runs on the runner. It used to get the Docker box, so its first run waited for a container it never used. An agent with no tools named still gets the box and bash, and so does one that names `bash` or a background tool. A revision with no place resolves the same way at each run, and the console's agent page and editor say where it runs by the same rule.
188
+ - A model the catalog doesn't list (a local model behind `AGENT_MODEL_BASE_URL`, or a gateway's own alias), run with no thinking level, is no longer sent `reasoning: {effort: "none"}`. It now thinks at its lowest level, so a model that reasons anyway gets its reasoning split out of the answer. On Ollama with a thinking model such as `qwen3:4b`, that reasoning used to come back at the start of the answer text. A run that sets a thinking level is sent that level, as before.
189
+ - The README said a Docker run's container is made on its first `bash` call. It is made when a runner takes the run, and the README now says so.
190
+ - AgentRun Server binds its port and prints `Starting <url>/` before it loads the rest of itself, so a start on a slow or loaded disk names its address in seconds, not minutes. Until it is ready it answers that it is warming: `GET /v2/health` is `503` with `status: "warming"` and `checks.store: "opening"`, the API answers `503 unavailable` with a `Retry-After`, and a browser gets a page that reloads itself. On a cold disk, a request sent while the server's modules load is answered once they have. Then the banner prints as before, and its `Open ` line still means ready.
191
+ `npx @parcha/agentrun` takes the `Starting` line as the server listening: it names the address on stderr at once, and its start bound (60 s, or `AGENTRUN_START_TIMEOUT_MS`) no longer stops a server that is up and still loading. A start that does pass the bound says so and names `AGENTRUN_START_TIMEOUT_MS`.
192
+ A port already taken when the server starts is left to the start's own wait, as before, so a restart still waits for the server it replaces and takes its port.
193
+ - `GET /v2/runs?status=…` and `GET /v2/agents/{id}/runs?status=…` read only the runs still going over their journals: an ended run's status comes from its row, the status its view already gave. The filter rebuilt every run's view to compare statuses, so its time grew with every run the server held (about 1.2 s at 100 runs, on the server's main thread), and Mission Control's Needs you strip asks three of these lists every 10 s, which slowed every other request while the console was open. At 100 runs the three lists now answer in a few milliseconds each.
194
+ - The console's first visit says where the setup code is, and gets a new one without a restart. Someone whose coding agent deployed the server reached the Setup code field with no way to find the code, or with one past its 30 minutes.
195
+ - Under the field, a server at a Render address (`*.onrender.com`) names the service's Environment tab (`AGENTRUN_TOKEN`) and its Logs tab; any other server names the log line (`Set up this server: ...#code=`), where that log is (the terminal, `docker logs`, Render's Logs tab) and the API token that stands in for the code. Both say that a code works once and lasts 30 minutes, as the refusals of an expired or wrong code now do.
196
+ - **Get a new code**, under the field, and the new route behind it, `POST /v2/setup/code`, taken with no credential: the server prints a new `Set up this server:` line to its log when the last code is expired or spent, and keeps one that is still good, so asking never voids a link someone holds. It answers `{printed, expires_at}` and never the code; 403 once the owner is set or where setup takes no code. The console then says where the new line is and until what time it works. The page still never holds the code.
197
+ - The setup skill (`docs/SKILL.md`) has the assistant give the person the code's place, or the newest setup link, in the same message as the console address, saying in it that the link works once, when it expires and how to replace an expired one; it renews with `POST /v2/setup/code` rather than a restart, and never pastes the API token into the chat.
198
+ - `deploy/README.md` has a section, "The first visit's setup code", with the same places and the renewal.
199
+ - Setup's import of this machine's sessions takes only the projects the owner chooses, and a large history no longer exhausts the server's memory. The console's setup page lists the projects found, each with how many sessions it holds, from which tools, and how long ago the latest ended. None is ticked, and nothing is imported unless a project is ticked. Before, one box imported every project, and a session with many subagents was read into memory at once: about 5 GB of them took the server to 3.9 GB in six seconds, the import stopped with nothing written, and every later start tried again.
200
+ - `GET /v2/setup/import` before the owner is set now also answers `candidates`: one `{id, name, path, sessions, sources, last_active}` per project, the latest active first, at most 500. `projects` and `sessions` still count everything found.
201
+ - `POST /v2/setup` takes `import` as a list of those ids (at most 500) and imports those projects alone: no other project is read for keys or written. `import: true` still imports every project. `false`, an empty list or no field imports nothing. Anything else is a 422 on `import`, and sets no owner. The choice is kept with the owner's yes, so an import a stop interrupted goes on with the same projects at the next start. `skipped` then counts what was left out of the chosen projects alone, not of projects the owner did not choose.
202
+ - A run is read whole, so a session whose files and subagents' files are over 256 MB together is left out whole and counted in `skipped` (the CLI says "sessions over 256 MB"). It is never cut short: one subagent file over 256 MB leaves its session out too, where before the session was imported without that subagent's usage and nothing said so. The rest of the history imports. `agentrun-serve import` and its `--dry-run` leave the same sessions out.
203
+ - The import's worker has a heap of its own, at most 2 GB. An import that needs more ends as a stopped import, with the reason in the server's log.
204
+ - An import that three starts began and none ended (its worker failed, or the server ended during it) is given up: the owner's yes is dropped, later starts do not take it up, and `GET /v2/setup/import` answers `{"state": "failed"}` to the owner, which the console says. A stop by the server's own shutdown is not counted. To try again, run `agentrun-serve import` with the server stopped. The three starts are counted across the whole import, a start that took some sessions before the server was killed included, and `failed` is answered until the next start, after which the route answers as with no import asked. A kept choice that cannot be read (a damaged file) is given up at once and imports nothing: it is never taken for "every project".
205
+ - The projects listed before the owner is set (`candidates`) have the values of the server's own keys cut from `name` and `path`, as the import cuts them from a folder's name. They are answered only where the import is offered, a server on this machine's loopback with open setup and no public address, to a request from its own page.
206
+ - The console's Triggers page is framed as its other list pages are. It has the header bar with the place's icon and name, and its five New buttons sit in that bar at toolbar size with New schedule, the main one, last; it had a large title in the page and large buttons beside it. With no trigger yet, the panel that offers the five kinds has no tinted frame around it: its words start at the page's left edge, under the header's, and its five buttons are alike, since none of them is the main one.
207
+ - The Learning tab shows the owner's bill: run after run, what the agent has cost with learning (every run that does a job, its look-back, grade, audit shadow run and its share of its workflow revision's compile and check, booked dollars only), cumulative, against the agent doing all of it (the mean of its own runs before its first run on a served path, times the runs), with a break-even marker where the bill falls to that line and stays, or "not yet" with the gap. Under it, the audit line (agreement over the hold window and all time, each hold at the run the server placed it on) and the serving workflow's nodes with their tiers, code checks and the check it was promoted on. <!-- changes/learning-tab-bill.md -->
208
+ - `GET /agents/{id}/learning/cost` has `bill`: its points, the baseline, the first served run, `break_even` or `gap_usd` (spend booked after the last point included), the runs withheld, each revision's compile and check spend as its next `compile_after` served runs carry it (a revision is its workflow and its digest: two workflows of the same text each pay their own way), what no run carries (`unattributed_usd`: the booked total less every run's all-in) and each hold at its run (`holds`).
209
+ - `GET /agents/{id}/learning/promotions` has each serving workflow's `champion`: its nodes with their tiers and code checks and the check it was promoted on, read by the champion's recorded digest and commit.
210
+ - `GET /runs/{id}` has `path`, and its `cost.usd` is the job's own: `cost.learning_usd` is what learning spent for the run (its look-back, a compile turn left out, its grade, its audit's shadow run, its share of its revision's compile and check) and `cost.all_in_usd` the two. A compile turn is its revision's; one whose drafts all failed is in the bill's `unattributed_usd`. Every run's `all_in_usd` plus `unattributed_usd` is the bill's total.
211
+ - A shadow run is in no run list, sends no webhook and is no run of `GET /stats` or the analytics' counts; its cost stays in their dollars, on the day and in the groups of the run it audits.
212
+ - The cost series' run figures, the bill's dollars and a run's `cost.usd`, `cost.learning_usd` and `cost.all_in_usd` are as booked, their float noise rounded off at 1e-12, no longer rounded to 1e-6: a decision's sub-micro-dollar cost is in them, and a run's `cost.usd` is what its usage row books.
213
+ - The server has `deleteLearning`, the learning half of an agent's delete: the learning folder (its git history and audits.jsonl) and the agent's promotion, grade and eval records, refused while learning work is in flight, and safe to call again after a crash.
214
+ - Upgrading: `cost.usd` on `GET /runs/{id}` is now the job's own spend, so a run's look-back and compile spend move to `cost.learning_usd` (a compile turn's to the runs its revision serves), as does a served run's audit shadow cost. Read `cost.all_in_usd` for what learning added to the run.
215
+ - A Codex run under a small spend cap no longer stops as early on a hold that overstated its next request. <!-- changes/codex-cap-hold-billed-after.md -->
216
+
217
+ A request that only adds items to the session's last billed request is now held at that bill plus the bytes of the items it adds, with the local count's margin. The bill is all of that request's `input_tokens`, cached tokens included. Any other difference falls back to the local count, as before: changed instructions, tools, reasoning or model, or an earlier item edited, removed or moved.
218
+
219
+ Once the run has seen its model reason, a request's least output is 1,024 tokens plus twice the most reasoning one answer reported, within its effort's allowance. Before that it is the whole allowance, as before.
220
+
221
+ The request is still sent with all the output the cap fits, and the hold is still its worst case, so the cap is never passed. When the provider cuts an answer at the output the cap limited it to, the turn says so. A final answer cut that way ends the run with "the run's $0.50 cap stopped the model at N tokens before it finished its answer: raise the cap to at least $X to let it finish", where $X is the cap that sends that request whole with the run's wrap-up reserve still kept beside it.
222
+
223
+ An image in a custom tool call's output (Codex code mode's exec) is now counted at its billed tokens, as one in a function call's output already was.
224
+ - A Composio trigger's config seals more addresses, and a `PATCH` no longer undoes a seal made while it ran. <!-- changes/composio-seal-followup.md -->
225
+ - An address in any scheme with an `@` after `scheme://` and before any whitespace is sealed whole, so a password holding a raw `/`, `?` or `#` (`mongodb://u:pa/ss@host`) is caught too. An `@` in a path or query is sealed as well.
226
+ - A `PATCH` that carries a `source` writes it only on the trigger as it read it. If another write changed the trigger meanwhile (the after-start seal, or a poll's next time), the `PATCH` is checked again on the trigger as it is then, up to three times, then answers `412 precondition_failed`. The check compares the trigger's source as well as its time, so two writes in the same millisecond can't pass for one; the after-start seal's own write is checked the same way. One read before a seal is refused rather than writing the value back in the clear.
227
+ - Deleting a trigger masks every config field of the create answers kept for it under an `Idempotency-Key`, and saves them at once. A start masks those of a trigger already gone the same way before it serves, so no replay hands back a value no trigger is left to seal.
228
+ - Console polish: <!-- changes/console-bars-level-computers-templates.md -->
229
+ - Every page's top bar is 48 px, so its bottom edge meets the one under the navigation's logo. Most bars were 1 px taller, and the agent editor's 17 px taller. Section titles look alike: Mission Control's was the only one not in capitals.
230
+ - A run's page has its breadcrumb in that bar, above its title.
231
+ - Templates has the sections' top bar. A template's page and the install page lead back to the list from it.
232
+ - Settings → Computers offers Test connection only for a provider whose keys are saved, and a key that changes clears the last result. Paste, Replace and Remove sit beside their key.
233
+ - An agent's run search has its magnifier inside the field, and Mission Control's three Try it buttons look alike.
234
+ - The server starts on a data directory that is a mounted disk. Its first-start check for an earlier version's files stopped with `EACCES` on the disk's `lost+found`, which belongs to root with mode 700. It now skips any path it can't look into. An earlier version wrote its files as the server's own user, so they can't be hiding there. <!-- changes/data-dir-lost-found.md -->
235
+
5
236
  ## 0.1.0-beta.43 (2026-11-17)
6
237
 
7
238
  - The old learning promotion loop is gone. A learned workflow has one path to serving: its one check against the agent's own answers, then promote, or hold and one recompile. Nothing else moves it.