@parcha/agentrun-serve 0.1.0-beta.60 → 0.1.0-beta.62
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.
- package/CHANGELOG.md +124 -0
- package/README.md +139 -22
- package/dist/acp-package.d.ts +4 -0
- package/dist/api-only.d.ts +23 -1
- package/dist/api-only.js +43 -4
- package/dist/archil-settings.d.ts +9 -0
- package/dist/archil-settings.js +8 -1
- package/dist/bash-read-only.d.ts +3 -0
- package/dist/bash-read-only.js +6 -3
- package/dist/browser-person.d.ts +1 -1
- package/dist/browser-person.js +1 -1
- package/dist/calendar/tools.js +1 -1
- package/dist/chatgpt-plan.d.ts +26 -8
- package/dist/chatgpt-plan.js +89 -21
- package/dist/claude-login.d.ts +12 -5
- package/dist/claude-login.js +28 -3
- package/dist/cli.js +61 -18
- package/dist/composio-triggers.d.ts +9 -3
- package/dist/computers.d.ts +3 -0
- package/dist/computers.js +2 -1
- package/dist/console/assets/{backend-QnwGVBeU.js → backend-DEgVn5lC.js} +1 -1
- package/dist/console/assets/index-CG5tELph.js +639 -0
- package/dist/console/assets/share-CIeFK2Oe.js +6 -0
- package/dist/console/assets/{styles-CcceGcu2.js → styles-BGZxYkky.js} +2 -2
- package/dist/console/assets/{styles-fjQBFfMv.css → styles-D0SufbzK.css} +1 -1
- package/dist/console/index.html +3 -3
- package/dist/console/share.html +3 -3
- package/dist/cut-pool.d.ts +14 -0
- package/dist/cut-pool.js +98 -0
- package/dist/cut-worker.d.ts +14 -0
- package/dist/cut-worker.js +16 -0
- package/dist/decisions.d.ts +4 -0
- package/dist/decisions.js +9 -1
- package/dist/env-switch.d.ts +3 -0
- package/dist/env-switch.js +3 -0
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +2 -0
- package/dist/harness-check.js +2 -1
- package/dist/harness-recipe.d.ts +13 -2
- package/dist/harness-recipe.js +30 -7
- package/dist/harness-sign-in.js +2 -1
- package/dist/harness-table.d.ts +12 -3
- package/dist/harness-table.js +13 -8
- package/dist/import.d.ts +8 -1
- package/dist/import.js +36 -5
- package/dist/key-check.js +22 -8
- package/dist/key-refusal.js +6 -4
- package/dist/learn/secrets.d.ts +2 -1
- package/dist/learn/secrets.js +2 -2
- package/dist/learned-nodes.d.ts +37 -0
- package/dist/learned-nodes.js +24 -0
- package/dist/local-model.d.ts +144 -0
- package/dist/local-model.js +214 -0
- package/dist/mcp-gateway.d.ts +24 -0
- package/dist/mcp-gateway.js +97 -8
- package/dist/mcp-probe.d.ts +7 -0
- package/dist/mcp-probe.js +7 -0
- package/dist/mcp-servers-store.d.ts +7 -10
- package/dist/mcp-servers-store.js +15 -9
- package/dist/native/cli.js +5 -1
- package/dist/ollama-provider.d.ts +42 -0
- package/dist/ollama-provider.js +118 -2
- package/dist/openapi.js +85 -16
- package/dist/otel/tracer.d.ts +6 -3
- package/dist/otel/tracer.js +24 -6
- package/dist/page.d.ts +7 -0
- package/dist/page.js +17 -4
- package/dist/place.d.ts +28 -11
- package/dist/place.js +43 -14
- package/dist/print.d.ts +3 -2
- package/dist/print.js +8 -6
- package/dist/redact/match.d.ts +17 -4
- package/dist/redact/match.js +57 -15
- package/dist/run-export.js +4 -2
- package/dist/run-launch.js +16 -3
- package/dist/run-model-key.d.ts +2 -1
- package/dist/run-model-key.js +2 -1
- package/dist/run-reads-over-store.d.ts +7 -0
- package/dist/run-reads-over-store.js +32 -4
- package/dist/run-usage.js +3 -2
- package/dist/runnable.d.ts +6 -3
- package/dist/runnable.js +16 -6
- package/dist/runner/adapter-loop.d.ts +8 -1
- package/dist/runner/adapter-loop.js +148 -29
- package/dist/runner/adapter-run-spec.d.ts +9 -6
- package/dist/runner/adapter-run-spec.js +38 -52
- package/dist/runner/adapters/index.d.ts +4 -0
- package/dist/runner/adapters/index.js +2 -1
- package/dist/runner/adapters/pi.d.ts +3 -2
- package/dist/runner/adapters/pi.js +3 -1
- package/dist/runner/audit.d.ts +1 -1
- package/dist/runner/claim-secrets.d.ts +3 -1
- package/dist/runner/claim-secrets.js +18 -7
- package/dist/runner/cli-run-spec.js +24 -17
- package/dist/runner/compare-end.d.ts +1 -1
- package/dist/runner/dispatch.js +4 -2
- package/dist/runner/harness-loops.d.ts +14 -0
- package/dist/runner/harness-loops.js +51 -5
- package/dist/runner/held.d.ts +4 -1
- package/dist/runner/live-ticker.js +5 -4
- package/dist/runner/loop-contract.d.ts +4 -1
- package/dist/runner/mcp-claim.js +3 -2
- package/dist/runner/mcp-run.d.ts +24 -4
- package/dist/runner/mcp-run.js +47 -2
- package/dist/runner/meta-tools.js +4 -4
- package/dist/runner/metrics.d.ts +6 -0
- package/dist/runner/metrics.js +12 -4
- package/dist/runner/monid-run.js +3 -1
- package/dist/runner/native-loop.js +3 -3
- package/dist/runner/redact.d.ts +3 -0
- package/dist/runner/redact.js +7 -0
- package/dist/runner/run-child-host.d.ts +10 -6
- package/dist/runner/run-child-host.js +44 -29
- package/dist/runner/run-child.js +1 -0
- package/dist/runner/runner.js +2 -0
- package/dist/runner/sdk-loop.js +5 -3
- package/dist/runner/workflow-calls.d.ts +5 -1
- package/dist/runner/workflow-calls.js +65 -19
- package/dist/runner/workflow-loop.d.ts +1 -1
- package/dist/runner/workflow-loop.js +3 -1
- package/dist/runner/workflow-spec.d.ts +4 -0
- package/dist/runner/workflow-spec.js +18 -13
- package/dist/runs-over-store.d.ts +2 -2
- package/dist/runs-over-store.js +1 -1
- package/dist/secret-cut.js +7 -4
- package/dist/secret-rules.d.ts +0 -1
- package/dist/secret-rules.js +122 -88
- package/dist/server.d.ts +17 -1
- package/dist/server.js +208 -69
- package/dist/share-host.d.ts +111 -0
- package/dist/share-host.js +666 -0
- package/dist/slack.js +2 -1
- package/dist/store/postgres/migrate.js +3 -1
- package/dist/store-reads/analytics.d.ts +15 -0
- package/dist/store-reads/analytics.js +17 -0
- package/dist/store-reads/learning.d.ts +5 -4
- package/dist/store-reads/learning.js +7 -4
- package/dist/suggestions.js +32 -3
- package/dist/templates.d.ts +3 -1
- package/dist/templates.js +7 -3
- package/dist/tool-gate.d.ts +25 -9
- package/dist/tool-gate.js +58 -19
- package/dist/tool-plane.d.ts +24 -1
- package/dist/tool-plane.js +75 -3
- package/dist/tools.d.ts +12 -2
- package/dist/tools.js +42 -7
- package/dist/trigger-composio.js +1 -1
- package/dist/trigger-launch-hook.d.ts +2 -2
- package/dist/trigger-launch-hook.js +1 -1
- package/dist/triggers.d.ts +7 -4
- package/dist/triggers.js +4 -4
- package/dist/webhooks.d.ts +3 -0
- package/dist/webhooks.js +5 -0
- package/dist/workspace/archil-claim.d.ts +7 -3
- package/dist/workspace/archil-claim.js +13 -5
- package/dist/workspace/archil-mount-credential.d.ts +6 -0
- package/dist/workspace/archil-mount-credential.js +11 -0
- package/dist/workspace/computer-deps.d.ts +5 -3
- package/dist/workspace/computer-deps.js +11 -9
- package/dist/workspace/computer-for-claim.d.ts +6 -2
- package/dist/workspace/computer-for-claim.js +43 -12
- package/dist/workspace/computer-janitor.d.ts +7 -4
- package/dist/workspace/computer-janitor.js +7 -4
- package/dist/workspace/computer-kept.d.ts +7 -1
- package/dist/workspace/computer-kept.js +7 -1
- package/dist/workspace/kind-skills/desktop/SKILL.md +12 -3
- package/dist/workspace/mount-revoke-left.d.ts +16 -4
- package/dist/workspace/mount-revoke-left.js +42 -22
- package/dist/workspace/resolve-computer.d.ts +11 -5
- package/dist/workspace/resolve-computer.js +22 -13
- package/dist/workspace/run-end-computers.js +1 -1
- package/dist/workspace/run-tools.d.ts +10 -3
- package/dist/workspace/run-tools.js +5 -4
- package/dist/wrapped.d.ts +29 -2
- package/dist/wrapped.js +20 -3
- package/launcher/agentrun-serve +1 -1
- package/package.json +12 -12
- package/dist/console/assets/index-DZi-muIj.js +0 -629
- package/dist/console/assets/share-pz61zIn9.js +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,130 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.1.0-beta.62 (2026-11-26)
|
|
6
|
+
|
|
7
|
+
**Breaking:**
|
|
8
|
+
|
|
9
|
+
- A script's file ops on a desktop or a phone need their tool among the agent's tools: `computer.files.read`, `files.list` and `files.stat` need `read`, and `files.write` needs `write`, as before. Naming a desktop no longer grants them: an agent that read files through `computer` without `read` in its `tools` is now refused in words (`computer_op files.read needs read among this agent's tools…`), whatever `read`'s setting says, on every desktop, mounted or not. Add `read` to the agent's `tools` to keep them. `computer_op`'s op list and a script's `computer` declarations offer only the ops the gate would let through: not one whose tool the agent is not given, nor one held to a tool set to deny, nor one held to a tool set to ask where no one can approve, nor one `bash`'s policy refuses whatever its command (`bash` set to deny drops `shell.run` and `processes.start`; the read-only policy drops `processes.start`). Both say that input ops on a computer with a terminal app or a GUI file manager, and `apps.open` with a `file://` URL, can do what a shell or the file ops do, whatever `bash`'s, `read`'s or `write`'s setting. `shell.run` and `processes.start` still follow `bash`'s setting, not a grant, so leaving `read` out keeps no file from an agent that has the shell, paired machines included: on a desktop with exec on, `computer.shell.run` reads and writes any file under `bash`'s setting, which allows by default. `computerDeclarations` takes the ops to leave out, and the kernel exports `withoutOps` for computer_op's definition and `GUI_REACH` for the words. <!-- changes/desktop-file-ops-need-grants.md -->
|
|
10
|
+
- A harness module's runner gets the run's redactor on its launch (`HarnessLaunch.redact`, required and typed) and no longer among the harness's own options, and every loop the runner makes refuses to start without the runner's redactor that holds keys. Upgrading: a harness module reads the run's redactor from `launch.redact` (required); `extra.redact` is no longer set. <!-- changes/run-keys-redact-followups.md -->
|
|
11
|
+
- A native run's loop, the runner's dispatch loop, a loop the live view wraps and a loop for a run in its own process now each refuse to start without the runner's held redactor, as the adapter, SDK and workflow loops already did. Before this release, a native run's loop given none ran on a redactor of the runner's environment alone, which holds no key a claim opens; the runner always hands its own, so only a caller outside the runner reached that.
|
|
12
|
+
|
|
13
|
+
**Changes:**
|
|
14
|
+
|
|
15
|
+
- Render Sandboxes as a computer provider (`render`, subpath `@parcha/agentrun-computer/render`): a Linux sandbox in a Render microVM, over Render's public REST API with no SDK. Settings → Computers shows a Render row that takes `RENDER_API_KEY` and `RENDER_WORKSPACE_ID`, and the server's launcher holds `RENDER_API_KEY` with the other providers' keys, never in the server's environment. `render` is a box the clients' types name. <!-- changes/computer-render-sandbox.md -->
|
|
16
|
+
Its sandboxes dial the server, as Fly Machines and Cloudflare do: Render runs a command with no stdin, so once a sandbox runs, the provider starts `agentrun-dial` in it through one `runs/sync` call, and it fetches the server's daemon and dials the attach route. A server with no public https address (`AGENTRUN_PUBLIC_URL`) refuses a Render computer in words before Render is called. `prepareImage()` imports the box image once into the workspace as a sandbox build named `agentrun-box-<tag>`. Network `none`, `open` and an allow list are init's, as on the other dial providers. Render keeps no labels, so a computer's name gives its own two and the rest live in a file in the sandbox; a listing whose file read fails fails in words. Render has no endpoint that lengthens a running sandbox, so there is no `extend()`, and a sandbox lives at most a day. No mount: a Render computer can't mount the server's run folders.
|
|
17
|
+
- `agentrun-serve --share-host` (or `AGENTRUN_SHARE_HOST=1`) starts a share host: a server that answers under `/r/` alone and stores shares in `DIR/shares/`. A share's page is `/r/<id>` (the console's `share.html`, with its asset URLs under `/r/_assets/` and a CSP that loads nothing from any other origin), its stored bytes are `/r/<id>/bundle.json` (`nosniff`, `X-Robots-Tag: noindex`), and its API is `POST /r/v2/shares`, `GET /r/v2/shares` (the caller's own), `DELETE /r/v2/shares/<id>` and a public `GET /r/v2/health`. Every other address is a 404, the console, `/v2`, MCP and every run, agent, key, computer and trigger route among them. A share host starts no runner and has no owner or console session: its API takes one of its tokens (`AGENTRUN_TOKENS`), whose id owns each share it uploads. <!-- changes/share-host.md -->
|
|
18
|
+
An upload is a run's `agentrun.share/1` bundle exactly as `GET /v2/runs/<id>/export` wrote it: canonical JSON at most 8 MiB, the export's closed fields and caps, each file's size and digest and the document's sha256 checked (a mismatch is `400`). The host then scrubs the whole body, and each of its strings alone, in cut mode with the values it holds (its keys and tokens). A value it finds refuses the upload unless a `restored` record names it exactly (pointer, rule, start, end) and the host's own scrub says its kind may be restored (label, personal, jev; never a key format, a held value or a dump); a restored record naming no value the host finds refuses it too (save a restore of Jev's rule, which the host never runs: taken unchecked, its value still scrubbed, and counted in `restored_unchecked`), and so does a scrub that fails. An upload that needs more than 50,000 string reads is `413` before any scrub. Each distinct string is one read for each context it is read under (a file's path, a workflow call's command), and a call's command is read once for all of its output. Each refusal is `422 input_invalid` with `details.reason` and counts by rule, never a value, and nothing is stored; the host never repairs a bundle. A stored share answers `201 {id, url, sha256}`, its id 128 random bits in base32 and its URL on `AGENTRUN_PUBLIC_URL` (never a Host header; a share host on an address other than loopback needs it to start). A token keeps at most 100 shares (`403 forbidden`, `details.reason: share_quota`, past it); shares never expire. Only the token that made a share deletes it (`204`); its bytes go, and its page and bundle then answer `410`. Run one replica with `DIR` on a persistent volume: the quota and the share index are the one process's.
|
|
19
|
+
A share page draws no image at all: not a run's file and not a provider's URL, in a workflow's graph or in a report.
|
|
20
|
+
The host re-reads a file's content with its path and a workflow call's output with that call's command. A Timeline row's output it re-reads without its call's context, since a bundle carries no calls, so the host's check of a row is the context-free rules' alone. The export still cuts the row with its call's context.
|
|
21
|
+
The share page has not yet been drawn in a real browser: its HTML, CSP and assets were fetched from a real console build on a loopback share host.
|
|
22
|
+
- Wrapped has a cache section, and the console draws its cache grade card. The import now analyzes each Claude Code, Codex and pi session's cache as it imports it, the same way `agentrun-import --cache` does, and keeps the numbers on the run: the cache read and whole prompt behind its hit rate, its breaks by cause, what they cost above a cache read, and how many have no known price. `GET /v2/wrapped` answers `cache` by adding up the year's runs from the store, so it reads no session file again. <!-- changes/wrapped-cache-card.md -->
|
|
23
|
+
- `cache` is null when no run of the year was analyzed. Only runs imported here count: a session left out of the import, or imported before this version, is not in it.
|
|
24
|
+
- The card shows a grade from the hit rate (A+ from 97%, then a step every three points down to D from 60%, F under that), the hit rate, what breaks cost, how many there were, and breaks by cause. The cost is "Unknown" when no break could be priced, and the foot line counts the breaks left out of it.
|
|
25
|
+
- `@parcha/agentrun-import` exports `fileCache`, `sessionBreaks` and `conversationOf`: the per-file analysis, the join `cacheHome` uses, and which subagent files are one conversation (a Codex subagent's thread that goes on in another rollout is one). Another reader of a session's files gets the same breaks.
|
|
26
|
+
- An API-only server (`AGENTRUN_API_ONLY=1`) now serves an ended run's share bundle (`GET /runs/{id}/export`, with its `?restore=`) to its token: before, it answered `404` and `agentrun share` failed against it. The bundle is the full server's, cut by the same scrubber, and a run that has not ended is still `409`. The share preview page stays the console's, which this profile refuses: use `agentrun share RUN --out FILE` there. <!-- changes/api-only-share-export.md -->
|
|
27
|
+
- On a Mode 2 server whose Archil region has no serverless exec (`gcp-us-central1`), a new agent that names `bash` (or another shell tool) and no computer is refused at its save or deploy and told to name a sandbox computer, instead of being saved with a shell that never runs (every bash call failed with "Exec is not enabled"). A new agent that names no tools is not refused: it saves on the runner with no tools, as Mode 2 always saved it. An agent already saved with `bash` and no computer is now refused at each run, `409 agent_not_runnable` at `definition.computer` in the same words, and no run starts; this holds for runs started by hand, by a schedule and by a trigger, and is intended: bash cannot run there, so give the agent a sandbox computer or remove `bash` from its tools. Capabilities' `places.default_place` is null there with a `default_reason` saying why, bash shows unavailable, and `GET /v2/computers` gives the no-computer choice no shell. Servers on Archil's AWS regions, and on a region serve doesn't know, are unchanged. <!-- changes/archil-no-exec-no-shell.md -->
|
|
28
|
+
- A package's composio trigger written with no `config` reads as `config: {}`, the config of an event whose schema needs no field (Slack's new channel): `agentrun deploy` no longer refuses it, and an apply makes, and a re-apply keeps, the trigger with the empty config. `POST /v2/triggers` still takes `config` as given; its refusal of one left out now says to send `{}` for such an event. <!-- changes/composio-trigger-config-default.md -->
|
|
29
|
+
- A run whose kept computer can't be taken back no longer shows the provider's refusal to the person. Before, a resumed run's timeline could read "The sandbox kept before could not be taken back: the computer … does not match this provider, so attach refuses it and it is left as it is: HostConfig.Mounts: …", with host paths and Docker's settings in it. Now it says why in serve's own words. When the runner that parked the run is gone: "The sandbox wasn't kept: the runner that kept it is gone." When that runner is still there, it says that runner ends it. Otherwise: "The sandbox wasn't kept: it couldn't be taken back." Each goes on to say the run has a new sandbox. The provider's full words go to the runner's log. When the new claim deletes that kept machine, its kept row is marked ended at once, so the run's end removes the row instead of leaving it marked ending until a janitor's pass. <!-- changes/computer-keeper-gone-words.md -->
|
|
30
|
+
- The janitor's pass over left Archil credential removes is bounded as a whole, and a failed leave is logged and tried again. <!-- changes/computer-night-followups-2.md -->
|
|
31
|
+
- The pass over the `archil_revoke:<run>` rows now has one bound for the whole pass, the kept delete bound. Once it passes, the remove being asked is cut, and the rows not yet asked stay for the next pass, reported in one line. Before, each row had its own bound, so N hanging rows held the provider sweep and the next wake for N bounds.
|
|
32
|
+
- Each pass starts after the last row the previous pass asked, wrapping around to the first, so a row whose remove hangs is retried last on the next pass and the rows after it are asked first. Every row is asked within as many passes as there are rows.
|
|
33
|
+
- When a run's claim ends and the store refuses to write the left row, the runner now logs `run <id>'s Archil mount credential remove could not be left for the janitor, so it lapses at its ttl: …`, and a later leave writes the row. Before, the failure was dropped, and the rejected write was cached, so no later leave could write the row.
|
|
34
|
+
- In the console, a search field's list is as wide as its field from the moment it opens: the app trigger's Event field and the Composio Toolkit field. The first time such a list opened it was drawn at its minimum width (192 px) for a frame or more, then jumped to its field's width. That jump is also why the console's `event-search` browser flow failed about one run in two: it read the list's width while the list was still narrow. The flow now reads every width the list has had on the page, so it fails on the jump itself and no longer depends on when it reads. <!-- changes/console-picker-list-width.md -->
|
|
35
|
+
- In Mode 2, where the runner's shell (Archil's serverless exec) runs bash, the console keeps bash on an agent with no computer: a new agent and a new race's pi lanes start with bash ticked, the Tools step lets you tick it, and a move to no computer keeps it, also on a server that gives new agents Docker's box. The console reads this from the run shell GET /v2/computers serves for each choice, the same one the server checks: bash stays on a runner place only where that shell is the runner's own. The background shell tools still need a box. A computer that mounts the run's folder (a desktop) has its own shell, which the server doesn't let on a runner place, so a move to one drops bash and the Computer step says so. A desktop or phone set to run no programs has no shell at all, so it never keeps bash. In Mode 1 no computer has no shell, and a move there still drops bash, as it does before the computers list is read. A new race waits for that list before it starts any lane, and if the list can't be read it says why and offers to read it again. <!-- changes/console-runner-keeps-bash-mode2.md -->
|
|
36
|
+
- The desktop skill now says where the run's folder is. Where it is mounted on the desktop, it is `/workspace`. The desktop's terminal opens in the desktop user's home, not there, so a file saved from the terminal or an app goes in `/workspace` to reach the run. Before, the skill never named the folder, and what an agent or a person saved from the desktop's terminal stayed on the desktop. <!-- changes/desktop-skill-run-folder.md -->
|
|
37
|
+
- The Free page no longer lists a template that can cost money through a tool. A template that names a Monid endpoint (`monid:…`) is left out: its calls are booked on the server's Monid key. So is one that grants `subagent`, unless its package names both its `fast` and `strong` models and each is free on the harness Apply makes the agent on. Apply keeps a tier's model only where that harness runs it, and a tier left out runs on the host's model for it, which may bill. <!-- changes/free-page-followup.md -->
|
|
38
|
+
- A template's Apply screen opened from a link whose `?model=` is not one of this server's free models now says so: its runs may cost money. "Use free" sends a free one. The warning stays when that model is carried into a prepared request in the API playground.
|
|
39
|
+
- A model pull no longer stops while Ollama checks the download. After `verifying sha256 digest`, Ollama hashes the whole model with no further output, and on a slow disk that takes minutes. A pull now waits up to 15 minutes there, and two minutes everywhere else as before.
|
|
40
|
+
- The pull's long-line error now says characters, as it counts, not bytes.
|
|
41
|
+
- The usage read's `unheld_quantity` and a computer interval's `booked_seconds` now say both are 0 on a provider that bills nothing (Docker), and that `unheld_quantity` is null when `quantity` is only on a provider that bills.
|
|
42
|
+
- A held Cursor run (`hold: true`) that its model kept from running at its create no longer opens `CURSOR_API_KEY` at its claim: the key is never decrypted, never laid on its environment, and a runner that starts each run in a process of its own hands that process none. With no `CURSOR_API_KEY` set, such a run holds its computer instead of failing its claim for the key. Such a run is never handed the Claude login either: its claim reads none, so a login turned on after its create (this machine's own, on a runner whose runs are users of their own) never refuses it, and a runner asked by the run's own process answers none. A launch whose `hold` is not an object (a corrupt row) is read as held with its model refused: its start and its messages are refused (`409 agent_not_runnable`) in words that name the field, and its claim opens no model key; before, it read as not held. <!-- changes/held-run-no-cursor-key-or-claude-login.md -->
|
|
43
|
+
- A run that sends no model key (one held because its model can't run, one on a `--faux` start, or one pinned to the faux model) no longer opens any saved model key or the Claude login at its start. A held run with decision nodes now gets its judge's key when that key is TypeSafe's or a model gateway's; before, its judge failed for want of it. Where each run runs as a user of its own and the Claude login is this machine's own (`~/.claude`), these runs are no longer refused at their start for a login they never use. Where runs run as the runner's own user (`AGENTRUN_RUN_USER=same`), such a run now runs as a process of its own instead of inside the runner on the login. <!-- changes/keyless-run-no-login.md -->
|
|
44
|
+
- An MCP tool's answer is cut by the run's redactor before the model reads it or it is filed in the run's files. Until now an answer was cut only of the credentials of the server that gave it, so a value only the run held (its own model or tool keys, another server's credential) came through as the server echoed it. The cut covers the model's answer and an error answer, the answer a tool's file setting files whole, the rest of an answer too long for the model, filed at `evidence/mcp/<server>/`, and a server's results its meter files. A whitespace-free run over 8,192 characters in a CLI harness's MCP answer, or in its filed copy, now arrives as `[redacted]`, as pi's already did. An image's or audio's data or a resource's blob filed whole is kept whole, however long, unless it holds a value the run holds, as written or in the bytes it decodes to; then that payload alone is `[redacted]`. In a run's own process, each credential its claim's MCP opens or refreshes and each GitHub token minted for it now joins its runner's redactor too. <!-- changes/mcp-answers-run-redactor.md -->
|
|
45
|
+
- A model Ollama lists after the server started no longer shows as the default with capabilities still saying no run is ready: a request that refreshes the login now reads what a run needs from the new listing too, as a capabilities request does. <!-- changes/ollama-ready-after-login.md -->
|
|
46
|
+
- MCP: only the message that reopens a run skips the per_run credential check. Before, if that message was refused or left for later, the next message skipped the check too, and a message that handed the credential of a server the run was left without ran without that server's tools instead of waiting for a turn that had them. A run waiting in its claim on a person's answer also parks on its question at once when the answer is refused after a later message was left for the run's next turn. Before, it stayed in its claim, holding its browser and the person's time under the cap, until a hold lapsed. A run that never started its agent, such as one its learned workflow answered alone, no longer keeps reading as working with nothing running when the message that reopens it is refused, as a trigger's message is in a session on its owner's sign-in: the run is back at the end it had before (stopped, or its workflow's answer), with nothing sent to the agent, no output retry and no model request, and a message sent after it runs as the run's next turn, after the job's input. <!-- changes/per-run-mcp-reopen-turn-followups.md -->
|
|
47
|
+
- MCP: a message that reopens a run is now that run's next turn even when a later message hands the credential of a per_run server the run was left without. Before, both messages waited for a turn that had the server's tools. A run that had never started its agent, such as one its learned workflow answered alone or one stopped before its first input was sent, then kept reading as working with nothing running until someone stopped it. The later message still waits, and runs as the turn after, with the server's tools. Its credentials do not wait with it: the run's model key, and the credential of any per_run server the run already had, take effect as the message arrives, so the reopened turn's later requests use them. <!-- changes/per-run-mcp-reopen-turn.md -->
|
|
48
|
+
- A ChatGPT sign-in is saved as soon as OpenAI answers its code, before its models are listed or the sign-in it replaces is revoked. Before, a server stopped in between left the new sign-in live at OpenAI and saved nowhere. The replaced sign-in now stays in the saved row until OpenAI confirms its revocation. The server's next start lists the models and revokes it again if a stop or an unconfirmed revocation cut that off. A model list OpenAI doesn't answer leaves the fallback list for the next start to replace. Only the server does this; a runner reading the sign-in for a claim never lists models or revokes. A sign-out revokes the replaced sign-ins the row still carries too. Rolling back to an earlier release drops any replaced sign-in the row still carries without revoking it: remove AgentRun in ChatGPT's settings to end it. <!-- changes/plan-keep-save-first.md -->
|
|
49
|
+
- A cut read of a run's file (`GET /v2/runs/{run_id}/files/{path}?cut=run`) makes its cut in a worker thread, off the server's event loop, under a deadline of 5 s for the read. Past it, or when the worker fails, the read is `503 unavailable` (retryable), never the file's text uncut. Before, the cut ran on the server's own thread, so a long cut of a large file held every other request on the server until it was done. The server keeps one worker for every cut read, made again after a cut is stopped at its deadline, so a grader reading 50 files of 20 KiB pays about 8 ms a file for its cut, about 3 ms more than a cut made inline, where a new worker per read would cost about 80 ms. The OpenAPI document lists the read's 503. <!-- changes/run-file-cut-worker.md -->
|
|
50
|
+
- A key no longer leaves the server, or a suggested agent's client, for a base URL with a user or password, a query or a fragment. The refusal names the URL's origin at most, never its password or query. <!-- changes/serve-https-base-everywhere.md -->
|
|
51
|
+
- A suggested agent's client (TypeScript, JavaScript and Python) refuses an `AGENTRUN_BASE_URL` with a user, a password, a query or a fragment before it sends anything, as AgentRun's SDK does. Before, it sent the request, and a failed fetch printed the whole URL, password included. It also follows no redirect: a start or a read answered with one throws, so the key goes to `AGENTRUN_BASE_URL` alone. Before, Python's urllib carried the key to any host a redirect named, http included. A client file written before this release still takes such an address and follows redirects.
|
|
52
|
+
- A workflow's Jev decisions on TypeSafe's route take `TYPESAFE_BASE_URL` by the same rule as the key check, and building a run's decision providers throws by the variable's name on one it refuses. Before, TypeSafe's SDK read the variable itself and sent `TYPESAFE_API_KEY` there, http included.
|
|
53
|
+
- A tool key's check sends no key to a `BROWSERBASE_BASE_URL`, `KERNEL_BASE_URL` or `TYPESAFE_BASE_URL` that `httpsBase` refuses, or to an `ANTHROPIC_BASE_URL` the model path's gateway rule refuses. The key is kept as not checked, and the reason names the variable. An `ANTHROPIC_BASE_URL` ending in `/v1` is checked at `<base>/v1/models`, where runs send, not at `<base>/v1/v1/models`.
|
|
54
|
+
- The Browserbase provider takes `BROWSERBASE_CONNECT_BASE_URL` by `keyBase`'s rule over wss and https: one with a user, a password, a query or a fragment now fails it, naming the variable and the gateway's origin alone. Before, those parts went into use (a query on it was dropped from every session's URL). A scheme other than wss or https now fails in `keyBase`'s words (`must be wss or https, so the key never crosses in the clear`).
|
|
55
|
+
- The OTLP trace export refuses an `OTEL_EXPORTER_OTLP_ENDPOINT` or `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` with a user, a password, a query or a fragment: no exporter is built on it, nothing is sent, and the server and its runs carry on. The runner's start says once that tracing is off and why, naming the variable and the endpoint's origin alone (`[otel] tracing is off: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT takes no user or password, since the key goes to it: https://collector.example:4318`). http stays allowed there, as OTLP allows it, so a local collector keeps working. `/v1/traces` is added to the general endpoint's normalized form, so a bare trailing `?` or `#` no longer puts it in a query; a traces endpoint, once checked, is used as given.
|
|
56
|
+
- `agentrun native connect` refuses a server URL (`--url`, `AGENTRUN_BASE_URL`, `AGENTRUN_URL` or the recorded one) with a user, a password, a query or a fragment, naming where it came from, before it sends the server's token.
|
|
57
|
+
- `@parcha/agentrun-computer` exports `httpsBase`, and `keyBase`, the same rule over a list of schemes.
|
|
58
|
+
- Breaking: the key check and Jev's TypeSafe route now take `BROWSERBASE_BASE_URL`, `KERNEL_BASE_URL` and `TYPESAFE_BASE_URL` only as https URLs with no user, password, query or fragment, and the Browserbase provider refuses a `BROWSERBASE_CONNECT_BASE_URL` with any of those; the OTLP endpoints and native connect's server URL refuse a user, password, query or fragment; a suggested agent's client refuses any redirect. An http gateway set in one of the first three used to be accepted by these checks; point it at https, and move a credential in an OTLP endpoint to `OTEL_EXPORTER_OTLP_HEADERS`.
|
|
59
|
+
- Breaking: beta.59 traces to an OTLP endpoint with a user, a password, a query or a fragment, with those parts cut from its log lines; from this release tracing is off for such an endpoint, and the runner's log says why as it starts.
|
|
60
|
+
- A raise the cap's rule refuses (a race of two raises, or a retry after the run parked again) no longer writes a second `agentrun.budget` entry when it wakes an agentic run parked at its cap. The run parks again on the pause it stood at, with nothing written: one "Paused at the run's cap" row on its timeline, the row in the pause's words, and a later raise resumes that pause. <!-- changes/serve-refused-raise-no-repark.md -->
|
|
61
|
+
- An agent's tools on GET /v2/agents/{agent_id} now name the server's ceiling. Where the server's `kernel` for `web_fetch`, or its `native` or `off` for `web_search`, holds down the agent's own pick, the tool carries `ceiling` with that setting, next to `resolved`, the setting that runs. `provider` stays the agent's own pick, so the editor still shows what the agent asked for. <!-- changes/web-ceiling-followup.md -->
|
|
62
|
+
- A run in a process of its own is handed keys for its capped plane only. A run kept on Parallel and claimed after the server was set to `kernel` or `native` is no longer handed `PARALLEL_API_KEY`, which the run never used. The process now runs its tools on the plane its keys were chosen by, which the runner hands it, rather than reading the server's settings a second time: a setting changed between the two reads can no longer leave a tool on a provider whose key the process was not handed.
|
|
63
|
+
- The README and the settings description now say what the ceiling covers: `web_search` and `web_fetch`, not every way a run reaches the web. `browser`, `bash`, MCP and catalog tools, Jev's ranking, a workflow's `parallel` decision provider and a native job's own CLI are outside it. `deny`, read at each call, is the setting that stops a claim already running.
|
|
64
|
+
- The README no longer says a Parallel key keeps `web_fetch` URLs on the server: with one, `auto` is Parallel's extract, which sends Parallel each URL.
|
|
65
|
+
- A learned workflow call in a run's `workflow_calls` whose rerun was refused now reads `refused` only while every attempt the gate let go was closed by a refusal. One with an attempt left open (a crash cut it before it kept a record, or its record says it ran) reads `failed`, even when a sibling call ran beside it, so its model nodes' spend can't be told for its own: its `usd` is null there, and null for an attempt cut after the refused record. Before, it read `refused` at $0. A CLI's own side request on another model (its title or summary helper) inside a refused call's window no longer flips the call to `failed`. A tool that nests calls, issued again after an earlier attempt fixed a value or nested a call, is now asked at the gate as `replayed`. <!-- changes/workflow-calls-window.md -->
|
|
66
|
+
- A test now covers a follow-up correction on claude-agent: a correction sent to a finished run as a follow-up is saved to `corrections.md`, and the agent's next run gets it under `# Learned` in the system prompt its model receives. Until now only pi had this test. The cases also cover each run in a process of its own, a spend cap with a model key on the start and on the message, an end whose census was not made, and a follow-up's key revoked once it answered. CI's Postgres job runs every case on Postgres as well. <!-- changes/learn-follow-up-cli-test.md -->
|
|
67
|
+
- HARNESS.md and serve's README name the run's redactor that the adapter of a harness module's own runner gets on its launch (`launch.redact`, always given), which holds every key the run's claim opens. <!-- changes/launch-redact-docs.md -->
|
|
68
|
+
- On macOS, a sign-out that arrives while a status check is deleting the Keychain item a sign-in left under the account `unknown` waits on that delete, and when it fails or is killed at its limit, tries once more itself. Before, the sign-out answered with the item, which holds a refresh token, still in the login keychain. When the item may remain, serve's sign-out is not confirmed, and its words name the item's exact service, to search in Keychain Access or delete with one `security` command, so they never point at the person's own CLI's item. The harness exports that service as `claudeKeychainService`. It hashes the folder in Unicode's composed form (NFC), as the CLI does, so a folder path with a decomposed character no longer sends the delete to a service no item has, which answered the item gone while it stayed. <!-- changes/claude-signout-drop-retry.md -->
|
|
69
|
+
- An image's or audio's data or a resource's blob that an MCP answer files whole is now `[redacted]` when the text in the bytes it decodes to carries a secret's shape, such as a JWT or a private key block, even if the run holds no such value. Before, such a payload was cut only for values the run's redactor holds, so an unheld token or key in a file a server returned was filed as it came. The base64 text itself is not read for a shape, since a key's shape turns up there by chance in large images. The decoded bytes are read only through their runs of text, for shapes and held values alike: 8 or more printable characters, read past the bytes the redactor reads as nothing or as a blank (a NUL, a control character, a soft hyphen, a no-break space), so a value written as UTF-16 or UTF-32, or cut into short pieces by such a byte, is still found. Checking a 4 MiB image of random bytes takes about two seconds instead of close to two minutes; a payload whose bytes are all text costs what it did before. A claim's MCP now refuses to start without the run's held redactor, before it reads a credential or mints a GitHub token, and the MCP gateway refuses to start without a redactor. Before, the gateway fell back to cutting only the server's own credentials. <!-- changes/mcp-binary-redact-followups.md -->
|
|
70
|
+
|
|
71
|
+
## 0.1.0-beta.61 (2026-11-26)
|
|
72
|
+
|
|
73
|
+
**Breaking:**
|
|
74
|
+
|
|
75
|
+
- Who breaks: an agent whose own `tool_settings` pick `firecrawl-keyless`, `exa-keyless`, `auto` or `parallel` for `web_search` or `web_fetch` on a server set to `kernel` for `web_fetch`, or to `native` or `off` for `web_search`, and an agent that picks `native` for `web_search` on a server set to `off`. The server's setting is now a ceiling the agent's pick cannot raise: the pick resolves as the server's setting does, so its URLs and queries go to no keyless service and not to Parallel. A server's `deny` stays absolute. <!-- changes/web-tools-server-ceiling.md -->
|
|
76
|
+
- To let agents use Parallel, set it server-wide (`PUT /v2/settings/tools` with `parallel`); a server pick of `auto`, `firecrawl-keyless`, `exa-keyless` or `parallel` is still only a default an agent's pick replaces.
|
|
77
|
+
- Where the harness has no native search, such an agent's `web_search` under `native` is unavailable, and its new runs are refused (409). A run that already exists is not refused: its follow-up, resume or reclaim goes on with `web_search` unavailable, each call answering that it does not run here.
|
|
78
|
+
- The way back for `web_search`: set the server's `web_search` to `auto`, `firecrawl-keyless`, `exa-keyless` or `parallel`. For `web_fetch`: set the server's `web_fetch` to `auto`, `firecrawl-keyless` or `parallel`.
|
|
79
|
+
- A server setting applies at a run's next claim (its start, a follow-up, a resume or a reclaim). A claim keeps the plane it began with to its end, through any approval it waits on while it holds the run.
|
|
80
|
+
- Tool settings a claim cannot read fail closed: a capability kept on a keyless service or on Parallel runs nothing, its tool saying the server's tool settings could not be read. One a claim finds past a ceiling with nothing the setting allows in its place runs nothing either, never the value it was kept with.
|
|
81
|
+
- Capabilities' `why` says when the server's setting is a ceiling over an agent's pick ("the server's setting, kernel, is a ceiling over this agent's pick of auto").
|
|
82
|
+
|
|
83
|
+
**Changes:**
|
|
84
|
+
|
|
85
|
+
- Google Antigravity's recipe ships with the ACP adapter, and every command takes its name where it takes a recipe file: `agentrun harness install antigravity`, `agentrun harness-check --recipe antigravity`, `agentrun harness sign-in --recipe antigravity` and `agentrun-serve --harness-recipe antigravity` (or `AGENTRUN_SERVE_HARNESS_RECIPES=antigravity`). It is still a recipe, with the same pins, check, keys page and sign-in. Each command says which recipe it resolved. A file of that name in the directory is never passed over: the command is refused, saying both, and `./antigravity` names the file. The hints a recipe prints (install, check, sign-in) name a shipped recipe by its name, not by where the package is installed. The recipe file moved from `examples/harness-recipe/antigravity.json` to the package's `recipes/bundled/antigravity.json`. An AgentRun release that changes it asks for a new check and the keys to be saved again, as an edit of your own recipe file would. <!-- changes/antigravity-bundled.md -->
|
|
86
|
+
|
|
87
|
+
agy joins server and tool with a single `_`, so another MCP server's tool could spell one of AgentRun's (a server `agentrun_look` with a tool `up` reads as `mcp_agentrun_look_up`), be taken as AgentRun's by the recipe's `announces.prefix`, and have its permission request allowed once on the title tie without the host's gate. Under a recipe whose `announces.prefix` joins `agentrun` to the tool's name with one `_` or `-`, as the Antigravity recipe's `mcp_agentrun_` does, the agent is now given AgentRun's MCP server under a name of each start's own, `agentrun` and 8 random hex digits, and the prefix and the title tie read that name alone: any other server's call goes to the host's gate. Goose's and Cursor's recipes keep `agentrun`. agy caps a tool's name at 64 characters, so under that name a tool of AgentRun's may be named at most 43: a longer one refuses the start, naming it. An agent that announces a call with a field the tool's schema declares but the model left out has that announcement matched to its MCP call with the field or without it, so two such calls in flight keep their own ids. An `announces.extras` field that a tool's own input schema declares (a `toolSummary` argument of the tool's, at its top, in `allOf`, `anyOf` or `oneOf`, or behind a local `$ref`) is kept as that call's argument, never left out as agy's. Two calls in flight whose arguments differ only in that field, one sending it and one leaving it out, keep their own ids whichever reaches MCP first: a call matching more than one announcement only without the field waits while another call may still need one of them.
|
|
88
|
+
- The console has a Free page (`#/free`) that shows what runs for $0 on the server. It lists the free models, with the ones on this machine's Ollama first and each with its context size. A free catalog model also shows the server's request limit a run. It shows what `web_search` and `web_fetch` go through now, in the server's own `why` words. It lists the templates that run on a free model and ask for nothing else that costs money (no key, no MCP toolkit, no browser tool, and no computer but this server's own Docker sandbox), whatever tags their package gives them, each with "Use free", which opens the template's Apply screen with the agent on the free default model of the harness Apply makes it on (apply's `overrides.model`). Where that harness has no free model, "Use free" is off and the card says so. With no local model, the page says so and shows the Free local model card, which pulls the model that fits this machine through its own Ollama. Once a pull there ends, "Use free" opens Apply on that pulled model, though the server's default is another free model. <!-- changes/free-shelf.md -->
|
|
89
|
+
A completed run that cost $0 on free models shows a receipt on its page. The receipt gives the model, why the run was free (a local model on Ollama, a free model with its request limit a run, or both), the requests and tokens, each tool's calls and what they went through, the run's time and its $0 cost. For a run whose trace was cut at its cap, each tool's count reads "at least" and the receipt says how many rows it did not read. A failed or cancelled run, a run whose cost is unknown, and one that cost money show none. Nor does a run whose usage has anything unpriced or unbooked beside its free model requests: a usage total that is not exactly $0 (browser time with no booked charge), a line with no figure (computer time no price was set for), MCP calls no price meters, or computer time no claim held. GET /v2/runs/{id}/usage reads a `compute_time` line's `unheld_quantity` as 0 on a provider that bills nothing (Docker), so a free run on Docker keeps its receipt.
|
|
90
|
+
- A server with no model can pull a free local model in one click. The console's first screen shows a "Free local model" card beside the model key card: this machine in one line (system, memory, GPU, Ollama version), the model recommended for it and why, and a Pull button with a progress bar. Once the pull ends the model is in the picker with no restart, and the first screen's templates run on it: a template's agent made earlier on another model is left as it is, and a new one is made on the pulled model. A progress read that fails is followed by another, so the card still reaches ready. <!-- changes/ollama-fit.md -->
|
|
91
|
+
- `GET /settings/local-model` reads the machine (platform, arch, total memory, Apple silicon or the first NVIDIA GPU `nvidia-smi` names), whether the Ollama here answers `/api/version` and its version, the recommendation, and the pull here with its progress. `POST /settings/local-model/pull` with `{ "tag": "<tag>" }` starts a pull through that Ollama's `/api/pull`. Both take the owner's session alone, never the API token.
|
|
92
|
+
- The recommendation: `inkling-2-mini` on Apple silicon with Ollama 0.40.17 or later; everyone else gets `qwen3:8b`, or `qwen3:4b` where memory is short, or none with what to do instead. Each tag's memory floor is named in the why. Apple silicon on an older Ollama is told to update it for `inkling-2-mini`. With no Ollama running, the card says where to install it. A tag already pulled needs no pull.
|
|
93
|
+
- A pull takes only a tag the recommendation can name (422 for any other), runs only on one owner's own server on their own machine, never under the faux model or a model gateway, and never into an Ollama that `OLLAMA_HOST` puts on another machine (403 in words), and runs one at a time (409 `local_model_pulling`). The server logs its start, end and failure with the tag, the bytes and the milliseconds alone.
|
|
94
|
+
- With `OLLAMA_HOST` on another machine, the server recommends nothing: it reads only its own memory and GPU, so it says to pull where that Ollama runs.
|
|
95
|
+
- The card stays up from a pull's start until its Done, on the first screen and on `#/free`, so a capabilities read that lists the model first never takes it down before the pulled tag is picked.
|
|
96
|
+
- A pull says done only once this server's Ollama lists the pulled tag, so a template the card runs next runs on it: a listing that missed it is read again, and a tag never listed ends the pull failed, saying to pull again.
|
|
97
|
+
- With no Ollama running, the card offers Check again, and reads the machine again when the page is back in view, so Ollama installed or started meanwhile shows the Pull button with no reload.
|
|
98
|
+
- Under the faux model or a model gateway this server asks no Ollama: the read surface says so (`ollama.asked` false), and the card shows only why no pull is made here.
|
|
99
|
+
- A pull that gets no byte from Ollama for two minutes (a registry that stalls, an Ollama that wedges) ends failed, saying to press Pull again, and frees the one pull here, so the next starts instead of answering 409. A progress line over 64 KiB ends it too. The pull's `tag` in the API description is the enum of tags a recommendation names.
|
|
100
|
+
- API-only server (`AGENTRUN_API_ONLY=1`): a trigger that turned itself off after 5 failed firings in a row (`disabled.reason` `auto_paused`) can be turned on again. Before, every trigger route was `404` there and there is no console, so nothing could turn it back on: a redeploy left it as it was, and an unarchive turned on only the triggers the archive had turned off. The token now reads the triggers (`GET /triggers`, `GET /triggers/{id}`, `GET /triggers/{id}/firings`) and turns one on or off with `PATCH /triggers/{id}`. On this profile the PATCH takes `enabled` alone (any other field is `422 not_allowed`), and turns on only what the apply makes here: a schedule or a feed trigger, with the launch hook set. Anything else is `422` under `enabled`, since its firings would start runs on the server's keys or wait on a hook this profile refuses. That includes a schedule or feed trigger that messages a run (a `message_run` target, made before the profile): its firings never go to the launch hook, so on, each would open that run on the server's keys. The agent's unarchive leaves such a trigger off too, and names it. Making, deleting or firing a trigger, and its secret, are still `404`. <!-- changes/api-only-trigger-resume.md -->
|
|
101
|
+
|
|
102
|
+
The CLI's `agentrun triggers update <id> --enabled` (or `--no-enabled`) sends the same PATCH and works against an API-only server too. The Slack message for an auto-paused trigger now names each way to turn it on: the console, `agentrun triggers update <id> --enabled`, or `PATCH /v2/triggers/{id}` with `{"enabled": true}`. An API-only redeploy that skips a trigger the agent still has on now says that PATCH with `{"enabled": false}` turns it off. Before, it said to archive the agent.
|
|
103
|
+
- A refresh of Claude Code's login that finds its offers dropped by another probe makes the offers again without relisting runs or reading the keys again, since no key changed. A new Ollama listing does the same, and still works out again what a revision that names no model runs on, which reads that listing. <!-- changes/claude-login-offers-now.md -->
|
|
104
|
+
- In the console, an agent card's Run and Edit now go where that agent runs. For an agent this server runs, Run opens the agent's page, where its Run box is, and Edit opens its settings; before, both opened the coding-agent menu. Native, SDK and CLI agents keep the coding-agent menu. The runs list of an agent with no runs now points to the page's Run box when that agent runs here, instead of a Run agent button the page does not show. <!-- changes/console-card-run-here.md -->
|
|
105
|
+
- In Mode 2 (workspaces on Archil) a new agent that names no place now runs on the runner, with bash on Archil's serverless exec, even where Docker answers. Before, it got Docker's box, which can't mount Archil's workspaces, so every run was refused: a race could not start, and neither could an agent made with the form's default tools. `capabilities.places.default_place` is `{"mode": "runner"}` in Mode 2, and the start's Boxes line says so. A race lane whose run the server refuses now has its agent archived at once, so a refused race leaves no agents behind. <!-- changes/mode2-new-agents-on-runner.md -->
|
|
106
|
+
- MCP: when a run was handed no credential for a per_run server (no `mcp_auth` for it), or no account for a per-run Composio server, the model is no longer offered that server's tools. Before, the model saw the tools and every call came back refused. The run's timeline now says which server was left out and why, in the same words the refusal used. A message that hands the credential brings the tools back the next time the run picks up work, and a run handed the credential at the start gets them as before. A message that hands it while a turn is still going isn't put into that turn, whose tools can't change: it runs as the run's next turn, which has the tools, and the timeline says so. Every message sent after it waits behind it, so none runs first. If the run is waiting on a person's answer with a browser open, it stops waiting at once and parks on its question, so the answer is never held until the browser's time runs out; when it resumes, the messages run in the order they came. This applies to pi, Claude Code, OpenCode and the ACP agents, which take their tools again each time a run picks up work. Codex is the exception: it keeps the tools its thread started with, and a resume can't add new ones. A Codex run therefore keeps listing the server's tools, and their calls are refused, with nothing sent, until the credential comes. <!-- changes/per-run-mcp-left-out.md -->
|
|
107
|
+
- A saved secret now stays hidden when control characters that show as nothing (a NUL, an escape, a delete, a C1 control), or a U+FFFF that shows as a box at most, sit between its characters, whether raw, written as a JSON or Python escape, percent-encoded or as an HTML character reference, in a tool's output, a call's arguments, an answer or an imported transcript. Text with such characters and no secret in it is shown as before. <!-- changes/redact-control-characters.md -->
|
|
108
|
+
- With `AGENTRUN_RUN_KEYS=1`, an update apply that skips a template's trigger and keeps the agent's trigger of that name on now says, in the skip's warning, which of its firings are refused: one that would start a run of the new revision is refused 409 for the keys it owes and starts no run, but a `message_run` firing aimed at a run of an earlier revision that owes no keys still reaches that run, which may spend. Turning the trigger off stops both. In 0.1.0-beta.55 the warning said only that the trigger is kept and still fires. <!-- changes/run-keys-kept-trigger-spend.md -->
|
|
109
|
+
- `serve()`'s launch hook keeps its 10-second bound on every POST: the hook's `bound` signal, a test's seam, can cut a POST sooner, never later. In 0.1.0-beta.55 a `bound` given replaced the 10 seconds.
|
|
110
|
+
- A note on 0.1.0-beta.55's refusal of a `message_run` firing to a run that owes a key: a firing is checked as one that brings no keys, whatever the run holds then. So a `message_run` firing to a run mid-turn, still holding the keys its start or a person's message carried, is refused, while a person's message to that run passes on those keys. For a run whose template's keys the server does not hold, that is the safe side: a trigger's message never spends the keys a person handed that run. A run that owes no keys (an agent from no template, or one whose keys the server holds) is not checked, so a `message_run` firing to it mid-turn still runs on the keys its start or a person's message carried.
|
|
111
|
+
- The scrubber reads a call's command for an environment dump by its tokens, not by the shape of the command. It drops the line's quotes and escapes, lower-cases it, and splits it on anything but a letter, a digit, `_` or `-`. The call's whole output is one `env-dump` cut when any of these holds: <!-- changes/scrubber-env-words.md -->
|
|
112
|
+
- a token runs, names or reads the environment, wherever it stands: `env`, `printenv`, `envsubst`, `environ`, `getenv`, `$_ENV`, `$_SERVER`, `compgen`, `show-environment`, `inspect` or `xtrace`. This covers `sudo -n env`, `env FOO=1 printenv A`, `ssh host env`, `kubectl exec p -- env`, `cat</proc/self/environ`, `node -p 'process["env"]'`, `jq -rn 'env.A'` and shells nested to any depth;
|
|
113
|
+
- a print (`echo`, `printf`, an awk program's `print`) or a here-string stands in a line that expands a variable anywhere (`$A`, any `${…}`, cmd's `%A%`);
|
|
114
|
+
- `set` has nothing after it, or `set` or a shell has an xtrace flag (`set -x`, `bash -x`);
|
|
115
|
+
- `export`, `declare`, `typeset` or `readonly` has flags only or `-p`;
|
|
116
|
+
- `ps` has an `e` option;
|
|
117
|
+
- the line is longer than is read.
|
|
118
|
+
|
|
119
|
+
An env token in an argument or a file's name is read the same way (`grep env notes.txt`, `ls src/env.ts`, a commit message naming `env`). That over-cut is kept on purpose: it fails closed. A dotfile `.env` named in the command (`cat .env.example`, `source .env`) is a file, which `env-file` reads, not an env read; `process.env` and `Bun.env` are still read.
|
|
120
|
+
|
|
121
|
+
In a transcript with no command given, a `$`, `%` or `❯` prompt line whose command prints the environment cuts everything after it up to the next such prompt or a cut marker. A multi-line value, or a `#` or `>` line inside the output, no longer ends the cut.
|
|
122
|
+
|
|
123
|
+
A run's export cuts a file's content knowing the path the run wrote, and writes only the cut path into the bundle. A `.env.<held value>` file is still cut as an env file.
|
|
124
|
+
- A learned workflow call in a run's `workflow_calls` reads `refused` (`usd` 0) only while nothing was booked under its call id. A call whose earlier attempt spent before a crash cut it, and whose rerun was then refused (at the gate, or because a tool one of its call nodes runs was set to deny), now reads `failed` at what it booked, or `usd` null when a request of it has no known cost. Before, it read `refused` at $0, and a run whose calls all read so took the agent's path. <!-- changes/workflow-calls-booked.md -->
|
|
125
|
+
- An agent's `learned_workflow` call that the run's gate refuses (the tool set to deny, a person's deny of its ask, or the cap's wrap-up) is now on the run's `workflow_calls`, as the agent's, with outcome `refused` and `usd` 0, on pi and on every CLI harness. Before, it never reached the tool, kept no record and dropped out of `workflow_calls` and the learning ledger. A run whose learned calls were all refused ran no workflow: its `path` is now `agent` and it names no `workflow`, where it read `handed_back` with none. A Postgres open refused because an applied migration's text differs from this build's now names both files, the applied one and this build's, each with the start of its sha256, so a renamed or renumbered migration is plain to see. <!-- changes/workflow-calls-refused.md -->
|
|
126
|
+
- Workflow runs: a model node's tool answer (`web_search`, `web_fetch`) now passes the run's redactor before the node's model or the run's journal sees it, as an agentic run's tool answers do. Before, a search result or a page that echoed a key the run holds reached the node's model and was stored uncut. A web call's JSON is cut string by string, so it still parses and keeps its links. <!-- changes/workflow-node-tool-cut.md -->
|
|
127
|
+
- Each card on the Wrapped page has a "Download PNG" button that saves it as a PNG named for its year and card (`wrapped-2026-cover.png`); a browser that can't draw one gets a note beside the button instead. Setup's list of this machine's sessions names the tools it found, each by its own name, OpenCode included, where it used to say "from Claude Code, Codex and pi" whatever it found; while it counts, it says it is looking for coding-agent sessions. <!-- changes/wrapped-card-png-and-setup-sources.md -->
|
|
128
|
+
|
|
5
129
|
## 0.1.0-beta.60 (2026-11-26)
|
|
6
130
|
|
|
7
131
|
**Breaking:**
|
package/README.md
CHANGED
|
@@ -333,7 +333,12 @@ and a line with the endpoint's origin and the time (`[otel] a trace export to ..
|
|
|
333
333
|
dropped: Request timed out`), then at most one line a minute, said by the next failure once a minute has passed, that
|
|
334
334
|
counts the failures since the last line (`[otel] 25 more trace exports to ... failed since ..., the last at ...`); never
|
|
335
335
|
a line per span or per batch. Unset, or with `OTEL_SDK_DISABLED=true`, no OpenTelemetry code loads, nothing is sent and
|
|
336
|
-
nothing is said.
|
|
336
|
+
nothing is said. The headers go to the endpoint, so it takes the rule of a URL a key goes to, over http or https: one
|
|
337
|
+
with a user, a password, a query or a fragment, or one that is not a URL, is refused, and tracing is off for it. The
|
|
338
|
+
server and its runs carry on, no OpenTelemetry code loads, nothing is sent, and the runner's start says why once, with
|
|
339
|
+
the variable and the origin alone: `[otel] tracing is off: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT takes no user or
|
|
340
|
+
password, since the key goes to it: https://collector.example:4318` (or `takes no query or fragment: ...`, or `is not a
|
|
341
|
+
URL`). Put a credential in `OTEL_EXPORTER_OTLP_HEADERS` instead.
|
|
337
342
|
|
|
338
343
|
[otel-agent-spans]: https://github.com/open-telemetry/semantic-conventions-genai/blob/d0e74ba6c48bcc4ded473b1828a8212f06b23753/docs/gen-ai/gen-ai-agent-spans.md#L213-L272
|
|
339
344
|
|
|
@@ -1020,8 +1025,21 @@ the screenshot are the tools of those names, and the rest (apps, the shell, file
|
|
|
1020
1025
|
`computer_op` (`{op, args}`), a tool bound for scripts alone. Each call is held to the run's gate and recorded on the
|
|
1021
1026
|
timeline like a tool's, and a crash rerun of the script answers a call that already ran from its record: a shell
|
|
1022
1027
|
command (`shell.run`) is held to the agent's `bash` setting, a started process to `bash_background`, a file written to
|
|
1023
|
-
`write`, and a file read, listed or looked up to `read`, after the kind's own setting for `computer_op`. A
|
|
1024
|
-
|
|
1028
|
+
`write`, and a file read, listed or looked up to `read`, after the kind's own setting for `computer_op`. A file op needs
|
|
1029
|
+
its tool among the agent's tools first, as the run's own file tools do: `files.write` needs `write`, and `files.read`,
|
|
1030
|
+
`files.list` and `files.stat` need `read`. An agent not given one is refused the op whatever its setting says, on every
|
|
1031
|
+
desktop, mounted or not. Naming a desktop does not grant its file ops. The shell's ops (`shell.run`, `processes.start`)
|
|
1032
|
+
follow `bash`'s setting alone, not a grant. An op the gate refuses whatever its arguments is not offered:
|
|
1033
|
+
`computer_op`'s op list and the script's `computer` declarations leave out an op whose tool the agent is not given, one
|
|
1034
|
+
held to a tool set to deny, one held to a tool set to ask on a server where no one can approve, and one `bash`'s policy
|
|
1035
|
+
refuses whatever its command (`processes.start` under the read-only policy). Leaving `read` out
|
|
1036
|
+
keeps no file from an agent that has the shell, paired machines included: on a desktop with exec on,
|
|
1037
|
+
`computer.shell.run` reads and writes any file the desktop's user can, held to `bash`'s setting alone, which allows by
|
|
1038
|
+
default. To keep files from such an agent, set `bash` to deny or turn the desktop's exec off. Input ops on a desktop
|
|
1039
|
+
with a terminal app or a GUI file manager, and `apps.open` with a `file://` URL, can do what a shell or the file ops
|
|
1040
|
+
do, whatever `bash`'s, `read`'s or `write`'s setting: to deny that, don't grant input ops or apps on that desktop, or
|
|
1041
|
+
use an image with neither a terminal nor a file manager. A script's call of a computer tool answers the
|
|
1042
|
+
tool's value. Codex's code mode takes no binding of ours, so a Codex run is offered
|
|
1025
1043
|
`computer_op` beside the computer's tools and its scripts call them as nested calls, each answering the tool's value as
|
|
1026
1044
|
JSON. A run whose `codemode` is set to deny lists them the same way, so its computer stays in reach. `computerMcp` (`src/workspace/computer-mcp.ts`) serves the same tools to an MCP
|
|
1027
1045
|
client, each answer with its value as `structuredContent`.
|
|
@@ -1033,7 +1051,7 @@ is refused in words before the computer is asked. A screenshot with `save_as` is
|
|
|
1033
1051
|
it too, after the kind's deny: the stricter decides (`write` set to deny refuses it before the computer is asked, set to
|
|
1034
1052
|
ask puts it to a person); one with no `save_as` is held to the kind's setting alone. `save_as` needs `write` among the
|
|
1035
1053
|
agent's tools: an agent not given `write` is not offered it, and the gate refuses one anyway whatever `write`'s setting
|
|
1036
|
-
says
|
|
1054
|
+
says, as a script's `computer.files.write` does. `save_as` is offered only
|
|
1037
1055
|
where the gate would let a save through: not with `write` set to deny, nor set to ask on a server where no one can
|
|
1038
1056
|
approve. On a desktop or a phone the run's folder is not mounted in (one with `exec: false`, or a provider that mounts
|
|
1039
1057
|
none), the model is told this once in the run, as the server's note, after a due cap wrap-up; a run whose saves the
|
|
@@ -1063,7 +1081,7 @@ seals it in its store as every saved key under `AGENTRUN_SEAL_KEY`, and register
|
|
|
1063
1081
|
key each restart, the old one left on the workspace), `MORPH_API_KEY`, `ORGO_API_KEY`, `PHONE_HARNESS_API_KEY`,
|
|
1064
1082
|
`BROWSERBASE_API_KEY` and `BROWSERBASE_PROJECT_ID`, `KERNEL_API_KEY`, `BOXD_API_KEY` (with `BOXD_ORG` and
|
|
1065
1083
|
`BOXD_REGION` optional), `SMOLCLOUD_API_KEY`, `GROUNDBOX_API_KEY`, `CLOUDFLARE_RELAY_URL` and `CLOUDFLARE_RELAY_TOKEN` (the relay Worker's,
|
|
1066
|
-
`packages/computer/relays/cloudflare`), and `
|
|
1084
|
+
`packages/computer/relays/cloudflare`), `FLY_API_TOKEN` and `FLY_APP`, and `RENDER_API_KEY` and `RENDER_WORKSPACE_ID`; Docker takes none.
|
|
1067
1085
|
`GET /v2/computers/running` lists every run still going (queued, working, paused or waiting on its person) whose agent
|
|
1068
1086
|
has a computer, newest first, each as `GET /v2/runs/{run_id}` answers it: its `computer` says the kind and provider,
|
|
1069
1087
|
`starting`, `ready` or `taken_over` while its owner drives it, and a held run's hold. The runs list carries no
|
|
@@ -1633,7 +1651,9 @@ unless the [launch hook](#launch-hook) is set, which hands each firing to your b
|
|
|
1633
1651
|
would start runs of the agent with no hook, or message one of its runs, hook or not. A `message_run` trigger made
|
|
1634
1652
|
before the setting was on, or while the server held the key, fails each firing with that 409 and sends nothing. An
|
|
1635
1653
|
update apply that skips a trigger leaves the agent's trigger of that name as it was; when that one is on, it still
|
|
1636
|
-
fires
|
|
1654
|
+
fires until you turn it off. A firing that would start a run of the new revision is refused 409 for the keys it owes and
|
|
1655
|
+
starts no run, but a `message_run` firing aimed at a run of an earlier revision that owes no keys still reaches that run,
|
|
1656
|
+
which may spend. The skip's warning names the trigger and says how to turn it off.
|
|
1637
1657
|
|
|
1638
1658
|
`MONID_API_KEY` stays the server's even with the setting on: an agent's monid tools are checked with it when the agent
|
|
1639
1659
|
is saved, before any run, so a template that grants them is still refused at its apply (409 at
|
|
@@ -1846,7 +1866,11 @@ has the row **Use Claude Code's login on this machine**, over these routes:
|
|
|
1846
1866
|
CLI said. Each removal stands alone: one that fails is named in the answer and the rest still happen. It answers
|
|
1847
1867
|
`{ "confirmed": true, "login": <the view, off> }`; `confirmed` false adds a `message` saying what may remain: the
|
|
1848
1868
|
CLI didn't confirm its own sign-out, or its step failed, named (on macOS its Keychain item may remain), or a file it
|
|
1849
|
-
could not remove, by path
|
|
1869
|
+
could not remove, by path, or, on macOS, an older Keychain item a sign-in left under the account `unknown`, which
|
|
1870
|
+
holds a refresh token and which the sign-out deletes too, could not be removed, with how to delete that item alone:
|
|
1871
|
+
its exact service, `Claude Code-credentials-` and 8 hex of AgentRun's folder, to search in Keychain Access, and the
|
|
1872
|
+
one `security delete-generic-password -a unknown -s "<that service>"` command. The words never name the bare
|
|
1873
|
+
`Claude Code-credentials`, the person's own CLI's item. The CLI's sign-out runs where the folder is already gone too, so a retry after an
|
|
1850
1874
|
unconfirmed sign-out confirms only where the CLI does. The next turn-on reads `signed_out` and the sign-in starts as
|
|
1851
1875
|
before. `<data>/claude-login`
|
|
1852
1876
|
is a folder AgentRun keeps itself: a turn-on where it is a link is refused, and a sign-out that finds a link there
|
|
@@ -2147,7 +2171,8 @@ Each child books on the run's cap, so size the cap for K passes, not one.
|
|
|
2147
2171
|
|
|
2148
2172
|
`web_search` and `web_fetch` work on every harness with only a model key. Each resolves, for a run, in one order: (1) the
|
|
2149
2173
|
provider the user picked, optional: the agent's own (`definition.tool_settings`) over the server's
|
|
2150
|
-
(`PUT /settings/tools`)
|
|
2174
|
+
(`PUT /settings/tools`), except that the server's `kernel` for `web_fetch`, and its `native` or `off` for `web_search`,
|
|
2175
|
+
are a ceiling no agent's pick raises ([below](#search-and-fetch)); (2) for
|
|
2151
2176
|
`web_search`, Parallel, where the server holds a Parallel key (`PARALLEL_API_KEY` in its environment, or one saved on Tool
|
|
2152
2177
|
keys): `auto` then uses that key and bills it, each search booked as the run's cost ($0.001 a search); (3) the keyless
|
|
2153
2178
|
fallback, Firecrawl's public MCP endpoint (for `web_search` with Exa's behind it). A revision's `tools` (and a pack's grant) names the capability, never a provider.
|
|
@@ -2197,7 +2222,9 @@ objective sends the page's text and the objective to TypeSafe …`, and for eith
|
|
|
2197
2222
|
|
|
2198
2223
|
`GET /settings/tools` answers the server's settings, `{web_search: {provider}, web_fetch: {provider}, browser: {provider}}`, the default
|
|
2199
2224
|
where none is set; `PUT /settings/tools` takes the same map and replaces it (a capability it leaves out takes its
|
|
2200
|
-
default). An agent's `definition.tool_settings` has the same shape and is over the server's
|
|
2225
|
+
default). An agent's `definition.tool_settings` has the same shape and is over the server's, except under the server's
|
|
2226
|
+
`kernel` for `web_fetch`, or its `native` or `off` for `web_search`, a ceiling no agent's pick raises, and a `deny`,
|
|
2227
|
+
which no agent's setting reaches past. A provider is one offered
|
|
2201
2228
|
for its capability (`auto`, `native`, `firecrawl-keyless`, `exa-keyless`, `parallel` or `off` for `web_search`; `auto`,
|
|
2202
2229
|
`firecrawl-keyless`, `kernel` or `parallel` for `web_fetch`;
|
|
2203
2230
|
`auto`, `browserbase`, `kernel` or `chrome` for `browser`, [below](#tools)); an
|
|
@@ -2271,10 +2298,32 @@ off for a run, `web_search` answers `search is unavailable for the rest of this
|
|
|
2271
2298
|
sees the URL, its query string included, so a token in a URL's query goes to Firecrawl with it. A URL first passes the
|
|
2272
2299
|
guard's own check, and one it refuses (a private, loopback, link-local or intranet address, a name that resolves to one,
|
|
2273
2300
|
or a URL holding a user name or password) is refused as the guarded direct fetch refuses it, and never sent to Firecrawl,
|
|
2274
|
-
to Exa or to Parallel. To keep every URL on the server, pick `kernel` for `web_fetch
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2301
|
+
to Exa or to Parallel. To keep every URL on the server, pick `kernel` for `web_fetch` (with a Parallel key, `auto`
|
|
2302
|
+
is Parallel's extract, which sends Parallel each URL). A server's pick is the default only, an agent's own `tool_settings` (an imported
|
|
2303
|
+
template's among them) over it, except for these. The server's `kernel` for `web_fetch`, and its `native` or `off` for
|
|
2304
|
+
`web_search`, are a ceiling: an agent's pick of `firecrawl-keyless`, `exa-keyless`, `auto` or `parallel` resolves as the
|
|
2305
|
+
server's setting does, so nothing goes to Firecrawl, to Exa or to Parallel, and capabilities' `why` says so ("the
|
|
2306
|
+
server's setting, kernel, is a ceiling over this agent's pick of auto"). An agent's own view (`GET /agents/{agent_id}`,
|
|
2307
|
+
its `tools`) keeps the agent's pick as `provider`, shows what runs as `resolved`, and names the server's setting that
|
|
2308
|
+
capped it as `ceiling`. Under `off`, an agent's `native` is off too;
|
|
2309
|
+
under `native`, it is the ceiling's own. To let agents use Parallel, set `parallel` server-wide; any server pick but
|
|
2310
|
+
these three (`auto`, `firecrawl-keyless`, `exa-keyless`, `parallel`) is only a default an agent's pick replaces. A
|
|
2311
|
+
server's `deny` is absolute: set `web_fetch` or `web_search` to `deny` to refuse every agent's calls, whatever it picks.
|
|
2312
|
+
A server setting applies at a run's next claim (its start, a follow-up, a resume or a reclaim): a claim keeps the plane
|
|
2313
|
+
it began with to its end, through any approval it waits on while it holds the run. `deny` is read at each call, so it
|
|
2314
|
+
is the setting that stops a claim already running. Tool settings a claim cannot read fail closed: a capability kept on a
|
|
2315
|
+
keyless service or on Parallel runs nothing, its tool saying the settings could not be read.
|
|
2316
|
+
|
|
2317
|
+
The ceiling covers `web_search` and `web_fetch`, not every way a run reaches the web:
|
|
2318
|
+
- `browser` sends each URL to its provider, and `bash` (`curl`) and MCP or catalog tools reach the web on their own; set
|
|
2319
|
+
them to `deny` to stop them.
|
|
2320
|
+
- Jev, where it is on, sends a kernel fetch's page text, or a native pi search's query and result URLs, to TypeSafe;
|
|
2321
|
+
`AGENTRUN_WEB_JEV_OFF=1` turns it off.
|
|
2322
|
+
- A workflow's typed questions on the `parallel` decision provider send the workflow's state to Parallel, which answers
|
|
2323
|
+
from live web research, whatever `web_search` says. A server `deny` on `parallel` refuses it to learned workflows; a
|
|
2324
|
+
workflow agent's own decision nodes run on it wherever the server holds `PARALLEL_API_KEY`.
|
|
2325
|
+
- A native job runs the user's own Claude Code or Codex CLI with that CLI's own configuration, which these settings do
|
|
2326
|
+
not reach.
|
|
2278
2327
|
|
|
2279
2328
|
A `web_fetch` through keyless Firecrawl takes at most about 95 s: up to 30 s for the guard's check of the URL, 30 s for
|
|
2280
2329
|
Firecrawl, then, where Firecrawl gives no page, the guarded fetch's 30 s and 5 s to read the page.
|
|
@@ -2745,8 +2794,9 @@ curl -X POST "$BASE/v2/agents/$AGENT/runs" -H "authorization: Bearer $TOKEN" -H
|
|
|
2745
2794
|
user and account, the Composio key staying the server's own. The binding is kept as a `per_run` server's headers are:
|
|
2746
2795
|
sealed into the run's launch, erased from the store by the write that ends the run, never on the server's row, the
|
|
2747
2796
|
run's view, its timeline, its trace or a log line, and its values are cut from whatever the run shows. A message's
|
|
2748
|
-
binding replaces the run's for the turn it starts. A run that names no account
|
|
2749
|
-
handed none, so a per-run server never calls as a default
|
|
2797
|
+
binding replaces the run's for the turn it starts. A run that names no account is not offered the server's tools (on
|
|
2798
|
+
Codex, its calls of them are answered, unsent, that it was handed none), so a per-run server never calls as a default
|
|
2799
|
+
account. A malformed user or account is `422 input_invalid` at
|
|
2750
2800
|
`mcp_auth.<server>.composio_user_id` or `.connected_account_id`, and so is a binding to the preset's default user
|
|
2751
2801
|
`agentrun` (`not_allowed`: the user single-user preset servers call as); headers for such a server, or a binding for any
|
|
2752
2802
|
other server, are `422` at `mcp_auth.<server>`, and no run starts. A per-run server makes no Composio trigger: a trigger
|
|
@@ -2849,7 +2899,11 @@ credential answers the first request's run), and its values are cut from whateve
|
|
|
2849
2899
|
`POST /v2/runs/{run_id}/messages` takes `mcp_auth` too: it replaces the run's credentials in the message's own write, so the turn the message starts (a
|
|
2850
2900
|
steer into a working run from its next model request, or a follow-up that opens an ended run again) calls with them. A
|
|
2851
2901
|
name that is not a saved per_run server is `422` at `mcp_auth.<server>`, and no run starts. A run handed no credential
|
|
2852
|
-
for a per_run server it calls
|
|
2902
|
+
for a per_run server it calls is not offered that server's tools, and its timeline says which server was left out and
|
|
2903
|
+
why; the next time the run picks up work after a message hands the credential, it has them. A message that hands it
|
|
2904
|
+
while a turn is still going is not put into that turn, whose tools can't change: it runs as the run's next turn, and
|
|
2905
|
+
the timeline says so. Codex keeps the tools its thread started with, so a Codex run keeps listing them, and their
|
|
2906
|
+
calls are answered, unsent, that it was handed none until the credential comes. `POST .../{name}/refresh` lists
|
|
2853
2907
|
a per_run server's tools with no credential: save it again with `headers` for a server that lists only to a caller it
|
|
2854
2908
|
knows. The tools are those it listed at its save, so a server whose tool list varies by caller shows each run the saved
|
|
2855
2909
|
list.
|
|
@@ -3831,6 +3885,10 @@ serves these routes alone:
|
|
|
3831
3885
|
- a run's usage lines (`GET /runs/{id}/usage`): what its `cost.usd` joins, by meter, cut of the host's secrets as the
|
|
3832
3886
|
run's read is;
|
|
3833
3887
|
- its files (`GET /runs/{id}/files`, `GET /runs/{id}/files/{path}`) and [uploads](#uploads) (`/files`);
|
|
3888
|
+
- an ended run's share bundle (`GET /runs/{id}/export`, with its `?restore=`), the `agentrun.share/1` document the full
|
|
3889
|
+
server answers, cut by the same scrubber: `409` before the run ends. A workflow run's bundle carries its graph, cut,
|
|
3890
|
+
where `GET /runs/{id}/graph` stays refused. The share preview page (`/share/{run}`) is the console's, refused here:
|
|
3891
|
+
`agentrun share RUN --out FILE` writes the bundle;
|
|
3834
3892
|
- an agent's Archil disk (`GET` and `DELETE /agents/{id}/archil`);
|
|
3835
3893
|
- the [delete of an agent another system owns](#deleting-an-agent-another-system-owns) (`DELETE /agents/{id}`), for
|
|
3836
3894
|
the backend whose inline runs made it;
|
|
@@ -3859,11 +3917,20 @@ serves these routes alone:
|
|
|
3859
3917
|
is what its delete (`DELETE /agents/{id}`) needs first. With the [launch hook](#launch-hook) set, the apply makes the
|
|
3860
3918
|
package's schedule and feed triggers, and every firing that starts a run goes to the backend, which starts it through
|
|
3861
3919
|
the API with the keys and budget it sends, a trigger the agent had before the profile included; the unarchive turns
|
|
3862
|
-
them on again
|
|
3863
|
-
|
|
3864
|
-
|
|
3920
|
+
them on again. Without the hook it makes neither (`not_set_up_here`: set the hook, or start those runs through the
|
|
3921
|
+
API), and a trigger the agent already had stays as it was: an enabled one still fires here, on this server's keys,
|
|
3922
|
+
until it is turned off (below) or the agent is archived, and the skip's warning says so. A webhook, GitHub, Composio or email trigger is never made here, hook
|
|
3865
3923
|
or not, since this profile refuses the hook or setting each needs (`not_an_option`). Each skipped trigger is a warning
|
|
3866
3924
|
under `warnings` (`triggers.<i>`), and the dry run (`dry_run: true`) plans it as `skip` in the same words;
|
|
3925
|
+
- the triggers, for a backend to see one that is off and turn it on again: their list (`GET /triggers`), one
|
|
3926
|
+
(`GET /triggers/{id}`), its firings (`GET /triggers/{id}/firings`), and its turn on or off
|
|
3927
|
+
(`PATCH /triggers/{id}` with `{"enabled": true}` or `{"enabled": false}`; from the CLI,
|
|
3928
|
+
`agentrun triggers update <id> --enabled` or `--no-enabled`). A trigger whose firings failed 5 times in
|
|
3929
|
+
a row turns itself off (`disabled.reason` `auto_paused`), and there is no console here to turn it on in. The PATCH
|
|
3930
|
+
takes `enabled` alone (any other field is `422 not_allowed`), and turns on only what the apply would make: a schedule
|
|
3931
|
+
or a feed, with the launch hook set (`422` under `enabled` otherwise, since its firings would start runs on this
|
|
3932
|
+
server's keys or wait on a hook this profile refuses). Turning one off always works. Making, deleting or firing a
|
|
3933
|
+
trigger, and its secret, stay refused;
|
|
3867
3934
|
- a Composio server's save (a new name, or a server the token saved) and the delete of a server the token saved, for a
|
|
3868
3935
|
backend that grants its runs Composio tools. The token here never writes a secret, so the save keeps none:
|
|
3869
3936
|
- a Composio server (`PUT /settings/mcp-servers/{name}/composio`) names its key with
|
|
@@ -3952,7 +4019,7 @@ Here a run's computer routes take the server's token. `POST /runs/{id}/computer/
|
|
|
3952
4019
|
`AGENTRUN_PUBLIC_URL` that opens that run's live page and socket until the run ends (API doc).
|
|
3953
4020
|
|
|
3954
4021
|
Every other address is `404 not_found`, answered before the request is read further: the console at `/` and its
|
|
3955
|
-
assets, sign-in and setup, every other `/settings` route, `POST /mcp`,
|
|
4022
|
+
assets, sign-in and setup, every other `/settings` route, `POST /mcp`, every other trigger route and the triggers'
|
|
3956
4023
|
`POST /hooks/{id}`, the agents list, an agent made or edited through `/agents`, the templates list and every other
|
|
3957
4024
|
template route, `/openapi.json`, `/llms.txt` and a browser's live view. It has no accounts: there is no page to sign in
|
|
3958
4025
|
to, so no setup code is printed. The token works as it does on every route served. Unset, `0` or `false` serve the
|
|
@@ -3961,6 +4028,53 @@ whole server, as before; any value other than these and `1` or `true` stops the
|
|
|
3961
4028
|
So on an API-only server a run is launched inline (`POST /runs` with its definition), on an agent a template's apply
|
|
3962
4029
|
made, or on an agent made before the profile was turned on.
|
|
3963
4030
|
|
|
4031
|
+
### Share host
|
|
4032
|
+
|
|
4033
|
+
`agentrun-serve --share-host` (or `AGENTRUN_SHARE_HOST=1`) is the server behind a public share link such as
|
|
4034
|
+
`https://agentrun.ai/r/<id>`. It answers under `/r/` alone, so a site in front of it routes one path to it:
|
|
4035
|
+
|
|
4036
|
+
- `/r/<id>`: the share's page, the console's `share.html`, with its asset URLs under `/r/_assets/` and a CSP that loads
|
|
4037
|
+
nothing from another origin;
|
|
4038
|
+
- `/r/<id>/bundle.json`: the bytes that were uploaded, exactly (`nosniff`, `X-Robots-Tag: noindex`);
|
|
4039
|
+
- `POST /r/v2/shares`: stores a run's `agentrun.share/1` bundle (`GET /v2/runs/{id}/export`'s body) and answers
|
|
4040
|
+
`201 {id, url, sha256}`;
|
|
4041
|
+
- `GET /r/v2/shares`: the caller's own shares and its quota; `DELETE /r/v2/shares/<id>`: deletes one;
|
|
4042
|
+
- `GET /r/v2/health`: without a credential.
|
|
4043
|
+
|
|
4044
|
+
Every other address is `404 not_found`, answered before the request is read further: the console, `/v2`, MCP and
|
|
4045
|
+
every run, agent, key, computer and trigger route. It starts no runner and has no owner, accounts or console session.
|
|
4046
|
+
Its API takes one of its tokens (`AGENTRUN_TOKENS`, `id:secret` entries) as a Bearer header: the token's id owns the
|
|
4047
|
+
shares it uploads.
|
|
4048
|
+
|
|
4049
|
+
An upload is checked in this order, and refused with nothing stored at the first failure: the token; its quota (100
|
|
4050
|
+
shares a token, `403 forbidden` with `details.reason: share_quota`; shares never expire, and a delete makes room); the
|
|
4051
|
+
body, at most 8 MiB of canonical JSON (`413` over it); the bundle's closed fields and the export's caps, each file's size
|
|
4052
|
+
and digest, and the document's sha256 (`400`); then the scrubber in cut mode, with the values this host holds (its keys and
|
|
4053
|
+
tokens), over the whole body and over each of its strings alone. A value the scrubber finds is refused unless the bundle
|
|
4054
|
+
declares it restored: a `restored` record naming it exactly (its string's pointer, rule, start and end) and a kind the
|
|
4055
|
+
host's own scrub says may be restored (label, personal, jev; never a key format, a held value or a dump, whatever the
|
|
4056
|
+
record says). Each refusal is `422 input_invalid` with `details.reason` and counts by rule id, never a value:
|
|
4057
|
+
`scrub_found` (a value no restore declares), `restored_unmatched` (a restored record naming no value the host finds: a
|
|
4058
|
+
stale or edited bundle) or `scrub_failed` (the scrub failed or threw). The one record taken unchecked is a restore of
|
|
4059
|
+
Jev's rule (Scrubber beta 3): the host never runs Jev, so it can't find that value, and the answer counts such records
|
|
4060
|
+
in `restored_unchecked`; the value is still scrubbed by every other rule, and a hit there needs its own record.
|
|
4061
|
+
|
|
4062
|
+
The bounds on what one upload asks of the host: the body is at most 8 MiB (`413` past it, from its `Content-Length`
|
|
4063
|
+
before a byte is read), the scrubber reads that body once whole, and then reads each distinct string alone, at most
|
|
4064
|
+
50,000 of them (`SHARE_STRINGS`; `413` with `details.reason: share_strings` past it, before any scrub), which together
|
|
4065
|
+
hold no more than the body. The host never repairs a bundle:
|
|
4066
|
+
what it serves is what was uploaded and scanned. Shares are kept in `DIR/shares/<id>/` (`bundle.json` and `meta.json`,
|
|
4067
|
+
`0600`). Only the token that made a share deletes it (`204`); its bytes go, and its page and bundle then answer `410`.
|
|
4068
|
+
|
|
4069
|
+
A share's URL is on `AGENTRUN_PUBLIC_URL`, never a request's Host header. A share host on an address other than
|
|
4070
|
+
loopback refuses to start without it.
|
|
4071
|
+
|
|
4072
|
+
Not yet checked: the share page drawn in a real browser. Its HTML, CSP and every asset it references were fetched from a
|
|
4073
|
+
real console build on a loopback share host; the page's own reads are covered by the console's unit tests.
|
|
4074
|
+
|
|
4075
|
+
Run one replica, with `DIR` on a persistent volume. The quota and the share index are kept by the one process (a
|
|
4076
|
+
second replica would neither see the other's shares nor hold the quota), and a share lives only in `DIR`.
|
|
4077
|
+
|
|
3964
4078
|
### Launch hook
|
|
3965
4079
|
|
|
3966
4080
|
For an install that hosts agents for other people, where the host decides who pays for each run and with which keys,
|
|
@@ -4272,7 +4386,9 @@ A module exports `entries(builtins, kit)`, which returns new entries by id. [HAR
|
|
|
4272
4386
|
writing one, and [examples/harness-module](../../examples/harness-module/README.md) is a whole one.
|
|
4273
4387
|
|
|
4274
4388
|
An entry made without `kit` gives `label`, `steer`, `runMib`, `oneAlwaysFits`, `runs`, `onWire`, `model`, `priceModel`,
|
|
4275
|
-
`refusal` and its `runner`, and may give `promises`; a run of it runs on its runner's `adapter(launch, extra)
|
|
4389
|
+
`refusal` and its `runner`, and may give `promises`; a run of it runs on its runner's `adapter(launch, extra)`, where
|
|
4390
|
+
`launch.redact` is the run's redactor (required: it holds every key the run's claim opens) and `extra` the harness's
|
|
4391
|
+
own options. Every
|
|
4276
4392
|
harness is admitted by the `runMib` its entry declares. A module adds harnesses and never replaces one: the built-in
|
|
4277
4393
|
harnesses' facts, offers, key rows, default models and tool names are the same with any module loaded. The start of the
|
|
4278
4394
|
server, or of a separate runner, is refused, naming the module and the id, when a module:
|
|
@@ -5091,7 +5207,7 @@ were reached. Nothing is priced here, and nothing is rounded to a billing increm
|
|
|
5091
5207
|
over a 730-hour month); a computer still open is counted up to `measured_to` (`open_computers` says how many). `usd` is
|
|
5092
5208
|
what the run's ledger booked for it while a claim held the computer, at the operator's price ([Computer
|
|
5093
5209
|
time](#computer-time)), so `total` stays the run's `cost.usd`. The part no claim held (`unheld_quantity`: a computer
|
|
5094
|
-
kept past its claim for a follow-up, one deleted after its run, one whose delete failed) is in no cost. A resource with
|
|
5210
|
+
kept past its claim for a follow-up, one deleted after its run, one whose delete failed) is in no cost; on a provider that bills nothing (`docker`) it reads 0, since none of its time costs anything. A resource with
|
|
5095
5211
|
no price set, or whose figure no one said, is `unpriced`, its `usd` null; a provider that bills nothing (`docker`) is
|
|
5096
5212
|
$0. A `compute_time` line that is `unpriced` and any `unheld_quantity` are outside `total`.
|
|
5097
5213
|
```json
|
|
@@ -5214,6 +5330,7 @@ is unpriced.
|
|
|
5214
5330
|
seconds between the end's booking and its delete included), and one whose delete failed run on with no claim to hold
|
|
5215
5331
|
them. Their time is on the usage read (`unheld_quantity`, and the
|
|
5216
5332
|
interval's `booked_seconds` beside its life) but in no cap and no cost: check `computer_intervals` for such a computer.
|
|
5333
|
+
On a provider that bills nothing (Docker) both are 0: its time costs nothing, held or not.
|
|
5217
5334
|
A computer a later claim takes back is held again from then on.
|
|
5218
5335
|
- A run whose process keeps no ledger here (a runner of its own with no run ledger) holds and books nothing, as if
|
|
5219
5336
|
unpriced.
|
package/dist/acp-package.d.ts
CHANGED
|
@@ -49,6 +49,10 @@ export type AcpPackage = {
|
|
|
49
49
|
}): AcpRecipe;
|
|
50
50
|
/** The folder Cursor was installed into, from its launcher's path and the pin's `cmd`; undefined when it is not there. */
|
|
51
51
|
cursorRootOf(binary: string, cmd: string): string | undefined;
|
|
52
|
+
/** The recipes the package ships whole, by name (Google Antigravity's), and the file of each: absent from a package
|
|
53
|
+
* older than them. */
|
|
54
|
+
readonly BUNDLED_RECIPES?: readonly string[];
|
|
55
|
+
bundledRecipePath?(name: string): string | undefined;
|
|
52
56
|
/** The form a model id an ACP agent lists takes (Cursor's `gpt-5.4-nano[reasoning=medium]` among them). */
|
|
53
57
|
readonly MODEL_ID: RegExp;
|
|
54
58
|
/** The forms a recipe's allowFile may take (`goose-permission`). */
|
package/dist/api-only.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { InputIssue } from "./errors.js";
|
|
1
2
|
import { NOT_SET_UP } from "./runnable.js";
|
|
2
3
|
import type { Route } from "./server.js";
|
|
3
4
|
/** The routes (server.ts ROUTES, by name) an API-only server serves. Past a run's own, why each group is here:
|
|
@@ -10,6 +11,10 @@ import type { Route } from "./server.js";
|
|
|
10
11
|
* - a backend reads what its agents learned (loop, promotions, audits, cost per run, a run's learning), cut as the
|
|
11
12
|
* console's, and resets it (deleteAgentLearning: the agent and its runs kept) when it erases what an agent learned;
|
|
12
13
|
* - a run's usage lines (what its cost.usd joins, by meter) are a read of that run alone, cut as the run's read is;
|
|
14
|
+
* - a backend shares a run it ran (getRunExport, run-export.ts): an ended run's agentrun.share/1 bundle, every string
|
|
15
|
+
* cut by the scrubber as on the full server, its ?restore= a stateless re-export of cuts a preview may restore. A
|
|
16
|
+
* workflow run's bundle carries its graph, cut, though getRunGraph stays refused here; the share page (/share/{run})
|
|
17
|
+
* is the console's, refused with the rest of it;
|
|
13
18
|
* - an operator or a scaler reads the runners' capacity (getCapacity, capacity.ts) from the server whose runners run apart;
|
|
14
19
|
* - a backend reads the saved MCP servers' names (listMcpServerNames), never a URL or a credential;
|
|
15
20
|
* - a backend uploads an agent's package (importTemplate, as {files} alone: a GitHub source is refused in this profile's
|
|
@@ -20,7 +25,12 @@ import type { Route } from "./server.js";
|
|
|
20
25
|
* agents and revisions that stay, archives and deletes any agent made here and purges any run of one, as the whole
|
|
21
26
|
* server's token does, and with the launch hook its apply makes schedule and feed triggers. A trigger the apply can't
|
|
22
27
|
* make here is skipped, and said (apiOnlyTriggerSkipped). One the agent had before the profile stays as it was:
|
|
23
|
-
* without the hook, an enabled one still fires here on this server's keys until the agent
|
|
28
|
+
* without the hook, an enabled one still fires here on this server's keys until it is turned off (below) or the agent
|
|
29
|
+
* is archived;
|
|
30
|
+
* - a backend reads the triggers (their list, one, its firings) and turns one on or off (updateTrigger, `enabled` alone:
|
|
31
|
+
* apiOnlyTriggerEdit), since a trigger whose firings failed FAILURES_TO_PAUSE times in a row turns itself off and
|
|
32
|
+
* there is no console here to turn it on in. It turns one on under the apply's rule: a schedule or a feed, with the
|
|
33
|
+
* launch hook. Making, deleting, firing a trigger and its secret stay refused;
|
|
24
34
|
* - an API-only server has no owner, so the token is the backend's own, as with take-over: it saves the Composio servers
|
|
25
35
|
* its agents need through the preset (saveComposioServer), saves over or deletes only a server it saved
|
|
26
36
|
* (mcp-secret-writes.ts tokenWriteOverRefused), and never writes a secret (secret-writes.ts). A Composio server names
|
|
@@ -49,6 +59,18 @@ export declare function apiOnlyTriggerSkipped(packageName: string, trigger: {
|
|
|
49
59
|
reason: typeof NOT_SET_UP | "not_an_option";
|
|
50
60
|
message: string;
|
|
51
61
|
} | undefined;
|
|
62
|
+
/** Whether an API-only server turns on a trigger whose source is `kind` and whose target is `target` (its PATCH, its
|
|
63
|
+
* agent's unarchive): only one the apply would make, a source of API_ONLY_HOOKED_KINDS aimed at an agent (start_run),
|
|
64
|
+
* with the launch hook `hooked`, so each firing goes to the backend. A message_run firing never goes to the hook
|
|
65
|
+
* (triggers.ts): on, it would open its run on this server's keys. */
|
|
66
|
+
export declare function apiOnlyTurnsOn(kind: string, target: string, hooked: boolean): boolean;
|
|
67
|
+
/** Why an API-only server refuses `body`, a PATCH of a trigger whose source is `kind` and whose target is `target`, each
|
|
68
|
+
* an issue (none: it goes on to the trigger's own checks). It takes `enabled` alone: a new source or target would let
|
|
69
|
+
* the token aim a trigger at an address or an agent of its own choosing (a feed's urls fetched by this server, a run of
|
|
70
|
+
* another agent), which no route here lets it make, and a name or a cap is the console's to edit. Turned off: always,
|
|
71
|
+
* it stops firings. Turned on: only where the apply would make it (apiOnlyTurnsOn), so its firings go to the backend;
|
|
72
|
+
* any other would start or open runs on this server's keys, or wait on a hook or setting this profile refuses. */
|
|
73
|
+
export declare function apiOnlyTriggerEdit(body: unknown, kind: string, hooked: boolean, target: string): InputIssue[];
|
|
52
74
|
/** Whether an API-only server saves `body` through the generic save (saveMcpServer) over the name its path gives: a
|
|
53
75
|
* per_run server (no credential kept) whose url's origin is one of `origins`, under a name that is not a Composio
|
|
54
76
|
* preset's (`preset`; Composio's own route saves those). Checked before anything reaches the address. A body that
|