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

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 (190) hide show
  1. package/CHANGELOG.md +110 -2
  2. package/README.md +266 -88
  3. package/dist/adapters.d.ts +10 -0
  4. package/dist/adapters.js +46 -0
  5. package/dist/agent-package.d.ts +3 -3
  6. package/dist/agent-package.js +6 -13
  7. package/dist/agents-store.js +6 -5
  8. package/dist/api-only.d.ts +16 -4
  9. package/dist/api-only.js +21 -7
  10. package/dist/cli.js +5 -3
  11. package/dist/composio-made.d.ts +26 -1
  12. package/dist/composio-made.js +39 -2
  13. package/dist/composio-preset.d.ts +3 -2
  14. package/dist/composio-preset.js +46 -14
  15. package/dist/computer-held-routes.js +2 -3
  16. package/dist/computer-setting.d.ts +4 -2
  17. package/dist/computer-setting.js +0 -2
  18. package/dist/computers-running.d.ts +8 -0
  19. package/dist/computers-running.js +27 -0
  20. package/dist/console/assets/backend-D5EmB4N3.js +166 -0
  21. package/dist/console/assets/index-DUYLaqiR.js +746 -0
  22. package/dist/console/assets/index-DYhU4adm.css +1 -0
  23. package/dist/console/index.html +2 -2
  24. package/dist/docker-host-addresses.d.ts +23 -3
  25. package/dist/docker-host-addresses.js +90 -18
  26. package/dist/exa-keyless.d.ts +2 -3
  27. package/dist/exa-keyless.js +43 -127
  28. package/dist/firecrawl-keyless.d.ts +41 -0
  29. package/dist/firecrawl-keyless.js +152 -0
  30. package/dist/handed-secret.d.ts +3 -1
  31. package/dist/handed-secret.js +4 -2
  32. package/dist/harness-keys.d.ts +98 -0
  33. package/dist/harness-keys.js +247 -0
  34. package/dist/harness-recipe-entry.d.ts +14 -9
  35. package/dist/harness-recipe-entry.js +25 -14
  36. package/dist/harness-table.d.ts +16 -1
  37. package/dist/harness-table.js +19 -7
  38. package/dist/harness.d.ts +4 -0
  39. package/dist/harness.js +12 -1
  40. package/dist/host-check.d.ts +2 -0
  41. package/dist/host-check.js +6 -0
  42. package/dist/import-summary.d.ts +1 -1
  43. package/dist/import-summary.js +1 -1
  44. package/dist/import.d.ts +5 -5
  45. package/dist/import.js +54 -67
  46. package/dist/keyless-mcp.d.ts +36 -0
  47. package/dist/keyless-mcp.js +127 -0
  48. package/dist/learn/audit.d.ts +3 -3
  49. package/dist/learn/audit.js +3 -3
  50. package/dist/learn/commit.d.ts +8 -7
  51. package/dist/learn/commit.js +60 -20
  52. package/dist/learn/compile.d.ts +4 -3
  53. package/dist/learn/compile.js +7 -5
  54. package/dist/learn/folder.d.ts +16 -3
  55. package/dist/learn/folder.js +46 -13
  56. package/dist/learn/promote.d.ts +37 -13
  57. package/dist/learn/promote.js +112 -40
  58. package/dist/learn/secrets.js +10 -2
  59. package/dist/learning-routes.d.ts +22 -17
  60. package/dist/learning-routes.js +40 -39
  61. package/dist/learning.js +2 -2
  62. package/dist/manifest.d.ts +10 -0
  63. package/dist/manifest.js +30 -0
  64. package/dist/mcp-pin-first.d.ts +4 -2
  65. package/dist/mcp-pin-first.js +5 -2
  66. package/dist/mcp-secret-writes.d.ts +16 -7
  67. package/dist/mcp-secret-writes.js +35 -27
  68. package/dist/mcp-servers-store.d.ts +30 -6
  69. package/dist/mcp-servers-store.js +112 -28
  70. package/dist/mcp-sources.d.ts +10 -2
  71. package/dist/mcp-sources.js +9 -2
  72. package/dist/mcp-store.d.ts +13 -7
  73. package/dist/mcp-store.js +12 -9
  74. package/dist/model-form.d.ts +3 -2
  75. package/dist/model-form.js +11 -7
  76. package/dist/model.d.ts +20 -4
  77. package/dist/model.js +68 -9
  78. package/dist/native/history.d.ts +1 -1
  79. package/dist/native/history.js +2 -2
  80. package/dist/ollama-provider.d.ts +92 -0
  81. package/dist/ollama-provider.js +495 -0
  82. package/dist/openapi/agentrun-v2.openapi.json +2 -2
  83. package/dist/openapi.js +127 -37
  84. package/dist/page.d.ts +11 -3
  85. package/dist/page.js +22 -7
  86. package/dist/place-offers.d.ts +17 -1
  87. package/dist/place-offers.js +46 -5
  88. package/dist/print.js +1 -1
  89. package/dist/purged-workflow.d.ts +35 -7
  90. package/dist/purged-workflow.js +73 -26
  91. package/dist/run-computer.d.ts +2 -0
  92. package/dist/run-computer.js +2 -0
  93. package/dist/run-files.d.ts +4 -0
  94. package/dist/run-files.js +4 -0
  95. package/dist/run-keys.d.ts +2 -4
  96. package/dist/run-keys.js +6 -7
  97. package/dist/run-launch.d.ts +4 -0
  98. package/dist/run-launch.js +4 -0
  99. package/dist/run-reads-over-store.d.ts +3 -2
  100. package/dist/run-reads-over-store.js +66 -2
  101. package/dist/run-secrets.js +5 -2
  102. package/dist/runner/adapter-loop.d.ts +6 -3
  103. package/dist/runner/adapter-loop.js +34 -15
  104. package/dist/runner/adapter-run-spec.d.ts +3 -0
  105. package/dist/runner/adapter-run-spec.js +5 -3
  106. package/dist/runner/audit.js +8 -4
  107. package/dist/runner/beside.d.ts +2 -1
  108. package/dist/runner/beside.js +6 -2
  109. package/dist/runner/claim-secrets.d.ts +5 -8
  110. package/dist/runner/claim-secrets.js +6 -0
  111. package/dist/runner/cli-run-spec.d.ts +1 -1
  112. package/dist/runner/cli-run-spec.js +38 -6
  113. package/dist/runner/harness-loops.d.ts +22 -9
  114. package/dist/runner/harness-loops.js +21 -11
  115. package/dist/runner/held.d.ts +3 -0
  116. package/dist/runner/learning-end.d.ts +1 -1
  117. package/dist/runner/learning-end.js +8 -3
  118. package/dist/runner/loop-contract.d.ts +5 -4
  119. package/dist/runner/main.js +4 -2
  120. package/dist/runner/mcp-claim.d.ts +3 -0
  121. package/dist/runner/mcp-claim.js +26 -2
  122. package/dist/runner/mcp-run.d.ts +3 -0
  123. package/dist/runner/mcp-run.js +2 -1
  124. package/dist/runner/metrics.d.ts +10 -10
  125. package/dist/runner/metrics.js +19 -38
  126. package/dist/runner/model-route.d.ts +3 -0
  127. package/dist/runner/model-route.js +6 -2
  128. package/dist/runner/promotion.d.ts +15 -9
  129. package/dist/runner/promotion.js +25 -15
  130. package/dist/runner/run-child-host.js +17 -7
  131. package/dist/runner/run-child.js +3 -1
  132. package/dist/runner/sdk-loop.js +2 -0
  133. package/dist/runner/workflow-loop.d.ts +2 -2
  134. package/dist/runner/workflow-loop.js +1 -2
  135. package/dist/runner/workflow-spec.d.ts +1 -1
  136. package/dist/runner/workflow-spec.js +6 -6
  137. package/dist/sdk/check.d.ts +4 -1
  138. package/dist/sdk/check.js +2 -1
  139. package/dist/sdk/runs.d.ts +2 -2
  140. package/dist/sdk/runs.js +8 -6
  141. package/dist/secret-cut.js +2 -1
  142. package/dist/secret-writes.d.ts +3 -2
  143. package/dist/secret-writes.js +1 -1
  144. package/dist/server.d.ts +44 -8
  145. package/dist/server.js +283 -108
  146. package/dist/standard-webhooks.d.ts +11 -0
  147. package/dist/standard-webhooks.js +20 -2
  148. package/dist/store/index.d.ts +1 -1
  149. package/dist/store/schema.js +5 -2
  150. package/dist/store/sqlite/store.js +90 -34
  151. package/dist/store/store.d.ts +54 -14
  152. package/dist/store-reads/journal.d.ts +7 -2
  153. package/dist/store-reads/journal.js +9 -6
  154. package/dist/store-reads/learning.d.ts +12 -9
  155. package/dist/store-reads/learning.js +18 -24
  156. package/dist/store-view.d.ts +0 -5
  157. package/dist/store-view.js +9 -8
  158. package/dist/template-eval.d.ts +49 -4
  159. package/dist/template-eval.js +168 -45
  160. package/dist/template-import.js +4 -2
  161. package/dist/templates.d.ts +5 -3
  162. package/dist/templates.js +19 -40
  163. package/dist/timeline/labels.d.ts +2 -2
  164. package/dist/timeline/labels.js +2 -2
  165. package/dist/timeline/timeline.d.ts +2 -2
  166. package/dist/timeline/timeline.js +1 -1
  167. package/dist/tool-plane.d.ts +17 -9
  168. package/dist/tool-plane.js +38 -17
  169. package/dist/tools.js +2 -2
  170. package/dist/trigger-launch-hook.d.ts +16 -8
  171. package/dist/trigger-launch-hook.js +32 -23
  172. package/dist/trigger-targets.d.ts +18 -8
  173. package/dist/trigger-targets.js +42 -19
  174. package/dist/triggers.d.ts +85 -23
  175. package/dist/triggers.js +303 -96
  176. package/dist/web-fake.js +3 -3
  177. package/dist/web-fetch-direct.d.ts +4 -0
  178. package/dist/web-fetch-direct.js +8 -1
  179. package/dist/web-fetch.d.ts +12 -3
  180. package/dist/web-fetch.js +47 -14
  181. package/dist/web-search.d.ts +33 -4
  182. package/dist/web-search.js +100 -41
  183. package/dist/webhooks.js +4 -5
  184. package/launcher/agentrun-serve +5 -1
  185. package/package.json +17 -13
  186. package/templates/README.md +2 -2
  187. package/dist/console/assets/index-B_85An2t.js +0 -745
  188. package/dist/console/assets/index-n1YsbnYh.css +0 -1
  189. package/dist/import-sources.d.ts +0 -116
  190. package/dist/import-sources.js +0 -693
