@parcha/agentrun-serve 0.1.0-beta.51 → 0.1.0-beta.53
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 +160 -1
- package/README.md +306 -36
- package/dist/adapters.js +1 -1
- package/dist/agent-delete.d.ts +14 -4
- package/dist/agent-delete.js +30 -58
- package/dist/agent-package.d.ts +71 -0
- package/dist/agent-package.js +345 -0
- package/dist/agents-store.d.ts +28 -18
- package/dist/agents-store.js +48 -34
- package/dist/api-only.d.ts +30 -8
- package/dist/api-only.js +40 -16
- package/dist/archil-routes.d.ts +1 -0
- package/dist/archil-routes.js +28 -2
- package/dist/claude-login.d.ts +1 -0
- package/dist/claude-login.js +1 -1
- package/dist/cli-learning/cli.d.ts +3 -0
- package/dist/cli-learning/cli.js +17 -3
- package/dist/cli-learning/connections.js +3 -2
- package/dist/cli-learning/schema.js +2 -1
- package/dist/cli.js +70 -7
- package/dist/composio-preset.d.ts +2 -1
- package/dist/composio-preset.js +4 -3
- package/dist/composio-triggers.d.ts +4 -0
- package/dist/composio-triggers.js +4 -1
- package/dist/computer-needs.d.ts +32 -0
- package/dist/computer-needs.js +80 -0
- package/dist/computer-setting.d.ts +9 -0
- package/dist/computer-setting.js +19 -1
- package/dist/computers.d.ts +6 -2
- package/dist/computers.js +2 -2
- package/dist/console/assets/index-BFgyZzF_.js +734 -0
- package/dist/console/assets/index-DbilxljH.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/console-links.d.ts +1 -0
- package/dist/console-links.js +2 -0
- package/dist/env-switch.d.ts +14 -0
- package/dist/env-switch.js +23 -0
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +3 -0
- package/dist/eval-previous.js +4 -3
- package/dist/fal-price.d.ts +76 -0
- package/dist/fal-price.js +365 -0
- package/dist/handed-secret.d.ts +4 -0
- package/dist/handed-secret.js +10 -0
- package/dist/harness-archive.d.ts +15 -5
- package/dist/harness-archive.js +71 -34
- package/dist/harness-check.d.ts +2 -1
- package/dist/harness-check.js +36 -95
- package/dist/harness-egress.d.ts +23 -0
- package/dist/harness-egress.js +69 -0
- package/dist/harness-recipe-entry.d.ts +71 -0
- package/dist/harness-recipe-entry.js +184 -0
- package/dist/harness-recipe.d.ts +73 -6
- package/dist/harness-recipe.js +185 -31
- package/dist/harness-sign-in.d.ts +29 -0
- package/dist/harness-sign-in.js +122 -0
- package/dist/harness-table.d.ts +21 -0
- package/dist/harness-table.js +58 -3
- package/dist/harness-zip.d.ts +6 -0
- package/dist/harness-zip.js +203 -0
- package/dist/ids.d.ts +11 -0
- package/dist/ids.js +36 -0
- package/dist/learn/commit.d.ts +19 -1
- package/dist/learn/commit.js +160 -2
- package/dist/learn/compile.d.ts +13 -5
- package/dist/learn/compile.js +46 -15
- package/dist/learn/delete.d.ts +12 -6
- package/dist/learn/delete.js +17 -11
- package/dist/learn/folder.d.ts +16 -0
- package/dist/learn/folder.js +30 -4
- package/dist/learn/learning-of.d.ts +8 -0
- package/dist/learn/learning-of.js +8 -0
- package/dist/learn/learning.sh +29 -4
- package/dist/learn/promote.d.ts +51 -7
- package/dist/learn/promote.js +51 -8
- package/dist/learn/secrets.js +30 -7
- package/dist/learning-reset.d.ts +18 -0
- package/dist/learning-reset.js +115 -0
- package/dist/learning-routes.d.ts +23 -11
- package/dist/learning-routes.js +110 -20
- package/dist/learning-words.d.ts +5 -0
- package/dist/learning-words.js +5 -0
- package/dist/learning.d.ts +15 -10
- package/dist/learning.js +14 -8
- package/dist/llms.txt +1 -0
- package/dist/mcp-gateway.d.ts +39 -2
- package/dist/mcp-gateway.js +56 -12
- package/dist/mcp-pin-first.js +1 -1
- package/dist/mcp-probe.d.ts +3 -0
- package/dist/mcp-probe.js +7 -2
- package/dist/mcp-resources.d.ts +44 -0
- package/dist/mcp-resources.js +100 -0
- package/dist/mcp-servers-store.d.ts +17 -12
- package/dist/mcp-servers-store.js +2 -1
- package/dist/media-duration.d.ts +2 -0
- package/dist/media-duration.js +136 -0
- package/dist/model.d.ts +4 -4
- package/dist/model.js +6 -6
- package/dist/native/cli.js +9 -2
- package/dist/native/connection.d.ts +2 -2
- package/dist/native/connection.js +5 -2
- package/dist/native/discovery.d.ts +2 -0
- package/dist/native/discovery.js +10 -6
- package/dist/native/remote-worker-bridge.js +36 -4
- package/dist/native/remote.d.ts +18 -1
- package/dist/native/remote.js +126 -37
- package/dist/native/schema.d.ts +6 -0
- package/dist/native/schema.js +31 -6
- package/dist/native/source-account.d.ts +13 -0
- package/dist/native/source-account.js +114 -0
- package/dist/native/source-capture-hooks.d.ts +5 -0
- package/dist/native/source-capture-hooks.js +102 -0
- package/dist/native/source-mcp-selection.d.ts +13 -0
- package/dist/native/source-mcp-selection.js +72 -0
- package/dist/native/source-runtime-tools.d.ts +19 -0
- package/dist/native/source-runtime-tools.js +103 -0
- package/dist/native/source-snapshot-types.d.ts +138 -0
- package/dist/native/source-snapshot-types.js +12 -0
- package/dist/native/source-snapshot.d.ts +8 -0
- package/dist/native/source-snapshot.js +1201 -0
- package/dist/observation/learning.js +3 -2
- package/dist/openapi.js +211 -47
- package/dist/print.js +1 -1
- package/dist/provider.d.ts +8 -0
- package/dist/provider.js +14 -2
- package/dist/purged-workflow.d.ts +12 -0
- package/dist/purged-workflow.js +43 -0
- package/dist/refusal-words.d.ts +0 -3
- package/dist/refusal-words.js +0 -3
- package/dist/request-metadata.d.ts +20 -0
- package/dist/request-metadata.js +24 -0
- package/dist/run-keys.d.ts +46 -0
- package/dist/run-keys.js +109 -0
- package/dist/run-launch.d.ts +29 -5
- package/dist/run-launch.js +44 -4
- package/dist/run-learning-served.d.ts +2 -2
- package/dist/run-model-key.d.ts +2 -2
- package/dist/run-model-key.js +5 -5
- package/dist/run-secrets.d.ts +2 -0
- package/dist/run-secrets.js +7 -4
- package/dist/run-usage.d.ts +48 -4
- package/dist/run-usage.js +156 -39
- package/dist/run-view.d.ts +18 -1
- package/dist/run-view.js +28 -8
- package/dist/runner/adapter-loop.d.ts +14 -4
- package/dist/runner/adapter-loop.js +150 -31
- package/dist/runner/adapter-run-spec.d.ts +1 -1
- package/dist/runner/adapter-run-spec.js +35 -22
- package/dist/runner/audit.d.ts +10 -3
- package/dist/runner/audit.js +30 -7
- package/dist/runner/beside.js +2 -1
- package/dist/runner/claim-secrets.d.ts +31 -4
- package/dist/runner/claim-secrets.js +43 -7
- package/dist/runner/cli-run-spec.d.ts +1 -1
- package/dist/runner/cli-run-spec.js +32 -20
- package/dist/runner/conformance/harness.js +4 -2
- package/dist/runner/dispatch.js +4 -2
- package/dist/runner/harness-loops.d.ts +6 -0
- package/dist/runner/harness-loops.js +16 -3
- package/dist/runner/held.d.ts +4 -0
- package/dist/runner/journal-kinds.d.ts +5 -0
- package/dist/runner/learned-first.d.ts +2 -0
- package/dist/runner/learned-first.js +1 -1
- package/dist/runner/learning-end.d.ts +9 -3
- package/dist/runner/learning-end.js +66 -29
- package/dist/runner/learning-seed.d.ts +9 -3
- package/dist/runner/learning-seed.js +2 -2
- package/dist/runner/main.d.ts +1 -0
- package/dist/runner/main.js +20 -13
- package/dist/runner/mcp-claim.js +7 -2
- package/dist/runner/mcp-run.d.ts +12 -0
- package/dist/runner/mcp-run.js +14 -1
- package/dist/runner/model-route.js +7 -4
- package/dist/runner/monid-run.js +9 -11
- package/dist/runner/project-checkpoint.d.ts +35 -0
- package/dist/runner/project-checkpoint.js +116 -0
- package/dist/runner/project-drain.d.ts +8 -0
- package/dist/runner/project-drain.js +25 -0
- package/dist/runner/project-host.d.ts +10 -0
- package/dist/runner/project-host.js +52 -0
- package/dist/runner/promotion.d.ts +51 -24
- package/dist/runner/promotion.js +206 -78
- package/dist/runner/redact.d.ts +13 -0
- package/dist/runner/redact.js +67 -1
- package/dist/runner/run-channel.d.ts +9 -0
- package/dist/runner/run-channel.js +15 -2
- package/dist/runner/run-child-host.d.ts +8 -4
- package/dist/runner/run-child-host.js +174 -42
- package/dist/runner/run-errors.js +2 -2
- package/dist/runner/runner-check.js +5 -2
- package/dist/runner/runner.js +41 -12
- package/dist/runner/sdk-loop.d.ts +2 -2
- package/dist/runner/sdk-loop.js +3 -3
- package/dist/runner/store-port.d.ts +3 -0
- package/dist/runner/store-secrets.js +7 -3
- package/dist/runner/workflow-first.d.ts +4 -0
- package/dist/runner/workflow-first.js +13 -0
- package/dist/runner/workflow-loop.d.ts +2 -1
- package/dist/runner/workflow-loop.js +2 -1
- package/dist/runner/workflow-spec.js +4 -4
- package/dist/runs-over-store.d.ts +39 -8
- package/dist/runs-over-store.js +147 -32
- package/dist/sdk/check.d.ts +6 -5
- package/dist/sdk/check.js +17 -16
- package/dist/sdk/runs.d.ts +11 -1
- package/dist/sdk/runs.js +185 -78
- package/dist/sdk/schema.js +12 -2
- package/dist/sdk/workflows.d.ts +1 -1
- package/dist/server.d.ts +68 -32
- package/dist/server.js +678 -124
- package/dist/skills/agentrun-serve/SKILL.md +2 -1
- package/dist/source-sync/adoption.d.ts +15 -0
- package/dist/source-sync/adoption.js +36 -0
- package/dist/source-sync/auxiliary.d.ts +23 -0
- package/dist/source-sync/auxiliary.js +64 -0
- package/dist/source-sync/capture-git.d.ts +5 -0
- package/dist/source-sync/capture-git.js +272 -0
- package/dist/source-sync/capture-project.d.ts +53 -0
- package/dist/source-sync/capture-project.js +206 -0
- package/dist/source-sync/capture-refusal.d.ts +7 -0
- package/dist/source-sync/capture-refusal.js +16 -0
- package/dist/source-sync/capture.d.ts +11 -0
- package/dist/source-sync/capture.js +22 -0
- package/dist/source-sync/checkpoint-gate.d.ts +21 -0
- package/dist/source-sync/checkpoint-gate.js +52 -0
- package/dist/source-sync/checkpoints.d.ts +66 -0
- package/dist/source-sync/checkpoints.js +168 -0
- package/dist/source-sync/claim.d.ts +11 -0
- package/dist/source-sync/claim.js +48 -0
- package/dist/source-sync/destination.d.ts +47 -0
- package/dist/source-sync/destination.js +239 -0
- package/dist/source-sync/io.d.ts +15 -0
- package/dist/source-sync/io.js +52 -0
- package/dist/source-sync/local.d.ts +43 -0
- package/dist/source-sync/local.js +229 -0
- package/dist/source-sync/prepare.d.ts +59 -0
- package/dist/source-sync/prepare.js +93 -0
- package/dist/source-sync/projects.d.ts +61 -0
- package/dist/source-sync/projects.js +130 -0
- package/dist/source-sync/registry.d.ts +95 -0
- package/dist/source-sync/registry.js +226 -0
- package/dist/source-sync/service.d.ts +33 -0
- package/dist/source-sync/service.js +118 -0
- package/dist/source-sync/skill-edits.d.ts +12 -0
- package/dist/source-sync/skill-edits.js +122 -0
- package/dist/source-sync/snapshots.d.ts +48 -0
- package/dist/source-sync/snapshots.js +448 -0
- package/dist/source-sync/types.d.ts +9 -0
- package/dist/source-sync/types.js +14 -0
- package/dist/source-sync/workspace.d.ts +66 -0
- package/dist/source-sync/workspace.js +273 -0
- package/dist/store/agent-body.d.ts +8 -0
- package/dist/store/agent-body.js +20 -6
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +1 -1
- package/dist/store/journal/storage.d.ts +2 -0
- package/dist/store/journal/storage.js +2 -1
- package/dist/store/postgres/migrations/0025_run_attempts.sql +27 -0
- package/dist/store/postgres/migrations/0026_run_disk.sql +23 -0
- package/dist/store/schema.d.ts +15 -1
- package/dist/store/schema.js +43 -4
- package/dist/store/seal.d.ts +5 -1
- package/dist/store/seal.js +12 -3
- package/dist/store/sqlite/project-checkpoints.d.ts +11 -0
- package/dist/store/sqlite/project-checkpoints.js +70 -0
- package/dist/store/sqlite/run-launch.d.ts +14 -0
- package/dist/store/sqlite/run-launch.js +58 -7
- package/dist/store/sqlite/run-patch.d.ts +2 -1
- package/dist/store/sqlite/run-patch.js +4 -3
- package/dist/store/sqlite/store.js +319 -153
- package/dist/store/store-schema.js +2 -2
- package/dist/store/store.d.ts +173 -33
- package/dist/store/store.js +14 -1
- package/dist/store-reads/learning.d.ts +12 -8
- package/dist/store-reads/learning.js +33 -24
- package/dist/store-reads/loop.d.ts +4 -3
- package/dist/store-reads/loop.js +7 -5
- package/dist/store-view.d.ts +3 -1
- package/dist/store-view.js +17 -5
- package/dist/template-eval.js +4 -4
- package/dist/template-import.d.ts +10 -2
- package/dist/template-import.js +116 -13
- package/dist/templates.d.ts +29 -5
- package/dist/templates.js +68 -14
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/labels.js +1 -1
- package/dist/timeline/timeline.d.ts +5 -0
- package/dist/timeline/timeline.js +8 -0
- package/dist/tool-plane.d.ts +12 -12
- package/dist/tools.d.ts +8 -8
- package/dist/tools.js +1 -1
- package/dist/trigger-launch-hook.d.ts +47 -0
- package/dist/trigger-launch-hook.js +90 -0
- package/dist/trigger-targets.d.ts +14 -1
- package/dist/trigger-targets.js +20 -0
- package/dist/triggers.d.ts +54 -5
- package/dist/triggers.js +143 -8
- package/dist/uploads-archil.js +2 -1
- package/dist/uploads.d.ts +0 -3
- package/dist/uploads.js +2 -11
- package/dist/validate.js +4 -1
- package/dist/web-save.d.ts +3 -0
- package/dist/web-save.js +17 -2
- package/dist/workspace/archil-exec.js +1 -1
- package/dist/workspace/archil.js +1 -1
- package/dist/workspace/computer-for-claim.d.ts +2 -0
- package/dist/workspace/computer-for-claim.js +43 -0
- package/dist/workspace/paths.d.ts +6 -0
- package/dist/workspace/paths.js +6 -0
- package/dist/workspace/resolve-computer.d.ts +1 -0
- package/dist/workspace/revision-skills.js +24 -11
- package/dist/workspace/run-tools.d.ts +2 -0
- package/dist/workspace/run-tools.js +8 -0
- package/dist/workspace/synced-folder.d.ts +3 -3
- package/dist/workspace/synced-folder.js +7 -6
- package/launcher/agentrun-serve +1 -1
- package/package.json +10 -10
- package/skills/agentrun-serve/SKILL.md +2 -1
- package/templates/README.md +5 -2
- package/dist/console/assets/index-Bt1B51b7.js +0 -733
- package/dist/console/assets/index-sVftE9Ht.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,165 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.1.0-beta.53 (2026-11-22)
|
|
6
|
+
|
|
7
|
+
- An agent can be exported as a template package: `GET /v2/agents/{agent_id}/package` answers its current revision as the files of a package (`agent.md` with the instructions as its body, `skills/`, `rules/`, an output schema) and their sha256, and `agentrun export AGENT --out DIR` writes them as a folder that `agentrun template validate` reads and any AgentRun applies. `agent.md` always names the model and approvals. MCP tools become needs by their saved server's source and toolkit, and triggers carry no agent and no secret. What names this host (its box, its computer's provider, its pins of this server's tool listings, its place) is left out. The answer's `report` names what can't travel as it is: `blocked` (an MCP server saved nowhere here, on this machine's loopback, or sending its own auth header) and `remade` (webhook, GitHub, Composio and email triggers, browser sign-ins, a paired computer, what the agent learned). `agentrun export` prints both, and with anything blocked it writes nothing and exits 2. A native, CLI learning, SDK or another system's agent, or a workflow, answers `409 not_exportable`. <!-- changes/agent-export.md -->
|
|
8
|
+
- `agentrun deploy DIR --to URL` deploys an agent package folder to another AgentRun (`--to cloud` is the hosted one; `AGENTRUN_CLOUD_URL` overrides its address). It uploads the package, prints the apply's plan (create or revise, the keys and MCP servers the target lacks, each trigger made, kept or removed, the computer), asks before it applies (`--yes` off a terminal), and writes a lock to `DIR/.agentrun/deploy.json`. A second deploy of the same files says it is up to date and sends nothing that writes; changed files make the agent's next revision. A target the package needs keys or connections on exits 3 with nothing made, and an agent edited on the target since the last deploy exits 2 unless `--force`. `agentrun deploy rollback` makes the previous revision current, and `agentrun deploy delete` deletes the agent and the lock. `agentrun deploy AGENT_ID` deploys an agent from this install by its package; `--pause-source` turns its schedules off here once it is deployed. <!-- changes/agentrun-deploy.md -->
|
|
9
|
+
- `POST /v2/templates/import` takes `{files}`, a package uploaded whole, checked under the GitHub import's limits and in its words, stored as `upload:<name>` with the package's sha256, and replaced by the next upload of that name. An upload asks no publisher trust. A server that serves the API alone takes an upload and refuses a GitHub `source`.
|
|
10
|
+
- `POST /v2/templates/{id}/apply` takes `dry_run: true`: it answers `{plan}` from the apply's own reads and checks and writes nothing.
|
|
11
|
+
- `POST /v2/templates/{id}/apply` takes `revision` (with `agent_id`) and `sha`, what the caller read: the apply, or its plan, is 412 when the agent's current revision or the package stored under that id is another, with nothing changed. Its answer names the revision it wrote, or kept, as `revision_id`. A plan whose keys are missing lists them even where the model needs one of them, and a plan on a server with no public URL says a Composio trigger is skipped, as the apply does.
|
|
12
|
+
- `agentrun deploy delete` removes the lock only when the agent is gone from the target: a 404 to the archive or the delete is followed by a read of the agent, and one still there exits 2 with nothing deleted and the lock kept. `agentrun deploy AGENT_ID` exits 2 for an agent this install does not have or does not export. `--to` takes an address whose path lacks `/v2` (`https://host/api` is `https://host/api/v2`).
|
|
13
|
+
- A folder's lock comes with the folder, so its target gets the API key only where this CLI has deployed before, or when it is AgentRun cloud: any other address needs `--to`, and nothing is sent until then.
|
|
14
|
+
- A plan lists `MONID_API_KEY` as missing where the package grants a monid tool and the server has no monid key, as the apply refuses it.
|
|
15
|
+
- A deploy whose apply skipped a trigger (a connection or a feed the target lacks) leaves a lock that names no package, so the next deploy of the same files applies again and makes the trigger once it can.
|
|
16
|
+
- One deploy, rollback or delete at a time per source: another one of the same folder or install agent exits 2 with nothing sent, and a hold left by a process of this machine that has ended is taken. The CLI's own deploy record is changed under a lock. A folder whose `.agentrun`, or its `deploy.json`, is a symbolic link is refused with nothing sent.
|
|
17
|
+
- An API-only server (`AGENTRUN_API_ONLY=1`) takes a deploy from the backend in front of it, with the server's token: a template's apply (a redeploy with `agent_id`), the agent's read, its revisions, a rollback (`POST /agents/{id}/current`), and its archive (which its delete needs first) and unarchive. Every run there starts through the backend, on its keys and budget: with the launch hook set, the apply makes the package's schedule and feed triggers and each firing goes to the backend, which starts the run through the API (the unarchive turns them on again); without the hook it makes neither (`not_set_up_here`). A webhook, GitHub, Composio or email trigger is never made there (`not_an_option`). Each skipped trigger is a warning under `warnings` (`triggers.<i>`), and the dry run plans it as `skip` in the same words. Every other agent, template, trigger, hook and settings route stays refused. <!-- changes/api-only-deploy-routes.md -->
|
|
18
|
+
- The computer package ships a documents image (`packages/computer/documents`): the default image plus python-pptx, python-docx and openpyxl for `python3` and pptxgenjs, docx and exceljs for `node`, built as the serve README's "The box's image" says and named in `AGENTRUN_DOCKER_IMAGE`. `computer.needs` may now name a Python or Node library by its pip or npm name, and a box that lacks one fails its run in words naming this image's build. <!-- changes/documents-image.md -->
|
|
19
|
+
- The console's Learning tab opens on what learning did, once a learned workflow has taken a run over: one sentence, then four figures, each with the count it stands on. The cost ratio is the server's own; how often the serving revision's answer was the agent's on its promotion check, and how many of the runs it ran first it finished alone, are shares with their 95% interval; the last is the bill's break-even run. <!-- changes/learning-tab-glance.md -->
|
|
20
|
+
- A new chart, cost against agreement, draws each promoted revision as one point: what a run it served cost, all in, against how often its answer was the agent's on its check's inputs, with that share's 95% interval, the bar it had to clear to serve, and the agent as the reference at what a run cost it before takeover. A hollow mark beside each point is the same revision's audits since. It sits beside the bill on a wide page.
|
|
21
|
+
- The learned workflow, with its revisions to step through, stands beside the cost of a run where the tab has room for both, and under it otherwise: the steps that take a run over are next to the line that falls when they do.
|
|
22
|
+
- Who finished each run is drawn a run a column wherever the chart is wide enough to give each run one, so a hand-back shows on its own run; a narrower chart keeps blocks of runs.
|
|
23
|
+
- Every figure is one count the API already gives: a check's `agreed` of its `alone`, the audit ledger's rows, the cost summary and the bill. A check's count and an audit's are never added together, and agreement is never called accuracy: the agent's answer is the reference, not the truth. The tab reads the audit ledger once for the figures, the chart and the audit line. No API changes.
|
|
24
|
+
- A harness recipe now covers an outside agent's release as its vendor ships it (Google's agy CLI among them), and the owner's own sign-in, made by the agent itself: <!-- changes/recipes-outside-harness.md -->
|
|
25
|
+
- `.zip` releases install, unpacked in Node with no `unzip` on the host. An entry that leaves the folder (`..`, an absolute path, a backslash), a symbolic link, a device, an encrypted entry or a duplicate refuses the whole archive before anything lands.
|
|
26
|
+
- An archive is pinned by one digest, its `sha256` or, where the vendor's manifest lists that, its `sha512` (Google's agy CLI manifests). `release.registry` is optional, for a release that is the vendor's own rather than the ACP registry's.
|
|
27
|
+
- Every file the archive unpacks to is pinned, not the binary alone: the tree's sha256 is recorded at the first install (or given as the release's `treeSha256`), and a check or a sign-in refuses a sidecar that changed since.
|
|
28
|
+
- A release may give its own `args` per platform, over the recipe's.
|
|
29
|
+
- `model.id` picks a plan-billed agent's model among those its `session/new` lists (`session/set_model`); one it does not list is refused before a prompt.
|
|
30
|
+
- A key may be handed under the name the agent reads: `keys: [{ "name": "ANTIGRAVITY_GEMINI_API_KEY", "env": "GEMINI_API_KEY" }]`. It is read by its saved name, so the server's own `GEMINI_API_KEY` never reaches the agent. `keyMethod` is the method the agent's ACP `authenticate` signs in with on it (`gemini-api-key`).
|
|
31
|
+
- One list in the kernel, `launchEnv` (`LAUNCH_ENV`, `LAUNCH_ENV_PREFIXES`), names the variables that change what a process loads or runs before its own code: `PATH`, `LD_*`, `DYLD_*`, `NODE_OPTIONS`, `NODE_PATH`, `PYTHON*`, `BASH_*`, `ENV`, `GIT_*` and a few shells' and interpreters' start-up variables. A key is never handed under one of them, nor a recipe's `env` or `model.env` named one. The recipe loader and the ACP adapter both refuse them.
|
|
32
|
+
- A key's saved and handed names follow the kernel's `KEY_NAME` (capitals, digits and `_`, at most 64) in the recipe loader as in the ACP adapter, so `harness-check` no longer refuses a lowercase key name the loader took. Other variable names keep `ENV_NAME`.
|
|
33
|
+
- `signIn: { "args": [...], "homeArg": FLAG }` names the agent's own sign-in, as T3 Code runs agy: `agentrun harness sign-in --recipe FILE` starts the installed, unmodified agent on your terminal with its arguments, `args` (`--login`) and `homeArg` naming its own folder (`--gemini-dir DIR`). The agent prints the address, reads the code you paste and keeps its sign-in in that folder; exit 0 is signed in (`HARNESS_SIGN_IN_FAILED` otherwise).
|
|
34
|
+
- harness-check runs on the recipe's keys alone, never the sign-in, so a plan-billed recipe names a key beside any `signIn`. A run on the sign-in hands the agent `homeArg` and its folder, no key, nothing it prints kept.
|
|
35
|
+
- AgentRun never reads, refreshes or sends the sign-in's token, and has no usage reader: it never opens the folder, and a test keeps every credential file and Google account or quota endpoint out of the harness sources.
|
|
36
|
+
- The ACP adapter's `stderr: "none"` (`AcpRecipe`) keeps nothing an agent prints, for a run on a sign-in: a failure says its exit status and AgentRun's own code, and an error the agent answers says its JSON-RPC code alone.
|
|
37
|
+
- A template's apply keeps the names of the keys the package declared (its `secrets`, and those of the model choice it took) on the revision it writes, never their values, so `GET /v2/agents/{agent_id}/package` names them after the server's copy of the template changes, as a bundled template does on every upgrade. Applying the same package again still writes no revision. Only an agent applied before this keeps its `report.remade` entry for keys that can't be recovered. <!-- changes/revision-secrets.md -->
|
|
38
|
+
- A run says when it stopped short for its spend cap. Every run read and list item carries `stopped_for` and `budget_refused_calls`. `stopped_for` is `"budget"` on a `completed` run that wound down to stay under its `max_cost_usd`: its model was told to wrap up near the cap, or its tool calls were refused there. It is null on every other run. `budget_refused_calls` counts the tool calls the cap's wrap-up refused, each call once, and is 0 when none were. Before, such a run read `completed` like any other, and nothing on it said the cap had cut it short. The status stays `completed`, so a reader that sets "budget exhausted" reads `stopped_for`. A run paused at its cap (`pending.kind` `budget`) and one its cap ended (`failed`, `spend_cap_reached`) read as before. The server keeps each refusal on the run's journal as it happens; a run that ended before this server reads `stopped_for: "budget"` when its model was told to wrap up, and 0 refused calls. <!-- changes/run-stopped-for-budget.md -->
|
|
39
|
+
- A sandbox can list the programs its agent needs on the box's PATH, `computer.needs` (such as `["chrome", "ffmpeg", "ffprobe", "hyperframes"]`), and the computer package ships a media image that has them. Each run's claim asks the box it started before the run's first model request, searching the folders the agent's shell searches, not a PATH the image sets; a box that lacks one, or that cannot be asked, is let go and the run ends `failed` (`run_failed`) in words naming what is missing and how to give the box an image that has it. The field never picks an image: a Docker box's image is still `AGENTRUN_DOCKER_IMAGE`'s. A setting that has `needs` but is no sandbox (a stored body or a launch's computer the validator never saw) fails the run at claim the same way, before anything is started. An agent without `needs` is checked for nothing. A template states them as `needs` in its agent.md, read only beside `computer: [shell]`: apply writes them onto the sandbox it picks as the agent's `computer.needs`, and where the shell here is no sandbox (Archil's serverless exec, or none) it refuses (`409`) in words naming them and `AGENTRUN_DOCKER_IMAGE`, making nothing. `GET /v2/templates` shows them as `needs`. A server before this release refuses a template that names `needs` as an unknown field. <!-- changes/sandbox-needs-media-image.md -->
|
|
40
|
+
The media image's recipe is `packages/computer/media/Dockerfile`: the default image's base and programs, plus Node 24, Chromium as `chrome`, FFmpeg and FFprobe, Noto (CJK, colour emoji) and Liberation fonts, and the HyperFrames CLI at an exact version, with its usage reports off and the image's fonts compressed for it at build, so a render with no network doesn't spend a minute of its compile compressing Noto Color Emoji. Build it and name its tag in `AGENTRUN_DOCKER_IMAGE`; the serve README's "The box's image" has the commands. It is not published.
|
|
41
|
+
- Keep newly connected Codex and Claude Code setups in sync by default, and move a supported complete setup to AgentRun from the existing agent page. Move preserves the agent's identity, history, source capture and unified usage, and checks destination tools, accounts, model, policy and project restoration before switching execution. <!-- changes/source-sync-move.md -->
|
|
42
|
+
|
|
43
|
+
Managed runs retain project checkpoints for later runs. Source and managed changes produce reviewable conflicts;
|
|
44
|
+
uncertain saves require review before another run. Existing connections require an explicit export grant, native
|
|
45
|
+
credentials stay at the source, and unsupported capabilities remain named prerequisites. See
|
|
46
|
+
[source sync](../../docs/source-sync.md) for compatibility and recovery behavior. Automatic notes and learned skills
|
|
47
|
+
remain retired; authored source skills retain their files and modes.
|
|
48
|
+
Owner skill edits after Move produce a new immutable project for future runs while preserving existing runs and
|
|
49
|
+
unchanged companion assets. Git checkpoints exclude ignored dependency trees before applying project limits and
|
|
50
|
+
file checks. An upload refused before project seeding releases its write receipt only after destination and upload
|
|
51
|
+
cleanup have both settled; unknown or dispatched writes continue to block deletion.
|
|
52
|
+
Completed checkpoint reads that refuse staged Git changes, secrets or unsupported files release their write receipt
|
|
53
|
+
only after scratch, cache, tools and provider cleanup settle under the original claim. The rejected save remains
|
|
54
|
+
visible and unpublished. Failed commands, changed files, lost write acknowledgments and uncertain cleanup retain
|
|
55
|
+
their receipts and continue to block deletion.
|
|
56
|
+
Terminal moved runs whose child crashed before checkpointing now require project review instead of silently starting
|
|
57
|
+
from an older saved project. Recovery reads the committed end, or the exact terminal claim when no end could be
|
|
58
|
+
written; it never invents a checkpoint or publishes orphan files. Missing-end reviews use `entry_id: null` and the
|
|
59
|
+
required `attempt_epoch`, so reviewing an earlier failure cannot acknowledge a later one. Active and queued runs
|
|
60
|
+
are not classified as failed merely because their checkpoint is still pending.
|
|
61
|
+
Moved projects on local storage now place attachments before restoring project files, pin their exact input paths,
|
|
62
|
+
and refuse collisions before admission. Claims and follow-ups reuse the placed files; checkpoints exclude those
|
|
63
|
+
attachments while retaining authored files in the same inputs directory.
|
|
64
|
+
|
|
65
|
+
Moved agents can learn checked workflows on the server using their existing learning settings. Replay and eligible
|
|
66
|
+
shadow-audit runs receive isolated copies of the reserved project; their results remain learning evidence, while
|
|
67
|
+
their settled file changes are explicitly discarded rather than published to the saved project. Uncertain writes
|
|
68
|
+
retain recovery receipts, and the existing restrictions on auditing write-capable agents still apply.
|
|
69
|
+
An audit that stops at an approval can still settle its private project under its original held claim, so that
|
|
70
|
+
refused tool call does not falsely block later runs. Parked runs gain no new tool-dispatch permission; superseded
|
|
71
|
+
claims and unresolved writes still refuse settlement. The bounded host-settlement model covers this transition;
|
|
72
|
+
the DSL effect-admission and recovery-driver models are unchanged.
|
|
73
|
+
|
|
74
|
+
Supported HTTP MCP connections retain source tool selections and denials, with explicit destination account binding.
|
|
75
|
+
Resource lists, templates and reads use the same pinned grants, credentials and permission gate; resource-only servers
|
|
76
|
+
are supported on managed AgentRun; native Codex 0.171.0 has a resource-only discovery limitation. Incomplete resource listings fail visibly, and resource bodies that echo connection credentials are
|
|
77
|
+
scrubbed or withheld before filing. Three upstream tool names are now reserved for these generated resource operations:
|
|
78
|
+
`agentrun_list_resources`, `agentrun_list_resource_templates` and `agentrun_read_resource`. A conflicting upstream tool
|
|
79
|
+
must be renamed before its server can connect. Stdio connections and unsupported native capabilities remain prerequisites.
|
|
80
|
+
|
|
81
|
+
Unknown source storage-write outcomes retain receipts and block deletion until independently resolved; restarting
|
|
82
|
+
or acknowledging a run checkpoint does not clear a source write receipt.
|
|
83
|
+
|
|
84
|
+
The Codex adapter preserves native rollout ordinals when recording an approved tool's result before resuming. This
|
|
85
|
+
fixes pinned Codex 0.164.0 rejecting the resumed thread after approval. Existing mixed or invalid ordinal histories
|
|
86
|
+
remain retained and fail before another tool dispatch; they are not silently rewritten or retried. Older wholly
|
|
87
|
+
unnumbered journals retain their format. This serialization fix leaves recovery admission, intent and result ordering
|
|
88
|
+
unchanged, so the recovery models do not change.
|
|
89
|
+
- An ACP run (Cursor, Goose, or a harness recipe) no longer stalls after many turns. Before, the adapter copied the agent's whole session store into the run's records at every turn, so the records grew with the square of the turn count. After about 20 Cursor turns they no longer fit the 32 MiB channel to the run's process: an approval answered 204, and the run then waited for good. Now the mirror stores each file as 64 KiB pieces, each written once per session, so a store that grows by appending costs only its new bytes. It never copies SQLite's `-shm` file, and holds at most 8 MiB per session. Past that, the run's timeline says "The agent's session state passed 8 MiB, so a resume starts it fresh with the conversation so far." and the mirror stops. A run whose records no longer cross to its process now fails at once, naming the size and the limit, and the approval that woke it is answered that the run failed. Adapters get a `notice` event, which serve shows as a step on the run's timeline. A session store mirrored before this version is not restored: such a run resumes fresh with the conversation so far. <!-- changes/acp-state-mirror-bounded.md -->
|
|
90
|
+
- The console's trigger forms make a trigger for a connected agent: a new schedule, webhook, GitHub trigger, app trigger, feed trigger or email trigger asks such an agent for no cost cap and sends none, and says why in place of the field ("None. A connected agent runs in its own CLI, which keeps its own limits: AgentRun cannot cap its runs."). Before, each form required a cap the server refuses on a connected agent's target (422 `target.max_cost_usd`), so no such trigger could be made from the console. <!-- changes/console-trigger-connected-agent-no-cap.md -->
|
|
91
|
+
- A schedule edited onto a connected agent drops its cap, and the effort it carried, which the server refuses there too.
|
|
92
|
+
- A trigger's page reads the same words under Cost cap for a connected agent, in place of "Agent's default".
|
|
93
|
+
- For every other agent the forms are as they were: a cap is required unless the agent has a default one.
|
|
94
|
+
- `agentrun deploy DIR` uploads the folder's package and nothing else of it: `agent.md`, the `skills/`, `rules/` and `evals/` trees, and the answer's schema file `agent.md` names (`output: {schema}`) at the folder's root. A `.env`, a key, a README or any other file or folder beside them stays on this machine. A folder with no `agent.md` exits 2 with nothing sent. <!-- changes/deploy-upload-custody.md -->
|
|
95
|
+
- Deleting an agent (`DELETE /v2/agents/{agent_id}` once archived, as `agentrun deploy delete` does) also removes the uploaded package (`upload:<name>`) it was applied from, in the same write, when no other agent on that server, archived or not, was applied from it. A package imported from GitHub stays. Before, an upload stayed until the next upload of its name, and a server that serves the API alone could never remove one.
|
|
96
|
+
- A deploy, rollback or delete that waits for another CLI to finish saving its deploy record says so on stderr.
|
|
97
|
+
- The dial conformance script accepts `AGENTRUN_BIND_HOST` so local verification can bind to `127.0.0.1` without exposing a public listener. Its local fixture tests use this setting; leaving it unset preserves the public listener used by remote machines. <!-- changes/dial-conformance-bind-host.md -->
|
|
98
|
+
- `GET /v2/agents/{agent_id}/package` no longer copies a credential in the clear into a package. A trigger's source (a feed URL with a `?token=`, `?key=`, `?sig=` or `?password=` query, an address with a user part), its run input (an `api_key` field) and an MCP tool's pin are read the way a composio trigger's config is sealed, and each credential is a `report.blocked` entry of kind `trigger` or `pin` named by its field (`Status: source.urls.0`, `slack: pin.post.api_key`), never by its value. The trigger or pin is left out, and `agentrun export` and `agentrun deploy` write nothing and exit 2, as they do for any blocked entry. A query such as `?page=2` still exports. `report.blocked[].kind` and `report.remade[].kind` are now an enum in the OpenAPI document, so the generated clients type them. <!-- changes/export-custody.md -->
|
|
99
|
+
- A run a paid call stopped for good (a fal job or monid call settled above its hold, taking the run past its cap) now stays stopped when a call that passed the tool gate beside it is admitted after the stop and refused for room. Before, that refusal replaced the stop, so a script's next call ran; the run still ended failed at its next model request. <!-- changes/fal-cap-stop-sticky.md -->
|
|
100
|
+
- A fal job whose output states more than its input asked for (a larger image, a longer clip) is still booked at what its output states, and when that takes the run past its spend cap, the run now stops at once in the cap's words: no tool runs after it, a script's own calls included. Before, the run went on until its next model request. The stop reads only what the run has been charged: a job still running counts toward whether a new call is let through, never toward stopping the run, so one that settles above its hold beside another still running stops the run only if the charges, once in, pass the cap. A fal job priced by the length of the media it is given is now only one of the endpoints fal bills that way (ElevenLabs dubbing, voice isolation and speech-to-text, and sync-lipsync v2); another endpoint billed per second whose input names no length, such as a talking video made from a voice or LatentSync, which fal bills by its output video, is refused under a cap and booked as an unknown charge without one. <!-- changes/fal-cap-stop.md -->
|
|
101
|
+
- A connected agent's held draft is now revised as its hold says. Before, its run's end never found the held workflow (the task never matched it as the run's input), so a check's hold never asked its one recompile and a hold after five give-backs stayed held for good. The held workflow is now the one the task fits, as the start reserves a check. A hold after five give-backs asks its revise only once the agent has `compile_after` completed runs of its own started since the hold, the same wait as a first compile, so a client that never sends a shadow check costs one compile per `compile_after` runs. That revise prompt says nothing was checked and there are no disagreements to show, and no longer says that nothing compiles again. <!-- changes/give-back-hold-cadence.md -->
|
|
102
|
+
- A monid call charged above the estimate it was held at no longer stops a run that can still afford it. It is booked as charged and logged, and the run stops only when that charge takes it past its spend cap, in the cap's words, as a fal job's does. Before, any such charge stopped the run, failed, in the words "monid charged $X, more than the $Y held; the run stopped", even far below its cap. <!-- changes/monid-overrun-cap.md -->
|
|
103
|
+
- A stored agent body refuses a sandbox's `computer.needs` of more than 32 programs, as the API already did, in the API's words: the store, the API document and a template's `needs` now read one rule. <!-- changes/needs-store-cap.md -->
|
|
104
|
+
- A run's purge (`DELETE /v2/runs/{run_id}`) now takes the run's text off its agent's learning folder's current files: its diff files go, and the feedback lines its merges added to `corrections.md` leave main in one commit by the host per merge (none when nothing is left to take off; a line a person edited since stays). Another merge's diff that shows such a line as context is written without it. The folder's history reads (`GET /v2/agents/{agent_id}/learning`, its `/log`, a workflow's `/revisions`, and a champion read by its digest in `/promotions`) no longer serve the purged run's merges, and a log page read before the purge is followed by the next with no change skipped; a champion whose revision was the run's (or that it changed last on main) reads as one no commit holds. Each merge's scrub lands once, so a `DELETE` sent again after a stop takes no other run's same line, and a merge of the run made since is scrubbed by it. It covers the learning folder on the server; a Mode 2 agent's folder on an Archil disk keeps the text until a reset or the agent's purge. The bytes stay in the folder's `.git` until a learning reset (`DELETE /v2/agents/{agent_id}/learning`) or the agent's purge, which delete the folder whole; a promotion record keeps its commit ids. A second `DELETE` of a purged run does this again, so a run purged before this release loses its text the same way; it is `204` with no body as before, and `503 unavailable` while the learning folder can't be written. <!-- changes/purge-learning-text.md -->
|
|
105
|
+
- Run ids minted in one millisecond now list and claim in creation order: every run id comes from the monotonic UUIDv7 minter uploads already use, so two runs started in the same millisecond list newest first and a runner claims the older first. Before, a run id's bits after its time were random, and such runs listed and were claimed in either order. A purge on SQLite now writes its scrub marker (`store.sqlite.scrub`) before it changes a row, so a full disk refuses the `DELETE` (500 `internal`) with nothing purged and the retry purges whole. A retried `DELETE` of a purged run or agent does no checkpoint and writes nothing. A purge that commits and then fails (a Postgres commit left unanswered) no longer keeps the run's answer and input in the server's memory. <!-- changes/purge-marker-first.md -->
|
|
106
|
+
- A learned workflow whose `workflow.json` a purged run changed last is refused by every read, however old its merge: its file read is `410 purged`, a champion read by its digest reads no commit, a later merge's diff shows the file as added (never the purged text), an SDK start sent again whose receipt pinned it is `410 purged`, and no run lays or serves it, so the agent takes the run. Before, the file read, the diff, an SDK receipt and a run's seed served the purged text, and a champion read served it once the merge was older than the log's newest 200 changes. <!-- changes/purged-workflow-refused.md -->
|
|
107
|
+
- A run can bring its own tool keys: `keys: {"PARALLEL_API_KEY": "..."}` on `POST /v2/runs`, `POST /v2/agents/{agent_id}/runs` and a message, for the tool keys its revision reads (422 at `keys.<NAME>` otherwise). <!-- changes/run-keys.md -->
|
|
108
|
+
Each one is sealed with the run's launch, opened at its claim for its tools alone and erased from the store when its turn ends; the runner's redactor keeps the value in memory to cut it. It is never in the run's body, timeline, view or logs, and the runner cuts it from what the run writes.
|
|
109
|
+
`AGENTRUN_RUN_KEYS=1`: a template's apply makes its agent though a tool key it declares is not set here, with a warning, and each run of that agent must bring the key in `keys` (409 `agent_not_runnable` at `keys.<NAME>` without it). Keys the server holds are still used by runs that bring none. The monid key stays the server's: an agent's monid tools are checked with it when the agent is saved, so with none on the server a template granting them is still refused at its apply.
|
|
110
|
+
- A run's purge takes each learned workflow whose `workflow.json` it changed last off main, its README.md too, so both file reads are `404`, the learning view no longer lists it, and the next compile turn is never asked to revise its text. Before, its README.md and description were still served and a held revision of it went into the next run's compile prompt; a run purged before this takes its workflows off when its `DELETE` is sent again. <!-- changes/purge-takes-workflows-off-main.md -->
|
|
111
|
+
- Console: a finished run's recording on the Screen tab has the run's steps beside it. Each step the run took while the file was recorded is listed at its time on the video, in the Timeline tab's words; clicking one moves the video there, and the step the video is at is marked as it plays. A step's time is its timeline time since the row that says the recording began, so a run whose timeline has no such row plays its recording alone, as before. The steps sit beside the player on a wide window and under it on a narrow one. <!-- changes/console-recording-steps.md -->
|
|
112
|
+
- Launch hook: with `AGENTRUN_LAUNCH_HOOK_URL` and `AGENTRUN_LAUNCH_HOOK_SECRET` set, each trigger firing that would start a run is POSTed to the host instead, signed as Standard Webhooks (`{firing_id, trigger_id, agent_id, revision_id, input, fired_at}`), and the host starts the run through the API with its own keys and cap. The host passes the new `trigger_firing` (`{trigger_id, firing_id}`) on `POST /agents/{agent_id}/runs`, so the run is the firing's: it carries the trigger, its title and input origin, and the firing reads `started` with it, counted by the overlap check and `max_active_runs`. The host may start the run before or after it answers: a 2xx without the run records the firing `sent` with `start_by`, 10 minutes after that answer, and it takes that one start until then. The 10 minutes run from the answer, not from `fired_at`, so a catch-up, a firing that waited on `max_active_runs` or one handed again after a restart gets the same time. Any other answer, or none in 10 s, records it `skipped` with why. The hook URL is https, or http to 127.0.0.0/8, `::1` or `localhost` alone; any other http URL stops the start. On an API-only server (`AGENTRUN_API_ONLY=1`), the hook is what lets a template's apply make its schedule and feed triggers. Unset, firings start their runs as before, and `trigger_firing` is refused. <!-- changes/trigger-launch-hook.md -->
|
|
113
|
+
- `GET /v2/settings/mcp-server-names` answers the names of the MCP servers saved here, `{names}`, and nothing else of them: no URL, auth type, header, tool or Composio record. It takes the server's token and is served on an API-only server too (`AGENTRUN_API_ONLY=1`), so a host that builds runs from saved servers can hold back a job whose server isn't saved before its launch is refused for it. <!-- changes/mcp-server-names.md -->
|
|
114
|
+
- A Composio user id may hold a `:`, so a run's `mcp_auth` can bind a per-run Composio server to a team's connected account by the user a host names it with (`team:<tenant>`), and a preset save may name such a user. A space, a slash and a `~` are still refused. <!-- changes/composio-team-user.md -->
|
|
115
|
+
- A key a run brings in `keys` or `model_key` is text of 8 or more characters with no space or control character: a shorter one could not be cut from what the run writes, so it is now 422 `invalid` at `keys.<NAME>` or `model_key`, the value never echoed. With `AGENTRUN_RUN_KEYS=1`, no trigger is made whose firings would run an agent without the tool keys each of its runs must bring: a template's apply skips such triggers with a warning at `triggers.<N>` (`not_set_up_here`, the apply still 201) unless the launch hook is set, and `POST /v2/triggers`, or a `PATCH` that moves a trigger, is 409 `agent_not_runnable` naming the keys for one that would start such runs with no hook, or message one of them. <!-- changes/run-keys-hardening.md -->
|
|
116
|
+
- A run's view, and so every runs list, is several times faster for runs with long timelines: redacting a timeline's rows no longer derives every held value's forms again for each row (its path spellings, base64 at three alignments, percent forms, hex and folded patterns). What is derived of a set of values is kept per array and derived again when the array's values change, so a value a caller adds is still cut, and what is cut is unchanged. On a store of code-review runs of about 2,500 journal writes each, one run's view went from about 3.2 s to 0.7 s, and a list of ten runs from about 22 s to 5 s. <!-- changes/redact-derived-once.md -->
|
|
117
|
+
- A server runs a harness recipe it is started with: `agentrun-serve --harness-recipe FILE` (repeatable, or `AGENTRUN_SERVE_HARNESS_RECIPES`), and `agentrun-serve runner` takes the same flag. The harness is listed, and a run starts, only once a `harness-check` passed on the data directory for that recipe file, binary and tree (`<id>.checked`; else `HARNESS_NOT_CHECKED`); each start digests the binary and tree again. A proxy-billed agent runs on the server's model proxy. A plan-billed one runs on keys saved for its harness, which no server saves yet (`HARNESS_KEYS_NOT_SAVED`), or, on a server its owner starts with `--harness-sign-in` on their own machine (loopback, its own SQLite store, its runs as its own user, one owner; else `HARNESS_SIGN_IN_NOT_LOCAL`), on the owner's own sign-in for a run a person starts; a scheduled or triggered run on it is refused at its claim, and a `message_run` trigger to a run on it is refused when made and skipped at each firing. `harness-check` runs on a recipe's keys alone, never the sign-in, and a plan-billed recipe must name a key. `agentrun harness sign-in` prints one warning line that the vendor's terms (the recipe's new `signIn.terms`) may not cover use through AgentRun. A run's agent reaches beyond loopback only through the server's egress proxy, to the recipe's `model.hosts`. The loader now refuses a key whose name is not shaped as a key (`FOO_CRED`: `RECIPE_KEY_NOT_OWN`). <!-- changes/recipe-run-path.md -->
|
|
118
|
+
- A template package can be read on its own: `GET /v2/templates/{template}` answers one package, bundled or imported, as `GET /v2/templates` lists it, with its instructions and every skill file in full (placeholders unfilled), and its console apply page as `console_url`. Before, that path took only `DELETE` and a `GET` of it was `405 method_not_allowed`, and a bundled package's instructions and skills could not be read through the API at all before applying it. An unknown id is `404 not_found`; an imported id is URL-encoded (`github%3Aacme%2Fagents%2Fkyb`). The CLI has it as `agentrun template get TEMPLATE`, and the TypeScript and Python clients as `client.template.get(id)`. The console's "set up with a coding agent" prompt for a template now points the agent at that package's own URL instead of the whole list. <!-- changes/get-one-template.md -->
|
|
119
|
+
- A backend SDK run (`POST /agents/{agent_id}/sdk-runs`) can now run longer than an hour, be reported after it began, and carry its own title and labels. <!-- changes/sdk-run-start-fields.md -->
|
|
120
|
+
- Each events batch, an empty `events: []` one included, moves the run's deadline to an hour after that batch, up to 24 hours after its start. A run that misses its deadline still ends with an unknown outcome, as before.
|
|
121
|
+
- The start takes optional `started_at` (RFC 3339, at most 60 seconds ahead of the server's clock and 7 days behind it), which becomes the run's `created_at`. The deadline is still counted from the start request. Those bounds apply to a new start only: a retry under the same `Idempotency-Key` and body of a start that was made gets that run's receipt, however late it comes.
|
|
122
|
+
- The start takes optional `title` (trimmed, 1 to 200 characters), used instead of the input's first 80 characters, and `labels`, under the same rules as `RunCreate.labels`, so `GET /runs?label=<key>:<value>` finds the run. A label holding a server secret is refused.
|
|
123
|
+
- `GET /capabilities` says so in `features.sdk_runs`: `{ started_at: true, title: true, labels: true, max_open_s: 86400 }`.
|
|
124
|
+
- A start without these fields behaves as before. They are for SDK runs; a CLI learning turn takes none of them and keeps its 24-hour window.
|
|
125
|
+
|
|
126
|
+
## 0.1.0-beta.52 (2026-11-21)
|
|
127
|
+
|
|
128
|
+
**Breaking:**
|
|
129
|
+
|
|
130
|
+
- The apply answer (`POST /v2/templates/{template}/apply`) no longer carries `trigger_ids`: read each trigger's `trigger_id` from `triggers`, which lists the same triggers in the same order with their names, kinds and on or off. The TypeScript and Python clients' `ApplyTemplateResponse` drop the field. <!-- changes/apply-drops-trigger-ids.md -->
|
|
131
|
+
|
|
132
|
+
**Changes:**
|
|
133
|
+
|
|
134
|
+
- An agent can limit its own runs' requests on free models: `definition.max_requests`, a whole number, under the server's limit (`AGENTRUN_FREE_MODEL_REQUESTS`, 60 by default), so a run stops at the lower of the two. A dollar cap can't stop a free model, so before, the server's limit was the only bound, for every run on the server alike, and one run looping on a free model could spend a person's whole daily free quota under it. The run that reaches the agent's limit ends `failed` with `spend_cap_reached` in the server limit's words, naming the number it stopped at ("Not sent: this run reached its 20-request limit for free models."). It counts what the server's limit counts, and a paid request never counts. Above 0 sets it, 0 clears it, and an edit that leaves it out keeps it. A template sets it with `budget: { per_run_usd, max_requests }`: the manifest refuses 0 or a fraction, the template list shows it, and the console's template card says "Free-model requests: at most N a run". <!-- changes/agent-max-requests.md -->
|
|
135
|
+
- `GET /v2/computers` says per kind whether a run of it can record its screen on this server, and the console's Recording switch reads that alone. <!-- changes/computers-say-record.md -->
|
|
136
|
+
- Public API addition: each of `kinds[]` carries `record`, `{available: true}` or `{available: false, why}`. A desktop, a phone or a browser is available when this server has `ffmpeg` on its PATH (read at each call, as a save of `computer.record: true` checks it); without it, each says "ffmpeg isn't installed on this server (no ffmpeg command on PATH)". A sandbox and no computer are never available, in their own words. The TypeScript and Python clients' `ListComputersResponse` gain it.
|
|
137
|
+
- The agent editor's Computer step shows the Recording switch for every kind but no computer, from the kind's `record`: where a run can't record here, the switch is off and disabled with the server's words for why (a saved `record: true` can still be turned off). It used to show the switch only for a kind whose `settings` list `record`, and offered it on a server with no ffmpeg until the save was refused. A switch of kind or provider drops `record: true` where the new kind can't record, in the same words.
|
|
138
|
+
- The console filters Composio's actions, the agent editor's Tools step and an app trigger's events by name, slug or description; events list A to Z with their Markdown descriptions rendered; a new trigger marks Agent, Each run is asked and (with no agent default) the cost cap with *. Every list search in the console (agents and connected coding agents, an agent's runs, templates, a run's trace) now keeps a row holding each word typed, in any order. <!-- changes/console-list-filters.md -->
|
|
139
|
+
- A run counts fal's jobs: `run_model`, `submit_job` and `submit_jobs` on a fal MCP server (toolkit `fal`, or `mcp.fal.ai`) are priced before they are sent, at fal's `get_pricing` unit price times the units the job's input states (images, megapixels, characters, seconds, or the length of its input media), held under the run's spend cap and booked as tool cost. A job the cap can't take is refused unsent, as is one whose price can't be known beforehand; with no cap that one runs, booked as an unknown charge. The figure is an estimate at fal's list price. Agents saved before this are metered when their server is at `mcp.fal.ai`; save an agent again to pin a fal server at another address as metered. <!-- changes/fal-spend-metered.md -->
|
|
140
|
+
- `GET /v2/runs/{run_id}/usage` (`runusage/5`) now says which charges were the infrastructure's own redo. A turn is worked again when the claim working it is cut: its runner drained for a deploy (SIGTERM), its runner died, it lost its lease, or the turn was tried again. Each line, browser session and computer interval carries `attempt` (1 for a turn's first, 2 for its first redo, and so on) and `billable`. A turn's charges are split into one line per attempt. `billable` is false only for the model requests a cut attempt sent and never finished, which the attempt that takes the turn over sends again. Answered requests, paid calls, browser and computer time stay billable: the next attempt reuses them. The run also reports `infra_usd`, the sum of the lines that are not billable: 0 for a run with no such request, and null when one has no known cost, which a request cut in flight never does. This is data only: `total` and `cost.usd` still hold every line, and nothing is charged differently. A run from before this read keeps `attempt: null` and `billable: true` on every line. <!-- changes/run-attempts.md -->
|
|
141
|
+
|
|
142
|
+
Each claim writes its turn and attempt in its own transaction to the store's new `run_attempts` table. Postgres gets it from migration `0025_run_attempts.sql`, which is additive (a runner of the earlier version never reads it). A SQLite store gets it at the server's open, and a runner waits for that server. Each row holds `cause`, why the attempt before it was cut: `drain`, `crash`, `lease_lapse` or `retry`. A runner's release writes the cut attempt's own word for `drain` and `retry`. A runner that loses its lease writes `lease_lapse` while it can still reach the store. A lapse with no word reads as `crash`. A claim's `turn` and `attempt` are on `Claim`.
|
|
143
|
+
|
|
144
|
+
Each model request a claim sends to the server's model gateway carries the run, turn and attempt as LiteLLM's spend-logs metadata, in the header `x-litellm-spend-logs-metadata` (`{"agentrun_run_id":…,"agentrun_turn":…,"agentrun_attempt":…}`). That lets a gateway's spend logs be matched to the run's lines call by call. "The server's model gateway" means `AGENT_MODEL_BASE_URL`, or `ANTHROPIC_BASE_URL` on its origin. The header is sent on pi's routes and Claude Code's, never to a vendor's own endpoint. Codex's adapter takes no extra headers, so its requests carry none yet.
|
|
145
|
+
- `web_save` answers a saved audio or video file's length in seconds as `duration_s` (to the millisecond), read from the file's own bytes: mp3, wav, mp4 and m4a. An agent can then fit a cut to a voiceover, or price a job billed by its input's length, without another tool. Any other file, or media whose length its bytes don't give (ogg, webm, a file with no header), answers no `duration_s`. <!-- changes/web-save-duration.md -->
|
|
146
|
+
- A connected SDK agent's learned workflow is promoted only after compile_after checked turns, like a managed agent's, not after one. Each reserved native turn is one row of the check: the agent answers it, the caller's shadow runs the draft, and the server keeps the compared turn on the promotion record (`check.turns`) and waits for the next turn the draft takes. The turn that makes `learning.compile_after` decides once on every turn collected, on the same `agree_min` and `alone_min` bar; a disagreement no longer holds the draft on its own turn, and a turn the backend never completes within an hour is one failed row of the check instead of its decision. <!-- changes/sdk-check-evidence-bar.md -->
|
|
147
|
+
- A synced folder now sees a file rewritten to the same size in the push's own clock tick (a command that lands tens of milliseconds after the claim's push, on a filesystem whose timestamps come from the kernel's coarse clock). Before, such a file kept the size and mtime the baseline listing recorded, and the runner's copy kept the old bytes for good. The claim's push now gives every file `PUSHED_MTIME` (2000-01-01T00:00:00Z) in its tar header, so any later write moves its mtime, and nothing is read back after the push. <!-- changes/sync-sees-push-tick-rewrite.md -->
|
|
148
|
+
computerd's `tar.push` now gives each file its tar header's mtime, as tar and the macOS computerd already did, instead of the time of the extraction. `TarEntry` takes an optional `mtime` for the header, whole seconds from 0 to `MAX_TAR_MTIME` (ustar's 11 octal digits; any other value throws a `RangeError` before the entry is written); without one it is the time the entry is written, as before.
|
|
149
|
+
- In the console, a webhook trigger's once-shown signing secret after a template apply that skipped a trigger (a feed given no feeds, a GitHub or Composio trigger not set up here) is labelled with its own trigger's name, and its warning opens that trigger. Before, the console matched the package's trigger index against the answer's list, which a skipped trigger shifts: the secret carried the skipped trigger's name, and the warning's "Open … (Rotate)" link went to another trigger or to none. The console now finds each trigger by its name. <!-- changes/webhook-secret-name.md -->
|
|
150
|
+
- `DELETE /v2/agents/{agent_id}/learning` resets an agent's learning without deleting the agent: its learning folder whole (corrections, learned workflows, their history and the audit ledger), on this server and on every Archil disk its runs used (`503` while one can't be reached, nothing deleted), then its promotion records and grades. Deleting an agent now also deletes its learning folder on a disk a run's launch named. The agent, its runs and their files stay, and the run list, `GET /stats` and `GET /usage` read the same; the next run takes the agent path with nothing learned. Learning reads only the runs after the reset: they alone count toward `compile_after` and feed a compile, a check's replays and audits. A run whose start read the agent's learning before the reset learns nothing at its end, its learning `dropped` with the new reason `reset`. Learning-only runs in flight (replays, audit shadows) are cancelled first; while a run of the agent's own is still going it answers `409 learning_busy` naming the runs, and nothing is deleted. `204` when done, idempotent (an agent that never learned is `204` too), with the owner's session or the token as deleting an agent takes (any other console session is `403 forbidden`), in the API-only profile as well. The TypeScript and Python clients add `learning.reset(agent_id)`, and the CLI `agentrun learning reset <agent_id>`. <!-- changes/reset-agent-learning.md -->
|
|
151
|
+
- A run on a disk its launch names (`archil_disk`) learns nothing: it starts with no seed, no learned corrections and no learned workflow, and every learning read of the agent's runs (a compile's traces and its `compile_after` count, a check's replays, an audit's draw, the money rule, the cost page's ledger) skips it. Before, such a run read and fed the one learning of its agent, so a self-hoster's customers could see each other's traces in a learned workflow. A later change that lets named disks learn adds a per-disk key to the learning records. <!-- changes/learning-per-disk.md -->
|
|
152
|
+
|
|
153
|
+
Upgrading: runs gain a `disk` column, filled from each run's launch (Postgres migration `0026_run_disk.sql`; SQLite store version 15, which the server applies when it opens the store, and a runner waits for that). A run purged before the upgrade has no launch left, so it reads as the default disk's. A run on the agent's own disk, or on no disk, learns as before.
|
|
154
|
+
- An API-only server (`AGENTRUN_API_ONLY=1`) serves `DELETE /v2/runs/{id}` for a run of an agent an inline run made (`external`): a backend erasing one user's runs of a shared external agent purges each run, where deleting the agent would take every user's runs. The purge is the full server's: `204`, and `204` again once purged; `409 run_not_final` while it or a run made from it is live; every other route of it `410 purged`; its cost kept in every total. A run of an agent made here stays refused there with the profile's `404`, as before. <!-- changes/api-only-run-delete.md -->
|
|
155
|
+
- A run's fal jobs no longer collide with another run's: fal's hosted MCP server (`mcp.fal.ai`) keeps one `submission_key` journal per fal account and refuses a key it has seen with another request, so the same task run twice in a day, which makes the same keys, had its second run refused. The run's gateway now sends fal each `submission_key` of `run_model`, `submit_job`, each request of `submit_jobs` and `get_submission` with a suffix derived from the run, so a retry within one run still reaches fal with the same key and is deduped, and two runs never share one. Replies read back with the agent's own key. A key too long for fal's 128-character limit with the suffix is shortened with a hash of the whole key and marked apart from unshortened keys, so it never becomes another key. A server saved with the toolkit `fal` at another address (an eval's fake) receives the agent's keys unchanged. <!-- changes/fal-run-scoped-key.md -->
|
|
156
|
+
- A `DELETE` of a run or an agent retried after its purge committed and could not write the SQLite scrub marker (the 500 `internal` a full disk answers) now arranges the scrub again: it answers 204 as before, and it also runs the purge's WAL checkpoint again, writing `store.sqlite.scrub` when another connection still holds the log back, so the next start's scrub truncates it. Before, the retry answered 204 and wrote nothing, and the log could keep the purged bytes until some later checkpoint. A `DELETE` of a purged run or agent with the marker already there writes nothing new, and an agent's retried `DELETE` also drops the purge-in-progress mark its failed one left. <!-- changes/purge-retry-marker.md -->
|
|
157
|
+
- On Postgres, a run whose input or text holds an escaped NUL (`\u0000`) or a lone surrogate no longer breaks the store's reads of its launch body, its commands or its journal. The affected reads were an agent's learning starts, the runs made from a run, a run's purge, a reopen, a claim, a trigger's queued message and the start sweep of runs of unknown cost. Postgres keeps such text, but its json functions refuse the whole document over one escape, and a read that scans every launch failed for every run. Outside a transaction, each read retries on that refusal against a copy with those escapes blanked. Inside a transaction, where a refused statement can't be retried, the read uses the copy from the start. Learning starts come back as written: a run's `learning` member is never taken from a blanked copy. <!-- changes/launch-json-unicode.md -->
|
|
158
|
+
- `DELETE /v2/runs/{id}` on a run whose launch named a caller's Archil disk now also deletes the agent's learning folder on that disk, together with the run's own folder. Before, the folder stayed until the agent's learning reset or the agent's delete, and the run's merge diff and its correction line stayed in it after the purge. Nothing reads that folder: a run on a named disk gets no learning seed. <!-- changes/purge-learning-folder.md -->
|
|
159
|
+
- A connected agent's workflow check now holds only after five give-backs in a row, never counts a cancelled turn, and starts the count again when a turn lands. A check held that way is never stopped for good: the agent's next compile revises the workflow and checks the revision afresh. <!-- changes/sdk-check-give-backs-in-a-row.md -->
|
|
160
|
+
- A backend SDK run's compile ask now stops at the agent's own max_requests on a free model, as every other run of the agent does, when that is under the server's AGENTRUN_FREE_MODEL_REQUESTS. <!-- changes/sdk-compile-max-requests.md -->
|
|
161
|
+
- Two files uploaded in one millisecond now list newest first in `GET /v2/files`. Upload ids are minted by the same monotonic UUIDv7 as agent ids, so each sorts after the one before it; before, two ids in one millisecond carried random bits after the time and could list in either order. <!-- changes/uploads-monotonic-id.md -->
|
|
162
|
+
- A run's claim-time lay of its skills no longer depends on the class of a `NOT_FOUND` error to tell that a fresh folder has no `.agents/skills/` yet: it asks `stat`. On beta.50 a Mode 2 run in its own process lost `WorkspaceError`'s class over its channel and failed at its claim with `".agents/skills" is not there` whenever it had a skill (its own, or a desktop or phone computer's); beta.51 registered the class, and the lay now holds without it. A lay that fails says so (`laying the run's skills in .agents/skills/: …`), and an Archil listing or exec of a folder that is not there names the disk's key and the disk. <!-- changes/run-skills-lay-reads-no-error-class.md -->
|
|
163
|
+
|
|
5
164
|
## 0.1.0-beta.51 (2026-11-21)
|
|
6
165
|
|
|
7
166
|
**Breaking:**
|
|
@@ -181,7 +340,7 @@
|
|
|
181
340
|
- `GET /v2/computers`' `folder` field is described by its rule alone, naming no vendor: `bind` a folder of this machine (Mode 1), `archil` the owner's Archil disk where the provider takes an Archil mount, has Archil's image and does not dial this server, `sync` a synced folder the runner keeps for any other computer that takes a folder in Mode 2, null none. The computer package's README no longer says a program of the user can join the window manager's namespace with nsenter: root made it, and the user holds no capability there. A Daytona desktop on exec is refused in the shared refusal's words alone. `runConformance` takes `onScreenshot(png)`, called with screen.screenshot-size's last whole screenshot. <!-- changes/computer-untangle-16.md -->
|
|
182
341
|
- In the console, updating an agent from a template (Update <agent>) now says it was updated and names the new revision ("Updated: rev 2"). It used to say the template was applied and "The agent is made", as if the apply had made a new agent. Only an Apply that makes a new agent says "made". <!-- changes/template-update-says-updated.md -->
|
|
183
342
|
- A scheduled run handed its previous result's `x-carried` fields is told how many entries each carried array lost from its front, "the first N entries" (the template keeps the array oldest first), no longer "the N oldest": the engine drops from the front and reads no dates. A stored `x-carried` the save would refuse (a repeated, unknown or empty name) is read as none, so its run gets the too-large line. `submitParameters` leaves every `x-` keyword out of submit tool schemas, as it does `criteria`, not only `x-carried`; a property or definition so named keeps its name. <!-- changes/x-carried-first-entries.md -->
|
|
184
|
-
- A run's look-back (its own after its job, or the feedback round a grade opens) keeps the run's end
|
|
343
|
+
- A run's look-back (its own after its job, or the feedback round a grade opens) keeps the run's end, so GET, the list, SSE and the console show it completed or failed with its answer and `ended_at` while its learning reads `reflecting`, it tells `run.ended` once, a stop or cancel that lands mid-round drops only the round, and `PUT /v2/runs/{run_id}/grade` meanwhile is `409 run_learning`, a new error code. <!-- changes/grade-keeps-run-end.md -->
|
|
185
344
|
- `GET /v2/runs/{run_id}/usage` gives `browser_sessions` (`runusage/2`): one record per browser session the run opened, with the provider's session id, when the server opened it and let it go, why it ended, the seconds charged for it, and the provider's own record of it (`provider_record`: its start, end and proxy bytes), read once when the session is let go. With it a person running AgentRun sees how long each session ran, spots one that ended late or was lost, and finds each on the provider's own dashboard and invoice by its id. A provider that keeps no record, or a read that fails, says so in `provider_record_status`, with the record null, never zeros. In the computer package, a browser provider may offer `sessionUsage(ref)`, the vendor's record of a session; Browserbase's reads `GET /v1/sessions/{id}`. <!-- changes/run-usage-browser-sessions.md -->
|
|
186
345
|
- `GET /v2/runs/{run_id}/usage` gives `computer_intervals` (`runusage/3`): one record per computer the run made through its provider (a sandbox, a desktop or a phone), by when each was made, with the provider's own id for it (`provider_id`), its `kind`, what its create asked for (`gpu`, `cpus`, `memory_mb`; null where it asked none, never a guess), when the create answered (`started_at`), when the provider's delete of it answered ok (`ended_at`), and whether the run's park kept it past its claim (`kept`). With it a person running AgentRun sees how long each of a run's computers lived, finds one left running after its run (`ended_at` null: no delete was proven, never a guessed end), and matches the provider's invoice by its id. The server writes the store's new `computer_intervals` table (Postgres migration `0022_computer_intervals.sql`; a SQLite store gets it at the server's open) at the claim's create, the park, and every delete that answers ok: the claim's release, a later claim letting an earlier one's go, the run's end, a kept computer's end, and the janitor's sweeps. A write that fails is said on the runner's log and never fails the run. The agent's own computer, a paired one and `--faux`'s have no record. Computer time is not priced: it is on no line and not in `total`. A `tools` line now names its `provider` too, the same vendor as `charged_by`; a `tokens` line behind a model gateway keeps `provider` null, since the server does not know the gateway's upstream. <!-- changes/computer-intervals.md -->
|
|
187
346
|
- An agent whose `input_schema` fields are all optional takes a run that gives one of them and no `content` (`{"pr_number": 3318}` was refused 422). An input with neither is still refused at `input.content`. <!-- changes/input-content-or-field.md -->
|