@parcha/agentrun-serve 0.1.0-beta.52 → 0.1.0-beta.54

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 (287) hide show
  1. package/CHANGELOG.md +149 -1
  2. package/README.md +295 -37
  3. package/dist/agent-delete.d.ts +5 -6
  4. package/dist/agent-delete.js +30 -67
  5. package/dist/agent-package.d.ts +71 -0
  6. package/dist/agent-package.js +345 -0
  7. package/dist/agent-rows.d.ts +1 -1
  8. package/dist/agents-store.d.ts +26 -20
  9. package/dist/agents-store.js +42 -34
  10. package/dist/api-only.d.ts +25 -6
  11. package/dist/api-only.js +34 -13
  12. package/dist/claude-login.d.ts +1 -0
  13. package/dist/claude-login.js +1 -1
  14. package/dist/cli-learning/cli.d.ts +3 -0
  15. package/dist/cli-learning/cli.js +17 -3
  16. package/dist/cli-learning/connections.js +3 -2
  17. package/dist/cli-learning/schema.js +2 -1
  18. package/dist/cli.js +76 -8
  19. package/dist/composio-preset.d.ts +3 -1
  20. package/dist/composio-preset.js +5 -3
  21. package/dist/composio-triggers.d.ts +4 -0
  22. package/dist/composio-triggers.js +4 -1
  23. package/dist/computer-needs.d.ts +32 -0
  24. package/dist/computer-needs.js +80 -0
  25. package/dist/computer-setting.d.ts +5 -2
  26. package/dist/computer-setting.js +8 -1
  27. package/dist/computers.d.ts +0 -2
  28. package/dist/computers.js +1 -1
  29. package/dist/console/assets/index-B_85An2t.js +745 -0
  30. package/dist/console/assets/index-n1YsbnYh.css +1 -0
  31. package/dist/console/index.html +2 -2
  32. package/dist/console-links.d.ts +1 -0
  33. package/dist/console-links.js +2 -0
  34. package/dist/env-switch.d.ts +14 -0
  35. package/dist/env-switch.js +23 -0
  36. package/dist/errors.d.ts +5 -0
  37. package/dist/errors.js +10 -0
  38. package/dist/eval-previous.js +4 -3
  39. package/dist/fal-price.js +10 -13
  40. package/dist/github-connection.d.ts +50 -1
  41. package/dist/github-connection.js +96 -3
  42. package/dist/github-faux.d.ts +11 -2
  43. package/dist/github-faux.js +138 -7
  44. package/dist/github-pull-request.d.ts +37 -0
  45. package/dist/github-pull-request.js +110 -0
  46. package/dist/handed-secret.d.ts +4 -0
  47. package/dist/handed-secret.js +10 -0
  48. package/dist/harness-archive.d.ts +15 -5
  49. package/dist/harness-archive.js +71 -34
  50. package/dist/harness-check.d.ts +2 -1
  51. package/dist/harness-check.js +36 -95
  52. package/dist/harness-egress.d.ts +23 -0
  53. package/dist/harness-egress.js +69 -0
  54. package/dist/harness-recipe-entry.d.ts +71 -0
  55. package/dist/harness-recipe-entry.js +184 -0
  56. package/dist/harness-recipe.d.ts +73 -6
  57. package/dist/harness-recipe.js +185 -31
  58. package/dist/harness-sign-in.d.ts +29 -0
  59. package/dist/harness-sign-in.js +122 -0
  60. package/dist/harness-table.d.ts +21 -0
  61. package/dist/harness-table.js +58 -3
  62. package/dist/harness-zip.d.ts +6 -0
  63. package/dist/harness-zip.js +203 -0
  64. package/dist/ids.d.ts +11 -0
  65. package/dist/ids.js +36 -0
  66. package/dist/learn/commit.d.ts +14 -1
  67. package/dist/learn/commit.js +156 -1
  68. package/dist/learn/compile.js +22 -8
  69. package/dist/learn/folder.d.ts +5 -0
  70. package/dist/learn/folder.js +10 -1
  71. package/dist/learn/learning.sh +15 -3
  72. package/dist/learn/promote.d.ts +2 -2
  73. package/dist/learn/secrets.js +30 -7
  74. package/dist/learning-routes.d.ts +23 -11
  75. package/dist/learning-routes.js +110 -20
  76. package/dist/learning.d.ts +9 -6
  77. package/dist/learning.js +9 -4
  78. package/dist/live-reach.d.ts +34 -7
  79. package/dist/live-reach.js +76 -11
  80. package/dist/mcp-gateway.js +15 -2
  81. package/dist/mcp-probe.d.ts +3 -0
  82. package/dist/mcp-probe.js +8 -3
  83. package/dist/mcp-resources.d.ts +44 -0
  84. package/dist/mcp-resources.js +100 -0
  85. package/dist/mcp-servers-store.d.ts +16 -12
  86. package/dist/model.d.ts +4 -4
  87. package/dist/model.js +6 -6
  88. package/dist/native/cli.js +9 -2
  89. package/dist/native/connection.d.ts +2 -2
  90. package/dist/native/connection.js +5 -2
  91. package/dist/native/discovery.d.ts +2 -0
  92. package/dist/native/discovery.js +10 -6
  93. package/dist/native/remote-worker-bridge.js +36 -4
  94. package/dist/native/remote.d.ts +18 -1
  95. package/dist/native/remote.js +126 -37
  96. package/dist/native/schema.d.ts +6 -0
  97. package/dist/native/schema.js +31 -6
  98. package/dist/native/source-account.d.ts +13 -0
  99. package/dist/native/source-account.js +114 -0
  100. package/dist/native/source-capture-hooks.d.ts +5 -0
  101. package/dist/native/source-capture-hooks.js +102 -0
  102. package/dist/native/source-mcp-selection.d.ts +13 -0
  103. package/dist/native/source-mcp-selection.js +72 -0
  104. package/dist/native/source-runtime-tools.d.ts +19 -0
  105. package/dist/native/source-runtime-tools.js +103 -0
  106. package/dist/native/source-snapshot-types.d.ts +138 -0
  107. package/dist/native/source-snapshot-types.js +12 -0
  108. package/dist/native/source-snapshot.d.ts +8 -0
  109. package/dist/native/source-snapshot.js +1201 -0
  110. package/dist/observation/learning.js +3 -2
  111. package/dist/openapi.js +275 -40
  112. package/dist/print.js +1 -1
  113. package/dist/purged-workflow.d.ts +12 -0
  114. package/dist/purged-workflow.js +43 -0
  115. package/dist/run-keys.d.ts +46 -0
  116. package/dist/run-keys.js +109 -0
  117. package/dist/run-launch.d.ts +16 -1
  118. package/dist/run-launch.js +30 -1
  119. package/dist/run-learning-served.d.ts +2 -2
  120. package/dist/run-model-key.d.ts +2 -2
  121. package/dist/run-model-key.js +5 -5
  122. package/dist/run-secrets.d.ts +2 -0
  123. package/dist/run-secrets.js +7 -4
  124. package/dist/run-view.d.ts +17 -0
  125. package/dist/run-view.js +25 -1
  126. package/dist/runner/adapter-loop.d.ts +11 -3
  127. package/dist/runner/adapter-loop.js +138 -22
  128. package/dist/runner/adapter-run-spec.js +26 -13
  129. package/dist/runner/audit.d.ts +2 -0
  130. package/dist/runner/audit.js +9 -1
  131. package/dist/runner/beside.js +2 -1
  132. package/dist/runner/claim-secrets.d.ts +29 -3
  133. package/dist/runner/claim-secrets.js +38 -4
  134. package/dist/runner/cli-run-spec.js +24 -13
  135. package/dist/runner/harness-loops.d.ts +6 -0
  136. package/dist/runner/harness-loops.js +11 -1
  137. package/dist/runner/held.d.ts +4 -0
  138. package/dist/runner/journal-kinds.d.ts +2 -0
  139. package/dist/runner/learned-first.d.ts +2 -0
  140. package/dist/runner/learned-first.js +1 -1
  141. package/dist/runner/learning-end.d.ts +7 -2
  142. package/dist/runner/learning-end.js +22 -10
  143. package/dist/runner/learning-seed.d.ts +9 -3
  144. package/dist/runner/learning-seed.js +2 -2
  145. package/dist/runner/main.d.ts +1 -0
  146. package/dist/runner/main.js +20 -13
  147. package/dist/runner/mcp-claim.js +6 -1
  148. package/dist/runner/mcp-run.d.ts +10 -7
  149. package/dist/runner/mcp-run.js +3 -5
  150. package/dist/runner/metrics.d.ts +4 -2
  151. package/dist/runner/metrics.js +15 -3
  152. package/dist/runner/monid-run.js +9 -11
  153. package/dist/runner/pr-checkout.d.ts +21 -4
  154. package/dist/runner/pr-checkout.js +103 -4
  155. package/dist/runner/project-checkpoint.d.ts +35 -0
  156. package/dist/runner/project-checkpoint.js +116 -0
  157. package/dist/runner/project-drain.d.ts +8 -0
  158. package/dist/runner/project-drain.js +25 -0
  159. package/dist/runner/project-host.d.ts +10 -0
  160. package/dist/runner/project-host.js +52 -0
  161. package/dist/runner/promotion.d.ts +14 -6
  162. package/dist/runner/promotion.js +98 -41
  163. package/dist/runner/redact.d.ts +13 -0
  164. package/dist/runner/redact.js +67 -1
  165. package/dist/runner/run-channel.d.ts +9 -0
  166. package/dist/runner/run-channel.js +15 -2
  167. package/dist/runner/run-child-host.d.ts +8 -4
  168. package/dist/runner/run-child-host.js +178 -45
  169. package/dist/runner/run-errors.js +2 -2
  170. package/dist/runner/runner-check.d.ts +3 -0
  171. package/dist/runner/runner-check.js +28 -2
  172. package/dist/runner/runner.js +26 -9
  173. package/dist/runner/store-secrets.js +7 -3
  174. package/dist/runner/workflow-first.d.ts +4 -0
  175. package/dist/runner/workflow-first.js +13 -0
  176. package/dist/runner/workflow-loop.d.ts +2 -1
  177. package/dist/runner/workflow-loop.js +2 -1
  178. package/dist/runner/workflow-spec.js +1 -1
  179. package/dist/runs-over-store.d.ts +34 -6
  180. package/dist/runs-over-store.js +133 -25
  181. package/dist/sdk/runs.d.ts +11 -1
  182. package/dist/sdk/runs.js +117 -26
  183. package/dist/sdk/schema.js +12 -2
  184. package/dist/sdk/workflows.d.ts +1 -1
  185. package/dist/server.d.ts +79 -32
  186. package/dist/server.js +673 -113
  187. package/dist/skills/agentrun-serve/SKILL.md +2 -1
  188. package/dist/source-sync/adoption.d.ts +15 -0
  189. package/dist/source-sync/adoption.js +36 -0
  190. package/dist/source-sync/auxiliary.d.ts +23 -0
  191. package/dist/source-sync/auxiliary.js +64 -0
  192. package/dist/source-sync/capture-git.d.ts +5 -0
  193. package/dist/source-sync/capture-git.js +272 -0
  194. package/dist/source-sync/capture-project.d.ts +53 -0
  195. package/dist/source-sync/capture-project.js +206 -0
  196. package/dist/source-sync/capture-refusal.d.ts +7 -0
  197. package/dist/source-sync/capture-refusal.js +16 -0
  198. package/dist/source-sync/capture.d.ts +11 -0
  199. package/dist/source-sync/capture.js +22 -0
  200. package/dist/source-sync/checkpoint-gate.d.ts +21 -0
  201. package/dist/source-sync/checkpoint-gate.js +52 -0
  202. package/dist/source-sync/checkpoints.d.ts +66 -0
  203. package/dist/source-sync/checkpoints.js +168 -0
  204. package/dist/source-sync/claim.d.ts +11 -0
  205. package/dist/source-sync/claim.js +48 -0
  206. package/dist/source-sync/destination.d.ts +47 -0
  207. package/dist/source-sync/destination.js +239 -0
  208. package/dist/source-sync/io.d.ts +15 -0
  209. package/dist/source-sync/io.js +52 -0
  210. package/dist/source-sync/local.d.ts +43 -0
  211. package/dist/source-sync/local.js +229 -0
  212. package/dist/source-sync/prepare.d.ts +59 -0
  213. package/dist/source-sync/prepare.js +93 -0
  214. package/dist/source-sync/projects.d.ts +61 -0
  215. package/dist/source-sync/projects.js +130 -0
  216. package/dist/source-sync/registry.d.ts +95 -0
  217. package/dist/source-sync/registry.js +226 -0
  218. package/dist/source-sync/service.d.ts +33 -0
  219. package/dist/source-sync/service.js +118 -0
  220. package/dist/source-sync/skill-edits.d.ts +12 -0
  221. package/dist/source-sync/skill-edits.js +122 -0
  222. package/dist/source-sync/snapshots.d.ts +48 -0
  223. package/dist/source-sync/snapshots.js +448 -0
  224. package/dist/source-sync/types.d.ts +9 -0
  225. package/dist/source-sync/types.js +14 -0
  226. package/dist/source-sync/workspace.d.ts +66 -0
  227. package/dist/source-sync/workspace.js +273 -0
  228. package/dist/store/agent-body.d.ts +6 -2
  229. package/dist/store/agent-body.js +18 -7
  230. package/dist/store/index.d.ts +2 -2
  231. package/dist/store/index.js +1 -1
  232. package/dist/store/schema.d.ts +2 -1
  233. package/dist/store/schema.js +2 -1
  234. package/dist/store/seal.d.ts +5 -1
  235. package/dist/store/seal.js +12 -3
  236. package/dist/store/sqlite/project-checkpoints.d.ts +11 -0
  237. package/dist/store/sqlite/project-checkpoints.js +70 -0
  238. package/dist/store/sqlite/run-launch.d.ts +4 -12
  239. package/dist/store/sqlite/run-launch.js +5 -19
  240. package/dist/store/sqlite/store.js +224 -170
  241. package/dist/store/store.d.ts +116 -39
  242. package/dist/store/store.js +14 -1
  243. package/dist/store-reads/learning.d.ts +2 -2
  244. package/dist/store-view.d.ts +3 -1
  245. package/dist/store-view.js +17 -5
  246. package/dist/suggestions.d.ts +282 -0
  247. package/dist/suggestions.js +919 -0
  248. package/dist/telemetry.d.ts +8 -1
  249. package/dist/telemetry.js +12 -4
  250. package/dist/template-import.d.ts +27 -2
  251. package/dist/template-import.js +148 -13
  252. package/dist/templates.d.ts +103 -77
  253. package/dist/templates.js +71 -17
  254. package/dist/timeline/index.d.ts +1 -1
  255. package/dist/timeline/index.js +1 -1
  256. package/dist/timeline/timeline.d.ts +5 -0
  257. package/dist/timeline/timeline.js +8 -0
  258. package/dist/tool-plane.d.ts +12 -12
  259. package/dist/tools.d.ts +8 -8
  260. package/dist/trigger-launch-hook.d.ts +49 -0
  261. package/dist/trigger-launch-hook.js +91 -0
  262. package/dist/trigger-targets.d.ts +14 -1
  263. package/dist/trigger-targets.js +20 -0
  264. package/dist/triggers.d.ts +54 -5
  265. package/dist/triggers.js +143 -8
  266. package/dist/uploads-archil.js +1 -1
  267. package/dist/uploads.js +1 -1
  268. package/dist/validate.d.ts +1 -1
  269. package/dist/validate.js +3 -4
  270. package/dist/workspace/computer-for-claim.d.ts +2 -0
  271. package/dist/workspace/computer-for-claim.js +43 -0
  272. package/dist/workspace/paths.d.ts +6 -0
  273. package/dist/workspace/paths.js +6 -0
  274. package/dist/workspace/resolve-computer.d.ts +1 -0
  275. package/dist/workspace/run-tools.d.ts +2 -0
  276. package/dist/workspace/run-tools.js +8 -0
  277. package/dist/workspace/synced-folder.d.ts +1 -1
  278. package/dist/workspace/synced-folder.js +11 -14
  279. package/launcher/agentrun-serve +1 -1
  280. package/package.json +10 -10
  281. package/skills/agentrun-serve/SKILL.md +2 -1
  282. package/templates/README.md +8 -4
  283. package/templates/agent-scout/agent.md +46 -0
  284. package/templates/agent-scout/skills/scout/SKILL.md +88 -0
  285. package/templates/agent-scout/skills/scout/suggestions.schema.json +112 -0
  286. package/dist/console/assets/index-B-D0EM3j.js +0 -733
  287. package/dist/console/assets/index-DlQepP2J.css +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,154 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.0-beta.54 (2026-11-23)