package/CHANGELOG.md CHANGED
@@ -2,6 +2,114 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.0-beta.55 (2026-11-23)
6
+
7
+ **Breaking:**
8
+
9
+ - Who breaks: a server with no Parallel key. To keep URLs on the server: PUT /v2/settings/tools {"web_fetch":{"provider":"kernel"}}. That PUT replaces the server's whole tool settings map, so include any other tool settings the server holds. `web_search` and `web_fetch` now default to Firecrawl's public keyless MCP endpoint (`https://mcp.firecrawl.dev/v2/mcp`) where the server holds no Parallel key and the harness has no native search. No key and no header of ours is sent. A Parallel key, when set, still wins. <!-- changes/firecrawl-keyless-default.md -->
10
+ - `web_search` asks keyless Firecrawl first and keyless Exa behind it. When Firecrawl's free daily limit is spent, or it refuses keyless use, it is off for the rest of the run and Exa answers the same call. With both off, the search says it is unavailable for the rest of the run. A rate limit holds a backend for the wait it names, with no cutoff. A pick of `exa-keyless` is still Exa alone.
11
+ - `web_fetch` gains `auto` (the new default) and `firecrawl-keyless`. `auto` is the guarded direct fetch where the server holds a Parallel key, else keyless Firecrawl, with the guarded direct fetch behind it. Firecrawl is sent each URL it reads. Firecrawl sees the whole URL, its query string included. A private, loopback, link-local or intranet URL, or one holding a user name or password, is never sent to Firecrawl, Exa or Parallel. An agent's own `tool_settings` outrank the server's `kernel` pick; only a server's `deny` is absolute.
12
+ - `/v2/capabilities` gives `firecrawl-keyless` as a resolution, with a `why` that says what `web_fetch` sends to Firecrawl. The console labels it "Firecrawl keyless".
13
+ - Launch hook: a host's start for a handed firing (`trigger_firing`) with `revision`, `hold` or `hold_minutes` is now refused with 422 `not_allowed`, naming the field. In 0.1.0-beta.53 they were taken, so a host could start the firing's run on another revision of the agent, or hold its computer. The run starts on the trigger's target, on the agent's current revision. A host that sends them drops them from that request. <!-- changes/launch-hook-fixed-fields.md -->
14
+ - `serve()`'s `launchHook` option no longer takes `timeoutMs`: the host always has 10 seconds to answer a firing, as with a hook set from `AGENTRUN_LAUNCH_HOOK_URL`. In 0.1.0-beta.54 a program that started the server itself could set another bound. A program that set it drops it. <!-- changes/launch-hook-timeout-option.md -->
15
+
16
+ **Changes:**
17
+
18
+ - An API-only server (`AGENTRUN_API_ONLY=1`) saves Composio MCP servers with the server's token and deletes the MCP servers that token saved, and never writes a secret doing it. A Composio server is saved with `"api_key_env": "COMPOSIO_API_KEY"` in place of `api_key`: the server keeps the variable's name, never its value, and reads it at each use (the save's calls to Composio, each run's connection, a delete's), as the server and each runner were started with it, so a new value takes effect when they start again. `COMPOSIO_API_KEY` is on the launcher's list of secrets: it reaches the server and each runner over the launcher's pipe, neither process's environment holds it, and no run is handed it. The runner sends it only as the MCP header of a Composio server the run is granted a tool of. The token saves over and deletes only a server the token saved: a save over one the owner saved (through the Composio save, or on the full server the generic save) or its delete, sealing a credential or not, is `403` to the token on every server, it stays as it was, and nothing is sent to Composio. An owner's save over a server the token saved makes it the owner's once it lands, so the token can no longer change or delete it; an owner's save that is refused (`412`) leaves the server the token's. The ownership is compared in the statement that writes or removes the row, so an owner's save that lands while the token's is under way wins, and the token's is `412`. Any other name is `422 invalid` under `api_key_env`, an unset or blank variable `422 missing`, and a run of a server whose variable is unset is refused before it starts (`409 agent_not_runnable`), naming it. That key is only ever sent to Composio's own origin, fixed in code: a server whose saved address is anywhere else is refused by name at a save, a refresh and a run's start, and nothing is sent. A Composio save's body names no address or headers (`url` or `headers` is `422 not_allowed`, on every server). The token lists the saved servers through `GET /settings/mcp-server-names` alone; it has no list or read of a server, and no generic save. `api_key` from the token stays `403`, as does the token's `api_key_env` on the full server, where the owner's signed-in session saves a Composio server either way. <!-- changes/api-only-mcp-servers.md -->
19
+ - `GET /v2/computers/running` lists every run still going (queued, working, paused or waiting on its person) whose agent has a computer, newest first, each as `GET /v2/runs/{run_id}` answers it, so each carries its `computer` (`starting`, `ready` or `taken_over`, and a held run's hold). The runs list carries no computer, so this is the one read across runs and agents; it costs a run read for each such run and nothing for a run with no computer. It takes the server's token like `GET /v2/computers`, and an API-only server serves it. <!-- changes/computers-running.md -->
20
+ The console's Settings → Computers opens on it as Running now: each run with its status as the run lists say it, its agent, the computer's kind and provider, You drive while you have it, and its hold; a row opens the run. It is read when the page opens and every 10 seconds while the page is shown.
21
+ - Console: Settings has a Demo page whose switch turns on demo mode, which fills the console with a sample company's nine agents (two of them connected Claude Code and Codex setups) and a month of their runs, so a person sees approvals, questions, live runs, workflow graphs, learning and triggers before setting anything up. A strip across every page says the data is sample data and turns it off. <!-- changes/console-demo-mode.md -->
22
+ - The demo is this browser's alone and is answered in the page: no run starts on the server, no model is called, nothing is spent, and the server's agents, runs and settings are not read or changed. The page asks the server only for the session, its capabilities (shown with every model and tool ready, without its secrets' names or its switches) and the templates it ships with.
23
+ - Every action the tour reaches works on the sample data as it would on a server, in the page's memory: answer a question, allow or deny a call, grade an answer, send a follow-up or a steer, raise a spend cap (the run goes on), pause and resume a workflow run, start, stop and archive a run, attach a file, make, edit, archive or restore an agent, edit its corrections, approve, retire or restore a learned workflow, make, edit, run or delete a trigger and rotate its secret, apply a bundled template, create a suggested agent from the sample repository, and connect a Claude Code or Codex setup. A reload starts the story again. While it is on, Settings shows only the Demo page; a write to the server's own settings is refused with `demo_mode`. A coding-agent prompt the console hands out still names the real server, since the coding agent runs outside the page.
24
+ - Every person, company, address and figure in the demo is invented, with hosts ending in `.example`.
25
+ - The console shows a race at `#/races/<label>`: the runs that carry the label `race:<label>`, up to four lanes side by side, each following its run live. A lane shows the harness and model from its run's `harness` and `model` labels, its status, cost against its cap, tokens, tool calls (and how many failed) and its running time, over its newest steps. Lanes are ordered by their `lane` label, never by start time; a run with no `lane` label comes last. The page reads the race again every 15 seconds, so a lane that starts late joins it. <!-- changes/console-race-view.md -->
26
+ - To make a race today, start each run with `labels: {"race": "<label>", "lane": "1", "harness": "...", "model": "..."}` (POST /v2/runs or POST /v2/agents/{agent_id}/runs). A start form follows.
27
+ - Each lane waits about 3 seconds per timeline read instead of 25, so four lanes leave room within the browser's six connections to the server.
28
+ - A server saves a plan-billed harness recipe's own keys, sealed in its store for that harness alone. The owner pastes them in the console's new Settings → Harness keys page (`agentrun harness keys` prints its link), or through `PUT`/`DELETE /v2/settings/harness-keys/{harness_id}/{key}` from the owner's signed-in session; the API token reads `GET /v2/settings/harness-keys` and never writes one. Each claim of a run on the harness opens that harness's keys and no other's, lays them on the agent's start alone, never on its tools, and cuts them from the timeline, errors and the agent's output, a replaced or removed value too. With every key saved, the recipe's runs run on them ahead of the owner's own sign-in, and its scheduled and triggered runs and `message_run` trigger turns, refused until now with `HARNESS_KEYS_NOT_SAVED`, run too. A start runs only on the keys its claim opened, all or none: a run no person started (a scheduled or triggered run, a learned workflow's audit shadow or replay) whose claim opened not every one is refused at its claim, never put on the sign-in, a trigger's message to a person's run that started on the sign-in is refused in that run, keys saved since or not, and a variable of a key's name in the server's own environment is never handed to a run. `harness-check` still reads its keys from the shell's environment alone. <!-- changes/harness-keys-store.md -->
29
+ - New package `@parcha/agentrun-import`: the session readers serve's import used (Claude Code, Codex, pi), as a library of their own, with a registry a new source joins in one line. A reader discovers locators (`{ file, id? }`, the id for a file that holds many sessions) under a home and reads one into sessions from a cursor it owns. serve's import, its summary, eval-previous and the remote history export now read through it; `import-sources.ts` is gone from serve. What changed in the numbers: <!-- changes/import-package.md -->
30
+ - Claude Code: a session's id is its file's name, as Claude Code names it; serve took the first record's `sessionId`, which put a resumed session's file that opens with a copied record under the session it copied from. A record copied into a later file counts only in the first, and a file holding nothing but copies is no session. A request's key is now its message id with its request id; a store imported before holds the bare message id, which still marks a later file's copy of that request, so it is not counted twice.
31
+ - Claude Code: a request written as several lines (one per content block, same `message.id` and `requestId`) counts at its last line's usage, which holds the final counts; serve took each field's largest value across the lines (`most()`), which could pair one line's input with another's output.
32
+ - One usage reading for every source, `normalizeUsage`: `input` is the input neither read from nor written to the cache (Anthropic's `input_tokens` as written; OpenAI's and Codex's with `cached_input_tokens` taken out), `cacheWrite1h` its own bucket, and `reasoning` kept beside `output` where the source gives it. Codex counts each request's `last_token_usage`, never `total_token_usage`.
33
+ - `parseHome(home, { sources })` returns each session's totals, its subagents' requests counted under it and not again as sessions of their own (a subagent whose session is not under the home is a line of its own, with no turns of the person's). A JSONL file's cursor (device, inode, byte offset) lets a second pass read only the bytes appended since; a truncated or replaced file is read from its start, and a last line still being written is not consumed. A second pass returns what a fresh one would: when a file holding a copied record now comes before the file it counts in, the source is read again.
34
+ - `node packages/import/dist/cli.js <home> [--sources claude-code,codex,pi] --known-answer` prints one JSONL line per session, sorted by key (the sha256 of its path relative to the home): tokens, cost (null when unknown), turns and calls. Numbers only: no content, titles, directories or paths. `--help` prints the usage and exits 0. A file that cannot be read prints no answer: one stderr line per file (source, key, error code) and exit 1; `parseHome` hands such files back in `failures`, or throws `ReadFailures` without it. The CLI imports pi-ai statically for its prices (a dependency of the package, so `npx @parcha/agentrun-import` runs it), so it compiles with `bun build --compile` (pi-ai bundled) and prints the same bytes as under Node; without pi-ai the build or the run fails instead of pricing nothing.
35
+ - The server lists the models of this machine's Ollama itself, as `ollama/<tag>` on pi, with no key and no gateway. Start Ollama and its models are in capabilities, the Model picker and pi's free models within half a minute, with no restart. `OLLAMA_HOST` says where it listens, read as the ollama CLI reads it (plain http to loopback alone). Unset, it is 127.0.0.1:11434 only on one owner's own server on their own machine (the rule `--harness-sign-in` starts under); a shared server asks Ollama only where `OLLAMA_HOST` names it. A refused `OLLAMA_HOST` is said once in the server's log, never its value. Requests go to Ollama's own `/api/chat` with `num_ctx` the least of 65,536, the model's trained context and `OLLAMA_CONTEXT_LENGTH` when it is set. A model without the `tools` capability takes its tools as text. They cost $0 and never count toward `AGENTRUN_FREE_MODEL_REQUESTS`, and the console shows no request limit for them. With no model key held, pi's default is the first Ollama model that calls tools; any key wins. A down or stuck Ollama lists nothing and stalls nothing. <!-- changes/ollama-provider.md -->
36
+ - On upgrade: a server with no model key and Ollama running now starts the runs it refused before, on Ollama's first model that calls tools. On a server with an OpenRouter key, Ollama's models head pi's `free_models`, before OpenRouter's free ones. Pulling a model can change the no-key default, and a saved agent that names no model follows it: name the model to pin it.
37
+ - `agentrun service install --env OLLAMA_HOST=<host:port>` gives the service an Ollama off its default address. A service that reaches Ollama through `AGENT_MODEL_BASE_URL` keeps working as before; under a gateway, Ollama is never asked.
38
+ - A run's page names the model it ran on, a run on the host default included, read from its `tokens` usage line: "qwen3:8b · local (Ollama)" for an Ollama model.
39
+ - A run that names no model, on the host's Ollama default, no longer stays refused once that tag is removed from Ollama. Past the listing's half minute, a tag that no longer answers lists Ollama again once, and the run goes to the next model that calls tools, or gets the no-model words. An agent that names `ollama/<tag>` keeps it.
40
+ - A model without the `thinking` capability whose answer opens with `<think>` has that part as thinking up to `</think>`, so the tags stay out of the answer.
41
+ - `CapModel.local` marks a model on the host's own machine: free, and never counted toward the server's free-model limit (`limitedFree`). An agent's own `max_requests` still counts its requests, beside the run's other free ones, so a run on Ollama stops there.
42
+ - Capabilities show pi as available only when a run started now has a model: a key, the gateway's model, the ChatGPT plan, the faux model, or an Ollama model that calls tools. An Ollama whose models take no tools keeps them in the picker, but pi reads not available. With no model, pi's words name Ollama first where the server asks one: "No model yet: start Ollama and pull a model with tools, or add a model key in Settings → Model keys". A shared server with no `OLLAMA_HOST` asks no Ollama, so its words name a key alone. A key saved or an Ollama started later turns it available with no restart.
43
+ - Two findings from the beta.53 QA pass. <!-- changes/b53-autoqa-p3s.md -->
44
+ - `GET /capabilities` no longer serves pi as `available: true` on a server with no model key and no ChatGPT sign-in. A harness none of whose models runs here until a key or the sign-in is added is `available: false`, as codex already is. One whose default model lacks a key while another of its models runs stays available, and its `needs` says what the default lacks. The console's agent page says the missing key once, and still shows a model blocker in other words. The published-server check in `docs/releasing.md` now expects pi to say it needs a model key.
45
+ - `features.sdk_runs.max_open_s` says what it bounds: a run that keeps sending batches. An SDK run that gets no batch closes an hour after its start.
46
+ - `GET /v2/capabilities` says whether `/v2/settings/claude-login` answers here, as `features.claude_login`: false where those routes are 404 (`AGENTRUN_CLAUDE_CODE_LOGIN=off`, a server listening past loopback, as in Docker, without `AGENTRUN_CLAUDE_CODE_LOGIN=on`, or an API-only server). The console's Settings → API Keys reads it first and asks for Claude Code's login only where it answers, so a Docker server's Keys page no longer logs a 404 in the browser at every visit. Against a server older than this field, or when capabilities can't be read, the console asks as before and shows nothing on a 404. Switched off while it waits for a sign-in it started, the row goes and stops asking. <!-- changes/claude-login-capability.md -->
47
+ - Console: the Settings tab row and the strips across the top of every page (demo mode, a lost or resumed connection) are 48px tall, like every page's top bar, so their bottom edge meets the edge under the logo row in the navigation. They were 44 to 45px, and the two lines stepped where they met. <!-- changes/console-top-bars-48px.md -->
48
+ - A hidden file or folder inside a package's `skills/`, `rules/` or `evals/` (a `.env`, a `.DS_Store`) is no part of the package: `agentrun deploy` does not send it, and the server's package reader leaves it out of an upload, a GitHub import and a folder alike. That holds directly under each tree too: `rules/.private.md` is not copied beside each skill, and `skills/.DS_Store` or `evals/.cache/` no longer gets the package refused. A hidden folder at the package's top (a repository's `.github/`) is left out as a hidden file there already was, where it was refused as a folder other than `skills/`, `rules/` and `evals/`. <!-- changes/deploy-export-followups.md -->
49
+ - Deleting an agent removes its uploaded package only when the upload stored under that name is still the one the agent was applied from (its sha256): a newer upload of the same name, waiting for its apply, stays.
50
+ - `agentrun deploy` prints a target's 501 as every command prints one, the unsupported error with its reason, and exits 5.
51
+ - `agentrun deploy AGENT_ID` from an install that refuses its trigger routes, or is not reached once the deploy is applied, exits 0 as deployed: it says the agent's schedules there could not be read (with `--pause-source`, read or paused), with the install's status and message, and never says a schedule it did not turn off is paused. It used to stop there, exit 1 with no answer on stdout, the agent already deployed. An install whose answer stops after its headers (its connection closed) is one not reached.
52
+ - `agentrun deploy AGENT_ID` keeps each lock in a file of its own in the CLI's config (`deploy.<hash>.json`, 0600), and each address it deployed to as an empty file under `deploy-targets/`, so two CLIs deploying at once never write back what the other changed, and none waits on another's save.
53
+ - A lock 0.1.0-beta.53 wrote for `agentrun deploy AGENT_ID` is not read: the next deploy finds the agent it made on the target by its package and parameters and stops, exit 2, naming it, and `--agent ID` deploys onto it. A folder's lock is read as before; a folder deployed to an address other than cloud needs `--to` once. With 0.1.0-beta.53, `agentrun deploy AGENT_ID --to URL` with no lock made a second agent there, whose schedules fire beside the first's.
54
+ - `agentrun deploy` with no lock for its target, where the target already has an agent this package made with these parameters, stops (exit 2, nothing applied) and names it: `--agent ID` deploys onto that agent and the lock names it after, `--agent new` makes another on purpose. With a lock, `--agent` may name only the lock's agent. The apply's plan (`dry_run`) lists those agents as `twins`, by the same rule as the apply's `duplicate` warning; empty for a revise.
55
+ - `agentrun deploy` to an install that never makes one of the package's triggers (a webhook on an API-only install) prints it as skipped and no longer counts it as made later: the lock names the package, the next deploy of the same files is up to date, and "Not made on ... yet" names only a trigger the install makes once it is set up. Each skipped trigger in the apply's plan has a `code` beside its `reason`: `not_set_up_here` or `not_an_option`, as the apply's warning for it.
56
+ - An agent's export names the keys its apply kept on the revision; the export report no longer has a `secrets` entry, and `report.blocked[].kind` and `report.remade[].kind` no longer list it.
57
+ - The skill's command reference names each route a hand-written command calls (`agentrun export`, `agentrun deploy`, `deploy rollback`, `deploy delete`).
58
+ - A correction to 0.1.0-beta.53's note, which said an export "no longer copies a credential in the clear into a package": it no longer copies a field named like a credential, or an address with a user part or a credential-named query parameter. A credential under any other name is copied as it is.
59
+ - A server in a container (compose.yaml) whose read of the Docker host's addresses failed at the start (a busy host's Docker ran out of time) now reads them again in the background, after 15 s, 30 s, 60 s and 120 s, then every 4 minutes, until a read answers or the server stops. Once one does, Docker is offered with no restart: capabilities and a run's start see it, and the log says `docker_host_addresses` and `boxes` again. The start's banner still says what the start found. <!-- changes/docker-host-read-retry.md -->
60
+ - The read's helper containers (`agentrun-host-read-*`) no longer pile up: a read that ran out of time or failed removes its container by name, and one Docker didn't confirm gone is removed again at the next read. A failed read's words name its container only when it is still there, with the `docker rm -f` that removes it.
61
+ - `agentrun-serve eval-template --server URL` stops before any run, and exits 2, when that server was started with `AGENTRUN_RUN_KEYS=1` and lacks a tool key the package declares: an eval's runs carry no `keys`, so the server would refuse each one. The message names the key and says to run the eval without `--server`, or on a server that holds the key. In 0.1.0-beta.54 every case ran into that 409 and failed, and the eval exited 1. <!-- changes/eval-server-run-keys.md -->
62
+ - A key a run brings in `keys` or `model_key` is now visible ASCII alone (`!` to `~`, no space), as a header carries it. In 0.1.0-beta.53 a key with a character past ASCII was taken, and one of 4 characters outside the 16-bit range (8 UTF-16 units) passed the 8-character floor though the cut, which counts characters, never cut it from what the run writes. Such a key is now 422 `invalid` at `keys.<NAME>` or `model_key`, the value never echoed. <!-- changes/handed-key-visible-ascii.md -->
63
+ - An update apply that skips a template's trigger (with `AGENTRUN_RUN_KEYS=1` and an agent that owes a key, or on an API-only server, and no launch hook) leaves the agent's trigger of that name as it was. When that trigger is on, the skip's warning now says it is kept and still fires, names it, and says how to turn it off: `PATCH /v2/triggers/{id}` with `{"enabled": false}`, or, on an API-only server, the agent's archive. In 0.1.0-beta.54 the warning said only that the trigger was not made. <!-- changes/kept-trigger-skip-warning.md -->
64
+ - Launch hook: a run the host starts for a handed firing (`trigger_firing`) now starts on the trigger's target, as a run the server starts for it does. In 0.1.0-beta.53 it ran at the host's `max_cost_usd` or the agent's default, so a schedule capped at $0.50 on an agent with a $5 default ran at $5, and it dropped the target's effort and the trigger's last result. <!-- changes/launch-hook-target-policy.md -->
65
+
66
+ - Its cap is the lower of the target's `max_cost_usd` and the host's: the host may lower it, never raise it. A target with no cap takes the agent's default in its place, so a host's $500 on an agent with a $2 default runs at $2, as the trigger's own run would.
67
+ - Its effort is the target's when the target sets one, else the host's.
68
+ - Its input is followed by the trigger's last result when its source hands one on (a schedule does), as on a run the server starts.
69
+ - The rest of the host's body is taken as on any start: its `model_key`, `keys` and `mcp_auth` are sealed for the run.
70
+
71
+ A hook that does not take a firing is now a failed try under the trigger's retry policy, no longer `skipped`. The firing's error is `hook_failed`, and its reason names the status, `timeout` or the connection's error code, never the hook's URL, which can carry a query token. No answer, no connection, a 5xx or a 429 keeps the firing `due` with `retry_at`, to be handed again on the trigger's backoff; any other answer, a redirect included, fails it, and the failed firing sends `trigger.failed`.
72
+
73
+ A firing now counts once toward its trigger's failure streak, when it fails, however many tries it took. In 0.1.0-beta.53 each try counted, so one firing tried again on a busy server could turn its trigger off by itself.
74
+
75
+ A host start that lands while its firing waits on a retry makes the firing `started` with that run, so the overlap check, `max_active_runs` and `last_run_id` count it, while its trigger has room for it: a firing whose place another firing's run has taken since is refused with 422 `not_due`. One that lands just as the server records the hook's answer leaves the firing `started` with its run: the answer no longer sets it back to `sent`, fails it or counts a failure.
76
+
77
+ A firing the host took with no run yet (`sent`, with `start_by`) now holds its trigger's room, as a run in progress would, until its run starts or its `start_by` passes. With `max_active_runs`, a later firing waits for that room; without it, the overlap check skips a later firing, naming the held one. In 0.1.0-beta.53 a later firing was handed into that window, and the host's start of the first then made one run more than the trigger allows.
78
+ - A run on your Claude or ChatGPT plan counts each plan request once in its cost's `plan` even when its booking was written twice, its spend cap no longer reads a plan request in flight as not priced, and a workflow decision on such a run is charged what its provider charged instead of being counted as the plan's at $0. A decision on a run on a free model whose charge was lost now reads as unknown, never as a known $0. <!-- changes/plan-cost-once.md -->
79
+
80
+ This applies to new runs only. Decisions already booked as the plan's at $0 stay $0, and so does a decision marked the plan's before the deploy that a resumed run cuts after it: nothing is backfilled.
81
+
82
+ Some decisions with no cap on a plan run now read as unknown (`cost.usd` null) where they read $0 before. Unknown is the correct reading: their provider charged them and the charge was not said.
83
+ - A run read whose costs were counted without the purge gate's answer now says so with `cost.degraded: true` (absent on every other read), and a learning folder that fails to close after the gate's ask is logged wherever the gate is asked, never dropped. <!-- changes/purge-cost-degraded.md -->
84
+ - A run's purge takes off main only what that run put there: a learned workflow it revised goes back to the version before it, the newest no purged run wrote, so another run's champion keeps serving, and when the purged run's revision was the champion, the earlier champion serves again, even when that revision was held since; one it wrote new still leaves main. A check that ends after the purge records a hold for the purged revision, never a promote, and no compile revises that hold. A workflow still on main whose workflow.json a purged run wrote reads `410 purged` at `GET /agents/{agent_id}/learning/files/{file}`, and its approval or restore is refused the same way. A purge that can't read the learning folder's history answers 503 and takes nothing off main. <!-- changes/purge-keeps-champion.md -->
85
+ - With `AGENTRUN_RUN_KEYS=1`, a `message_run` trigger whose run owes a tool key the server does not hold now fails each firing with 409 `agent_not_runnable` naming the key, and sends nothing. This catches a trigger made before the setting was on, or while the server held the key. In 0.1.0-beta.54 its firing opened a turn with no key, and that turn failed at the tool. <!-- changes/run-keys-message-firing.md -->
86
+ - A message refused for a key its run owes answers the same 409 as a start refused for it, `details` included (`{"unbound": [], "missing": {}}`). In 0.1.0-beta.54 the message's 409 had no `details`.
87
+ - `npx @parcha/agentrun` no longer opens with `npm warn deprecated @secretlint/secretlint-rule-preset-recommend`: serve's import key scan takes secretlint 14.1.0, whose core holds the recommended rules (`@secretlint/core/builtin`, the same 28 rules in the same order), and no longer depends on the deprecated preset package. One `npm warn deprecated node-domexception` remains; it comes from the Browserbase SDK and Google's auth library, whose latest releases still depend on it. <!-- changes/secretlint-14.md -->
88
+ - A template eval no longer gives up on a run a runner holds just because its first rows haven't shown yet. A run's view reads `queued` until then, and the eval used to cancel any run still `queued` after 2 minutes, saying "no runner took it (state working)" about a run a runner had claimed. Now, when a run reads `queued` past that limit, the eval checks the run's `claim`. While a runner holds the run, the limit starts again and the run gets its own 30-minute limit. A run no runner holds is cancelled with "the run stayed queued for 120 s with no runner holding it". The cost: a run a runner holds that never shows a first row now waits the full 30 minutes instead of 2. That covers a runner that keeps renewing its lease while stuck starting a box or computer, a claimed workflow run waiting for a slot, and a raised run waiting to start. A paid box can be held that long, and the run's own limit is what ends it. `agentrun template eval` now passes a stop on to the eval through the same code as the other server commands. A launch that fails, or a signal it didn't pass on, is now explained, as for those commands. <!-- changes/template-eval-claimed-wait.md -->
89
+ - `agentrun template eval DIR --case NAME` now refuses a case the package doesn't have (no folder `evals/NAME`) by itself, before it starts the server's launcher, and exits 2. It uses the server's wording, and both list the package's cases in name order: the server's refusal now sorts them itself instead of depending on the order the folder listing comes back in. The server still checks each case it runs. One change: when a package is malformed and a case name is also mistyped, the case error now comes first, and the package's problems show once the case name is right. <!-- changes/template-eval-unknown-case.md -->
90
+ - `GET /v2/templates/{template}` now says, in its OpenAPI summary, that the package's instructions and skill files are what the new agent will be told, not instructions to whoever reads them. An imported package's text is a third party's. Every surface generated from that summary carries it: `agentrun template get`'s help, the TypeScript client's and Python client's `template.get`, and the CLI skill's command reference. <!-- changes/template-get-not-instructions.md -->
91
+ - A trigger's message that reaches a pi run while the turn that calls `ask_person` is still running no longer takes the person's place. The runner handed such a message to pi as a follow-up, and pi runs a follow-up as soon as its turn would end, so the message ran right after the question: the run never waited for the person, and it ended with the question unanswered. The runner now keeps a trigger's message that arrives mid-turn until the turn ends, as it already did for Claude Code, Codex and OpenCode runs. A turn that ends on a question parks on it first, and the message runs as a turn of its own after the person's answer. A turn that ends any other way runs the message next, as before. The firing still reads `sent`. <!-- changes/trigger-message-during-ask-turn.md -->
92
+ - API-only server (`AGENTRUN_API_ONLY=1`): the README no longer says every run there starts through the backend on its keys and budget, which 0.1.0-beta.53's notes also said. With the launch hook set, every firing that starts a run goes to the backend, including one of a trigger the agent had before the profile. Without the hook, the apply makes no schedule or feed trigger, but one the agent already had stays as it was: an enabled one still fires on the server and starts its runs on the server's keys. Archive the agent to turn it off. <!-- changes/api-only-trigger-before-profile.md -->
93
+ - Two more ways to run AgentRun Server (deploy/README.md). On Fly.io, `sh deploy/fly/launch.sh <app name>` deploys `deploy/fly/fly.toml`: the release's image on one Machine that is never stopped, with a 10 GB volume at `/data`. It makes the token and the seal key once, as Fly secrets, and never prints them. On DigitalOcean, `deploy/digitalocean/user-data.sh`, pasted as a new Droplet's startup script, runs the `--vps` install on its first boot. <!-- changes/fly-droplet.md -->
94
+ - An API-only server (`AGENTRUN_API_ONLY=1`) now purges a run of an agent made here (a deployed agent's, say) with its token, as it already did a run of an agent another system owns. Before, `DELETE /v2/runs/{id}` of such a run was the profile's `404`, though the same token could archive and delete the whole agent, which purges every run of it. The purge is the full server's: `204`, and `204` again once purged; `409 run_not_final` while it or a run made from it is live; every other route of it `410 purged`; its cost kept in every total; the agent and its other runs kept. <!-- changes/api-only-run-delete-made-here.md -->
95
+ - A server in a container says why it has no Docker box in words that fit a container. With no Docker socket (the one-container `docker run`, or deploy/'s compose file), the docker box's reason was "start Docker, or add this user to the docker group", which no one in that container can act on: it now says the container has no Docker socket, that its agents get file tools and `web_fetch` but no shell, and that `docker compose up -d` from `compose.yaml` at the repository's root gives it the socket. With a socket the container may not use, it says to set `DOCKER_GID` in `.env` to the socket's group, as `compose.yaml` says, in place of `usermod`, which would not outlast the container. The reason is the one capabilities (`places.boxes`, `default_reason`), the agent editor and the start's `Boxes:` line show. The socket checked is the one docker names (DOCKER_HOST or its current context), and a refused socket says DOCKER_GID wherever it is. A socket that is there and whose daemon does not answer still says to start Docker, and a server on a host reads as before. <!-- changes/box-reason-in-container.md -->
96
+ - `npx @parcha/agentrun` keeps its data in `~/.agentrun` wherever it is run, so a new folder is not a new install: an earlier version's `~/.agentrun` stops the start ("holds an earlier version's data", or a store an earlier release set up). Started that way, the refusal now gives the two ways on as commands to paste. First, `mv` of the old folder aside whole, after which the same command starts fresh where it was, every later command finds it with no `--data`, and the earlier version still opens the old data with `--data`. Then the same command on a new, empty folder (`npx @parcha/agentrun@<version> --data <folder>`, a folder that is not there yet), which each later command then takes too. Nothing is deleted either way, and an earlier installer's `bin/agentrun` in that folder is said to move with it. The README's first step says the data is in `~/.agentrun`, not the folder you run it in. <!-- changes/earlier-data-way-on.md -->
97
+
98
+ Two servers on one machine no longer sign each other out. On plain http the console's session cookie was named for the server's own socket port, which is 7340 for a server in a container whose 7340 is published at 7350, the same as `npx @parcha/agentrun` on 7340 beside it, and cookies are kept per host, not per port. It is now named for the port the browser opened (the Host header's: `agentrun-7350-session`), and a Host with no port keeps the socket's. A server opened at a port other than its socket's (a published container port, an `ssh -L` tunnel) asks for one sign-in again after the upgrade. https keeps `__Host-agentrun-session`. Signing out through one port ends the same browser's sessions with that server at its other ports too (a browser sends a host's cookies to every port), and clears each; another server's cookie on the same host is left as it is.
99
+ - The image stops before it starts the server when its `--data` directory is there but its user can't write it, as with a volume mounted as root's. It prints one line naming the directory, its owner's uid and mode, and the uid it runs as, then exits 1. Before, the server failed later, in the store's setup. A directory not made yet is still the server's to make. <!-- changes/image-data-preflight.md -->
100
+ - Launch hook: a firing the server is still handing over, or whose run the host is starting, now holds its trigger's room as a run in progress. Before, with `max_active_runs: 1`, a late host start for a firing waiting on its retry could land while another firing's hook was still open; both runs then started. That late start is now refused with 422 `not_due`, naming the cap, and two host starts at once for one place start one run and refuse the other. Without `max_active_runs`, the overlap check skips for the firing being handed, naming it. <!-- changes/launch-hook-handing-room.md -->
101
+
102
+ A host start for a firing its host took with no run now holds the room until its run is written, however long the write takes. When `start_by` is less than a minute away, the server also moves it to a minute after the start began, before it writes the run, so a later firing can no longer be handed while that run is being written. A start that fails without writing its run moves `start_by` back.
103
+
104
+ Two host starts of the same firing at once now start one run: the second answers the first's run with 202 and `idempotent-replayed: true`, and a firing whose host's start is still writing its run is not handed to the hook again. The room check reads the trigger as it is at the check, so a start whose earlier read predates another firing's run no longer takes that run's place.
105
+
106
+ Clearing `max_active_runs` (PATCH with null) no longer leaves a firing that was waiting on the cap held behind one active run: it is checked again at the next wait poll, as a trigger with no cap checks it.
107
+ - A template eval's llm grader reads the files the run left whole, ahead of its calls. Before, a grader saw a file only through the calls that made it, each cut where the timeline cuts it (a string of a call's arguments at 2,000 characters, its output at 8,000, each ending "..."), so a run whose file was whole could read as a run that wrote less, and fail. The grader input now has a `<files>` block ahead of `<tool-calls>`: each text file of the run's work folder (text/*, JSON and NDJSON, or an untyped extension such as .srt or .yaml whose bytes are UTF-8) in its own `<file path bytes>` block, and every other file (media, a binary) by its path and size. A call that names a file shown says where it is. The files are read only for a graded run of a case with an llm grader, smallest first, up to 120,000 UTF-8 bytes in all; a file that can't be read or would pass that budget is listed by size, and the files after it are still read. Each read is bounded (10 s, and 30 s for all of a run's files), so a server that stalls mid-file costs that file's text, never the eval. Under the prompt's 120,000-character cap the calls' results are cut first, each cut marked in place; the files take at most three quarters of the room the rubric, task and answer leave (the calls keep a quarter, or all they need when that is less), and past that the largest file's middle is cut and marked first. A run with no files gets the grader input it got before. The cost: one read of each text file per graded run, and longer grader prompts (more input tokens) for runs that leave text files. <!-- changes/template-eval-grader-final-files.md -->
108
+
109
+ The eval reads each file through `GET /v2/runs/{run_id}/files/{path}?cut=run`, new here: the file's UTF-8 text under the run's own cut, on the server that holds its secrets. Every value the run's timeline is cut of (the server's keys, the keys a person saved, its secret stores' values, the sign-in refs the run was handed) and every secret shape is replaced by `[redacted]` in place; a text where a value still shows in a form not cut in place is `[redacted]` whole. Compact JSON with no whitespace is never blanked for its length. The cut holds this server's values, not every secret: a value handed to the run alone at its launch (a key of its own, an MCP server's headers) is not in it, and a secret of no known shape passes as written. The answer is `text/plain; charset=utf-8` with `x-agentrun-cut: run`; the eval keeps a text only from an answer with that mark, so a server that doesn't know the cut (and would answer the raw bytes) gives the grader no file text. A run whose cut can't be read (a handed sign-in this server can't open) is `403 forbidden`; a file whose type isn't text, or whose bytes aren't UTF-8 or hold a NUL, is `415 unsupported_media_type`; one over 262,144 bytes (256 KiB) is `413 payload_too_large`. Without `cut`, the route answers the file's bytes as written, as before. The TypeScript and Python clients and the CLI take the new `cut` parameter (`agentrun runs read-file RUN_ID PATH --cut run`, `client.runs.read_file(run_id, path, cut="run")`).
110
+
111
+ Two secret shapes every redactor uses could hold the server's event loop for minutes over one file: a JWT read from every `eyJ` inside a long run of base64url characters (180 s over 256 KiB of `eyJ`), and a private key header with two unbounded runs of capitals (24 s over 256 KiB of `PRIVATE KEY `). A JWT now starts at the first `eyJ` of a run of its characters and not again at a later one in the same run, which finds nothing the first doesn't; the key type around `PRIVATE KEY` is at most 64 characters each side. What is redacted is the same as before: a JWT glued to a word (`token-eyJ…`) is still found, and so are the RSA, EC, OPENSSH and ENCRYPTED headers. Over 256 KiB, each shape's adversarial input (its prefix repeated with no end) now takes under 100 ms.
112
+
5
113
  ## 0.1.0-beta.54 (2026-11-23)
6
114
 
7
115
  **Breaking:**
@@ -20,7 +128,7 @@
20
128
  - 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
129
  - 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
130
  - 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 -->
131
+ - The README's MCP section says a loopback URL, `http` or `https`, 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
132
  - 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
133
 
26
134
  - 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.
@@ -137,7 +245,7 @@
137
245
  - 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
246
  - 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
247
  - 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 -->
248
+ - `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`). <!-- changes/mcp-server-names.md -->
141
249
  - 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
250
  - 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
251
  - 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 -->