@parcha/agentrun-serve 0.1.0-beta.32 → 0.1.0-beta.34
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 +270 -0
- package/README.md +343 -246
- package/dist/adapters.d.ts +0 -7
- package/dist/adapters.js +11 -22
- package/dist/agent-rows.d.ts +98 -0
- package/dist/agent-rows.js +1 -0
- package/dist/agents-store.d.ts +6 -2
- package/dist/agents-store.js +60 -25
- package/dist/agents.d.ts +9 -125
- package/dist/agents.js +15 -305
- package/dist/answer-json.d.ts +23 -0
- package/dist/answer-json.js +58 -0
- package/dist/api-only.d.ts +14 -0
- package/dist/api-only.js +33 -0
- package/dist/archil-routes.d.ts +1 -1
- package/dist/bash-read-only.d.ts +22 -0
- package/dist/bash-read-only.js +701 -0
- package/dist/box-egress-vm.d.ts +0 -8
- package/dist/box-egress-vm.js +0 -10
- package/dist/box-egress.d.ts +0 -4
- package/dist/box-egress.js +1 -16
- package/dist/box-paths.d.ts +25 -2
- package/dist/box-paths.js +79 -11
- package/dist/box-relay.d.ts +0 -11
- package/dist/box-relay.js +0 -20
- package/dist/box-settings.d.ts +26 -0
- package/dist/box-settings.js +63 -0
- package/dist/boxes.d.ts +21 -1
- package/dist/boxes.js +27 -20
- package/dist/browser-commands.d.ts +5 -2
- package/dist/browser-commands.js +4 -4
- package/dist/browser-computer.d.ts +5 -0
- package/dist/browser-computer.js +21 -0
- package/dist/browser-cost.d.ts +9 -6
- package/dist/browser-cost.js +94 -51
- package/dist/browser-live.d.ts +7 -20
- package/dist/browser-live.js +15 -93
- package/dist/browser-person.d.ts +18 -53
- package/dist/browser-person.js +94 -279
- package/dist/budget.d.ts +0 -4
- package/dist/budget.js +0 -7
- package/dist/cap.d.ts +8 -12
- package/dist/cap.js +12 -27
- package/dist/cli.js +61 -20
- package/dist/closed-pipes.d.ts +2 -0
- package/dist/closed-pipes.js +13 -0
- package/dist/computer-commands.d.ts +2 -0
- package/dist/computer-commands.js +2 -0
- package/dist/computer-keys.js +5 -2
- package/dist/computer-setting.d.ts +20 -4
- package/dist/computer-setting.js +25 -5
- package/dist/computers.d.ts +31 -3
- package/dist/computers.js +70 -11
- package/dist/confine.d.ts +120 -0
- package/dist/confine.js +436 -0
- package/dist/console/assets/index-RPHGlXmM.js +540 -0
- package/dist/console/assets/index-opTN5Naq.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/daytona-api.d.ts +0 -11
- package/dist/daytona-api.js +1 -82
- package/dist/decision-rows.d.ts +1 -1
- package/dist/decision-rows.js +1 -1
- package/dist/docker-daemon.d.ts +31 -0
- package/dist/docker-daemon.js +56 -0
- package/dist/docker-host-addresses.d.ts +37 -0
- package/dist/docker-host-addresses.js +110 -0
- package/dist/effort-guidance.js +4 -3
- package/dist/environment.d.ts +0 -3
- package/dist/environment.js +3 -5
- package/dist/errors.d.ts +0 -2
- package/dist/errors.js +6 -9
- package/dist/filed-answer.d.ts +32 -0
- package/dist/filed-answer.js +160 -0
- package/dist/files.d.ts +1 -11
- package/dist/files.js +2 -21
- package/dist/github-connection.d.ts +2 -2
- package/dist/github-connection.js +1 -1
- package/dist/graph-view.d.ts +3 -5
- package/dist/graph-view.js +4 -14
- package/dist/handed-values.d.ts +9 -0
- package/dist/handed-values.js +26 -0
- package/dist/harness-install.d.ts +22 -5
- package/dist/harness-install.js +98 -20
- package/dist/harness-opencode/adapter.d.ts +7 -0
- package/dist/harness-opencode/adapter.js +23 -6
- package/dist/harness-opencode/index.d.ts +1 -1
- package/dist/harness-opencode/index.js +1 -1
- package/dist/harness-opencode/verify.d.ts +17 -0
- package/dist/harness-opencode/verify.js +30 -10
- package/dist/harness-table.js +6 -1
- package/dist/harness.d.ts +4 -3
- package/dist/harness.js +16 -1
- package/dist/heard.js +1 -1
- package/dist/held-fd.d.ts +5 -0
- package/dist/held-fd.js +14 -0
- package/dist/host-calls.d.ts +20 -0
- package/dist/host-calls.js +12 -0
- package/dist/host-tools.d.ts +4 -21
- package/dist/host-tools.js +4 -61
- package/dist/host.d.ts +2 -4
- package/dist/host.js +2 -7
- package/dist/import-summary.d.ts +1 -5
- package/dist/import-summary.js +0 -21
- package/dist/import.d.ts +6 -6
- package/dist/import.js +62 -24
- package/dist/key-refusal.d.ts +5 -1
- package/dist/key-refusal.js +19 -4
- package/dist/learn/check.d.ts +6 -2
- package/dist/learn/check.js +83 -29
- package/dist/learn/folder.d.ts +5 -1
- package/dist/learn/folder.js +10 -3
- package/dist/learn/grade.d.ts +14 -0
- package/dist/learn/grade.js +68 -12
- package/dist/learn/index.d.ts +4 -4
- package/dist/learn/index.js +4 -4
- package/dist/learn/reflect.d.ts +31 -2
- package/dist/learn/reflect.js +79 -4
- package/dist/learn/relevance.d.ts +24 -0
- package/dist/learn/relevance.js +91 -0
- package/dist/learn/secrets.d.ts +8 -1
- package/dist/learn/secrets.js +95 -15
- package/dist/learn/skills.d.ts +112 -14
- package/dist/learn/skills.js +556 -52
- package/dist/learned-workflow.d.ts +37 -5
- package/dist/learned-workflow.js +106 -12
- package/dist/learning-routes.d.ts +16 -49
- package/dist/learning-routes.js +46 -36
- package/dist/learning-run.d.ts +6 -250
- package/dist/learning-run.js +11 -665
- package/dist/learning-words.d.ts +12 -5
- package/dist/learning-words.js +18 -9
- package/dist/learning.d.ts +93 -77
- package/dist/learning.js +176 -304
- package/dist/live/stream.js +1 -1
- package/dist/live/translate.js +13 -3
- package/dist/local-models.d.ts +11 -5
- package/dist/local-models.js +13 -8
- package/dist/mcp-gateway.d.ts +11 -52
- package/dist/mcp-gateway.js +44 -148
- package/dist/mcp-oauth.d.ts +10 -14
- package/dist/mcp-oauth.js +14 -32
- package/dist/mcp-probe.d.ts +0 -7
- package/dist/mcp-probe.js +4 -10
- package/dist/mcp-servers-store.d.ts +6 -6
- package/dist/mcp-servers-store.js +13 -15
- package/dist/mcp-store.js +3 -4
- package/dist/mcp.js +4 -3
- package/dist/model.d.ts +6 -7
- package/dist/model.js +43 -27
- package/dist/monid.d.ts +0 -2
- package/dist/monid.js +3 -6
- package/dist/openapi.d.ts +8 -1
- package/dist/openapi.js +124 -50
- package/dist/page.d.ts +1 -3
- package/dist/page.js +9 -19
- package/dist/paid-calls.d.ts +21 -27
- package/dist/paid-calls.js +28 -62
- package/dist/pause.d.ts +0 -2
- package/dist/pause.js +1 -8
- package/dist/place.d.ts +0 -5
- package/dist/place.js +0 -10
- package/dist/print.d.ts +2 -1
- package/dist/print.js +4 -2
- package/dist/propose.js +83 -39
- package/dist/push-handler.d.ts +1 -1
- package/dist/reflect-range.d.ts +25 -0
- package/dist/reflect-range.js +30 -0
- package/dist/refusal-words.d.ts +5 -1
- package/dist/refusal-words.js +5 -1
- package/dist/rows.d.ts +1 -1
- package/dist/run-cut.d.ts +0 -6
- package/dist/run-cut.js +0 -6
- package/dist/run-db.d.ts +2 -13
- package/dist/run-db.js +2 -41
- package/dist/run-launch.d.ts +19 -2
- package/dist/run-launch.js +13 -5
- package/dist/run-learning-served.d.ts +46 -2
- package/dist/run-learning-served.js +26 -7
- package/dist/run-reads-over-store.d.ts +1 -1
- package/dist/run-reads-over-store.js +15 -6
- package/dist/run-secrets.d.ts +33 -0
- package/dist/run-secrets.js +53 -0
- package/dist/run-timeline-served.d.ts +5 -1
- package/dist/run-timeline-served.js +19 -5
- package/dist/run-view.d.ts +12 -17
- package/dist/run-view.js +29 -28
- package/dist/runnable.d.ts +18 -10
- package/dist/runnable.js +21 -10
- package/dist/runner/adapter-loop.d.ts +14 -3
- package/dist/runner/adapter-loop.js +464 -62
- package/dist/runner/adapter-run-spec.d.ts +29 -8
- package/dist/runner/adapter-run-spec.js +96 -37
- package/dist/runner/adapters/index.js +11 -1
- package/dist/runner/adapters/pi.d.ts +15 -1
- package/dist/runner/adapters/pi.js +19 -5
- package/dist/runner/beside.d.ts +30 -3
- package/dist/runner/beside.js +54 -12
- package/dist/runner/claim-secrets.d.ts +10 -1
- package/dist/runner/claim-secrets.js +49 -15
- package/dist/runner/cli-run-spec.d.ts +2 -0
- package/dist/runner/cli-run-spec.js +60 -17
- package/dist/runner/commands.js +1 -1
- package/dist/runner/computer-journal.d.ts +15 -2
- package/dist/runner/computer-journal.js +41 -5
- package/dist/runner/conformance/harness.js +118 -8
- package/dist/runner/conformance/subject.d.ts +4 -1
- package/dist/runner/dispatch.d.ts +8 -1
- package/dist/runner/dispatch.js +81 -7
- package/dist/runner/end-of-run.d.ts +8 -2
- package/dist/runner/end-of-run.js +10 -4
- package/dist/runner/github-app.js +1 -1
- package/dist/runner/harness-loops.d.ts +9 -1
- package/dist/runner/harness-loops.js +15 -2
- package/dist/runner/journal-kinds.d.ts +30 -6
- package/dist/runner/journal-kinds.js +20 -5
- package/dist/runner/journal-reader.d.ts +1 -1
- package/dist/runner/journal-reader.js +2 -2
- package/dist/runner/learning-ask.d.ts +4 -0
- package/dist/runner/learning-ask.js +15 -1
- package/dist/runner/learning-end.d.ts +18 -3
- package/dist/runner/learning-end.js +113 -11
- package/dist/runner/learning-loop.d.ts +5 -0
- package/dist/runner/learning-loop.js +26 -6
- package/dist/runner/live-ticker.d.ts +1 -1
- package/dist/runner/live-ticker.js +28 -4
- package/dist/runner/loop-contract.d.ts +3 -2
- package/dist/runner/main.d.ts +64 -10
- package/dist/runner/main.js +165 -27
- package/dist/runner/mcp-claim.d.ts +1 -1
- package/dist/runner/mcp-claim.js +2 -3
- package/dist/runner/mcp-run.d.ts +2 -0
- package/dist/runner/mcp-run.js +15 -5
- package/dist/runner/memory-claim.d.ts +9 -0
- package/dist/runner/memory-claim.js +25 -0
- package/dist/runner/metrics.d.ts +33 -1
- package/dist/runner/metrics.js +85 -1
- package/dist/runner/model-route.d.ts +13 -0
- package/dist/runner/model-route.js +154 -11
- package/dist/runner/redact.d.ts +8 -2
- package/dist/runner/redact.js +11 -2
- package/dist/runner/reflect-hook.d.ts +12 -1
- package/dist/runner/reflect-hook.js +33 -3
- package/dist/runner/runner.d.ts +20 -0
- package/dist/runner/runner.js +56 -10
- package/dist/runner/store-port.d.ts +1 -1
- package/dist/runner/store-secrets.d.ts +3 -3
- package/dist/runner/store-secrets.js +8 -12
- package/dist/runner/text-tools.d.ts +44 -0
- package/dist/runner/text-tools.js +237 -0
- package/dist/runner/workflow-loop.d.ts +6 -0
- package/dist/runner/workflow-loop.js +6 -4
- package/dist/runner/workflow-spec.d.ts +18 -0
- package/dist/runner/workflow-spec.js +68 -26
- package/dist/runs-over-store.d.ts +8 -3
- package/dist/runs-over-store.js +76 -19
- package/dist/seal-key.d.ts +54 -15
- package/dist/seal-key.js +232 -82
- package/dist/sealed-settings-store.d.ts +19 -4
- package/dist/sealed-settings-store.js +9 -9
- package/dist/sealing.d.ts +4 -0
- package/dist/sealing.js +20 -0
- package/dist/secret-cut.d.ts +1 -1
- package/dist/secret-cut.js +1 -1
- package/dist/secret-name.d.ts +9 -0
- package/dist/secret-name.js +15 -0
- package/dist/secret-writes.d.ts +0 -1
- package/dist/secret-writes.js +0 -1
- package/dist/secrets.d.ts +2 -10
- package/dist/secrets.js +21 -17
- package/dist/server-fs.d.ts +4 -0
- package/dist/server-fs.js +8 -2
- package/dist/server-lock.d.ts +0 -24
- package/dist/server-lock.js +1 -80
- package/dist/server-secrets-store.d.ts +4 -4
- package/dist/server-secrets-store.js +10 -32
- package/dist/server-secrets.d.ts +4 -9
- package/dist/server-secrets.js +12 -33
- package/dist/server.d.ts +26 -44
- package/dist/server.js +229 -142
- package/dist/sign-ins-store.d.ts +34 -36
- package/dist/sign-ins-store.js +27 -38
- package/dist/sign-ins.d.ts +2 -119
- package/dist/sign-ins.js +5 -311
- package/dist/standard-webhooks.d.ts +1 -1
- package/dist/standard-webhooks.js +1 -1
- package/dist/stats.d.ts +3 -2
- package/dist/stats.js +1 -1
- package/dist/store/agent-body.d.ts +8 -2
- package/dist/store/agent-body.js +16 -4
- package/dist/store/index.d.ts +3 -3
- package/dist/store/index.js +3 -3
- package/dist/store/open.d.ts +18 -5
- package/dist/store/open.js +23 -3
- package/dist/store/postgres/connection.d.ts +18 -2
- package/dist/store/postgres/connection.js +156 -32
- package/dist/store/postgres/migrate.d.ts +4 -0
- package/dist/store/postgres/migrate.js +27 -3
- package/dist/store/postgres/migrations/0003_commands_one_answer.check.sql +19 -0
- package/dist/store/postgres/migrations/0003_commands_one_answer.sql +13 -0
- package/dist/store/postgres/store.d.ts +9 -2
- package/dist/store/postgres/store.js +9 -0
- package/dist/store/schema.js +1 -1
- package/dist/store/seal.js +2 -2
- package/dist/store/sqlite/connection.js +49 -5
- package/dist/store/sqlite/run-patch.d.ts +3 -0
- package/dist/store/sqlite/run-patch.js +3 -0
- package/dist/store/sqlite/store.js +64 -20
- package/dist/store/store.d.ts +38 -6
- package/dist/store/store.js +12 -2
- package/dist/store-reads/cap.d.ts +1 -1
- package/dist/store-reads/cap.js +22 -4
- package/dist/store-reads/journal.d.ts +25 -6
- package/dist/store-reads/journal.js +173 -21
- package/dist/store-reads/learning.d.ts +26 -8
- package/dist/store-reads/learning.js +12 -4
- package/dist/store-reads/workflow.d.ts +1 -1
- package/dist/store-reads/workflow.js +1 -1
- package/dist/store-view.d.ts +5 -1
- package/dist/store-view.js +91 -23
- package/dist/template-eval.d.ts +60 -4
- package/dist/template-eval.js +120 -54
- package/dist/templates.d.ts +24 -10
- package/dist/templates.js +69 -38
- package/dist/timeline/group.d.ts +33 -0
- package/dist/timeline/group.js +77 -0
- package/dist/timeline/index.d.ts +7 -0
- package/dist/timeline/index.js +7 -0
- package/dist/timeline/labels.d.ts +79 -0
- package/dist/timeline/labels.js +150 -0
- package/dist/timeline/origin.d.ts +56 -0
- package/dist/timeline/origin.js +92 -0
- package/dist/timeline/render-text.d.ts +11 -0
- package/dist/timeline/render-text.js +62 -0
- package/dist/timeline/timeline.d.ts +274 -0
- package/dist/timeline/timeline.js +1308 -0
- package/dist/timeline/util.d.ts +17 -0
- package/dist/timeline/util.js +49 -0
- package/dist/tool-gate.d.ts +41 -216
- package/dist/tool-gate.js +79 -540
- package/dist/tool-keys-store.d.ts +11 -12
- package/dist/tool-keys-store.js +24 -31
- package/dist/tool-keys.d.ts +9 -104
- package/dist/tool-keys.js +15 -271
- package/dist/tool-plane.d.ts +14 -42
- package/dist/tool-plane.js +23 -81
- package/dist/tool-settings-store.d.ts +1 -2
- package/dist/tool-settings-store.js +5 -8
- package/dist/tools.d.ts +31 -19
- package/dist/tools.js +101 -108
- package/dist/trigger-adapter.d.ts +2 -2
- package/dist/trigger-schedule.js +2 -1
- package/dist/trigger-secrets-shown.js +5 -1
- package/dist/trigger-targets.d.ts +13 -1
- package/dist/trigger-targets.js +31 -1
- package/dist/triggers.d.ts +2 -2
- package/dist/triggers.js +3 -3
- package/dist/turn-end.d.ts +1 -1
- package/dist/turn-end.js +1 -1
- package/dist/turns.d.ts +0 -6
- package/dist/turns.js +0 -19
- package/dist/uploads.js +1 -1
- package/dist/usage.d.ts +0 -2
- package/dist/usage.js +0 -2
- package/dist/validate.d.ts +2 -0
- package/dist/validate.js +23 -14
- package/dist/webhooks.d.ts +102 -76
- package/dist/webhooks.js +266 -233
- package/dist/workflow-run.d.ts +114 -0
- package/dist/workflow-run.js +144 -0
- package/dist/workspace/beneath.d.ts +19 -0
- package/dist/workspace/beneath.js +106 -0
- package/dist/workspace/computer-deps.d.ts +52 -5
- package/dist/workspace/computer-deps.js +154 -19
- package/dist/workspace/computer-for-claim.d.ts +19 -14
- package/dist/workspace/computer-for-claim.js +77 -16
- package/dist/workspace/computer-hold.d.ts +6 -1
- package/dist/workspace/computer-hold.js +6 -1
- package/dist/workspace/computer-janitor.d.ts +47 -0
- package/dist/workspace/computer-janitor.js +182 -0
- package/dist/workspace/computer-providers.d.ts +6 -2
- package/dist/workspace/computer-providers.js +1 -1
- package/dist/workspace/grep-worker.d.ts +5 -0
- package/dist/workspace/grep-worker.js +9 -6
- package/dist/workspace/index.d.ts +4 -3
- package/dist/workspace/index.js +4 -4
- package/dist/workspace/local.d.ts +11 -2
- package/dist/workspace/local.js +161 -43
- package/dist/workspace/resolve-computer.d.ts +50 -10
- package/dist/workspace/resolve-computer.js +46 -11
- package/dist/workspace/run-tools.d.ts +13 -31
- package/dist/workspace/run-tools.js +10 -27
- package/dist/workspace-paths.d.ts +0 -17
- package/dist/workspace-paths.js +1 -41
- package/dist/workspace.d.ts +0 -17
- package/dist/workspace.js +3 -99
- package/launcher/agentrun-serve +6 -33
- package/package.json +14 -14
- package/templates/README.md +9 -3
- package/templates/inbound-lead/agent.md +1 -1
- package/templates/kyb/agent.md +1 -1
- package/templates/market-monitor/agent.md +2 -2
- package/templates/market-monitor/skills/monitor/SKILL.md +6 -4
- package/dist/app.d.ts +0 -5
- package/dist/app.js +0 -514
- package/dist/bound-files.d.ts +0 -4
- package/dist/bound-files.js +0 -164
- package/dist/bounds.d.ts +0 -26
- package/dist/bounds.js +0 -137
- package/dist/coding-tools.d.ts +0 -47
- package/dist/coding-tools.js +0 -189
- package/dist/computer-adb.d.ts +0 -12
- package/dist/computer-adb.js +0 -14
- package/dist/console/assets/index-35-7aeIZ.js +0 -519
- package/dist/console/assets/index-Cejbov-Y.css +0 -1
- package/dist/content-filter.d.ts +0 -7
- package/dist/content-filter.js +0 -23
- package/dist/disk.d.ts +0 -33
- package/dist/disk.js +0 -85
- package/dist/door-line.d.ts +0 -23
- package/dist/door-line.js +0 -83
- package/dist/grade.d.ts +0 -63
- package/dist/grade.js +0 -150
- package/dist/harness-app.d.ts +0 -69
- package/dist/harness-app.js +0 -1162
- package/dist/mcp-servers.d.ts +0 -269
- package/dist/mcp-servers.js +0 -456
- package/dist/packs.d.ts +0 -71
- package/dist/packs.js +0 -180
- package/dist/request-start.d.ts +0 -27
- package/dist/request-start.js +0 -381
- package/dist/run-box.d.ts +0 -205
- package/dist/run-box.js +0 -661
- package/dist/run-holder.d.ts +0 -52
- package/dist/run-holder.js +0 -139
- package/dist/runs.d.ts +0 -1200
- package/dist/runs.js +0 -4103
- package/dist/sealed-settings.d.ts +0 -60
- package/dist/sealed-settings.js +0 -178
- package/dist/served-only.d.ts +0 -5
- package/dist/served-only.js +0 -12
- package/dist/sessions.d.ts +0 -6
- package/dist/sessions.js +0 -109
- package/dist/workspace/computer-serves.d.ts +0 -12
- package/dist/workspace/computer-serves.js +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,276 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.1.0-beta.34 (2026-11-11)
|
|
6
|
+
|
|
7
|
+
- An agentic run's structured answer is its result: `result.output` on `GET /v2/runs/{id}` is no longer always null for an agentic run (#2145). An agentic definition takes `output_schema`, a JSON Schema of at most 64 KiB, refused at save when it does not compile or sits on a workflow. A completed run's `result.output` is its final answer's last fenced json block when that meets the schema, else null. An edit that leaves `output_schema` out keeps it. A template's answer schema (its manifest's `output`) is set on the agent at apply, so a template agent's runs now answer there. A triggered agentic run is also handed its trigger's last completed result after its message, as a fenced json block, so a repeat run (market monitor's weekly digest) leaves out what the last one reported (#2144). Only the same trigger's runs are read, and a result over 32 KiB is named but not handed.
|
|
8
|
+
Upgrading: a client that read an agentic run's answer by parsing `result.final_answer` reads `result.output` instead. An agent applied from a template before this release has no `output_schema`: apply the template again, or `PUT` its definition with the template's schema as `output_schema`. A trigger's run message now ends with the previous result when there is one.
|
|
9
|
+
- Browser hand-over requests an earlier server wrote as files in a run's workspace (`work/browser-ask/`) are not read. Who breaks: a run that is waiting on a hand-over when the server is upgraded; its wait ends when the request expires, and the agent can ask again. To avoid it, answer or cancel pending hand-overs before upgrading.
|
|
10
|
+
- A browser session's open record is now flushed to disk before its vendor is asked to create the session. Until now, on the runner, the record was committed but not yet on disk when the vendor started billing: the runner's flush before a tool call comes before the call opens its session. A box lost in that window left a billed session that no record named, so the next claim could not release it. Who breaks: a program that binds an entry of the exported `TOOLS` table with a run ledger must now pass the ledger's `flush` (the store flush that runs before the vendor is asked) beside `paid` and `pause`.
|
|
11
|
+
- A Daytona GPU computer is now made from Daytona's GPU snapshot `daytona-gpu` and has its one H100: give image `"default"` or `"daytona-gpu"` and `gpu: { type: "H100", count: 1 }`, with no mount. Any other snapshot, type or count, or an Archil mount (so serve's Mode 2), is refused in words; the create sends no resource fields beside the snapshot, and notes who installed the daemon.
|
|
12
|
+
- A gateway model is never priced at $0 by a subscription plan's listing in the model catalog. `deepseek-v4-flash`, which the catalog lists under its bare id only on $0 plans, was booked at $0 through a metered gateway: its runs and grades cost nothing and passed any cap. It now takes the metered price a gateway lists under its vendor's id (`deepseek/deepseek-v4-flash`). A model listed only at $0, with no metered listing anywhere, has no price: its cost reads unknown and a cap refuses it, as for any unpriced model.
|
|
13
|
+
- Upgrading: for a gateway model (run through `AGENT_MODEL_BASE_URL`) that the catalog lists only at $0, set `AGENT_MODEL_PRICE` (input,output[,cacheRead,cacheWrite] USD per million tokens); without it the model is unpriced, and a run under a spend cap is refused.
|
|
14
|
+
- A server no longer removes the Claude Code install an earlier build left at the top of `<data>/harnesses` (read-only, beside the per-harness installs). If a Claude Code or Codex install fails after upgrading, delete `<data>/harnesses` and start the server again: each harness installs anew on its first use.
|
|
15
|
+
- The server checks a harness's pinned binary (claude-agent's CLI, Codex, OpenCode: its sha256, then the version it reports) without holding its event loop, so requests, timers and store answers go on while a binary of hundreds of MiB is hashed and run. Before, the first check in a process held every request for one to several seconds (GET /v2/capabilities, a server's start, an adapter made for a run). The binary is now hashed off the loop a chunk at a time and run as a child the loop does not wait on. A pass is kept for the adapter's own check, which then reads nothing, and two checks of one binary at once read it once. New: `checkedOnceAsync` and `sha256OfFileAsync` (kernel host), `verifyClaudeAgentCliAsync` (claude-agent), and `verifyCodexAsync` and `verifyCodexBinaryAsync` (Codex). Who breaks: a program that calls the kernel's `checkedOnce` with its own check. A check is now a `BinaryCheck`, a generator that yields each probe (`{ kind: "sha256", path }` or `{ kind: "run", path, args, env, timeoutMs }`) and is given back its answer, so one check runs either way.
|
|
16
|
+
- What a run proposes to learn is refused when it holds a bank account, IBAN, routing or sort-code number beside its word ("send refunds to account 4471-0098", "IBAN GB82 …", "routing number 021000021", "sort code 12-34-56"), as text shaped like a secret, whatever the grader made of it. A count of accounts, a date or a card's last four is not one. The same holds where the number is spelled in escapes: a skill's front matter read as YAML reads it, and a workflow draft's workflow.json read as JSON reads it (every string it decodes to); a saved learned workflow holding one is never chosen for a run. A file name refused for one (`account12345678.md`) is cut of the number wherever learning prints or serves it: the run's learning problems and the learning reads. A run's own view still shows its user such a number: only learning refuses and cuts it.
|
|
17
|
+
Notes already stored with such a number now change too: a run is given them cut of it, a name holding one reads `[redacted]`, and an edit that keeps it is refused.
|
|
18
|
+
Upgrading: an owner rewrites or retires a note that holds a bank account number, since a run no longer gets the number from it.
|
|
19
|
+
- A learned skill or workflow draft that was served as active before this upgrade, though its front matter does not read one way, now reads retired and is given to no run until its front matter is fixed. A learned skill's SKILL.md and a workflow draft's README.md are read by one front-matter reader for what they say of themselves (their keys, name, description and status): the checks, the learning folder's snapshot (and so the console), the learning routes and a run's seed agree. A front matter that does not read one way (not closed, a key indented under another, an indented first line, a key set twice) or a status other than active, pending or retired now reads as retired, never active, so no run is given it; before, the server read it as active while another reader could read it as held. A restore of one is refused in words until its front matter is written so it reads one way, and a run's skill or draft with such a front matter is refused at its end. A status is one plain line (`status: pending`): one that runs on over more lines (a quoted value that continues, a block, a wrapped value) reads as retired too, so an approve or a retire never edits part of it, and an approve whose result would not read active fails rather than answer OK. A front matter with a YAML explicit key (`? status`, `? hooks`) does not read one way either: it reads as retired, is never served, and a run's skill or draft that sets one is refused. A learned skill is now always served with its name and description quoted (`name: "find-policies"`), so a harness reads them as the text they are, never as a number, date, boolean or null (`08`, `1e3`, `yes`); and its share of the learned skills' budget counts the SKILL.md as served, not as stored, so a quoted description near the cap can no longer push the agent's own skills into the prompt. OpenCode lists a revision's own skill with its description even when another key in its front matter is in a form the strict reader refuses (`"license": MIT`): the description is read from its `description:` line, as the adapter's check reads it. A workflow draft whose description its block quoted (`"\"a\" plus"`) keeps it quoted in its README.md, so it reads back as written. OpenCode's check of a revision's skills reads them as it is handed them (each SKILL.md as served), so a set at its 1 MiB limit that serving grows past it is kept in the prompt rather than handed on.
|
|
20
|
+
Upgrading: a learned skill or draft whose front matter doesn't read one way now reads retired: fix its front matter (one plain `status:` line) to use it.
|
|
21
|
+
- A run started before this upgrade whose learning seed failed reads no reason (it used to read "could not be copied"). Upgrading: nothing to do.
|
|
22
|
+
- The server's half of learning is deleted. A run's end-of-run turn, its check, the grade and the merge are the runner's (`runner/learning-end.ts`, `reflect-hook.ts`, `learning-loop.ts`).
|
|
23
|
+
|
|
24
|
+
Deleted:
|
|
25
|
+
- `learning-run.ts` loses the reflect and propose flow: `beforeFinish`, `onAdopt`, `onLaunch`, `beforeSettle`, `afterSettle`, `afterReopen`, recover's re-propose, `close`, `idle`, `heldLearning`, the turn's ask and wait, its check, its tool list and refusal list, and the kernel calls they needed. `LearningRuns` keeps the seed and the view: `onStart`, `copyThrew`, `onSaved`, `onLoad`, `onReopen`, recover's ledger pass, `current`, `view`, `short`, `shown`, `keysChanged`, `counts` and `ofAgent`.
|
|
26
|
+
- `grade.ts` is deleted (`judgeProposal`, `graderAuth`, the grader's model). The grade's prompt, caps and verdict reader stay in `learn/grade.ts`.
|
|
27
|
+
- `learning.ts` loses the host git (`git`, `readBlobs`, the git `readSeed`, `agentFolder` and its link checks), `keepTurn`, `readTurn`, `LEARNING_TURN`, `KEPT_LEARNING`, and the `git`, `afterMkdir` and `beforePropose` test hooks. Nothing in `serve/src` runs git now except the learning script, through the folder's Workspace.
|
|
28
|
+
- `runs.ts` loses its calls into that flow, the end-of-run turn's text and hearing it collected, and `toLiveDoor`. The `reflectTimeoutMs` option is gone from `ServeOptions` and `RunsOptions`.
|
|
29
|
+
- The stop words nothing says any more are gone (`crashedLooking`, `notAsked`, `notSetAside`).
|
|
30
|
+
|
|
31
|
+
The end-of-run turn's range in a run's record (`Reflect`, `reflects`, `labelled`, `reflecting`, `TurnOrigin`) moves to `reflect-range.ts`, for the runner's learning end, the store's reads, the store-backed view and the tool gate.
|
|
32
|
+
|
|
33
|
+
Also on the switch line: the grade model the server names (`--grade-model`, `AGENTRUN_SERVE_GRADE_MODEL`, else `AGENT_MODEL_STRONG`) travels on each run's launch (its learning start's `gradeModel`), and the runner grades on it as the strong tier, as main did; before, the runner graded every run on the default model. `GET /v2/usage`'s `learning` meter and `GET /v2/stats` read each run's grade from the store, not the learning ledger; a learning run stopped after its grade was paid keeps that cost (unknown when the grade request was cut). A run's view, its list row, its learning row and `GET /v2/runs/{id}/learning` read what it held for the owner's OK as it stands on the folder's main, a run's learning reads `seeded`, then `reflecting`, while it runs, and the notes a run read are matched before its view cuts their names. A learning run (a run's grade and merge) is no listed run: no run list, count, stat, usage line or `run.ended` notice names it. A claude-agent, codex or opencode run's end-of-run answer shows as its learning row's text, as pi's does. A grader's answer that could not be read is no longer kept with the run (main kept it, never served, in `serve.json`). `scripts/learn-eval.mjs` grades as the runner's learning run does (`gradePrompt`, `parseVerdict`).
|
|
34
|
+
|
|
35
|
+
Upgrading: drop `reflectTimeoutMs` from a `startServe` call; the end-of-run turn's deadline is the runner's (`REFLECT_TIMEOUT_MS`). Learning grades recorded before this upgrade read unknown in `/v2/usage`: their learning runs never wrote a cost, and nothing backfills them.
|
|
36
|
+
- The webhook outbox file moves to version 4; an outbox from an earlier server is discarded at start, so deliveries still pending in it are not sent; let pending webhooks drain before upgrading.
|
|
37
|
+
|
|
38
|
+
With it, the outbound webhook sends `run.needs_input` once per wait. Before, a run that parked on a question could send it a second time, under a new `webhook-id`, right after the person answered. Each wait's `webhook-id` now comes from its own ask (a question's waiting row, an approval's call, a budget pause's time, a hand-over's ask), the ledger keeps every wait it told each run of, and the answer to a parked question clears the run's "Waiting for your reply" summary in the commit that takes it.
|
|
39
|
+
- The server no longer answers `/api/*` (`/api/store`, `/api/agents/{id}`, `/api/runs` and the rest of the old store page's read-only JSON): it read the earlier agent store, which this version no longer keeps. Every path under `/api/` is now the API's 404. Read the same data through `/v2` (`GET /v2/agents`, `GET /v2/agents/{id}`, `GET /v2/runs`), with the token or the console's cookie.
|
|
40
|
+
- What an upgrader of a client or a script against `/v2` changes:
|
|
41
|
+
- `GET` and `PUT /v2/agents/{id}/home` (a home's packed export and import) are gone (`404`, and out of the served OpenAPI document): read and write a home's files with `/v2/agents/{id}/home/files`.
|
|
42
|
+
- `POST /v2/runs/{id}/kill` is gone (`404`): end a run with `POST /v2/runs/{id}/stop` or `/cancel`.
|
|
43
|
+
- The `no_sealing_key` error code is gone: the server always has its seal key, so drop any branch on it.
|
|
44
|
+
- `seal_key_missing` is gone from a tool key's `reenter.reason` and a webhook's `signing`: what does not open says `seal_key_changed` (tool keys) or `unreadable` (webhook).
|
|
45
|
+
- The `store_unreadable` error code is gone, and `GET /v2/settings/mcp-servers` no longer sends `file_unreadable`: drop those branches.
|
|
46
|
+
- Now required in answers: a run's `place` (`GET /v2/runs/{id}`), and capabilities' `models`, `places` (with `places.default_place`), `tools` and `learning`: a client validating answers against the document may read them without a presence check.
|
|
47
|
+
- `startServe`'s `ServeOptions` drops nine fields the server never read: `settleRetryMs`, `carryBackRetry`, `readyTimeoutMs`, `openTimeoutMs`, `fauxHandedNonce`, `beforeRaiseLaunch`, `onPauseCheck`, `beforeSubmit` and `beforeMetaSave`. They belonged to the per-run process the server no longer starts, and setting one had no effect. An embedder that passes one in TypeScript removes it; nothing else changes.
|
|
48
|
+
- A stop now drains: the server's own runner lets each busy run finish its turn for up to `--drain-timeout` (default 30s), and a runner process (`agentrun-serve runner`) for up to `--drain-timeout` or `AGENTRUN_DRAIN_TIMEOUT` (default 6s), before it hands the rest back. For the old instant hand-back, pass `--drain-timeout 0s`.
|
|
49
|
+
|
|
50
|
+
A runner now holds at most `--max-runs` runs at once (a runner process: `--loops`), default `AGENTRUN_MAX_RUNS`, else as many pi runs as the host's memory holds, where it took up to 300 before. To raise the cap, set `--max-runs`, `--loops` or `AGENTRUN_MAX_RUNS`.
|
|
51
|
+
- A start over the run limit is queued, not refused: a run start past `--max-runs` (by default, as many pi runs as the host's memory holds) answers `202` with the run `queued`, and the runner takes it up when a place frees, where the server once answered `429 rate_limited` with `retry-after`. A client that retried on that 429 can drop the retry and follow the run. A harness whose one run never fits the host is still refused at once (`409 agent_not_runnable`).
|
|
52
|
+
- A forgotten browser sign-in's pointer is kept for good (the server kept only the newest 32 per agent), so what an agent learned and what a run it was handed shows stay cut of it however many sign-ins are forgotten since. A run handed a pointer the server would have dropped is now served cut instead of withheld. Pointers dropped before the upgrade are gone and not read back from anywhere, so they are not cut.
|
|
53
|
+
Upgrading: if an agent forgot more than 32 sign-ins before the upgrade, read its learning for a sign-in pointer it forgot long ago and retire any note that holds one.
|
|
54
|
+
- The tool gate, the host tools and the MCP gateway keep only the runner's path; their per-run-process half (the gate's enter, park, executor and extension, the kernel drive's session store, `hostTools()`, the coding source, the MCP gateway's pi registrations and copied credentials) had no caller after the old run engine went. What an upgrader and an operator see:
|
|
55
|
+
- The last reader of a `tool-settings.json` file in the data directory is gone: the server's tool settings live in its store alone. A data directory that still holds that file from an older release: set the tools once, in the console's Settings → Tools or with `PUT /v2/settings/tools`, then delete the file; nothing reads it.
|
|
56
|
+
- A priced MCP tool's call is held and booked on the run's one ledger only. A call with no ledger to book it on is refused unsent, never run on another reading of the cap: the run's timeline shows the call failed, and the model reads `mcp:<server>/<tool> was not sent: this call has no run to book its price under.` A run on the runner always has its ledger, so its priced calls are booked as before.
|
|
57
|
+
- The `TOOLS` table's `bind` is no longer handed a coding source (`ToolHost.coding`): a run's file and shell tools come from its workspace.
|
|
58
|
+
- The outbound webhook (`/v2/settings/webhook`) is in the one store, on SQLite and Postgres alike: its URL and state, its signing secret (sealed under the server's seal key, among the server's sealed settings) and its outbox of messages, attempts and per-run notices. The server no longer reads or writes `DIR/webhook.json` or `DIR/webhook-outbox.json`. A webhook saved before this release must be saved again (`PUT /v2/settings/webhook`, which shows a new secret once): the old files are not read, and their pending messages are not sent. They can be deleted. The webhook's secret is now on a runner's redaction list from the store, as the other sealed settings are, and a secret replaced or removed stays on it across restarts.
|
|
59
|
+
- An agent can make its bash read-only: `definition.tool_settings.bash.policy: "read-only"`, or `tool_policy: {bash: read-only}` in a template's agent.md, which apply writes there. The tool gate reads each shell call's command before it runs or anyone is asked, and refuses, in words the model reads, one that could write, run code or read outside the run's folder: a program outside the read list (git's read subcommands, grep, sed -n 'N,Mp', cat, head, tail, wc, ls, find without -exec and the like), redirection other than `2>/dev/null` and `2>&1`, `$` and backticks, a pipe into anything but a filter, an unquoted glob, or a path outside the folder or on the never-open list. `bash_background` and `bash_input` are refused under it. Like a pin, the policy adds to bash's permission and is never one: approvals `never` lifts none of it, and an approved call is decided again before it runs. `GET /v2/templates` shows each package's `tool_policy`.
|
|
60
|
+
- GPU computers on Modal and Daytona. `ComputerSpec.gpu: { type, count }` asks for GPUs, by the vendor's own type names. `ComputerCapabilities.gpu` declares the ones a provider offers, `{ types, max }`. It also states where its GPU computers differ from its others: `isolation`, `preemptible`, `stopDeletes`, `region`, `perGpu` and `mounts`. The static `CAPABILITIES` of each configuration, and its entry in `PROVIDERS`, carry the same `gpu`. Every provider's `check()` uses the shared `checkGpu`. Before any vendor call it refuses, in words:
|
|
61
|
+
- a GPU type the provider does not offer;
|
|
62
|
+
- a count outside 1 to `max`;
|
|
63
|
+
- any GPU at all where a provider declares none;
|
|
64
|
+
- a mount whose kind its GPU computers have not proven (`gpu.mounts`).
|
|
65
|
+
- Modal: `T4`, `L4`, `A10`, `L40S`, `A100`, `A100-40GB`, `A100-80GB`, `RTX-PRO-6000`, `H100`, `H200`, `B200`, `B300`, up to 8.
|
|
66
|
+
- A GPU computer runs on Modal's gVisor runtime, its only GPU runtime, so it declares `gpu.isolation: "gvisor"`. It is preemptible (`preemptible: true`).
|
|
67
|
+
- The SDK gets `gpu` as one string (`"A100-80GB:2"`). The drift check holds the runtime from both sides, gVisor's kernel exactly on a GPU computer.
|
|
68
|
+
- The spec tag records the GPUs, and `attach` reads them back.
|
|
69
|
+
- `gpu.mounts` is empty, so a GPU with an Archil mount is refused as not proven.
|
|
70
|
+
- Sometimes Modal refuses an exec because the sandbox is shutting down (its init exited). The create now fails as `gone` and waits up to `timeouts.endedMs` (30 s) for the sandbox to finish. It then reports init's exit code and words.
|
|
71
|
+
- Daytona: one `H100`, the GPU of Daytona's GPU snapshot `daytona-gpu` (`DAYTONA_GPU`: `types: ["H100"]`, `max: 1`). Another type or count needs a snapshot of its own, so `check` refuses it, and the create sends no resource fields beside the snapshot. A Daytona GPU is preemptible (`preemptible: true`).
|
|
72
|
+
- A GPU computer is created in region `earth` with `autoDeleteInterval: 0`. Stopping it deletes it (`stopDeletes`): there is no pause or snapshot, so nothing on it persists.
|
|
73
|
+
- A GPU computer has the snapshot's 16 vCPUs, 100 GiB of memory and 400 GiB of disk (`perGpu: { cpus: 16, memoryMb: 100 * 1024, diskMb: 400 * 1024 }`), and takes no mount (`mounts: []`).
|
|
74
|
+
- The org needs GPU credits.
|
|
75
|
+
- The read-back's `gpu` and `gpuType` must match, and `attach` reports them.
|
|
76
|
+
- Conformance: `provider.check-refuses` holds every provider to the GPU rule. Two new Full cases in group `gpu` each make one computer with the GPU the run names (`--gpu <type>[:<count>]`). Without `--gpu` they skip, since a GPU bills by the second.
|
|
77
|
+
- `gpu.present` checks attach's read-back and `nvidia-smi -L` run as the computer's user. It also records, with nothing mounted, what that user sees of FUSE.
|
|
78
|
+
- `gpu.archil` makes the computer with the run's Archil folder too, and checks that the folder reads at `/workspace` and that a program's write there is on the disk after release. It skips where `gpu.mounts` leaves out `archil`.
|
|
79
|
+
- Serve: an agent's sandbox computer takes an optional `gpu: { type, count }`.
|
|
80
|
+
- The save checks its shape, and only a sandbox takes one (422). The revision keeps it.
|
|
81
|
+
- The run's start (409 `agent_not_runnable`) and the claim hold it to what the provider declares, in `checkGpu`'s words. The server's folder mode counts as the mount.
|
|
82
|
+
- The claim passes it into the computer's spec.
|
|
83
|
+
- `GET /v2/computers` shows each sandbox provider's `gpu`. Its `why` says when a run on this server cannot have those GPUs. In Mode 2 Modal's GPUs say so, since the run's folder is an Archil mount.
|
|
84
|
+
- The OpenAPI document and the generated clients carry both.
|
|
85
|
+
- The loopback fence now holds on gVisor, so Modal GPU computers can start. Root there has no CAP_SYS_ADMIN, so `computerd init --own-network` couldn't make its programs' network namespace.
|
|
86
|
+
- Init still tries the plain network namespace first. On EPERM alone, it makes the same namespace inside a user namespace instead, whatever the vendor.
|
|
87
|
+
- It starts itself again as `computerd userns-init`, in a user namespace that maps every uid and gid to itself. Files and the run's folder keep their owners.
|
|
88
|
+
- The first init stays PID 1 with no capability, passes SIGTERM and SIGINT on, and ends with the init it started.
|
|
89
|
+
- If neither way works, init refuses to start in words that name both.
|
|
90
|
+
- Init brings the loopback up over rtnetlink alone (RTM_NEWLINK on lo's index, plus RTM_NEWADDR for 127.0.0.1/8 where the kernel gave none). The SIOCSIFFLAGS ioctl is gone: gVisor's netstack refuses it in a new namespace (ENOTTY). Init then reads back lo up and running, 127.0.0.1 on it, and a listener there reached. computerd's probe tries to raise an interface the same way.
|
|
91
|
+
- `hello` reports which fence holds: `fence: "netns" | "userns-netns"` (`NetworkFence`, `NETWORK_FENCES`). Every provider that starts init with `--own-network` refuses a hello that names neither: Daytona, E2B, Orgo and Modal.
|
|
92
|
+
- Modal declares `gpu.fence: "userns-netns"`. Its create notes the fence when it is `userns-netns`, and a conformance report's `daemon.fence` records it. `GET /v2/computers` shows the GPU's `fence`.
|
|
93
|
+
- A keyless local browser: the computer package's `local` provider (`LocalBrowserProvider`, kind `browser`) runs this machine's Chrome or Chromium, with no vendor and no key, and pi-browser's new `cdpDriver()` (`@parcha/pi-browser/driver/cdp`) drives it with raw CDP.
|
|
94
|
+
- Each browser is one headless Chrome (`headed: true` shows the window) with a throwaway profile and a random debugging port on 127.0.0.1. `connect()` hands over its `ws://` DevTools URL. `release("delete")` ends it and removes its files.
|
|
95
|
+
- A supervisor process of its own ends each browser at its deadline, on release, or when Chrome exits, so a run that crashes leaves no Chrome behind.
|
|
96
|
+
- Chrome's sandbox is always on: a start as root, or where Chrome cannot start its sandbox, is refused in words. Every request goes through an egress proxy that reaches public addresses only. This machine's loopback, private networks, link-local and the cloud metadata address are refused, and Chrome resolves no name itself, speaks no QUIC and sends no WebRTC UDP.
|
|
97
|
+
- Chrome is the `executablePath` option, or `CHROME_PATH` or `PI_BROWSER_CHROME` in the `env` a host passes, or the first on that env's `PATH`. With none, `check()` and `testConnection()` say what to install.
|
|
98
|
+
- Its known limits: the debugging port has no auth (any local process can drive it), and the browser is a process of this host isolated by Chrome's sandbox alone. It is for local and development use.
|
|
99
|
+
- `ComputerCapabilities.isolation` takes `"host"`, and Settings → Computers lists "Local Chrome" with no key.
|
|
100
|
+
- pi-browser's `run` takes a `goto` action (`{"op":"goto","url":"https://..."}`) on every browser. On a browser computer (`cdpDriver()`: Browserbase, Kernel or Local Chrome), `run` takes actions only and refuses code in words (`CDP_CODE_REFUSED`). Its snapshot keeps the "frame-node" ids and names each cross-origin frame it could not read. The driver is adapted from Browser Use Pi (MIT, see pi-browser's NOTICE).
|
|
101
|
+
- An agent's learned workflow can ask its typed questions on the runner: when a run's claim lays its learned workflows, it opens the decision keys of the providers those workflows name (Jev for a node that names none, Parallel, OpenRouter), from the server's environment first and then its saved keys, as it opens the run's own. They go to the run's tools alone, never to its model or a CLI harness's own environment, and are cut from its record like every key the claim opens. A provider the run's tool gate denies gets no key; a run with no learned workflow gets none, as before; and each claim reads its own, so no run holds another's.
|
|
102
|
+
Upgrading: nothing to do. A learned workflow's decision node that failed with "names the decision provider jev, which this host does not have" runs once the server holds that provider's key.
|
|
103
|
+
- A learned workflow can call the agent's MCP tools. A call node `{"node": "call", "via": "tool", "tool": "mcp:<server>/<tool>", "args": {…}, "out": …}` runs that tool through the run's own MCP, the same path the harness's own MCP calls take. It answers the tool's text as JSON when it parses, else `{ "text": … }`.
|
|
104
|
+
|
|
105
|
+
The call is held to the run's tool gate:
|
|
106
|
+
- **allow:** it runs, and its price is booked as the run's tool cost, under the run's cap.
|
|
107
|
+
- **deny:** the workflow is refused before any node runs, in the gate's words, and nothing is sent.
|
|
108
|
+
- **ask:** the `learned_workflow` call asks once for approval, and the run parks; the owner's allow runs that call's MCP nodes, and only that call's, and only the tools its card named: a tool set to ask after the card was shown is refused, never run under that allow.
|
|
109
|
+
|
|
110
|
+
The approval card of a `learned_workflow` call whose workflow calls MCP tools set to ask leads with two new fields, before the call's own input: `mcp_arguments`, which says the tools' arguments are "decided by the workflow while it runs, from its input and its earlier steps", and `mcp_calls`, every one of those tools by name (`mcp:<server>/<tool>`).
|
|
111
|
+
|
|
112
|
+
On a server with accounts off (AGENTRUN_ACCOUNTS=0, or AGENTRUN_API_ONLY=1), no one can approve, so such a call is refused at once and never parks: "The learned workflow <name> was not run: Permission denied: mcp:<server>/<tool> needs the owner's approval, and this server has accounts off (AGENTRUN_ACCOUNTS=0), so no one can give it: set the tool to allow or deny in the agent's Tools. It was not run: nothing was sent and nothing was charged."
|
|
113
|
+
|
|
114
|
+
A workflow whose ask-set MCP tools are too many to all show on the 2 KB approval card is refused instead of asked, so no approval covers a tool its approver couldn't see: "The learned workflow <name> was not run: its approval card can't name all <n> MCP tools it would call that are set to ask: set some of them to allow or deny for this agent."
|
|
115
|
+
|
|
116
|
+
A stop cuts an MCP call in flight. A node may name only an MCP tool that the agent's revision grants and the run's pin holds.
|
|
117
|
+
Upgrading: nothing to do. An API client that reads a `learned_workflow` call's approval card (its pending approval's arguments) finds `mcp_arguments` and `mcp_calls` first when the workflow calls MCP tools set to ask; the call's own arguments follow them unchanged.
|
|
118
|
+
- The `learned_workflow` tool's description, sent with every model request of a run that has learned workflows, is shorter: one line for what the tool does, then one line per workflow, its input's fields before what it does (`- answer {question* string}: Answers a question …`), with "* required" said once; its `name` and `input` parameters carry no words of their own. Nothing a model needs to call it is gone. For one workflow it adds 180 tokens to a request on gpt-5-4-mini instead of 216, and 635 on claude-haiku-4-5 instead of 678; for three workflows, 264 instead of 311, and 729 instead of 788.
|
|
119
|
+
Upgrading: nothing to do.
|
|
120
|
+
- When the end-of-run turn asks for a skill's job as a workflow draft (after the skill has served 3 runs), it also says what each tool a draft's call node may run takes and gives, in the server's own words for that tool (`{ query, n? } -> { provider, query, results: [...] }` for web search, and so on), so a draft's call nodes are wired to the real shapes. Nothing more is said in a turn that asks for no draft.
|
|
121
|
+
Upgrading: nothing to do.
|
|
122
|
+
- A workflow draft a run proposes is dry-run before it is kept: the workflow DSL runs it on the run's own input (its block's new `example:` front-matter line, else an input made from its schema) with every model and tool answer synthesized, so no request is sent, nothing is paid and no tool runs. Only a draft every static check passes is dry-run, and no code in it runs in the host: a code node is refused before the dry run, and the dry run hands any code node to a runner that refuses it. Nor is a huge value built from the draft's schemas: a schema whose synthesized value would be too large (a minItems past 100, a minLength past 1,000, more than 2,000 values or 64,000 characters in all) is refused before any dry run, and a dry run handed one stands down. A draft's loops are bounded too (a loop's `maxIters` past 50, or nested loops past 1,000 iterations together, is refused), so a loop whose body asks no model cannot spin the runner, and a dry run stops after 10 seconds. The bounds read a draft's schemas and nodes where they are schemas and nodes: a `const`, `enum`, `default` or example holding `minItems` or a loop's shape is data, never a bound or a loop. A draft whose wiring breaks at run time (an output path no step produces, a step's output that fails its schema), which validation alone passed, is left out alone, and the end-of-run turn is asked once more to fix it; a draft that passes is proposed with its dry run, and the grader is told it; what a dry run's check said is made from the draft's own text, so the grader reads it only inside a data fence. The example is the run's input, so it is never written to the learning folder, and one holding a secret refuses the answer as any text does.
|
|
123
|
+
Upgrading: nothing to do; a run's proposal may now carry `dryRuns` beside its files.
|
|
124
|
+
- An agent whose notes no longer fit the learning budget (8 KB by default) now gives each run the notes that bear on it, not the newest. Each note is scored against the run's first message by a lexical match (BM25 over its name, description and body; a code review's changed paths, from a diff or a file list, weigh three times its prose; no model call), and the run reads the best ones whole while they fit, then one line (`- <name> (<file>): <description>`) for each of the rest in place of the index. A run whose message shares no word with any note, and every agent whose notes fit the budget, reads exactly what it read before.
|
|
125
|
+
- The choice is one port, `NoteSelector` (`learning.ts`): `byRelevance` is the default and `byRecency` the old rule. The run's `# Learned` section and the notes it is given come from one choice, and nothing else about seeding, pinning or the cut of secrets changes.
|
|
126
|
+
- Upgrading: nothing to change.
|
|
127
|
+
- A learning run whose only tool work was its learned workflows, each answering, with nothing said after its first message (no follow-up, no approval, no tool error or refused call), is no longer asked its end-of-run turn: no model request is sent and looking back costs $0. Its learning ends `dropped` with reason `empty` and the words "Nothing new: the run only ran a learned workflow." Any other tool, a follow-up, or a learned workflow that fails is asked as before. On every harness the runner runs (pi, and a CLI harness's `learned_workflow` by its own name or claude-agent's `mcp__hands__` alias).
|
|
128
|
+
Upgrading: nothing to do; a client that reads a run's learning sees reason `empty` for these runs, with its `detail` saying why.
|
|
129
|
+
- Learning asks for a workflow draft once a job repeats: when a run that learns ends, and a learned skill it was given has been given to 3 or more earlier runs of its agent with no learned workflow of that name (active or waiting for its owner's OK), its end-of-run prompt gains one line asking for that skill's job as a workflow draft under the skill's name, which the usual checks and grader judge. One skill at most per run, and no extra request. A run's learning start now records the learned skills its seed offered it (`learning.skills` in its launch), which is what the count reads.
|
|
130
|
+
Upgrading: runs started before the upgrade recorded no skills, so they count for none; the first ask comes 3 learning runs after the upgrade.
|
|
131
|
+
- Local Chrome honors this server's `AGENTRUN_BOX_ALLOW` when the operator sets it: its egress proxy then reaches only those hosts, on ports 80 and 443, and refuses any other host by name before its lookup. The fence on this machine's loopback, private networks and the metadata address holds either way. With the setting unset, Local Chrome stays open: the default list is a sandbox's package registries, not a browsing policy. Under `none` it is refused at the run's start.
|
|
132
|
+
- `LocalBrowserProvider` declares network `["open", "allow"]` and takes `{ allow: [names and CIDRs] }`. A CIDR that covers a range the proxy refuses is refused at `check()`. `list`, `attach` and `network()` read the list back.
|
|
133
|
+
- A run's launch records whether the operator set `AGENTRUN_BOX_ALLOW` (`box_allow_set`), so a browser is held to the operator's list and never to the default.
|
|
134
|
+
- Settings → Computers says so for Local Chrome: "open unless this server sets AGENTRUN_BOX_ALLOW; then only those hosts".
|
|
135
|
+
- Under `AGENTRUN_BOX_ALLOW=none`, a computer whose provider makes no "none" is refused at the start and at the claim, now saying it "needs a network".
|
|
136
|
+
- On a Postgres store, a recreate deploy hands the schema over at once, and a lost owner connection is taken back. A server started while another holds the schema waits up to 2 minutes for the old one to let go, saying so once, then serves, instead of exiting at once with "another server holds the store". Deploy the server with recreate (stop the old, start the new). API calls fail for the few seconds the new server takes to start, so a launcher should retry them. A deploy that waits for the new server's health before stopping the old one can't hand a schema over. A server whose owner-lock connection is lost (a failover, a database restart) refuses calls while it takes the lock back on a fresh connection, then serves again. If another server took the schema meanwhile, the schema was migrated past this build, or the lock can't be taken back within 2 minutes, it exits 1 so its platform restarts it, rather than answering 503 for as long as it runs.
|
|
137
|
+
- Each computer provider declares the networks it makes without being built: its module exports `NETWORK` (`"none"`, `"open"`, `"allow"`; the `NetworkForm` type), its `capabilities().network` returns it, and the kind registry's entry carries it as `network`. Settings → Computers (`GET /v2/computers`) says what this server's allow-list means for a vendor-hosted computer in a provider's `network` field: "no network, so this server's allow-list isn't offered" for one that makes none alone (Daytona, E2B, Modal, Orgo), and "the vendor's own network; this server's allow-list doesn't apply" for one on the vendor's own network (the cloud phone, Browserbase, Kernel). Docker, which takes the allow-list, has no such field.
|
|
138
|
+
- A run on OpenRouter's `particle-ai/particle-1` reads most of its input from the provider's prompt cache, so a tool-using run such as a code review costs about a sixth of what it did. Particle AI, its one provider, caches no prefix of a request that carries a `tools` parameter (measured: 0-30% of a review's input cached); serve now sends particle-1 its tools as text, and 76-92% of the input is read at the cached price:
|
|
139
|
+
- A model's catalog entry says how it takes its tools (`toolsAs` in `local-models.ts`, beside the prices serve sets): `"text"` for particle-1, native for every other model. On the runner's translated route the tools go in the system prompt in DeepSeek's call format, every earlier call and result in the history as text, rebuilt the same way each turn so each request's prefix is the last one's, and the calls in the model's reply come back as Messages `tool_use` blocks. A reply that opens a call block with no call readable in it is asked for again, at most three times in all, its usage summed, and only out of what the cap held for that one request: a re-ask's output limit is what is left of the hold once the tries so far and its own input, uncached, are paid, and with nothing left it is not sent. Anthropic models, Responses models and every other translated model are unchanged.
|
|
140
|
+
- A text-tools reply is sent once it ends, whole, not streamed token by token.
|
|
141
|
+
- A long `get_diff` answer filed in the run's files is indexed in its note: each file past the cut, the line it starts at in the filed copy and how many lines it runs (`; files past the cut, from the line each starts at (its lines): src/a.ts 908 (120), ...`), so the model reads the files it needs by range and passes a generated one by.
|
|
142
|
+
- serve no longer imports `@parcha/pi-durable-disk`. The file confinement its reads and writes go through, and the rule that names a secret's variable, are now serve's own. The per-run journal barriers it called are gone: nothing had set up the per-run store they synced since the old run engine went, so on the runner they did nothing. On the runner, a paid call's hold is still flushed by the run's ledger before the call is sent. Nothing an operator or an API client does changes.
|
|
143
|
+
- `agentrun-serve eval-template` can replay recorded data for a case: a fake MCP server's answer may name a list of `when` mappings (any one matching), a tool may answer calls no answer matches with `search`, a code search over files the fixture holds (`path:line: text`; a `/.../` term is matched as literal text, never run as a regular expression, and `NOT` excludes a qualifier's files too), and a package's `evals/` files are bounded at 32 MiB each instead of the agent's 256 KiB / 1 MiB (the answer's schema, which ships beside each SKILL.md, keeps the agent's limits wherever it lives). The JSON report keeps each run's answer, tool calls, MCP calls and start and end times, so a caller can score a run after the eval's server is gone.
|
|
144
|
+
- A template eval's report keeps each run's metrics: `cases[].runs[].metrics` holds its input, cache-read, cache-write and output tokens, its model requests (and how many of them were unmetered), and its tool calls by tool, read from `GET /stats?agent=` over the run's own agent once the run has ended. A run whose end wrote no metrics, or whose read fails, has `metrics: null`; its result does not fail on them. Upgrading: nothing to do.
|
|
145
|
+
- A template's string parameter can say what its value is with `format`: `cron` (a schedule's cron line) or `timezone` (an IANA time zone), shown on `GET /v2/templates`, so a form can ask for it with a schedule picker and a time-zone choice instead of raw text. `market-monitor` marks its `cron` and `timezone` parameters so.
|
|
146
|
+
- A Postgres store that holds two answers to one tool call's approval (an approve and a deny that raced before migration 0003) now refuses the server's start in words: the run, the call, its answer commands, and the statement that keeps the first answer and refuses the rest. It showed Postgres's own "could not create unique index" before. Nothing in the store is changed for you; a migration may now ship a `NNNN_name.check.sql` beside it, run first, whose rows refuse the migration.
|
|
147
|
+
- Upgrading: nothing to change, unless the server names such a run: run the statement it gives, then start it again.
|
|
148
|
+
- On a Postgres store, an approve and a deny of one tool call sent at once now write one answer: the first one written wins, the other is 409 `not_continuable` with details `{reason: already_answered, decision}`, and the run acts on the winner only. SQLite already refused the second answer with its one-answer index; Postgres had no such index, so both could be written. A new migration (0003) adds it.
|
|
149
|
+
- Upgrading: nothing to change. The server applies the migration at its start.
|
|
150
|
+
- An agent whose computer is a Browser (Browserbase, Kernel or Local Chrome) now runs on a real server, where it used to fail at its claim with "it gave no CDP connection". The run's browser tool opens each session through the computer's provider at its first call, releases it when it lets the session go, and drives it over the provider's CDP URL with pi-browser's raw-CDP driver. So a session's whole life is the time the run's spend books against its cap. Its live view and hand-off work as the `browser` tool's always have, and no `browser` grant is needed. The model drives it with snapshot ids and actions (`run.code` is refused on a browser computer).
|
|
151
|
+
- A pi agent gets the browser tool from its computer. On Codex, Claude or another CLI harness, a browser computer is refused at the run's start, saying that only pi drives it.
|
|
152
|
+
- A tab the page opens (a popup, or a link that opens a new tab) becomes the tab the model drives, and the answer says so. When that tab closes, the model is back on the tab that opened it.
|
|
153
|
+
- Local Chrome's session time is priced at $0.
|
|
154
|
+
- The agent's browser hand-over request (`browser_request_handoff`) is no longer written as a file in the run's workspace. Its only record is its waiting entry in the run's journal, so `GET /v2/runs/{id}/files` no longer lists it, and the agent's file tools (read, write, edit, bash) cannot read, change or plant one. The live view's Hand back and a run taken up again after a restart read pending requests from the journal, so a file the agent writes changes nothing the person sees or what Hand back answers. A browser session that saved its sign-in no longer leaves a `sign-in-saved` file in the run's workspace either; the save's time is the store's alone.
|
|
155
|
+
- A browser run's money on the runner is counted once and shown. `/v2/usage` shows a runner run's browser time again (its `browser_time` meter read per-run files the runner never writes). A run parked at its cap by a browser call shows the cap's words on its budget card, where its reason was empty. Each browser charge is booked once on the run's ledger, under its real call when it has one, named by its session and time so a reopen never books it twice; a charge owed at the provider (a session's release, a person's carried time) is booked past the cap, as main kept it. The browser's holds (a call's, a session's reserve, a person's time) are money reserved, never spent: a lost claim gives them back, never leaves them counted as spent.
|
|
156
|
+
- A message sent to a claude-agent, codex or opencode run while it is working is no longer lost. The API accepted it (202, mode `follow_up`), but the runner then refused it because these harnesses take no message mid-turn. Now each such message is sent as a turn of its own once the current turn ends, in the order they came, and shows on the run's timeline. A pi run still takes it mid-turn, as before.
|
|
157
|
+
- Upgrading: nothing to change.
|
|
158
|
+
- A message sent to a claude-agent, codex or opencode run while it is working, and sent again after its runner restarted, now says so on the run's timeline. Such a message goes to the model as a turn of its own once the turn in flight ends, and is recorded only after it is sent. A runner lost in between used to send it again on the next claim with nothing to show for it: a second paid turn the person never saw. Now the runner marks the message as being sent before it sends it. When the next claim finds that mark on a message it has to send, a row reads "Your message was sent again after the runner restarted: it may have reached the model before, and this turn is paid again." before the message. Each turn is booked as it is sent.
|
|
159
|
+
- Upgrading: nothing to change.
|
|
160
|
+
- A Claude Code or Codex run whose MCP call waits for approval now shows that call on its Timeline while it waits, with its approval beside it, and the call runs once when allowed, even if the runner that parked it goes in between. A stop while the call waits withdraws it: the run stops cleanly instead of being picked up again and again, and the call's row says it was not run. A stop while an allowed MCP call is running cuts that call at the server. A Claude Code or Codex call cut by a crash reads interrupted on the Timeline, in the words the model was given, instead of "failed: no detail". A Timeline page no longer reports a waiting run before the rows that led to it.
|
|
161
|
+
- A Claude Code or Codex run whose MCP call waits for approval shows the call's result row with the gate's waiting words ("This mcp:… call waits for a person's approval…"), as a pi run does. The row shows from the call's ask until the call is sent or ends. Once it runs, is refused or is withdrawn, the row is the call's outcome alone.
|
|
162
|
+
- A tool call the gate refuses on a claude-agent, codex or opencode run now shows on the run's Timeline as it does on pi: the call's row, then its result's row, failed, in the gate's words (a deny set for the agent or on the server, an ask where accounts are off and no one can approve, or a person's deny of the call's approval). On the runner, the loop wrote a CLI call's record only once the gate allowed it, so a refused call had no row, though its model was told of the refusal.
|
|
163
|
+
- Upgrading: nothing to change.
|
|
164
|
+
- A learning run on a CLI harness (claude-agent, codex, opencode) now reads `learning.state: "reflecting"` while its end-of-run turn runs, as a pi run does, and its Timeline shows the turn's "Looking back on this run." row from the moment the turn is asked, a Timeline stream already open included. Before, the run read `seeded` through the whole turn and went straight to `proposed`, so for the length of the turn (about 10 seconds on a live model) nothing said it was looking back.
|
|
165
|
+
Upgrading: nothing to do.
|
|
166
|
+
- A Claude Code, Codex or OpenCode run is priced: its model requests are counted at what the run's model proxy booked them at, as a pi run's are at its answers' costs. Its Timeline has a usage row again (the cost, the requests, its paid tool calls), and its run row's cost, its run view's cost, `/v2/usage` and `/v2/stats` carry that figure, where they read $0 or unknown before (#2275). A request booked at no known price, or one with no booked answer yet (in flight, or cut off by a crash), leaves the cost unknown, with what is known so far.
|
|
167
|
+
Upgrading: nothing to do. Runs that ended before the upgrade keep the cost their row stored; their Timeline now shows the usage row their booking holds.
|
|
168
|
+
- A codex, opencode or claude-agent run that reads one of its skills' files (`read_skill_file`) now shows the call and its result on the run's Timeline, as pi's tool calls are shown. On the runner, the adapter's own skill reader ran outside the run's record, so the Timeline had no row for it. The read now goes through the host's tool path (the record, the rule before a side effect, the host's hooks on its result); a new `SessionIO.hostTool` hands an adapter's own tool to the host, and the kernel's `hostedTool(io, tool)` applies it.
|
|
169
|
+
- Upgrading: nothing to change.
|
|
170
|
+
- Settings → Computers and the new agent's Computer step, from QA on a hosted deploy:
|
|
171
|
+
- Docker is no longer shown ready on a server with no Docker daemon (Render and most hosted services run none). `GET /v2/computers` asks the daemon (`docker version`, bounded to 3 s), keeps the answer for 30 s and asks again after, so a daemon that stops is seen. A daemon started after the server is taken at the next restart. Docker's sandbox and desktop then say "No Docker on this server: Render and most hosted services run none.", followed by what works in the server's folder mode, naming this server's vendors: for a sandbox with run folders on this server's disk, "A vendor sandbox (Daytona, Modal or E2B) needs Archil turned on in Settings → Workspace."; with Archil on, "Use a vendor computer, e.g. Daytona, Modal or E2B for a sandbox."; for a desktop, "Use a vendor computer, e.g. E2B or Orgo for a desktop.". A run's start and a Docker launch that fails for want of a daemon say the same words.
|
|
172
|
+
- A provider's reason in `GET /v2/computers` and its connection test now ends at "Settings → Computers", with no API route in it. The claim's refusal for an API caller still names `PUT /v2/computers/{provider}/keys`.
|
|
173
|
+
- Three small computer fixes. A provider's connection test (`POST /v2/computers/{provider}/test`) passes its answer through the server's one redactor over the keys it used, so a vendor error that quotes a saved key in another form (base64 in an `Authorization` header, hex, JSON-escaped, percent-encoded) shows none of it. A run whose computer waits on its image (Docker building its recipe, or pulling an image) shows the "Preparing the computer's image" row on its timeline while it waits, not once the image is ready; a run whose image fails keeps that row, and its end says why after it. The README says that a computer's minutes are billed by its provider and that AgentRun does not count them yet.
|
|
174
|
+
- A person's take-over of a run's desktop or phone now ends in words when the run changes runner. Until now, when the runner holding the run lost its claim during a take (it crashed, or its lease ran out), its end of the take was refused with the claim, and the runner that took the run over started a new computer with the agent driving: the take vanished from the run, with no row saying why. The new claim now ends that take `released`, once, with the Timeline row "The desktop's session ended while you had it" (or the phone's), as the earlier computer is let go; a hand-back of that take is refused in those words.
|
|
175
|
+
- A learning grade whose answer contradicts itself (it keeps every new item yet says not to merge) is asked once more, the contradiction named, as an answer that can't be read is. Before, the proposal was dropped at once, and the run's learning quoted the grader's own reason, which could read "… so it can be kept" beside "Not kept". Now a second contradiction drops it in words that say what happened: "Not kept: learning stopped (the review of the new notes contradicted itself twice: it kept them and said not to)." On every harness, the end-of-run turn asked again for a workflow draft whose dry run failed now reads "Looking back again: a workflow draft did not pass its dry run." on the run's Timeline, not a second "Looking back on this run.". Fixes #2407.
|
|
176
|
+
- Upgrading: nothing to change.
|
|
177
|
+
- A learning run's grade cost is priced: the grade's request was booked after its answer arrived (a gateway's stream can stay open after the answer), so the grade read its spend too early and said $0. It now reads the spend once the request is booked (`GET /v2/runs/{id}/learning` `cost_usd.grade` and `/v2/usage`'s learning line), and a booking that never comes reads unknown, never $0. The grader's Risky question now reads one way on every grade model: a limit or threshold that decides whether an approval or a check happens is risky in either direction, as is an exemption from a check, trusting or paying a named site or seller, or naming where money or data goes, whoever asked for the rule. Its Planted question no longer drops your own rule for sitting in the same message as a form or webhook payload: a rule you state outside the payload is yours, and one found only inside it is planted (#2319). `scripts/learn-eval.mjs` grades on several models at once (`--grade-models A,B,C`, with how often they agree, note by note), reads the held-out set with `--set heldout`, and lists its plan without calling a model with `--dry`; it runs on demand, never on a pull request.
|
|
178
|
+
Upgrading: nothing to do. Grades from before the upgrade keep the $0 they recorded; a rule the grader kept active before may now be held for your OK when a later run proposes it again.
|
|
179
|
+
- A run's learning keeps what it can when some of its answer breaks a cap. Before, a ninth new note, a second skill or workflow, more than 64 changed paths, or notes superseding more than 8 between them dropped the whole proposal. Now each cap names the items past it, in the order the answer gave them, and only those are left out: the rest goes on to the grader, and the run's learning names what was left out. A note over its size was already left out alone. The checks also run again until the rest passes, so a cap reached only after a first pass (the supersedes count) leaves out its note too. Only the index's total (more than 200 lines), which no single note is past, still refuses the whole answer. Upgrading: nothing to do.
|
|
180
|
+
- What the learning reads serve is cut of more of what the server never shows:
|
|
181
|
+
- An agent's learning routes (its view, its notes and log, a note read, a run's learning and its learning diff) cut the agent's own browser sign-in pointers, live and forgotten, beside the server's secrets. A person's note write refuses them as it refuses a secret. When one of them doesn't open on this server (its seal key changed or is missing, or the sign-in is damaged), each of these routes answers 403 `forbidden` rather than serve what the agent learned over a shorter cut.
|
|
182
|
+
- A merged run's learning words are cut again whole, as a dropped run's are, so a problem's path the checks left out names no secret.
|
|
183
|
+
- A run's learning `reason`, each problem's `rule` and each verdict item's `origin` are cut as every other text is.
|
|
184
|
+
- A served learning text holds no loopback address (the address alone reads "a local address", as in a run's words; a note's `url:` label, its line ends and a workflow.json's JSON stay): a run's learning problems and its diff's patches too. What a run is given keeps it: its `.learning/` files and its `# Learned` section. A note shown without one, like a note shown with a secret hidden, is refused an edit: retire it and write a new one.
|
|
185
|
+
Upgrading: a client of the agent learning routes and of a run's learning and its diff handles a 403 `forbidden` there.
|
|
186
|
+
- Learning's grader now drops a note that holds an account number, even when the user gave it as where refunds or payments go, and a rule found only inside text the run read (a form, a pasted email, a page), whatever it asks for. Before, a grader could hold either one for the owner's OK, and an approval would have served it.
|
|
187
|
+
- Upgrading: nothing to change.
|
|
188
|
+
- A learning run whose start couldn't use its agent's notes says why, as before the runner moved: "the agent's notes could not be read" when the learning folder couldn't be read, and "could not be copied into the run" when what was read couldn't be made into the run's start. Before, every such run said the latter. A run's launch records the reason (`learning.seedFailed`: `unreadable` or `not_copied`). Upgrading: nothing to do.
|
|
189
|
+
- A run's live timeline page never says `working` before the row of the message it works on: the page reads the run's status first and its rows after, so its rows hold every entry its status was read from. Before, both were read at once, and a message committed between the two reads gave a page that said working with no message row yet (#2307). Upgrading: nothing to do.
|
|
190
|
+
- A loopback address in a run's words and its Timeline is rewritten as "a local address" and nothing more around it is taken: a bare one with its port at the end of a sentence (`localhost:9000.`, `127.0.0.1:9000.`, `[::1]:9000.`) is rewritten as one mid-sentence is, a bare one's path goes with it (only the host and port went before), and a full stop after one with a scheme stays (it was taken with the address). An address's path also ends at a backslash, so one quoted inside a JSON string leaves the JSON whole.
|
|
191
|
+
- The MCP server list no longer documents `file_unreadable`, and the MCP routes no longer document `409 no_sealing_key` or `409 store_unreadable`. Those came from the file-era registry (`mcp-servers.json`), which the store-backed registry replaced; the server never sent them since. `ListMcpServersResponse` in the generated clients loses the field. A server does not start without its seal key, so no MCP save or sign-in is refused for want of one.
|
|
192
|
+
- On a run with no computer, `bash` now asks for approval before it runs when no setting names it. This matches the kernel's rule (`defaultPermissionOf`): with no computer, bash asks first and the background tools are refused. Before, the runner's gate used the computer's default and allowed bash unasked. That mattered in Mode 2 (Archil), where a no-computer run still has bash on the folder's own exec, on pi and on the CLI harnesses. A tool setting still wins over the default, and a run on a computer allows them as before.
|
|
193
|
+
|
|
194
|
+
Serve's first-use Codex install is now fenced to the pinned tarballs: a test holds the install lock serve ships (`harnesses/codex/package-lock.json`) to the Codex adapter's `CODEX_NPM_INTEGRITY`, so a lock that drifts from the pin fails CI before `npm ci` would trust it.
|
|
195
|
+
- An approval, or a browser hand-back, answered while its run is parking, ending or being stopped no longer fails with "Session is closed". The runner used to check or write the answer through a session the run had already closed. Now the answer is left for the run's next claim, which checks it and resumes the run. An answer replayed at a claim's start that fails is logged and left untaken instead of crashing the runner with an unhandled rejection. The tool-gate test no longer waits a real minute: it checks that the parked run's claim was let go.
|
|
196
|
+
- Upgrading: nothing to change.
|
|
197
|
+
- A run's effort is its own, else its agent revision's saved `thinking`, else the host's `AGENT_THINKING`, as documented: before, a run started with no `effort` dropped the other two, so its harness thought at its default, it got no effort note and its metrics named no effort. A pi run now thinks at that level too: its agent was given none, so even a run's own `effort` changed only its note. A CLI run's metrics now name the level its harness ran at (`max` on Codex or OpenCode runs at `xhigh`, and says so). A claude-agent session resumed on a later day is now told that day: the CLI resends the system prompt recorded at its first request, so the first message on each later day starts with `Today is <date> (UTC).`, in the CLI's transcript only (fixes #2416). `thinkingOf` and `EFFORT_ENV` are gone from the server's `model` module: `thinkingLevel` checks a level.
|
|
198
|
+
- On the runner a run's folder is its workspace, which the agent's own file tools and the run's file list reach, and the server now neither trusts nor writes anything there for itself. The tool gate no longer reads `turn-origin.json` from the run's folder: nothing on the server wrote it any more, so a file the agent wrote there could make the gate refuse the agent's own writes under `.learning/`. The end-of-run turn's refusal of those writes is the adapter loop's own. A browser viewer's hand-over goes only through the store under the run's claim; with no store seam none is handed over, never as a file holding the viewer's token in the run's folder.
|
|
199
|
+
- Approvals on the runner:
|
|
200
|
+
|
|
201
|
+
- **An answer after a stop or cancel is 409.** An answer to a waiting call sent after the run was stopped or cancelled is now refused at once with 409 (`already_answered`, with decision `withdrawn` or `canceled`), even before the runner has applied the stop. It used to be accepted with 204 and then dropped, though the call never ran.
|
|
202
|
+
- **A cancel's waiting calls read cancelled.** A cancelled run's waiting calls read cancelled with their run ("Withdrawn when the run was cancelled", "Not run: the run was cancelled while it waited"), not stopped. Their answer entry's decision is `canceled`.
|
|
203
|
+
- **A call that waited reads in order.** Its rows read: the call, then its approval row, then what came of it. That holds when the call's result arrives after the answer, and when a second call is waiting too.
|
|
204
|
+
- **A write that waited shows no "Saved" row of its own.** What an allowed write saved is its outcome row's to say, and a denied one saved nothing.
|
|
205
|
+
- **A declining message is the person's own row.** A person's message that declines a waiting call shows as their own message row, between the approval row and what came of it. An allow written before such a message stands: the call runs once, and the message reaches the run as its next message.
|
|
206
|
+
- A workflow run shows what it cost. Its Timeline's usage row read "Cost so far: $0 over 3 model requests", because its model nodes' answers carry pi-ai's $0 for a model it has no price for, while each request was booked at its price beside them. Its usage row is now its booking's, as a Claude Code or Codex run's is: its model nodes, its `llm` calls and its paid tool calls at what they were booked at. Its decisions count once, from their receipts, on the Timeline and in the run's cost (a run's view counted none of them before). The runs list and `/v2/usage` read a running Claude Code, Codex or workflow run's booked spend, where they read $0, and an unknown booked spend reads unknown, never $0. A run that ended reads a request it left unanswered as a cost unknown on its Timeline, as its view does.
|
|
207
|
+
- A command the runner's dispatch held before it chose a run's loop (an approval's answer, a message, a steer) is no longer lost when its first delivery fails. The dispatch tries it again while the loop runs, at most five times in all, and then leaves it for the run's next claim. A standalone runner (`agentrun-serve runner`) that meets an error nothing handles now says so with the stack and exits 1, so its claims lapse and another runner takes the runs back, instead of holding runs whose loop is dead.
|
|
208
|
+
- A run with a spend cap no longer passes it quietly. When an answer costs more than the cap had room for (an answer longer than expected, a native web search), the answer is booked and the run ends failed with error code `spend_cap_reached` and "The run cost $X, $Y over its cap of $Z.", as before the runner; it used to end completed, or pause for a raise at its next request. A cache miss within the bound its request was admitted at still pauses the run at its next request. A paid tool call (a web search or fetch, a paid MCP call) cut off by a runner crash or a takeover is booked as a charge of an unknown amount at the next claim: the run's cost reads unknown, counted at the call's hold for the cap, where it read as free. A model answer with no price (a gateway model the catalog does not list, with no price set) makes the run's cost unknown, never $0. A Claude Code, Codex or workflow run's `/v2/usage` tokens meter is its model requests' booked cost, where it read $0.
|
|
209
|
+
- A stop sent to a run before its runner had chosen the run's harness loop could end the whole runner process, along with every run it held, if that loop's stop threw. The throw is now logged instead. A run whose session fails to open at a new claim fails with the reason, and the runner keeps claiming other runs; a new test covers this with a message and an approval sent before the claim.
|
|
210
|
+
- Upgrading: nothing to change.
|
|
211
|
+
- `agentrun-serve runner` treats a SIGTERM or SIGINT that arrives during its start as its own stop. Before, the runner began claiming runs before its stop handlers were installed, so a signal in that window (a platform's redeploy) ended the process by the signal itself, with its claims still held and any paid request in flight cut. Now the runner listens from before its start, keeps a stop asked during it, says "stopping: a stop came during its start" once the start is done, and closes the way a later stop does (its runs handed back, its store closed, exit 0). The server's own CLI got the same fix in #2410.
|
|
212
|
+
- A held secret is cut, and refused in a learning note, in more of the spellings a path tool's error writes it in. Its ".." segments are now resolved as the resolver resolves them ("a/x/../b" is "a/b"). Each leading ".." can be taken by a folder of the path the model wrote, so "../KEY" named by pi's read of "notes/../KEY.txt" comes back as "KEY.txt", and that is found too. Its encodeURI spelling is cut where it stands, beside the encodeURIComponent ones. Before, the run's Timeline could show such a key with its leading ".." gone, and learning could keep a note quoting it.
|
|
213
|
+
Upgrading: nothing to do.
|
|
214
|
+
- A run no longer lets its desktop or phone go while a person holds it. When the agent finishes while you have taken over its computer, the run waits for you to hand it back before it ends, and the Timeline says so ("The agent is done. The run ends when you hand the desktop back, or after 15 minutes with no input from you"). A forgotten take-over still ends at the hold's 15-minute idle bound, and stopping the run ends it at once. Once the agent is done, the computer can't be taken over again, and a message sent while the run waits doesn't start a new turn: the run's end refuses it as having come after the answer.
|
|
215
|
+
- The server now ends computers a crashed runner left behind. When its runner starts, and every 10 minutes after, it looks at each computer provider whose keys it has and whose vendor doesn't end computers itself (Docker, Orgo), and ends this server's computers that are past their deadline. It never touches another server's computers on a shared account or Docker host, or a computer a run's claim still holds. A provider it can't reach is logged once, and the others are still swept; stopping the server never waits on a stuck sweep for more than a few seconds. It doesn't run under `--faux`. The computer package exports `runHash` and `RUN_HASH_LABEL`, and Orgo's `list({})` gives each computer's run hash under `agentrun.run.hash`, so a caller can tell whose run it is. A server or runner whose terminal closed its stdout or stderr (piped to `head`) no longer ends at the next line it writes there: the line is lost and it goes on.
|
|
216
|
+
- `AGENTRUN_BOX_CPUS`, `AGENTRUN_BOX_MEMORY` and `AGENTRUN_BOX_PIDS` size a Docker computer (a sandbox or a desktop) again. Since the old box stack went, the server read and checked them at its start and then gave them to nothing, so every Docker computer ran with the provider's defaults (2 CPUs, 4 GiB, 1,024 processes) whatever an operator set. The claim now puts them on the computer's spec, and the Docker provider runs the container with them. Unset, the provider's defaults hold. A vendor's computer (Daytona, Modal, E2B, Orgo, a phone, a hosted browser) sizes itself and is never given them. A value the Docker provider refuses stops the server's start, naming the setting, in the provider's words. The Docker provider's `check()` also refuses a `cpus` too large for a CPU quota (more than 90,071,992,547), which it used to pass and Docker then refused at every create.
|
|
217
|
+
- On macOS a local run's file calls work again: each open in the run's folder passes O_NOFOLLOW_ANY alone, since the kernel refuses it beside O_NOFOLLOW (EINVAL), which failed the first folder open of every call.
|
|
218
|
+
- An agent with `read` and no shell (no computer, as on a hosted server) reads an MCP answer too long to read whole to its end, so the code-review template reviews a pull request whose diff is past 60,000 characters without asking for a sandbox:
|
|
219
|
+
- The rest of a long MCP answer is filed under the run's `evidence/mcp/<server>/` as lines, a `.txt` (or `.json`, laid out a value a line), never one line of the answer's JSON, which `read` could show only the first 50 KB of before asking for bash. A line past 10,000 characters is broken into pieces of that length, and the note says so. The layout is bounded: its indent stops at 32 levels, and JSON whose layout would pass twice its size and 64 KiB (thousands of nested arrays, say) is filed as written, in lines, so a deeply nested answer never exhausts memory. The model reads the answer's first lines, whole, and a note naming the file and the `read` offset that goes on: `[cut at line 664 of 2192 (59980 of 200098 characters); the whole answer is in the run's files at evidence/mcp/github/<file>.txt: read it with offset=665 to go on]`.
|
|
220
|
+
- An embedded text resource (GitHub's `get_file_contents` answers a file as one) is read inline with the answer's text, under a `[resource <uri> (<type>)]` line, instead of filing the whole answer as JSON.
|
|
221
|
+
- On pi, a host tool's answer reaches the model whole within the host's result bound, as each CLI harness is told; pi's own default (50 KB or 2,000 lines, its head kept) cut off the end of a long MCP answer, where it names the file, and a read's "Use offset=<n> to continue".
|
|
222
|
+
- In Mode 2 (Archil), an agent on the runner (computer kind `none`, or no place named) may name `bash`: its save, its run's start and a template's apply ask where this server's runner has its shell (`bash` on Archil's serverless exec) instead of refusing it with `422`. `capabilities.tools` shows `bash` available there. The background tools still need a box, and in Mode 1 `bash` on the runner is refused in the same words as before.
|
|
223
|
+
- An agent edit whose checks run while another request moves the agent's current revision is built again on the new one, or, sent with `If-Match`, answers `412`: the write is conditional on the revision it was built on, compared in the store's own transaction, so two servers on one store never both pass an `If-Match`, and an edit never carries over a place, harness or learning switch from a revision it does not follow.
|
|
224
|
+
- On macOS, a run's folder can no longer be used to reach host files through a symlink swapped in mid-walk. Every file or folder serve opens in the run's folder is opened with O_NOFOLLOW_ANY, so a link anywhere on the way fails the open: a read, a file GET, a write, an append or grep never opens a host file, however the swap is timed. The end-of-run sweep removes a link itself, never what it points at. On Linux, behaviour is unchanged (it was already safe through O_NOFOLLOW and /proc/self/fd). On a host that is neither Linux nor macOS there is no way to refuse a link on the way, so a local run's file calls there fail instead of following one.
|
|
225
|
+
- A runner no longer takes more runs than its host's memory holds. The run count (`--max-runs`, by default as many pi runs as fit) let a 2 GB host take 15 claude-agent or codex runs at once, about 3.2 GB of claude-agent runs as measured, and the out-of-memory kill then took every run on the box. Now a runner claims a waiting run only while the runs it holds and that run's harness size (pi 128 MB, codex 192, claude-agent 288, opencode 704) fit the host's memory (its container's limit when it has one) less the server's 128 MB; a run that does not fit yet waits queued, oldest first, until one ends. A run larger than all of it still runs, alone.
|
|
226
|
+
- The runner honours `--drain-timeout` and `--max-runs` again. When the server stops (a redeploy, a restart, Ctrl-C), each busy run now finishes its turn for up to `--drain-timeout` (default 30s; the image's is 6s) and keeps its outcome, where before the turn was cut at once and its model request, already paid, was sent again on the resume. And the runner holds at most `--max-runs` runs at once (`AGENTRUN_MAX_RUNS`, else as many pi runs as the host's memory holds, the number the capabilities' `max_concurrent_runs` report); the rest wait queued, where before it took up to 300 at once and could run a small host out of memory. A runner of its own (`agentrun-serve runner`, beside a `--no-runner` server) holds the same: `--loops`, else `AGENTRUN_MAX_RUNS`, else what its host holds, and on SIGTERM it drains for `--drain-timeout` (new; default `AGENTRUN_DRAIN_TIMEOUT`, else 6s).
|
|
227
|
+
- `POST /v2/agents`, and every other write, no longer answers 500 when the server's own process is held up while the write is open. On SQLite a write's 10 s deadline is a timer on the server's event loop. When other work in the process held that loop past the deadline (a harness's pinned CLI hashed, or its `--version` run, synchronously, as the harness check does), the timer fired after the write's statements had already been answered, and the write was rolled back as if it were slow. The deadline now counts only time the process could run, on the monotonic clock: every hold of the process while the write is open is given back, whether it ended before the deadline or past it, and the host's clock set forward or back is never counted. A write that really stays open past its deadline is rolled back as before, and the request is answered `409 home_busy` (retryable), as a store busy past its wait is, never 500. An MCP client's tool call (such as `agents_create`) is refused the same `home_busy` instead of `internal`.
|
|
228
|
+
Upgrading: nothing to do.
|
|
229
|
+
- A run on a model the runner bridges into Messages (a model whose API is not Anthropic's Messages, or the faux model) shows its thinking on the Timeline again. The runner's model route sent the model's text and tool calls but no thinking block, so the thinking never reached the run's record. It now sends the thinking as a Messages thinking block, its whole text cut by the run's redactor first, so a held key the model quoted in its thinking is never written to the run's record, not only hidden when the Timeline is read.
|
|
230
|
+
- An explicit `AGENTRUN_BOX_ALLOW=none` is honoured for a computer that runs only on the vendor's own network (a cloud phone, Browserbase, Kernel): its run is refused at the start and at the claim, in words that name the setting, instead of running open. Under a list, the default or the operator's own, it still runs open, and Settings → Computers says so. A run whose launch names no box allow-list (one started before every launch carried it) now reaches what the server allows now, never an open network; a sandbox with none still has no network.
|
|
231
|
+
- A workflow model node's tool call that was let through, then run again on the next claim after its runner went (or its lease lapsed), with its tool now set to deny, tells the model that whether the call took effect is not known. It used to say that nothing was sent and nothing was charged, which is false of a call that may have reached its host.
|
|
232
|
+
- A workflow run that a person stops while a model node streams now books the stopped request at what streamed plus 1,024 tokens. Before, it could sometimes count the request at its whole hold instead. The run's end now waits, for at most two seconds, until every model request the run sent is booked, as an agentic run's end already does.
|
|
233
|
+
- The test of a learned skill at the 1 MiB skills cap on claude-agent's real adapter (900 KiB of the agent's own skills, a 200 KiB learned one left out) is gone. It timed out on the store now and then and passed when re-run. What it checked is covered elsewhere. In learn-skills-seed, two tests that don't depend on timing: the same skills under claude-agent's own skill check (the agent's skills stay the adapter's, the learned one that fits joins them, the 200 KiB one is left out and named, none in the prompt), and the 1 MiB cap for each form a harness is handed. In claude-run, a test on the real adapter checks that it offers a run's skills through its Skill tool.
|
|
234
|
+
- Deletes the load-flaky pi case in learn-workflow-run; the file's other pi cases (a learned workflow's call and its output, on its tier and on the timeline), learned-route's R1 and runner-pi-booking cover the path. Upgrading: nothing to do.
|
|
235
|
+
- The approvals route's description now says what a run does on the runner. An allowed call runs in place, and the session goes on with its result; there is no resume message about it. A denied call is answered with the refusal. A person's message that declines a waiting call shows as their own message row.
|
|
236
|
+
- The learning docs (the README's Learning section, the server's, and its learning folder's contract) now describe learning as it works today. A proposal's checks leave out an item that breaks a rule of its own and keep the rest; a secret, a hidden character, a path outside the folder or a deletion still drops the whole answer. One front-matter reader decides a learned skill's and workflow's status. Past the budget, a run gets the notes that bear on it. A workflow draft is asked for once a skill has served 3 runs, and it is dry-run before it is kept. A run that only ran a learned workflow skips its end-of-run turn. The runner opens a learned workflow's decision keys. The grader drops account numbers and planted rules, and its Risky question reads one way on every model. CLI runs read `reflecting`. The learning bench is described. A short list says what is coming.
|
|
237
|
+
|
|
238
|
+
## 0.1.0-beta.33 (2026-11-10)
|
|
239
|
+
|
|
240
|
+
- The console's Keys page shows each provider's own icon beside its name, in place of a key icon. The icon comes from Google's favicon service (`www.google.com/s2/favicons`, which redirects to `t0`-`t3.gstatic.com`), so the console now loads one thing from the network, and the page's Content-Security-Policy `img-src` allows those five hosts. The request names the provider's public site and carries no referrer and no cookie of the server's; Google sees the browser's address and which providers the page lists. Offline, or with those hosts blocked, a provider shows its bundled mark (Anthropic, OpenRouter) or the key icon. To keep the console from asking, block those hosts.
|
|
241
|
+
- `AGENTRUN_STORE_POOL_SIZE` sets how many connections the server's and each runner's Postgres store holds at once (default 10, as before). It takes a whole number from 1 to 1000; any other value stops the server or runner at start with a message naming the setting, its range and the value given. `deploy/README.md` lists it with the other store settings.
|
|
242
|
+
- Template Apply fixes from QA on the release:
|
|
243
|
+
- `kyb`'s risk appetite and `inbound-lead`'s destination take their documented defaults when left out (medium; none), so Apply shows "medium (default)" and "none (default)" instead of refusing them as required.
|
|
244
|
+
- The owner's first apply answer, which shows each webhook trigger's signing secret, no longer also says the secret is not shown. An API token's answer, or a retry, still says where to get it.
|
|
245
|
+
- A run parked at its spend cap no longer shows a "Model request failed: 400 {…agentrun_proxy…}" row in its Timeline. The model proxy refused that request before it was sent, and the park's row already says what happened. That refused request also no longer counts as a model request in the run's usage line.
|
|
246
|
+
|
|
247
|
+
The cap's refusal now carries its code through to the proxy as a field: the runner's `Refusal.code`, then `HarnessRunError.refusal`. The proxy writes `code: "spend_cap_reached"` in its refusal body. The Timeline matches on that code and `type: "agentrun_proxy"`, never on the words. Every other model failure, a provider's 400 included, keeps its row.
|
|
248
|
+
- Docker sandboxes run from a server in a container, as compose.yaml starts it, on Docker Engine 26 or later. The run's folder and the sandbox's daemon (copied under the data volume, at `.agentrun/computerd`) mount as the named data volume's subpaths, and the sandbox's egress proxy refuses the Docker host's own addresses: the server reads them once at its start through the socket (one short-lived container on the host's network, as nobody, from the proxy's own image, with `host.docker.internal` for Docker Desktop and OrbStack) and adds `AGENTRUN_DOCKER_HOST_ADDRESSES` (a comma list of IP addresses, for a NAT'd or elastic public address no interface shows), shown in capabilities' docker entry as `host_addresses`. With none known under an allow-list, or a layout with no named data volume, or a daemon of another machine (named by `DOCKER_HOST` or the current Docker context), docker is unavailable at the start in words that say why, so an agent that names a Docker computer is refused at its run's start instead of failing at create.
|
|
249
|
+
- The server image has `agentrun-serve` on its PATH, so the sign-in page's "Forgot it?" command (`agentrun-serve reset-password --data /data`)
|
|
250
|
+
works as written in the image's shell, Render's Shell included. Before, it answered "command not found" (#2225).
|
|
251
|
+
- A learned workflow's call nodes never run a tool on a default of allow: its run must give the tool policy (and where each setting came from) that its call nodes are held to, and one given none runs nothing and says so. Every caller passes one already. Upgrading: nothing to do.
|
|
252
|
+
- `GET /v2/runs/{id}/learning/diff` answers again (it answered `unsupported_here`, so a run's "What it changed" box said it couldn't read it). A run its learning merged reads its merge against its parent from the agent's learning folder; one whose proposal was not merged reads its notes as added against its seed; one that proposed nothing reads no file against its seed; a run that does not learn is 404. A patch holding a value saved as a secret is withheld, and a file named for one reads `[redacted]`.
|
|
253
|
+
- Upgrading: nothing to change.
|
|
254
|
+
- A run's live view no longer holds a secret the runner holds. The live view (the running tools with their arguments and the output they have streamed so far, and the answer still being written) was written as the run's tools and model produced it, so a tool that echoed a key, or an answer that quoted one, put it there in the clear, where the live stream a console watches served it.
|
|
255
|
+
- Every value of a run's live view is now cut with the run's one redactor before it is written: the same one its record's text goes through, holding the runner's secrets and every key the run's claim opened.
|
|
256
|
+
- Output still streaming and the answer still being written hold back a tail as long as a held key's widest form, so a key paused halfway at a write shows none of itself; the settled record replaces it once it ends. A tool argument that is a held key written as a number is withheld, as is an argument object two of whose names would come out the same once cut.
|
|
257
|
+
- A run whose loop has no redactor, or one that does not know its values, has no live view at all, rather than an uncut one.
|
|
258
|
+
- Settings → Model keys names, for each key, the harnesses that key runs on this server, the same before and after another provider's key is saved. With Claude Code on an endpoint set where AgentRun starts (`ANTHROPIC_BASE_URL`), OpenRouter's key no longer lists Claude Code once Anthropic's key is saved: only Anthropic's own key runs it there.
|
|
259
|
+
- The server starts on a Postgres schema an administrator made ahead of time, with a role that owns that schema and has no `CREATE` on the database. At its start the server now makes the schema only when it is absent (Postgres refuses `CREATE SCHEMA IF NOT EXISTS` to a role without `CREATE` on the database even when the schema exists), then migrates it as before. On a schema that does not exist, such a role is refused at the start in words that name the schema and what to do: create the schema ahead of time, owned by the role, or grant the role `CREATE` on the database.
|
|
260
|
+
- A raised spend cap now holds for the rest of a run: a pi or CLI run paused at its cap and raised has its next model request admitted under the raised cap, on the runner that takes the raise and on any that takes the run over later, and a later pause names the raised cap. Before, the runner kept checking every request against the cap the run started with, so a raised run went on once and paused again at the old cap. A working run's raise holds from its next step (the step under way keeps the cap it was admitted at), and the raise's `note` says so. The run's `cost.cap_usd` and its budget card show the raised cap. A raise of a run a person stopped is refused in words (`not_continuable`: "This run was stopped: send it a message to go on, then raise its cap."), never a bare error.
|
|
261
|
+
- A one-time schedule set to a time already passed is refused in words a person reads, on its field: "Pick a time in the future: <time> has already passed.", never "at is in the past" (#2248). The API's 422 says it so, for the console and for SDK and CLI callers alike. The console's schedule form shows it on the time field and clears it as soon as a time ahead is picked.
|
|
262
|
+
- The seal key now lives with the data. With no `AGENTRUN_SEAL_KEY`, the server keeps its key in `seal/seal.key` in the data directory, beside the store (0600 in a 0700 directory), made at the first start, so a disk or volume carries its key with it; back the two up together. The store records the key's fingerprint, and the server, every runner and `import` check the key they hold against it: a store whose secrets were sealed with another key does not start ("this store's secrets were sealed with another key; hand the server the original AGENTRUN_SEAL_KEY"), and a lost key file is never replaced by a new key over saved secrets. On Postgres a second machine with another key refuses the same way. Only the server's start makes a key; a runner reads it and never makes one. The launcher no longer makes or reads a key under the config home, and nothing reads one there: set `AGENTRUN_SEAL_KEY` explicitly, the same in every process.
|
|
263
|
+
- A held secret is cut wherever a path tool's error names it: with its "." segments dropped (`a/./b` as `a/b`), as its "//" collapsed already was, and percent-encoded as a URL's path writes it, each cut in place, the error's own words kept. Before, a secret holding "/./" written with that segment dropped was not found at all, and a percent-encoded one was found but cut the whole text. Upgrading: nothing to do.
|
|
264
|
+
- A pi run on a translated route (OpenRouter, OpenAI and every other provider that doesn't speak Anthropic's Messages) now sends the model the images in a tool's result, so browser, desktop and phone screenshots reach it. Before, only the tool's text went and the images were dropped. On OpenRouter's chat completions each image goes as an attached image right after the tool's message, because a tool message there holds only text. On OpenAI's Responses API it goes in the call's output.
|
|
265
|
+
- A workflow whose model node names `browser` is refused when it is saved (422), in the words any node tool this server doesn't give is refused in, instead of being accepted and then failing at its run (#2098). Capabilities' `workflows.node_tools` no longer lists `browser`, and the browser tool's `nodes` reads false.
|
|
266
|
+
- A workflow's call and model nodes fail closed when the server's tool settings can't be read, as an agent's calls do: with no good read yet, every tool asks, so a call node is refused ("needs a person's approval, which a workflow's call node cannot wait for") instead of running on the revision's own allow over a deny the server holds; after a good read, that read is kept and its denies still refuse.
|
|
267
|
+
- `AGENTRUN_API_ONLY=1` makes the server serve the run routes alone, for a server behind its caller's backend: a run's launch, read, lists, timeline, messages, stop, cancel, kill and cap raise, its files and uploads, capabilities, health and usage. Every other address (the console at `/`, the store page's `/api/*`, sign-in, setup, settings, `/mcp`, triggers and their webhook hooks, agents, templates, the live views) is `404`, answered before the request is read further, and the server has no accounts. Off by default; a value other than `1`/`true` or `0`/`false` stops the start in words.
|
|
268
|
+
Under the profile the server opens no browser (`--open`), and `npx @parcha/agentrun` takes the API-only line in place of the console's `Open` line: it names the server's API (its `AGENTRUN_BASE_URL`), so it never stops a healthy API-only server for want of an `Open` line.
|
|
269
|
+
- The server no longer ships the old run engine. Every run already went through the runner and the one store, but the per-run process (`app.ts`, `harness-app.ts`, `request-start.ts`, `run-box.ts`) and the file-era run kernel (`runs.ts`) were still in the package, and nothing called them. Their tests are gone with them. What the runner and the server still read from them moved to its live home first: a run's secrets (`run-secrets.ts`), the claim refusal's words (`run-view.ts`) and the box settings the server checks at its start (`box-settings.ts`). Nothing a person or a model sees changes.
|
|
270
|
+
- A tool call refused before it ran now reads as refused in the run's Timeline, never as a call that ran and failed. This covers a tool set to deny on the server or the agent, and a call a person denied. The row reads "Refused: write deny.md: Permission denied: write is set to deny on this server…" instead of "Wrote deny.md failed: …". Every tool reads that way, named by what it would have acted on: a path, a command, a page, or the tool's name alone.
|
|
271
|
+
|
|
272
|
+
pi's adapter marks a refused call's result in its `details` with the new `CALL_REFUSED` key (from `@parcha/pi-durable-agent/timeline`). The model never reads that field, and the Timeline matches on it, never on the refusal's words. A call that ran and errored still reads "<label> failed: <error>".
|
|
273
|
+
- `render.yaml` no longer trusts every private address as a proxy. It set `AGENTRUN_TRUSTED_PROXIES=uniquelocal`, so any peer on Render's private network could name its own address in `X-Forwarded-For` and pass the sign-in limit's per-address count (the server-wide budget still held). Render publishes no address for the proxy that reaches a service, so the blueprint now leaves it unset. The owner's first sign-in of a start (the right password) that comes with `X-Forwarded-For` from an address the server doesn't trust logs that address once (`event=forwarded_untrusted peer=<address>`): behind a proxy, the proxy that carried the owner's own request, the address to set `AGENTRUN_TRUSTED_PROXIES` to. A peer without the password can't put its own address there.
|
|
274
|
+
|
|
5
275
|
## 0.1.0-beta.32 (2026-11-10)
|
|
6
276
|
|
|
7
277
|
- Everything the agents make is now on the disk, apart from the data directory's own files. Each agent has one folder, `<data>/disk/agents/<agent>/` (its id in lower case, a dash, and 16 hex digits of its SHA-256). That folder holds the agent's learning folder (`learning/`) and its runs (`runs/<run>/`, each with `store/run.sqlite` and `work/`). store.sqlite and the server's files stay at the top of the data directory, as the control plane, and only the server opens them. A run's row in store.sqlite now holds its claim: `claim_epoch` and `claim_holder`. Each launch of the run's process bumps the epoch, with that process as the holder, and hands the process its epoch. Once the process is gone, the server takes the run back: it bumps the epoch, names itself the holder, and checkpoints the run's database. A run's database (pi-durable-disk's exclusive profile) is WAL, under an exclusive lock, with `wal_autocheckpoint = 0` and synchronous FULL. The run's process ends with its WAL in place: its store's close keeps the connection open (`keepWal`), and the process ends by process.exit, which never checkpoints. A test pins this node:sqlite behaviour, and its inverse: a close does checkpoint. The server reads a run's database with a fresh read-only, lock-free open (`vfs=unix-none`, EXCLUSIVE) per read. It opens the WAL only once the WAL holds a commit that SQLite's recovery would take: a frame with the header's salts, a valid chained checksum and a nonzero commit size. Until then it reads the database file alone, as an immutable file. A lock-free reader of a WAL whose first transaction is still being written recovers no frame, and its close removes that WAL, which loses the writer's rows. agentrun-pi exports that check as `walHasCommit`, and both readers use it. It never shows a read whose last entry is behind one it read before. It never opens the database for writing while a process holds the run. A data directory an earlier version wrote (runs under `<data>/runs/`, or a store of store version 1) is refused at start, in words, and nothing is migrated. pi-durable-agent's store is now store version 2. It names a run's folder by its row's agent (`runDir`, `runStorePath`), and adds `claimRun` and `runClaim`. A store of version 1 is refused. serve gains the local disk adapter: `mount`, `sync`, `unmount` and `revoke` for one machine, where a runner works in the folder itself and a revoke is the server's take-back of the claim. agentrun-pi's durable readers take `unlocked` (a fresh `vfs=unix-none` read, as the server's), which serve's reads of a run's decisions use. A run's folder is never made through a symbolic link: a link on the way to it refuses the run's start, and refuses an import that finishes a run its last import left without a transcript (pi-durable-agent `runFolders`).
|