6
+
7
+ **Breaking:**
8
+
9
+ - `@parcha/agentrun-computer` no longer exports `PUSHED_MTIME` or `MAX_TAR_MTIME`. A caller that pushed a folder into a synced computer and stamped each file with `PUSHED_MTIME` itself now calls the new `FolderSync.push(entries, options)`: it gives each file the pushed mtime, pushes the tar, and takes the baseline, and its failure says which of the two steps failed. `baseline()` stays for a folder pushed some other way. <!-- changes/b26-sync-record-cleanup.md -->
10
+ - `GET /v2/computers`: a kind's `record` is now one of `{ available: true }` and `{ available: false, why }`, `why` always present when `available` is false (it was optional). A client that read `record.why` as possibly absent can drop its fallback, and the generated TypeScript and Python types narrow on `available`.
11
+ - The `path` option of `createComputerRoutes` is gone: a kind's `record` looks for ffmpeg on the PATH of the `env` option, the server's own when it has none.
12
+ - The synced folder's serve test no longer waits a real second to prove a pushed file is not racy; it reads the pushed mtime from the computer.
13
+
14
+ **Changes:**
15
+
16
+ - A Groundbox provider: `providerFor("groundbox", { apiKey })` makes each computer a Groundbox sandbox, a Firecracker microVM started from the box image (the public tag its `prepareImage()` answers, which Groundbox turns into a disk at the first create), or from a spec's own image: `"default"` (the team's default template, else Groundbox's own Ubuntu image), a template of the key's team, or any other public image. It is a `MachineHost` on the shared adapter: `src/groundbox.ts` calls Groundbox's REST API with `fetch`, and the daemon runs as a child of one resumable command of the WebSocket command stream, handed to `framedExec`: when a socket closes, as every one does within the hour, a new one attaches from the last output position read, so no output is lost or read twice, and each stdin write is one answered call that writes the command's fifo. The daemon is uploaded through the files API. Network none, open and a list are init's, and the run's folder is a synced folder. Its lifetime is the janitor's, by the deadline label, and Groundbox's own timer ends every sandbox at the adapter's backstop; a computer may live up to 30 days less 6 minutes, a day by default. `list` is one call, filtered by `live=true` and the labels as metadata. A spec's `cpus` (whole, 1 to 16) and `memoryMb` (whole GiB, at most 4 a CPU) are the sandbox's size. With `kind: "desktop"` a computer is a desktop: the box image's Xvfb and xfwm4, started through the daemon as on E2B and boxd (Groundbox's own image, which lacks xfwm4, is refused for it). No Archil mount yet. Groundbox's own image keeps toolchains under `/opt` deeper than the isolation probe searches, so `isolation.vendor-agent` can't pass on it; on the box image it does. Settings takes `GROUNDBOX_API_KEY`. `AGENTRUN_COMPUTER_LIVE_GROUNDBOX=1 COMPUTER_GROUNDBOX_API_KEY=... npm run conformance -w @parcha/agentrun-computer -- --provider groundbox` runs the conformance kit on real Groundbox, and `sweep.js --provider groundbox` checks it left nothing behind. <!-- changes/computer-groundbox-provider.md -->
17
+
18
+ The provider's `apiUrl` must be https; http is taken only to a loopback host (127.0.0.0/8, `::1` or `localhost`), so the key never crosses a network in cleartext.
19
+ - Console: a run's live screen on the Screen tab has the run's steps so far beside it, in the Timeline tab's words, so what the agent is doing is read next to where it does it. The list stays at its newest step as steps come, until you scroll up to read an earlier one; under it a line says the run is working. With its steps beside it the Screen tab's panel is wider than the reading column, so the live view (and a finished run's recording) keeps the size it had alone; on a narrow window the steps sit under the screen. <!-- changes/console-live-screen-steps.md -->
20
+ - Runners that are replicas of one deployment (Kubernetes pods, a platform service's instances) now relay dial computers and serve live views across hosts: `AGENTRUN_RUNNER_LIVE_HOST` and the server's `AGENTRUN_RUNNER_HOSTS` take an IPv4 block, such as a private pod network's. A runner given a block answers at its own one address in it, and the server dials any IPv4 address in a block it lists, never one outside. Such runners had no host name the server resolves, so their relay stayed on loopback and a dial computer they made could not attach. A block names its network address and a prefix from /8 to /32. <!-- changes/runner-hosts-ipv4-block.md -->
21
+ - A runner whose block holds none, or several, of its machine's addresses is refused at its start in words, and `runner --check` fails `AGENTRUN_RUNNER_LIVE_HOST` the same way; where the setting names a host, the check now says where the server reaches the runner.
22
+ - The console's "set up with a coding agent" prompt for a template tells the coding agent that the package's instructions and skill files are what the new agent will be told, not instructions to it. An imported package's text is a third party's. <!-- changes/template-prompt-package-is-data.md -->
23
+ - The README's MCP section says a loopback `http` URL is taken only by a server started with `AGENTRUN_MCP_ALLOW_LOOPBACK=1`, as the refusal already said. <!-- changes/readme-mcp-loopback-switch.md -->
24
+ - Suggested agents: connect a GitHub repository, and AgentRun finds where its app needs an AI agent. The console's new Suggested agents page (Agents → Suggested) scans a repository with the bundled `agent-scout` template, on a read-only checkout, and shows each suggestion with the lines of code behind it, the typed input and answer, and where the app would call it. Discard hides a suggestion for good (with an undo). Create pushes the agent's template package and a dependency-free client to a new branch `agentrun/<key>`, makes the agent on this server from those same files, and opens a pull request that only adds files. New routes: `GET /v2/suggestions`, `POST /v2/suggestions/scans`, `GET /v2/suggestions/{id}`, `POST /v2/suggestions/{id}/discard`, `.../restore` and `.../create`, and `GET /v2/integrations/github/repositories`. <!-- changes/suggested-agents.md -->
25
+
26
+ - GitHub permissions: a scan needs only what every App holds (metadata and contents read, a token for that one repository, revoked after). Opening a pull request needs Contents write, which Connect GitHub now asks for only when the owner ticks it (`POST /v2/integrations/github/connect` takes `contents: "write"`); an App made before is not widened, and Create says what is missing and links the App's permissions page and the installation's. Each create mints one token for the one repository with contents and pull requests write, and revokes it.
27
+ - An agent definition, and a template's manifest, take `checkout: repository`: the server checks out the head of the default branch of the repository the run names, one commit deep, in `repo/`, and lists its files in `repo/.git/agentrun-files`.
28
+ - New error codes, all 409: `github_not_installed`, `github_permission_missing`, `github_file_exists`, `suggestion_decided`.
29
+ - The anonymous usage counts (`docs/telemetry.md`) say how suggested agents are used, with three new events: `suggestions_scanned` (a scan of a repository starts), `suggestion_discarded` (a suggestion is discarded) and `suggested_agent_created` (a suggested agent's pull request opens, once per suggestion). Each is its name alone, with the fields every event already holds; it never says the repository, the suggestion, its agent or its pull request. The same settings turn them off (`AGENTRUN_TELEMETRY=0`, `DO_NOT_TRACK=1`, CI, a test runner, `--faux`), and the start that prints the notice sends none of them: a use that day is not counted. `startServe` takes `onUsage`, which hears each event's name. <!-- changes/suggestion-usage-counts.md -->
30
+ - A live run on your Claude plan (or a ChatGPT plan) no longer reads "not priced" while a request is in flight: the run's cost counts that request at $0 on the plan, as the ended run does, so the header reads its tokens and "On your Claude plan" and the timeline's "Cost so far" counts no plan request as not priced. <!-- changes/plan-cost-live.md -->
31
+
32
+ ## 0.1.0-beta.53 (2026-11-22)
33
+
34
+ - An agent can be exported as a template package: `GET /v2/agents/{agent_id}/package` answers its current revision as the files of a package (`agent.md` with the instructions as its body, `skills/`, `rules/`, an output schema) and their sha256, and `agentrun export AGENT --out DIR` writes them as a folder that `agentrun template validate` reads and any AgentRun applies. `agent.md` always names the model and approvals. MCP tools become needs by their saved server's source and toolkit, and triggers carry no agent and no secret. What names this host (its box, its computer's provider, its pins of this server's tool listings, its place) is left out. The answer's `report` names what can't travel as it is: `blocked` (an MCP server saved nowhere here, on this machine's loopback, or sending its own auth header) and `remade` (webhook, GitHub, Composio and email triggers, browser sign-ins, a paired computer, what the agent learned). `agentrun export` prints both, and with anything blocked it writes nothing and exits 2. A native, CLI learning, SDK or another system's agent, or a workflow, answers `409 not_exportable`. <!-- changes/agent-export.md -->
35
+ - `agentrun deploy DIR --to URL` deploys an agent package folder to another AgentRun (`--to cloud` is the hosted one; `AGENTRUN_CLOUD_URL` overrides its address). It uploads the package, prints the apply's plan (create or revise, the keys and MCP servers the target lacks, each trigger made, kept or removed, the computer), asks before it applies (`--yes` off a terminal), and writes a lock to `DIR/.agentrun/deploy.json`. A second deploy of the same files says it is up to date and sends nothing that writes; changed files make the agent's next revision. A target the package needs keys or connections on exits 3 with nothing made, and an agent edited on the target since the last deploy exits 2 unless `--force`. `agentrun deploy rollback` makes the previous revision current, and `agentrun deploy delete` deletes the agent and the lock. `agentrun deploy AGENT_ID` deploys an agent from this install by its package; `--pause-source` turns its schedules off here once it is deployed. <!-- changes/agentrun-deploy.md -->
36
+ - `POST /v2/templates/import` takes `{files}`, a package uploaded whole, checked under the GitHub import's limits and in its words, stored as `upload:<name>` with the package's sha256, and replaced by the next upload of that name. An upload asks no publisher trust. A server that serves the API alone takes an upload and refuses a GitHub `source`.
37
+ - `POST /v2/templates/{id}/apply` takes `dry_run: true`: it answers `{plan}` from the apply's own reads and checks and writes nothing.
38
+ - `POST /v2/templates/{id}/apply` takes `revision` (with `agent_id`) and `sha`, what the caller read: the apply, or its plan, is 412 when the agent's current revision or the package stored under that id is another, with nothing changed. Its answer names the revision it wrote, or kept, as `revision_id`. A plan whose keys are missing lists them even where the model needs one of them, and a plan on a server with no public URL says a Composio trigger is skipped, as the apply does.
39
+ - `agentrun deploy delete` removes the lock only when the agent is gone from the target: a 404 to the archive or the delete is followed by a read of the agent, and one still there exits 2 with nothing deleted and the lock kept. `agentrun deploy AGENT_ID` exits 2 for an agent this install does not have or does not export. `--to` takes an address whose path lacks `/v2` (`https://host/api` is `https://host/api/v2`).
40
+ - A folder's lock comes with the folder, so its target gets the API key only where this CLI has deployed before, or when it is AgentRun cloud: any other address needs `--to`, and nothing is sent until then.
41
+ - A plan lists `MONID_API_KEY` as missing where the package grants a monid tool and the server has no monid key, as the apply refuses it.
42
+ - A deploy whose apply skipped a trigger (a connection or a feed the target lacks) leaves a lock that names no package, so the next deploy of the same files applies again and makes the trigger once it can.
43
+ - One deploy, rollback or delete at a time per source: another one of the same folder or install agent exits 2 with nothing sent, and a hold left by a process of this machine that has ended is taken. The CLI's own deploy record is changed under a lock. A folder whose `.agentrun`, or its `deploy.json`, is a symbolic link is refused with nothing sent.
44
+ - An API-only server (`AGENTRUN_API_ONLY=1`) takes a deploy from the backend in front of it, with the server's token: a template's apply (a redeploy with `agent_id`), the agent's read, its revisions, a rollback (`POST /agents/{id}/current`), and its archive (which its delete needs first) and unarchive. Every run there starts through the backend, on its keys and budget: with the launch hook set, the apply makes the package's schedule and feed triggers and each firing goes to the backend, which starts the run through the API (the unarchive turns them on again); without the hook it makes neither (`not_set_up_here`). A webhook, GitHub, Composio or email trigger is never made there (`not_an_option`). Each skipped trigger is a warning under `warnings` (`triggers.<i>`), and the dry run plans it as `skip` in the same words. Every other agent, template, trigger, hook and settings route stays refused. <!-- changes/api-only-deploy-routes.md -->
45
+ - The computer package ships a documents image (`packages/computer/documents`): the default image plus python-pptx, python-docx and openpyxl for `python3` and pptxgenjs, docx and exceljs for `node`, built as the serve README's "The box's image" says and named in `AGENTRUN_DOCKER_IMAGE`. `computer.needs` may now name a Python or Node library by its pip or npm name, and a box that lacks one fails its run in words naming this image's build. <!-- changes/documents-image.md -->
46
+ - The console's Learning tab opens on what learning did, once a learned workflow has taken a run over: one sentence, then four figures, each with the count it stands on. The cost ratio is the server's own; how often the serving revision's answer was the agent's on its promotion check, and how many of the runs it ran first it finished alone, are shares with their 95% interval; the last is the bill's break-even run. <!-- changes/learning-tab-glance.md -->
47
+ - A new chart, cost against agreement, draws each promoted revision as one point: what a run it served cost, all in, against how often its answer was the agent's on its check's inputs, with that share's 95% interval, the bar it had to clear to serve, and the agent as the reference at what a run cost it before takeover. A hollow mark beside each point is the same revision's audits since. It sits beside the bill on a wide page.
48
+ - The learned workflow, with its revisions to step through, stands beside the cost of a run where the tab has room for both, and under it otherwise: the steps that take a run over are next to the line that falls when they do.
49
+ - Who finished each run is drawn a run a column wherever the chart is wide enough to give each run one, so a hand-back shows on its own run; a narrower chart keeps blocks of runs.
50
+ - Every figure is one count the API already gives: a check's `agreed` of its `alone`, the audit ledger's rows, the cost summary and the bill. A check's count and an audit's are never added together, and agreement is never called accuracy: the agent's answer is the reference, not the truth. The tab reads the audit ledger once for the figures, the chart and the audit line. No API changes.
51
+ - A harness recipe now covers an outside agent's release as its vendor ships it (Google's agy CLI among them), and the owner's own sign-in, made by the agent itself: <!-- changes/recipes-outside-harness.md -->
52
+ - `.zip` releases install, unpacked in Node with no `unzip` on the host. An entry that leaves the folder (`..`, an absolute path, a backslash), a symbolic link, a device, an encrypted entry or a duplicate refuses the whole archive before anything lands.
53
+ - An archive is pinned by one digest, its `sha256` or, where the vendor's manifest lists that, its `sha512` (Google's agy CLI manifests). `release.registry` is optional, for a release that is the vendor's own rather than the ACP registry's.
54
+ - Every file the archive unpacks to is pinned, not the binary alone: the tree's sha256 is recorded at the first install (or given as the release's `treeSha256`), and a check or a sign-in refuses a sidecar that changed since.
55
+ - A release may give its own `args` per platform, over the recipe's.
56
+ - `model.id` picks a plan-billed agent's model among those its `session/new` lists (`session/set_model`); one it does not list is refused before a prompt.
57
+ - A key may be handed under the name the agent reads: `keys: [{ "name": "ANTIGRAVITY_GEMINI_API_KEY", "env": "GEMINI_API_KEY" }]`. It is read by its saved name, so the server's own `GEMINI_API_KEY` never reaches the agent. `keyMethod` is the method the agent's ACP `authenticate` signs in with on it (`gemini-api-key`).
58
+ - One list in the kernel, `launchEnv` (`LAUNCH_ENV`, `LAUNCH_ENV_PREFIXES`), names the variables that change what a process loads or runs before its own code: `PATH`, `LD_*`, `DYLD_*`, `NODE_OPTIONS`, `NODE_PATH`, `PYTHON*`, `BASH_*`, `ENV`, `GIT_*` and a few shells' and interpreters' start-up variables. A key is never handed under one of them, nor a recipe's `env` or `model.env` named one. The recipe loader and the ACP adapter both refuse them.
59
+ - A key's saved and handed names follow the kernel's `KEY_NAME` (capitals, digits and `_`, at most 64) in the recipe loader as in the ACP adapter, so `harness-check` no longer refuses a lowercase key name the loader took. Other variable names keep `ENV_NAME`.
60
+ - `signIn: { "args": [...], "homeArg": FLAG }` names the agent's own sign-in, as T3 Code runs agy: `agentrun harness sign-in --recipe FILE` starts the installed, unmodified agent on your terminal with its arguments, `args` (`--login`) and `homeArg` naming its own folder (`--gemini-dir DIR`). The agent prints the address, reads the code you paste and keeps its sign-in in that folder; exit 0 is signed in (`HARNESS_SIGN_IN_FAILED` otherwise).
61
+ - harness-check runs on the recipe's keys alone, never the sign-in, so a plan-billed recipe names a key beside any `signIn`. A run on the sign-in hands the agent `homeArg` and its folder, no key, nothing it prints kept.
62
+ - AgentRun never reads, refreshes or sends the sign-in's token, and has no usage reader: it never opens the folder, and a test keeps every credential file and Google account or quota endpoint out of the harness sources.
63
+ - The ACP adapter's `stderr: "none"` (`AcpRecipe`) keeps nothing an agent prints, for a run on a sign-in: a failure says its exit status and AgentRun's own code, and an error the agent answers says its JSON-RPC code alone.
64
+ - A template's apply keeps the names of the keys the package declared (its `secrets`, and those of the model choice it took) on the revision it writes, never their values, so `GET /v2/agents/{agent_id}/package` names them after the server's copy of the template changes, as a bundled template does on every upgrade. Applying the same package again still writes no revision. Only an agent applied before this keeps its `report.remade` entry for keys that can't be recovered. <!-- changes/revision-secrets.md -->
65
+ - A run says when it stopped short for its spend cap. Every run read and list item carries `stopped_for` and `budget_refused_calls`. `stopped_for` is `"budget"` on a `completed` run that wound down to stay under its `max_cost_usd`: its model was told to wrap up near the cap, or its tool calls were refused there. It is null on every other run. `budget_refused_calls` counts the tool calls the cap's wrap-up refused, each call once, and is 0 when none were. Before, such a run read `completed` like any other, and nothing on it said the cap had cut it short. The status stays `completed`, so a reader that sets "budget exhausted" reads `stopped_for`. A run paused at its cap (`pending.kind` `budget`) and one its cap ended (`failed`, `spend_cap_reached`) read as before. The server keeps each refusal on the run's journal as it happens; a run that ended before this server reads `stopped_for: "budget"` when its model was told to wrap up, and 0 refused calls. <!-- changes/run-stopped-for-budget.md -->
66
+ - A sandbox can list the programs its agent needs on the box's PATH, `computer.needs` (such as `["chrome", "ffmpeg", "ffprobe", "hyperframes"]`), and the computer package ships a media image that has them. Each run's claim asks the box it started before the run's first model request, searching the folders the agent's shell searches, not a PATH the image sets; a box that lacks one, or that cannot be asked, is let go and the run ends `failed` (`run_failed`) in words naming what is missing and how to give the box an image that has it. The field never picks an image: a Docker box's image is still `AGENTRUN_DOCKER_IMAGE`'s. A setting that has `needs` but is no sandbox (a stored body or a launch's computer the validator never saw) fails the run at claim the same way, before anything is started. An agent without `needs` is checked for nothing. A template states them as `needs` in its agent.md, read only beside `computer: [shell]`: apply writes them onto the sandbox it picks as the agent's `computer.needs`, and where the shell here is no sandbox (Archil's serverless exec, or none) it refuses (`409`) in words naming them and `AGENTRUN_DOCKER_IMAGE`, making nothing. `GET /v2/templates` shows them as `needs`. A server before this release refuses a template that names `needs` as an unknown field. <!-- changes/sandbox-needs-media-image.md -->
67
+ The media image's recipe is `packages/computer/media/Dockerfile`: the default image's base and programs, plus Node 24, Chromium as `chrome`, FFmpeg and FFprobe, Noto (CJK, colour emoji) and Liberation fonts, and the HyperFrames CLI at an exact version, with its usage reports off and the image's fonts compressed for it at build, so a render with no network doesn't spend a minute of its compile compressing Noto Color Emoji. Build it and name its tag in `AGENTRUN_DOCKER_IMAGE`; the serve README's "The box's image" has the commands. It is not published.
68
+ - Keep newly connected Codex and Claude Code setups in sync by default, and move a supported complete setup to AgentRun from the existing agent page. Move preserves the agent's identity, history, source capture and unified usage, and checks destination tools, accounts, model, policy and project restoration before switching execution. <!-- changes/source-sync-move.md -->
69
+
70
+ Managed runs retain project checkpoints for later runs. Source and managed changes produce reviewable conflicts;
71
+ uncertain saves require review before another run. Existing connections require an explicit export grant, native
72
+ credentials stay at the source, and unsupported capabilities remain named prerequisites. See
73
+ [source sync](../../docs/source-sync.md) for compatibility and recovery behavior. Automatic notes and learned skills
74
+ remain retired; authored source skills retain their files and modes.
75
+ Owner skill edits after Move produce a new immutable project for future runs while preserving existing runs and
76
+ unchanged companion assets. Git checkpoints exclude ignored dependency trees before applying project limits and
77
+ file checks. An upload refused before project seeding releases its write receipt only after destination and upload
78
+ cleanup have both settled; unknown or dispatched writes continue to block deletion.
79
+ Completed checkpoint reads that refuse staged Git changes, secrets or unsupported files release their write receipt
80
+ only after scratch, cache, tools and provider cleanup settle under the original claim. The rejected save remains
81
+ visible and unpublished. Failed commands, changed files, lost write acknowledgments and uncertain cleanup retain
82
+ their receipts and continue to block deletion.
83
+ Terminal moved runs whose child crashed before checkpointing now require project review instead of silently starting
84
+ from an older saved project. Recovery reads the committed end, or the exact terminal claim when no end could be
85
+ written; it never invents a checkpoint or publishes orphan files. Missing-end reviews use `entry_id: null` and the
86
+ required `attempt_epoch`, so reviewing an earlier failure cannot acknowledge a later one. Active and queued runs
87
+ are not classified as failed merely because their checkpoint is still pending.
88
+ Moved projects on local storage now place attachments before restoring project files, pin their exact input paths,
89
+ and refuse collisions before admission. Claims and follow-ups reuse the placed files; checkpoints exclude those
90
+ attachments while retaining authored files in the same inputs directory.
91
+
92
+ Moved agents can learn checked workflows on the server using their existing learning settings. Replay and eligible
93
+ shadow-audit runs receive isolated copies of the reserved project; their results remain learning evidence, while
94
+ their settled file changes are explicitly discarded rather than published to the saved project. Uncertain writes
95
+ retain recovery receipts, and the existing restrictions on auditing write-capable agents still apply.
96
+ An audit that stops at an approval can still settle its private project under its original held claim, so that
97
+ refused tool call does not falsely block later runs. Parked runs gain no new tool-dispatch permission; superseded
98
+ claims and unresolved writes still refuse settlement. The bounded host-settlement model covers this transition;
99
+ the DSL effect-admission and recovery-driver models are unchanged.
100
+
101
+ Supported HTTP MCP connections retain source tool selections and denials, with explicit destination account binding.
102
+ Resource lists, templates and reads use the same pinned grants, credentials and permission gate; resource-only servers
103
+ are supported on managed AgentRun; native Codex 0.171.0 has a resource-only discovery limitation. Incomplete resource listings fail visibly, and resource bodies that echo connection credentials are
104
+ scrubbed or withheld before filing. Three upstream tool names are now reserved for these generated resource operations:
105
+ `agentrun_list_resources`, `agentrun_list_resource_templates` and `agentrun_read_resource`. A conflicting upstream tool
106
+ must be renamed before its server can connect. Stdio connections and unsupported native capabilities remain prerequisites.
107
+
108
+ Unknown source storage-write outcomes retain receipts and block deletion until independently resolved; restarting
109
+ or acknowledging a run checkpoint does not clear a source write receipt.
110
+
111
+ The Codex adapter preserves native rollout ordinals when recording an approved tool's result before resuming. This
112
+ fixes pinned Codex 0.164.0 rejecting the resumed thread after approval. Existing mixed or invalid ordinal histories
113
+ remain retained and fail before another tool dispatch; they are not silently rewritten or retried. Older wholly
114
+ unnumbered journals retain their format. This serialization fix leaves recovery admission, intent and result ordering
115
+ unchanged, so the recovery models do not change.
116
+ - An ACP run (Cursor, Goose, or a harness recipe) no longer stalls after many turns. Before, the adapter copied the agent's whole session store into the run's records at every turn, so the records grew with the square of the turn count. After about 20 Cursor turns they no longer fit the 32 MiB channel to the run's process: an approval answered 204, and the run then waited for good. Now the mirror stores each file as 64 KiB pieces, each written once per session, so a store that grows by appending costs only its new bytes. It never copies SQLite's `-shm` file, and holds at most 8 MiB per session. Past that, the run's timeline says "The agent's session state passed 8 MiB, so a resume starts it fresh with the conversation so far." and the mirror stops. A run whose records no longer cross to its process now fails at once, naming the size and the limit, and the approval that woke it is answered that the run failed. Adapters get a `notice` event, which serve shows as a step on the run's timeline. A session store mirrored before this version is not restored: such a run resumes fresh with the conversation so far. <!-- changes/acp-state-mirror-bounded.md -->
117
+ - The console's trigger forms make a trigger for a connected agent: a new schedule, webhook, GitHub trigger, app trigger, feed trigger or email trigger asks such an agent for no cost cap and sends none, and says why in place of the field ("None. A connected agent runs in its own CLI, which keeps its own limits: AgentRun cannot cap its runs."). Before, each form required a cap the server refuses on a connected agent's target (422 `target.max_cost_usd`), so no such trigger could be made from the console. <!-- changes/console-trigger-connected-agent-no-cap.md -->
118
+ - A schedule edited onto a connected agent drops its cap, and the effort it carried, which the server refuses there too.
119
+ - A trigger's page reads the same words under Cost cap for a connected agent, in place of "Agent's default".
120
+ - For every other agent the forms are as they were: a cap is required unless the agent has a default one.
121
+ - `agentrun deploy DIR` uploads the folder's package and nothing else of it: `agent.md`, the `skills/`, `rules/` and `evals/` trees, and the answer's schema file `agent.md` names (`output: {schema}`) at the folder's root. A `.env`, a key, a README or any other file or folder beside them stays on this machine. A folder with no `agent.md` exits 2 with nothing sent. <!-- changes/deploy-upload-custody.md -->
122
+ - Deleting an agent (`DELETE /v2/agents/{agent_id}` once archived, as `agentrun deploy delete` does) also removes the uploaded package (`upload:<name>`) it was applied from, in the same write, when no other agent on that server, archived or not, was applied from it. A package imported from GitHub stays. Before, an upload stayed until the next upload of its name, and a server that serves the API alone could never remove one.
123
+ - A deploy, rollback or delete that waits for another CLI to finish saving its deploy record says so on stderr.
124
+ - The dial conformance script accepts `AGENTRUN_BIND_HOST` so local verification can bind to `127.0.0.1` without exposing a public listener. Its local fixture tests use this setting; leaving it unset preserves the public listener used by remote machines. <!-- changes/dial-conformance-bind-host.md -->
125
+ - `GET /v2/agents/{agent_id}/package` no longer copies a credential in the clear into a package. A trigger's source (a feed URL with a `?token=`, `?key=`, `?sig=` or `?password=` query, an address with a user part), its run input (an `api_key` field) and an MCP tool's pin are read the way a composio trigger's config is sealed, and each credential is a `report.blocked` entry of kind `trigger` or `pin` named by its field (`Status: source.urls.0`, `slack: pin.post.api_key`), never by its value. The trigger or pin is left out, and `agentrun export` and `agentrun deploy` write nothing and exit 2, as they do for any blocked entry. A query such as `?page=2` still exports. `report.blocked[].kind` and `report.remade[].kind` are now an enum in the OpenAPI document, so the generated clients type them. <!-- changes/export-custody.md -->
126
+ - A run a paid call stopped for good (a fal job or monid call settled above its hold, taking the run past its cap) now stays stopped when a call that passed the tool gate beside it is admitted after the stop and refused for room. Before, that refusal replaced the stop, so a script's next call ran; the run still ended failed at its next model request. <!-- changes/fal-cap-stop-sticky.md -->
127
+ - A fal job whose output states more than its input asked for (a larger image, a longer clip) is still booked at what its output states, and when that takes the run past its spend cap, the run now stops at once in the cap's words: no tool runs after it, a script's own calls included. Before, the run went on until its next model request. The stop reads only what the run has been charged: a job still running counts toward whether a new call is let through, never toward stopping the run, so one that settles above its hold beside another still running stops the run only if the charges, once in, pass the cap. A fal job priced by the length of the media it is given is now only one of the endpoints fal bills that way (ElevenLabs dubbing, voice isolation and speech-to-text, and sync-lipsync v2); another endpoint billed per second whose input names no length, such as a talking video made from a voice or LatentSync, which fal bills by its output video, is refused under a cap and booked as an unknown charge without one. <!-- changes/fal-cap-stop.md -->
128
+ - A connected agent's held draft is now revised as its hold says. Before, its run's end never found the held workflow (the task never matched it as the run's input), so a check's hold never asked its one recompile and a hold after five give-backs stayed held for good. The held workflow is now the one the task fits, as the start reserves a check. A hold after five give-backs asks its revise only once the agent has `compile_after` completed runs of its own started since the hold, the same wait as a first compile, so a client that never sends a shadow check costs one compile per `compile_after` runs. That revise prompt says nothing was checked and there are no disagreements to show, and no longer says that nothing compiles again. <!-- changes/give-back-hold-cadence.md -->
129
+ - A monid call charged above the estimate it was held at no longer stops a run that can still afford it. It is booked as charged and logged, and the run stops only when that charge takes it past its spend cap, in the cap's words, as a fal job's does. Before, any such charge stopped the run, failed, in the words "monid charged $X, more than the $Y held; the run stopped", even far below its cap. <!-- changes/monid-overrun-cap.md -->
130
+ - A stored agent body refuses a sandbox's `computer.needs` of more than 32 programs, as the API already did, in the API's words: the store, the API document and a template's `needs` now read one rule. <!-- changes/needs-store-cap.md -->
131
+ - A run's purge (`DELETE /v2/runs/{run_id}`) now takes the run's text off its agent's learning folder's current files: its diff files go, and the feedback lines its merges added to `corrections.md` leave main in one commit by the host per merge (none when nothing is left to take off; a line a person edited since stays). Another merge's diff that shows such a line as context is written without it. The folder's history reads (`GET /v2/agents/{agent_id}/learning`, its `/log`, a workflow's `/revisions`, and a champion read by its digest in `/promotions`) no longer serve the purged run's merges, and a log page read before the purge is followed by the next with no change skipped; a champion whose revision was the run's (or that it changed last on main) reads as one no commit holds. Each merge's scrub lands once, so a `DELETE` sent again after a stop takes no other run's same line, and a merge of the run made since is scrubbed by it. It covers the learning folder on the server; a Mode 2 agent's folder on an Archil disk keeps the text until a reset or the agent's purge. The bytes stay in the folder's `.git` until a learning reset (`DELETE /v2/agents/{agent_id}/learning`) or the agent's purge, which delete the folder whole; a promotion record keeps its commit ids. A second `DELETE` of a purged run does this again, so a run purged before this release loses its text the same way; it is `204` with no body as before, and `503 unavailable` while the learning folder can't be written. <!-- changes/purge-learning-text.md -->
132
+ - Run ids minted in one millisecond now list and claim in creation order: every run id comes from the monotonic UUIDv7 minter uploads already use, so two runs started in the same millisecond list newest first and a runner claims the older first. Before, a run id's bits after its time were random, and such runs listed and were claimed in either order. A purge on SQLite now writes its scrub marker (`store.sqlite.scrub`) before it changes a row, so a full disk refuses the `DELETE` (500 `internal`) with nothing purged and the retry purges whole. A retried `DELETE` of a purged run or agent does no checkpoint and writes nothing. A purge that commits and then fails (a Postgres commit left unanswered) no longer keeps the run's answer and input in the server's memory. <!-- changes/purge-marker-first.md -->
133
+ - A learned workflow whose `workflow.json` a purged run changed last is refused by every read, however old its merge: its file read is `410 purged`, a champion read by its digest reads no commit, a later merge's diff shows the file as added (never the purged text), an SDK start sent again whose receipt pinned it is `410 purged`, and no run lays or serves it, so the agent takes the run. Before, the file read, the diff, an SDK receipt and a run's seed served the purged text, and a champion read served it once the merge was older than the log's newest 200 changes. <!-- changes/purged-workflow-refused.md -->
134
+ - A run can bring its own tool keys: `keys: {"PARALLEL_API_KEY": "..."}` on `POST /v2/runs`, `POST /v2/agents/{agent_id}/runs` and a message, for the tool keys its revision reads (422 at `keys.<NAME>` otherwise). <!-- changes/run-keys.md -->
135
+ Each one is sealed with the run's launch, opened at its claim for its tools alone and erased from the store when its turn ends; the runner's redactor keeps the value in memory to cut it. It is never in the run's body, timeline, view or logs, and the runner cuts it from what the run writes.
136
+ `AGENTRUN_RUN_KEYS=1`: a template's apply makes its agent though a tool key it declares is not set here, with a warning, and each run of that agent must bring the key in `keys` (409 `agent_not_runnable` at `keys.<NAME>` without it). Keys the server holds are still used by runs that bring none. The monid key stays the server's: an agent's monid tools are checked with it when the agent is saved, so with none on the server a template granting them is still refused at its apply.
137
+ - A run's purge takes each learned workflow whose `workflow.json` it changed last off main, its README.md too, so both file reads are `404`, the learning view no longer lists it, and the next compile turn is never asked to revise its text. Before, its README.md and description were still served and a held revision of it went into the next run's compile prompt; a run purged before this takes its workflows off when its `DELETE` is sent again. <!-- changes/purge-takes-workflows-off-main.md -->
138
+ - Console: a finished run's recording on the Screen tab has the run's steps beside it. Each step the run took while the file was recorded is listed at its time on the video, in the Timeline tab's words; clicking one moves the video there, and the step the video is at is marked as it plays. A step's time is its timeline time since the row that says the recording began, so a run whose timeline has no such row plays its recording alone, as before. The steps sit beside the player on a wide window and under it on a narrow one. <!-- changes/console-recording-steps.md -->
139
+ - Launch hook: with `AGENTRUN_LAUNCH_HOOK_URL` and `AGENTRUN_LAUNCH_HOOK_SECRET` set, each trigger firing that would start a run is POSTed to the host instead, signed as Standard Webhooks (`{firing_id, trigger_id, agent_id, revision_id, input, fired_at}`), and the host starts the run through the API with its own keys and cap. The host passes the new `trigger_firing` (`{trigger_id, firing_id}`) on `POST /agents/{agent_id}/runs`, so the run is the firing's: it carries the trigger, its title and input origin, and the firing reads `started` with it, counted by the overlap check and `max_active_runs`. The host may start the run before or after it answers: a 2xx without the run records the firing `sent` with `start_by`, 10 minutes after that answer, and it takes that one start until then. The 10 minutes run from the answer, not from `fired_at`, so a catch-up, a firing that waited on `max_active_runs` or one handed again after a restart gets the same time. Any other answer, or none in 10 s, records it `skipped` with why. The hook URL is https, or http to 127.0.0.0/8, `::1` or `localhost` alone; any other http URL stops the start. On an API-only server (`AGENTRUN_API_ONLY=1`), the hook is what lets a template's apply make its schedule and feed triggers. Unset, firings start their runs as before, and `trigger_firing` is refused. <!-- changes/trigger-launch-hook.md -->
140
+ - `GET /v2/settings/mcp-server-names` answers the names of the MCP servers saved here, `{names}`, and nothing else of them: no URL, auth type, header, tool or Composio record. It takes the server's token and is served on an API-only server too (`AGENTRUN_API_ONLY=1`), so a host that builds runs from saved servers can hold back a job whose server isn't saved before its launch is refused for it. <!-- changes/mcp-server-names.md -->
141
+ - A Composio user id may now hold a `:` (a team's, say), in a save's `user_id` and a run's `mcp_auth`. A space, a slash and a `~` are still refused. <!-- changes/composio-team-user.md -->
142
+ - A key a run brings in `keys` or `model_key` is text of 8 or more characters with no space or control character: a shorter one could not be cut from what the run writes, so it is now 422 `invalid` at `keys.<NAME>` or `model_key`, the value never echoed. With `AGENTRUN_RUN_KEYS=1`, no trigger is made whose firings would run an agent without the tool keys each of its runs must bring: a template's apply skips such triggers with a warning at `triggers.<N>` (`not_set_up_here`, the apply still 201) unless the launch hook is set, and `POST /v2/triggers`, or a `PATCH` that moves a trigger, is 409 `agent_not_runnable` naming the keys for one that would start such runs with no hook, or message one of them. <!-- changes/run-keys-hardening.md -->
143
+ - A run's view, and so every runs list, is several times faster for runs with long timelines: redacting a timeline's rows no longer derives every held value's forms again for each row (its path spellings, base64 at three alignments, percent forms, hex and folded patterns). What is derived of a set of values is kept per array and derived again when the array's values change, so a value a caller adds is still cut, and what is cut is unchanged. On a store of code-review runs of about 2,500 journal writes each, one run's view went from about 3.2 s to 0.7 s, and a list of ten runs from about 22 s to 5 s. <!-- changes/redact-derived-once.md -->
144
+ - A server runs a harness recipe it is started with: `agentrun-serve --harness-recipe FILE` (repeatable, or `AGENTRUN_SERVE_HARNESS_RECIPES`), and `agentrun-serve runner` takes the same flag. The harness is listed, and a run starts, only once a `harness-check` passed on the data directory for that recipe file, binary and tree (`<id>.checked`; else `HARNESS_NOT_CHECKED`); each start digests the binary and tree again. A proxy-billed agent runs on the server's model proxy. A plan-billed one runs on keys saved for its harness, which no server saves yet (`HARNESS_KEYS_NOT_SAVED`), or, on a server its owner starts with `--harness-sign-in` on their own machine (loopback, its own SQLite store, its runs as its own user, one owner; else `HARNESS_SIGN_IN_NOT_LOCAL`), on the owner's own sign-in for a run a person starts; a scheduled or triggered run on it is refused at its claim, and a `message_run` trigger to a run on it is refused when made and skipped at each firing. `harness-check` runs on a recipe's keys alone, never the sign-in, and a plan-billed recipe must name a key. `agentrun harness sign-in` prints one warning line that the vendor's terms (the recipe's new `signIn.terms`) may not cover use through AgentRun. A run's agent reaches beyond loopback only through the server's egress proxy, to the recipe's `model.hosts`. The loader now refuses a key whose name is not shaped as a key (`FOO_CRED`: `RECIPE_KEY_NOT_OWN`). <!-- changes/recipe-run-path.md -->
145
+ - A template package can be read on its own: `GET /v2/templates/{template}` reads one package, bundled or imported, as `GET /v2/templates` lists it, with its instructions and every skill file in full (placeholders unfilled) and its apply page as `console_url`; an unknown id is `404`, an imported id is URL-encoded. CLI: `agentrun template get TEMPLATE`; clients: `template.get(id)`. <!-- changes/get-one-template.md -->
146
+ - A backend SDK run (`POST /agents/{agent_id}/sdk-runs`) can now run longer than an hour, be reported after it began, and carry its own title and labels. <!-- changes/sdk-run-start-fields.md -->
147
+ - Each events batch, an empty `events: []` one included, moves the run's deadline to an hour after that batch, up to 24 hours after its start. A run that misses its deadline still ends with an unknown outcome, as before.
148
+ - The start takes optional `started_at` (RFC 3339, at most 60 seconds ahead of the server's clock and 7 days behind it), which becomes the run's `created_at`. The deadline is still counted from the start request. Those bounds apply to a new start only: a retry under the same `Idempotency-Key` and body of a start that was made gets that run's receipt, however late it comes.
149
+ - The start takes optional `title` (trimmed, 1 to 200 characters), used instead of the input's first 80 characters, and `labels`, under the same rules as `RunCreate.labels`, so `GET /runs?label=<key>:<value>` finds the run. A label holding a server secret is refused.
150
+ - `GET /capabilities` says so in `features.sdk_runs`: `{ started_at: true, title: true, labels: true, max_open_s: 86400 }`.
151
+ - A start without these fields behaves as before. They are for SDK runs; a CLI learning turn takes none of them and keeps its 24-hour window.
152
+
5
153
  ## 0.1.0-beta.52 (2026-11-21)
6
154
 
7
155
  **Breaking:**
@@ -219,7 +367,7 @@
219
367
  - `GET /v2/computers`' `folder` field is described by its rule alone, naming no vendor: `bind` a folder of this machine (Mode 1), `archil` the owner's Archil disk where the provider takes an Archil mount, has Archil's image and does not dial this server, `sync` a synced folder the runner keeps for any other computer that takes a folder in Mode 2, null none. The computer package's README no longer says a program of the user can join the window manager's namespace with nsenter: root made it, and the user holds no capability there. A Daytona desktop on exec is refused in the shared refusal's words alone. `runConformance` takes `onScreenshot(png)`, called with screen.screenshot-size's last whole screenshot. <!-- changes/computer-untangle-16.md -->
220
368
  - In the console, updating an agent from a template (Update <agent>) now says it was updated and names the new revision ("Updated: rev 2"). It used to say the template was applied and "The agent is made", as if the apply had made a new agent. Only an Apply that makes a new agent says "made". <!-- changes/template-update-says-updated.md -->
221
369
  - A scheduled run handed its previous result's `x-carried` fields is told how many entries each carried array lost from its front, "the first N entries" (the template keeps the array oldest first), no longer "the N oldest": the engine drops from the front and reads no dates. A stored `x-carried` the save would refuse (a repeated, unknown or empty name) is read as none, so its run gets the too-large line. `submitParameters` leaves every `x-` keyword out of submit tool schemas, as it does `criteria`, not only `x-carried`; a property or definition so named keeps its name. <!-- changes/x-carried-first-entries.md -->
222
- - A run's look-back (its own after its job, or the feedback round a grade opens) keeps the run's end: GET, the list, SSE and the console show it completed (or failed) with its answer and `ended_at` while its learning reads `reflecting`, polled until it settles, and it tells `run.ended` once. Stop and cancel refuse it then, and a runner-side stop or cancel that lands mid-round drops only the round, so a graded run is never left cancelled or stopped. A runner lost during the look-back leaves the next one the same end at the same time. `PUT /v2/runs/{run_id}/grade` during a look-back is `409 run_learning` (a new error code), nothing kept: grade the run once its learning moves on from `reflecting`. <!-- changes/grade-keeps-run-end.md -->
370
+ - A run's look-back (its own after its job, or the feedback round a grade opens) keeps the run's end, so GET, the list, SSE and the console show it completed or failed with its answer and `ended_at` while its learning reads `reflecting`, it tells `run.ended` once, a stop or cancel that lands mid-round drops only the round, and `PUT /v2/runs/{run_id}/grade` meanwhile is `409 run_learning`, a new error code. <!-- changes/grade-keeps-run-end.md -->
223
371
  - `GET /v2/runs/{run_id}/usage` gives `browser_sessions` (`runusage/2`): one record per browser session the run opened, with the provider's session id, when the server opened it and let it go, why it ended, the seconds charged for it, and the provider's own record of it (`provider_record`: its start, end and proxy bytes), read once when the session is let go. With it a person running AgentRun sees how long each session ran, spots one that ended late or was lost, and finds each on the provider's own dashboard and invoice by its id. A provider that keeps no record, or a read that fails, says so in `provider_record_status`, with the record null, never zeros. In the computer package, a browser provider may offer `sessionUsage(ref)`, the vendor's record of a session; Browserbase's reads `GET /v1/sessions/{id}`. <!-- changes/run-usage-browser-sessions.md -->
224
372
  - `GET /v2/runs/{run_id}/usage` gives `computer_intervals` (`runusage/3`): one record per computer the run made through its provider (a sandbox, a desktop or a phone), by when each was made, with the provider's own id for it (`provider_id`), its `kind`, what its create asked for (`gpu`, `cpus`, `memory_mb`; null where it asked none, never a guess), when the create answered (`started_at`), when the provider's delete of it answered ok (`ended_at`), and whether the run's park kept it past its claim (`kept`). With it a person running AgentRun sees how long each of a run's computers lived, finds one left running after its run (`ended_at` null: no delete was proven, never a guessed end), and matches the provider's invoice by its id. The server writes the store's new `computer_intervals` table (Postgres migration `0022_computer_intervals.sql`; a SQLite store gets it at the server's open) at the claim's create, the park, and every delete that answers ok: the claim's release, a later claim letting an earlier one's go, the run's end, a kept computer's end, and the janitor's sweeps. A write that fails is said on the runner's log and never fails the run. The agent's own computer, a paired one and `--faux`'s have no record. Computer time is not priced: it is on no line and not in `total`. A `tools` line now names its `provider` too, the same vendor as `charged_by`; a `tokens` line behind a model gateway keeps `provider` null, since the server does not know the gateway's upstream. <!-- changes/computer-intervals.md -->
225
373
  - An agent whose `input_schema` fields are all optional takes a run that gives one of them and no `content` (`{"pr_number": 3318}` was refused 422). An input with neither is still refused at `input.content`. <!-- changes/input-content-or-field.md -->