@parcha/agentrun-serve 0.1.0-beta.34 → 0.1.0-beta.36
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 +263 -0
- package/README.md +339 -179
- package/dist/adapters.d.ts +15 -2
- package/dist/adapters.js +34 -2
- package/dist/agent-rows.d.ts +3 -1
- package/dist/agents-store.d.ts +2 -0
- package/dist/agents-store.js +25 -5
- package/dist/api-only.d.ts +2 -1
- package/dist/api-only.js +3 -1
- package/dist/archil-routes.d.ts +40 -7
- package/dist/archil-routes.js +167 -54
- package/dist/archil-settings.d.ts +90 -8
- package/dist/archil-settings.js +150 -14
- package/dist/attach-images.d.ts +15 -0
- package/dist/attach-images.js +59 -0
- package/dist/background.d.ts +0 -6
- package/dist/background.js +0 -28
- package/dist/bash-read-only.d.ts +13 -0
- package/dist/bash-read-only.js +77 -0
- package/dist/box-image.d.ts +1 -97
- package/dist/box-image.js +4 -284
- package/dist/box-paths.d.ts +2 -7
- package/dist/box-paths.js +7 -13
- package/dist/box-settings.d.ts +0 -11
- package/dist/box-settings.js +4 -29
- package/dist/browser-commands.js +1 -1
- package/dist/browser-computer.d.ts +47 -3
- package/dist/browser-computer.js +286 -18
- package/dist/browser-cost.d.ts +2 -2
- package/dist/browser-cost.js +6 -4
- package/dist/browser-person.d.ts +19 -2
- package/dist/browser-person.js +55 -6
- package/dist/browser-wait-ended.d.ts +23 -0
- package/dist/browser-wait-ended.js +42 -0
- package/dist/cap.d.ts +19 -44
- package/dist/cap.js +31 -77
- package/dist/cli.js +36 -27
- package/dist/computer-keys.d.ts +20 -10
- package/dist/computer-keys.js +36 -57
- package/dist/computer-routes.d.ts +1 -4
- package/dist/computer-routes.js +3 -5
- package/dist/computer-setting.d.ts +8 -5
- package/dist/computer-setting.js +91 -26
- package/dist/computer-view.d.ts +11 -2
- package/dist/computer-view.js +2 -1
- package/dist/computers.d.ts +54 -8
- package/dist/computers.js +101 -22
- package/dist/console/assets/index-BI4Byidu.js +550 -0
- package/dist/console/assets/index-C19gUF2n.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/content-filter.d.ts +7 -0
- package/dist/content-filter.js +23 -0
- package/dist/decision-cap.d.ts +7 -29
- package/dist/decision-cap.js +3 -94
- package/dist/docker-daemon.d.ts +2 -2
- package/dist/docker-daemon.js +2 -2
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +8 -5
- package/dist/explain.js +3 -1
- package/dist/faux-computers.js +4 -0
- package/dist/files.d.ts +1 -9
- package/dist/files.js +1 -9
- package/dist/github-connection.js +25 -7
- package/dist/github-faux.d.ts +26 -0
- package/dist/github-faux.js +76 -0
- package/dist/github.d.ts +28 -4
- package/dist/github.js +46 -10
- package/dist/gpu-words.d.ts +14 -0
- package/dist/gpu-words.js +21 -0
- package/dist/graph-served.d.ts +5 -3
- package/dist/graph-served.js +14 -6
- package/dist/graph-view.d.ts +2 -0
- package/dist/graph-view.js +29 -2
- package/dist/handed-values.d.ts +1 -1
- package/dist/handed-values.js +1 -1
- package/dist/harness-install.d.ts +60 -3
- package/dist/harness-install.js +322 -34
- package/dist/harness-opencode/harness.js +0 -1
- package/dist/harness-opencode/host/policy.js +2 -2
- package/dist/harness.js +1 -1
- package/dist/host-tools.d.ts +8 -9
- package/dist/host-tools.js +7 -7
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -2
- package/dist/key-refusal.d.ts +1 -1
- package/dist/key-refusal.js +2 -2
- package/dist/learn/check.d.ts +10 -2
- package/dist/learn/check.js +126 -8
- package/dist/learn/commit.d.ts +40 -6
- package/dist/learn/commit.js +164 -20
- package/dist/learn/folder.d.ts +11 -3
- package/dist/learn/folder.js +40 -16
- package/dist/learn/grade.d.ts +22 -2
- package/dist/learn/grade.js +127 -19
- package/dist/learn/index.d.ts +2 -2
- package/dist/learn/index.js +2 -2
- package/dist/learn/learning.sh +11 -13
- package/dist/learn/notes.d.ts +17 -3
- package/dist/learn/notes.js +19 -6
- package/dist/learn/reflect.d.ts +5 -2
- package/dist/learn/reflect.js +48 -32
- package/dist/learn/skills.d.ts +52 -5
- package/dist/learn/skills.js +104 -21
- package/dist/learned-nodes.d.ts +18 -0
- package/dist/learned-nodes.js +8 -0
- package/dist/learned-workflow.d.ts +27 -13
- package/dist/learned-workflow.js +110 -38
- package/dist/learning-cost.d.ts +79 -0
- package/dist/learning-cost.js +69 -0
- package/dist/learning-routes.d.ts +48 -2
- package/dist/learning-routes.js +99 -28
- package/dist/learning-run.d.ts +7 -5
- package/dist/learning-run.js +9 -6
- package/dist/learning-words.d.ts +3 -0
- package/dist/learning-words.js +6 -2
- package/dist/learning.d.ts +13 -28
- package/dist/learning.js +4 -18
- package/dist/llm.d.ts +4 -1
- package/dist/llm.js +4 -2
- package/dist/mcp-gateway.d.ts +6 -0
- package/dist/mcp-gateway.js +11 -1
- package/dist/mcp-probe.d.ts +8 -1
- package/dist/mcp-probe.js +62 -20
- package/dist/mcp-secret-writes.js +4 -0
- package/dist/mcp-servers-store.d.ts +12 -12
- package/dist/mcp-servers-store.js +8 -3
- package/dist/model.d.ts +8 -5
- package/dist/model.js +14 -6
- package/dist/openapi.d.ts +2 -0
- package/dist/openapi.js +236 -55
- package/dist/owner.d.ts +0 -1
- package/dist/owner.js +0 -2
- package/dist/pause.d.ts +2 -19
- package/dist/pause.js +5 -74
- package/dist/place-offers.d.ts +97 -0
- package/dist/place-offers.js +206 -0
- package/dist/place.d.ts +9 -13
- package/dist/place.js +22 -32
- package/dist/port-models.d.ts +12 -4
- package/dist/port-models.js +31 -9
- package/dist/print.d.ts +1 -8
- package/dist/print.js +1 -14
- package/dist/propose.d.ts +3 -0
- package/dist/propose.js +25 -19
- package/dist/run-cut.d.ts +5 -0
- package/dist/run-cut.js +19 -0
- package/dist/run-db.js +3 -3
- package/dist/run-launch.d.ts +18 -3
- package/dist/run-launch.js +11 -5
- package/dist/run-learning-served.d.ts +12 -1
- package/dist/run-manifest.d.ts +2 -2
- package/dist/run-manifest.js +2 -2
- package/dist/run-reads-over-store.d.ts +4 -2
- package/dist/run-reads-over-store.js +10 -8
- package/dist/run-secrets.js +3 -3
- package/dist/run-timeline-served.js +60 -38
- package/dist/run-view.d.ts +35 -16
- package/dist/run-view.js +64 -35
- package/dist/runnable.d.ts +6 -3
- package/dist/runnable.js +20 -4
- package/dist/runner/adapter-loop.d.ts +46 -5
- package/dist/runner/adapter-loop.js +381 -56
- package/dist/runner/adapter-run-spec.d.ts +46 -4
- package/dist/runner/adapter-run-spec.js +200 -45
- package/dist/runner/adapters/pi.d.ts +39 -3
- package/dist/runner/adapters/pi.js +124 -29
- package/dist/runner/beside.d.ts +8 -0
- package/dist/runner/beside.js +24 -2
- package/dist/runner/claim-secrets.d.ts +6 -0
- package/dist/runner/claim-secrets.js +15 -1
- package/dist/runner/cli-run-spec.d.ts +10 -0
- package/dist/runner/cli-run-spec.js +207 -64
- package/dist/runner/commands.d.ts +5 -1
- package/dist/runner/commands.js +3 -3
- package/dist/runner/conformance/harness.d.ts +1 -1
- package/dist/runner/conformance/harness.js +13 -10
- package/dist/runner/github-app.d.ts +7 -2
- package/dist/runner/github-app.js +46 -15
- package/dist/runner/harness-loops.d.ts +6 -1
- package/dist/runner/harness-loops.js +24 -1
- package/dist/runner/journal-kinds.d.ts +53 -7
- package/dist/runner/journal-kinds.js +29 -1
- package/dist/runner/learning-end.d.ts +15 -0
- package/dist/runner/learning-end.js +113 -20
- package/dist/runner/learning-factory.js +6 -2
- package/dist/runner/learning-loop.d.ts +75 -1
- package/dist/runner/learning-loop.js +215 -22
- package/dist/runner/learning-seed.d.ts +8 -0
- package/dist/runner/learning-seed.js +7 -1
- package/dist/runner/loop-contract.d.ts +12 -0
- package/dist/runner/loop-contract.js +6 -0
- package/dist/runner/loop.d.ts +5 -1
- package/dist/runner/loop.js +20 -0
- package/dist/runner/main.d.ts +9 -4
- package/dist/runner/main.js +38 -13
- package/dist/runner/mcp-claim.d.ts +7 -0
- package/dist/runner/mcp-claim.js +35 -2
- package/dist/runner/mcp-github.d.ts +15 -4
- package/dist/runner/mcp-github.js +55 -11
- package/dist/runner/mcp-run.d.ts +2 -0
- package/dist/runner/mcp-run.js +2 -0
- package/dist/runner/metrics.d.ts +18 -1
- package/dist/runner/metrics.js +81 -1
- package/dist/runner/model-route.d.ts +6 -0
- package/dist/runner/model-route.js +5 -2
- package/dist/runner/pr-checkout.d.ts +59 -0
- package/dist/runner/pr-checkout.js +176 -0
- package/dist/runner/reflect-hook.d.ts +1 -0
- package/dist/runner/reflect-hook.js +3 -3
- package/dist/runner/runner.js +136 -19
- package/dist/runner/spec-holds.d.ts +13 -3
- package/dist/runner/spec-holds.js +13 -10
- package/dist/runner/store-port.d.ts +4 -1
- package/dist/runner/store-secrets.js +17 -1
- package/dist/runner/subagent.d.ts +44 -0
- package/dist/runner/subagent.js +188 -0
- package/dist/runner/workflow-host.d.ts +25 -4
- package/dist/runner/workflow-host.js +26 -4
- package/dist/runner/workflow-loop.d.ts +9 -3
- package/dist/runner/workflow-loop.js +17 -10
- package/dist/runner/workflow-spec.d.ts +28 -13
- package/dist/runner/workflow-spec.js +247 -102
- package/dist/runs-over-store.d.ts +18 -7
- package/dist/runs-over-store.js +149 -31
- package/dist/seal-key.d.ts +0 -2
- package/dist/seal-key.js +0 -2
- package/dist/sealing.js +1 -2
- package/dist/secret-cut.d.ts +1 -1
- package/dist/secret-cut.js +1 -1
- package/dist/server-lock.js +4 -5
- package/dist/server.d.ts +49 -63
- package/dist/server.js +429 -230
- package/dist/stop-signals.d.ts +4 -2
- package/dist/stop-signals.js +5 -3
- package/dist/store/agent-body.d.ts +14 -3
- package/dist/store/agent-body.js +22 -8
- package/dist/store/deadline.d.ts +18 -0
- package/dist/store/deadline.js +49 -0
- package/dist/store/index.d.ts +3 -3
- package/dist/store/index.js +2 -2
- package/dist/store/journal/storage.js +2 -1
- package/dist/store/postgres/connection.d.ts +4 -0
- package/dist/store/postgres/connection.js +64 -13
- package/dist/store/postgres/migrations/0004_runs_outcome_stop_or_cancel.sql +11 -0
- package/dist/store/schema.d.ts +2 -1
- package/dist/store/schema.js +11 -8
- package/dist/store/seal.d.ts +13 -0
- package/dist/store/seal.js +19 -0
- package/dist/store/sqlite/connection.d.ts +5 -0
- package/dist/store/sqlite/connection.js +88 -82
- package/dist/store/sqlite/run-patch.d.ts +18 -2
- package/dist/store/sqlite/run-patch.js +31 -2
- package/dist/store/sqlite/store.js +65 -11
- package/dist/store/store.d.ts +62 -12
- package/dist/store/store.js +22 -1
- package/dist/store-reads/analytics.js +3 -2
- package/dist/store-reads/cap.d.ts +1 -3
- package/dist/store-reads/cap.js +8 -6
- package/dist/store-reads/decisions.d.ts +2 -2
- package/dist/store-reads/decisions.js +3 -6
- package/dist/store-reads/journal.js +83 -15
- package/dist/store-reads/learning.d.ts +73 -3
- package/dist/store-reads/learning.js +232 -9
- package/dist/store-reads/runs.d.ts +6 -4
- package/dist/store-reads/runs.js +17 -10
- package/dist/store-reads/stats.js +5 -1
- package/dist/store-view.d.ts +15 -1
- package/dist/store-view.js +88 -29
- package/dist/template-eval.js +2 -1
- package/dist/templates.d.ts +73 -4
- package/dist/templates.js +113 -23
- package/dist/timeline/timeline.d.ts +11 -1
- package/dist/timeline/timeline.js +19 -4
- package/dist/tool-blurbs.js +1 -0
- package/dist/tool-budget.d.ts +26 -0
- package/dist/tool-budget.js +56 -0
- package/dist/tool-gate.d.ts +13 -3
- package/dist/tool-gate.js +15 -7
- package/dist/tool-plane.d.ts +42 -29
- package/dist/tool-plane.js +64 -27
- package/dist/tools.d.ts +53 -39
- package/dist/tools.js +174 -79
- package/dist/trigger-signatures.d.ts +1 -0
- package/dist/trigger-signatures.js +3 -1
- package/dist/triggers.d.ts +3 -3
- package/dist/triggers.js +2 -2
- package/dist/turn-end.d.ts +0 -3
- package/dist/turn-end.js +0 -3
- package/dist/uploads.d.ts +28 -5
- package/dist/uploads.js +82 -9
- package/dist/usage-lines.d.ts +1 -1
- package/dist/usage.d.ts +1 -47
- package/dist/usage.js +3 -82
- package/dist/validate.d.ts +8 -0
- package/dist/validate.js +40 -3
- package/dist/webhooks.d.ts +2 -1
- package/dist/webhooks.js +5 -2
- package/dist/workflow/decision-recovery.d.ts +23 -0
- package/dist/workflow/decision-recovery.js +80 -0
- package/dist/workflow/decisions.d.ts +134 -0
- package/dist/workflow/decisions.js +46 -0
- package/dist/workflow/host-session.d.ts +5 -0
- package/dist/workflow/host-session.js +85 -0
- package/dist/workflow/host-tools.d.ts +3 -0
- package/dist/workflow/host-tools.js +3 -0
- package/dist/workflow/node-runner.d.ts +112 -0
- package/dist/workflow/node-runner.js +270 -0
- package/dist/workflow/node.d.ts +88 -0
- package/dist/workflow/node.js +99 -0
- package/dist/workflow/operator-error.d.ts +4 -0
- package/dist/workflow/operator-error.js +4 -0
- package/dist/workflow/pi-versions.d.ts +9 -0
- package/dist/workflow/pi-versions.js +8 -0
- package/dist/workflow/readers.d.ts +36 -0
- package/dist/workflow/readers.js +145 -0
- package/dist/workflow/record-file.d.ts +10 -0
- package/dist/workflow/record-file.js +56 -0
- package/dist/workflow/record-tool.d.ts +76 -0
- package/dist/workflow/record-tool.js +126 -0
- package/dist/workflow/record.d.ts +151 -0
- package/dist/workflow/record.js +401 -0
- package/dist/workflow/run-error.d.ts +16 -0
- package/dist/workflow/run-error.js +26 -0
- package/dist/workflow/runner.d.ts +6 -0
- package/dist/workflow/runner.js +240 -0
- package/dist/workflow/store.d.ts +23 -0
- package/dist/workflow/store.js +242 -0
- package/dist/workflow/task.d.ts +133 -0
- package/dist/workflow/task.js +411 -0
- package/dist/workflow/thinking.d.ts +3 -0
- package/dist/workflow/thinking.js +7 -0
- package/dist/workflow/tool-context.d.ts +21 -0
- package/dist/workflow/tool-context.js +13 -0
- package/dist/workflow/types.d.ts +126 -0
- package/dist/workflow/types.js +1 -0
- package/dist/workflow/wal.d.ts +11 -0
- package/dist/workflow/wal.js +106 -0
- package/dist/workflow-run.d.ts +1 -1
- package/dist/workspace/agent-computer.d.ts +137 -0
- package/dist/workspace/agent-computer.js +292 -0
- package/dist/workspace/archil-claim.d.ts +13 -2
- package/dist/workspace/archil-claim.js +22 -13
- package/dist/workspace/archil-disk.d.ts +10 -1
- package/dist/workspace/archil-disk.js +4 -0
- package/dist/workspace/archil-disks.d.ts +49 -0
- package/dist/workspace/archil-disks.js +185 -0
- package/dist/workspace/archil-exec.d.ts +12 -2
- package/dist/workspace/archil-exec.js +18 -3
- package/dist/workspace/archil-mount-credential.d.ts +20 -4
- package/dist/workspace/archil-mount-credential.js +13 -4
- package/dist/workspace/archil.d.ts +2 -2
- package/dist/workspace/archil.js +25 -5
- package/dist/workspace/attach.js +2 -0
- package/dist/workspace/computer-deps.d.ts +18 -11
- package/dist/workspace/computer-deps.js +64 -40
- package/dist/workspace/computer-for-claim.d.ts +47 -9
- package/dist/workspace/computer-for-claim.js +236 -24
- package/dist/workspace/computer-janitor.d.ts +3 -2
- package/dist/workspace/computer-janitor.js +43 -9
- package/dist/workspace/computer-ledger.d.ts +3 -8
- package/dist/workspace/computer-ledger.js +7 -3
- package/dist/workspace/computer-providers.d.ts +5 -3
- package/dist/workspace/computer-providers.js +11 -9
- package/dist/workspace/hands.d.ts +5 -2
- package/dist/workspace/hands.js +4 -3
- package/dist/workspace/index.d.ts +5 -4
- package/dist/workspace/index.js +2 -1
- package/dist/workspace/local.d.ts +3 -0
- package/dist/workspace/local.js +9 -0
- package/dist/workspace/paths.js +3 -2
- package/dist/workspace/pi-env.d.ts +4 -0
- package/dist/workspace/pi-env.js +3 -2
- package/dist/workspace/resolve-computer.d.ts +48 -12
- package/dist/workspace/resolve-computer.js +88 -19
- package/dist/workspace/run-disk.d.ts +34 -0
- package/dist/workspace/run-disk.js +91 -0
- package/dist/workspace/run-tools.d.ts +6 -4
- package/dist/workspace/run-tools.js +17 -9
- package/dist/workspace/server-run-workspace.d.ts +3 -2
- package/dist/workspace/server-run-workspace.js +17 -4
- package/dist/workspace/workspace.d.ts +5 -0
- package/dist/workspace.d.ts +0 -3
- package/dist/workspace.js +2 -15
- package/package.json +11 -16
- package/skills/agentrun-serve/SKILL.md +1 -1
- package/templates/README.md +11 -8
- package/templates/code-review/agent.md +27 -11
- package/templates/code-review/evals/clean-refactor/graders/coverage.md +4 -0
- package/templates/code-review/evals/clean-refactor/graders/risk.md +5 -0
- package/templates/code-review/evals/injection/graders/ignores.md +1 -1
- package/templates/code-review/evals/mentions-defused/case.yaml +15 -0
- package/templates/code-review/evals/mentions-defused/fixtures/github-mcp.json +254 -0
- package/templates/code-review/evals/mentions-defused/graders/no-pings.md +16 -0
- package/templates/code-review/evals/mentions-defused/graders/posted-a-review.md +5 -0
- package/templates/code-review/evals/mentions-defused/graders/schema.md +5 -0
- package/templates/code-review/evals/mentions-defused/prompt.md +10 -0
- package/templates/code-review/evals/never-flag/case.yaml +3 -0
- package/templates/code-review/evals/never-flag/graders/only-p0.md +4 -0
- package/templates/code-review/evals/never-flag/graders/schema.md +5 -0
- package/templates/code-review/evals/never-flag/prompt.md +30 -0
- package/templates/code-review/evals/null-name/graders/finds.md +1 -1
- package/templates/code-review/evals/off-by-one/graders/finds.md +1 -1
- package/templates/code-review/evals/off-by-one/graders/no-repo-reads.md +6 -5
- package/templates/code-review/evals/re-review/graders/resolves.md +1 -1
- package/templates/code-review/evals/re-review/prompt.md +1 -1
- package/templates/code-review/evals/re-review-open/case.yaml +3 -0
- package/templates/code-review/evals/re-review-open/graders/schema.md +5 -0
- package/templates/code-review/evals/re-review-open/graders/stays-open.md +4 -0
- package/templates/code-review/evals/re-review-open/prompt.md +27 -0
- package/templates/code-review/evals/repo-rule/graders/cites.md +1 -1
- package/templates/code-review/evals/two-defects/case.yaml +3 -0
- package/templates/code-review/evals/two-defects/graders/both.md +4 -0
- package/templates/code-review/evals/two-defects/graders/schema.md +5 -0
- package/templates/code-review/evals/two-defects/prompt.md +25 -0
- package/templates/code-review/findings.schema.json +131 -27
- package/templates/code-review/rules/CODEREVIEW.md +76 -0
- package/templates/code-review/skills/review/DEEP.md +130 -0
- package/templates/code-review/skills/review/REVIEWER.md +116 -0
- package/templates/code-review/skills/review/SKILL.md +104 -154
- package/templates/kyb/evals/clean-public-company/graders/no-opensanctions.md +5 -0
- package/templates/kyb/evals/opensanctions-on/case.yaml +5 -0
- package/templates/kyb/evals/opensanctions-on/graders/licence-and-evidence.md +18 -0
- package/templates/kyb/evals/opensanctions-on/graders/schema.md +5 -0
- package/templates/kyb/evals/opensanctions-on/prompt.md +11 -0
- package/templates/release-notes/agent.md +11 -0
- package/dist/box/record.d.ts +0 -6
- package/dist/box/record.js +0 -41
- package/dist/box/sweep.d.ts +0 -53
- package/dist/box/sweep.js +0 -193
- package/dist/box-egress-vm.d.ts +0 -118
- package/dist/box-egress-vm.js +0 -354
- package/dist/box-egress.d.ts +0 -105
- package/dist/box-egress.js +0 -256
- package/dist/box-relay-vm.d.ts +0 -84
- package/dist/box-relay-vm.js +0 -437
- package/dist/box-relay.d.ts +0 -36
- package/dist/box-relay.js +0 -207
- package/dist/boxes.d.ts +0 -109
- package/dist/boxes.js +0 -249
- package/dist/budget.d.ts +0 -76
- package/dist/budget.js +0 -204
- package/dist/console/assets/index-RPHGlXmM.js +0 -540
- package/dist/console/assets/index-opTN5Naq.css +0 -1
- package/dist/daytona-api.d.ts +0 -10
- package/dist/daytona-api.js +0 -20
- package/dist/egress-proxy.d.ts +0 -45
- package/dist/egress-proxy.js +0 -416
- package/dist/egress-table.d.ts +0 -24
- package/dist/egress-table.js +0 -165
- package/templates/code-review/rules/REVIEW.md +0 -41
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,269 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.1.0-beta.36 (2026-11-13)
|
|
6
|
+
|
|
7
|
+
- `PUT /v2/workspace/archil` no longer accepts `diskId`; sending it is a 422. Drop `diskId` and send `{ region, s3Url, image?, keys? }`. In Archil mode there is no server-wide disk anymore: each agent gets its own (#2261). Before you upgrade: in Archil mode, an agent's files from before this release stay on the old server disk at Archil; the agent starts on a new disk of its own.
|
|
8
|
+
- **One disk per agent.** The disk is made on the agent's first run that uses it, in the account key's region, named `agentrun-<server id>-i-<agent id>`. Existing agents get theirs the same way. A run's mount credential is minted on its run's disk, so Archil refuses the token on any other agent's disk. `GET /v2/agents/{agent_id}/archil` shows the agent's disk.
|
|
9
|
+
- **Disk named at launch.** A run's start can name another disk: `"archil_disk": {"disk_id": "dsk-…"}` on `POST /v2/agents/{agent_id}/runs` and on the inline `POST /v2/runs`, for example one disk per customer. The id is the one Archil returned when the disk was made. agentrun never makes, renames or removes that disk. The server reads it at Archil before the run is made: a disk in another region, or one that doesn't exist, is a 422 that names the region, and no run is made.
|
|
10
|
+
- **Disk survives a restart.** The run's launch record keeps the disk it used, so every claim, revoke and reclaim acts on that disk after a restart.
|
|
11
|
+
- **Plan limit.** When Archil's plan disk limit refuses a new disk, the run fails with "your Archil plan allows N disks; upgrade or delete an agent". There is no shared-disk fallback.
|
|
12
|
+
- **Removing a disk.** `DELETE /v2/agents/{agent_id}/archil` deletes an agent's own disk at Archil once no live run of any agent is on it. The agent must be archived, unless it is an inline run's agent, which is never archived here.
|
|
13
|
+
- **API-only mode.** An API-only server (`AGENTRUN_API_ONLY=1`) serves both agent disk routes.
|
|
14
|
+
- The browser tool has one stack: whether the agent's computer is a browser or the tool plane picks the vendor, every session is a browser computer of the computer registry's providers, made at the tool's call under the run's labels, and pi-browser's raw-CDP driver (`cdpDriver()`) drives it. Stagehand drives no run's browser now. Breaking: Browserbase and Kernel browsers now refuse run code and file uploads (browser_upload), and their snapshot is the raw-CDP list; every browser computer uses one driver. Breaking: pi-browser's `./providers/browserbase` and `./providers/kernel` exports and its `@browserbasehq/sdk` peer dependency are gone (a hosted browser is a browser computer provider of `@parcha/agentrun-computer`), and so are Browserbase's and Kernel's `create(spec, { settings })` vendor-field bag and its `BrowserbaseSessionSettings` and `KernelBrowserSettings` types (put a session's options in `spec.browser`).
|
|
15
|
+
- `@parcha/agentrun-computer`: a browser's own options ride the spec, `spec.browser` (`viewport`, `profile: { pointer, save }`, `stealth`, `headless`), and `capabilities().browser` declares what a provider's sessions offer (`timeout`, `profiles: { settleMs }`, `stealth`, `headless`, `downloads: { path }`). `check()` refuses an option the provider does not declare, in words. Browserbase and Kernel gain the optional `profiles { create, remove }` member, and Browserbase `downloads { list, read }`. Local Chrome declares `{ timeout: "wall-clock" }` and opens its window at the spec's viewport.
|
|
16
|
+
- `@parcha/pi-browser`: `ProviderCaps` is `profiles`, `sharedBrowser`, `settings`, `fixedSession` and `navigationAllow`; the session vault keeps a local Chrome's sessions alone. `cdpCall` is exported from the package root.
|
|
17
|
+
- agentrun-serve: on Browserbase and Kernel, the browser tool's `run` now takes actions only, as it does on Local Chrome (code is refused in words, and navigation is a `goto` action), its `snapshot` is the raw-CDP driver's, and `browser_upload` is refused (the driver sets no file input). A session carries the run's labels and its custody tag, as an agent's browser computer's does.
|
|
18
|
+
- The `code-review` template is 0.3.0: eight independent reviewers read the pull request on a read-only checkout, and the agent merges, verifies and posts what they find. Its answer ranks each finding `P0`, `P1` or `P2` and scores the change's risk from 1 (safe to merge) to 5 (do not merge). The manifest asks for `checkout: pull_request` (AgentRun fetches the PR into `repo/` before the first turn, with refs `pr/head`, `pr/base` and `pr/merge-base`), `computer: [shell, none]`, `tools: [read, bash, subagent]` with `tool_policy: { bash: read-only }`, thinking `medium` (was `low`), and `budget: { per_run_usd: 0.50, tool_calls: 90 }` (was $2.00 a run). Where there is no shell, the agent is made with no computer and without bash, the apply says so, and its reviewers read the change through the GitHub MCP tools. A reader of its findings JSON changes: `severity` (`important`, `nit`, `pre-existing`) is gone, replaced by `priority` and a `pre_existing` flag; `claim` is `failure`, which ends with `Evidence: path:line "text"`, a line a command in the run printed; each finding has a `title`; the answer adds `risk_score`, `risk_reasons`, a `coverage` line per reviewed file and the `dropped` candidates with their reason (free text; `limit` past the cap of 8 merged findings, `unverified` when a printed line contradicts one).
|
|
19
|
+
- One `subagent` turn starts five quick reviewers (`REVIEWER.md`, thinking `medium`, 30 tool calls each) and three deep ones (`DEEP.md`, thinking `high`, 90 tool calls each), all on the agent's own model with a fresh context. A deep reviewer maps the change first (each changed file, its callers, its tests and its history before the PR), then writes one line per hunk naming the input it tried and where it breaks or holds; the third deep reviewer also checks every reader, writer and test of each name the change touches outside the diff. A reviewer drops a candidate only as a duplicate or under a never-flag rule it cites; a break the change causes in code it didn't write is the change's finding, and one it can't fully show is kept with `Not shown:` at lower confidence. The agent merges findings at the same path, within 10 lines and with the same failure, prints each kept finding's cited lines to check them (it drops one only when a line it printed contradicts it, never for intent, scope or reachability), ranks by priority and by how many reviewers raised it, and posts one review.
|
|
20
|
+
- Every reviewer reads the template's own `rules/CODEREVIEW.md` (a checklist, priority examples, what never to flag without evidence), then the repository's `docs/CODEREVIEW.md` (or `CODEREVIEW.md`) from the base, which adds to it; without one, `REVIEW.md`. A repository may add `.agents/skills/code-review-knowledge/SKILL.md`, its invariants by path glob.
|
|
21
|
+
- The posted review is always one COMMENT review. Its body leads with the `Risk n/5` line and its reasons (Greptile's confidence is 6 minus the risk), then the summary and the findings. Each inline comment starts with its own priority and ends with its fingerprint in an HTML comment, which a re-review reads to never post an open finding twice; a finding still open counts toward the risk score.
|
|
22
|
+
- Runs execute on computers only: the old box stack is gone from the server, and `@parcha/pi-transport` with it.
|
|
23
|
+
- `@parcha/pi-transport` is no longer built or published, and the server no longer depends on it. A program that imports it keeps the last published version (0.1.0-beta.33) or moves to `@parcha/agentrun-computer`.
|
|
24
|
+
- A Daytona or Modal box in `capabilities.places.boxes` now reports `network: none`, with a `network_reason`, whatever `AGENTRUN_BOX_ALLOW` names, because their computers are never made with a host list. An agent on Daytona or Modal that needs a host uses `web_fetch`, or a Docker place.
|
|
25
|
+
- The server no longer builds or pulls an `agentrun-box` image at its start (a fresh server spent up to 10 minutes on an image no run used). A Docker computer builds its own image on its first run, and that run's timeline shows it. An `agentrun-box:*` image left on a Docker host can be removed with `docker image rm`.
|
|
26
|
+
- A box's `state` is never `preparing` now, and the start no longer prints the box image lines. A client that waited on `preparing` waits on nothing: a box is `ready` or `unavailable`.
|
|
27
|
+
- Daytona and Modal are offered when their computer provider's required keys are set (the server's environment, or Settings → Computers), and nothing is asked of either vendor at the start. A key the vendor refuses now fails the run's computer start, in the vendor's words. Docker is still probed with `docker version`.
|
|
28
|
+
- Model defaults move to the current models. The OpenAI default (and OpenRouter's, for pi, codex and opencode) is now gpt-6.1-sol, where OpenRouter's was gpt-6-sol. The Claude Agent adapter's default is now claude-sonnet-5-5 (was claude-sonnet-4-5) and the Codex adapter's is openai/gpt-6-luna (was openai/gpt-5.4-mini). A host that relied on a default names its model; the READMEs' examples name the current ones.
|
|
29
|
+
- A learning run's merge record keeps each item's final decision (kept, held for the owner's OK, or left out, with its words), and a run's learning end (`GET /v2/runs/{id}/learning`, the run view) reads its notes, skills and workflow drafts from it alone, so a note the merge left out is never listed as learned or waiting. A merge recorded before this upgrade has no such record, so its learning end lists none of them: no `verdict`, `learned`, `pending`, `skills` or `workflows`.
|
|
30
|
+
Upgrading: nothing to do; a run that merged before the upgrade reads as merged, with no item decisions and no `skills` or `workflows` listed.
|
|
31
|
+
- An agent can learn notes and skills without learned workflows. Its definition's `learning` is now `true`, `false` or `"notes"`. `true` still learns notes, skills and learned workflows. `"notes"` learns notes and skills only: a run is given its notes and skills, never a learned workflow (no `learned_workflow` tool), and its end-of-run turn asks for no workflow draft. A draft it gives anyway is left out by the checks (rule `workflow`), and its notes and skill go on. A run's launch records `notesOnly` for such a run. The console's editor shows the two choices under "Learns from its runs": "Notes, skills and workflows" and "Notes and skills only".
|
|
32
|
+
Upgrading: a client that reads `definition.learning` handles the value `"notes"` beside `true` and `false`.
|
|
33
|
+
- A learned skill or workflow draft whose front matter can't be read (it reads no way, or its status is none the host writes) still reads `retired`, so no run is given it, but the agent's learning view no longer says a run retired it. Its `retired` is now `{ at, by: "host", why: "unreadable" }`, and the console's card reads "Not read: its front matter can't be read; fix the file to use it" in place of "Retired by a run". Fixes #2444.
|
|
34
|
+
Upgrading: a client that reads `retired.by` from `GET /v2/agents/{id}/learning` handles the new value `host` (with `why: "unreadable"`) beside `person` and `run`.
|
|
35
|
+
- Three fixes from a live QA run:
|
|
36
|
+
- **Docker janitor.** The Docker provider's `list()` and `sweep()` no longer fail on a container that has the computer label but was made with no `--mount`. Docker omits `HostConfig.Mounts` when it is empty, and the list template read it as a required key, so one such container failed the janitor's whole pass ("template parsing error … map has no entry for key \"Mounts\"").
|
|
37
|
+
- **Modal with an Archil folder.** A Modal sandbox with the run's Archil folder is no longer refused at Modal for its tags (Modal caps a sandbox's tags at 512 bytes, names and values together; a 20-character agent id came to 533). The spec tag now records only what the provider can't infer. That works up to an agent id of 128 characters on the default image. A spec whose tags would still be over 512 bytes is refused at `check()` in words that name each tag's size, before anything is sent to Modal.
|
|
38
|
+
- **Browser tool on a browser computer.** An agent whose computer is a browser (Browserbase on the keys saved in Settings → Computers, or Local Chrome) runs its `browser` tool on that computer. Its runs no longer get a 409 that asks for a Tool keys entry, and the run's Screen tab shows that computer.
|
|
39
|
+
|
|
40
|
+
Who breaks: a Modal computer with an Archil folder made by an earlier release records its mount in the old tag format. `attach` refuses it and `list` reports its mount in words. The janitor still ends it at its deadline, or delete it.
|
|
41
|
+
- A person's stop ends the turn, not the run, and a message goes on from any run the person may still talk to:
|
|
42
|
+
|
|
43
|
+
- **Breaking for a SQLite data directory.** The store's SQLite schema is now version 6 (a run's outcome tells a person's stop from a cancel). A server or runner of this release refuses a data directory an earlier release set up, with `SchemaVersionUnknown`: start this release on a new, empty data directory and add your agents, MCP servers, keys and sign-ins there again, or keep the old directory with the earlier release. A Postgres store migrates itself (migration 0004).
|
|
44
|
+
- **A stopped run reads `input_required` and `idle`.** A run a person stopped reads waiting on their next message, with nothing pending, not `cancelled`. A message runs as its next turn, and the run ends on that turn's answer. A cancel still ends the run for good (`cancelled`, 409 to a message).
|
|
45
|
+
- **A message to a completed agentic run is a follow-up turn.** The console offers a follow-up on a completed run, and the server now takes it (202, mode `follow_up`) instead of answering 409. A failed run, a cancelled run, a workflow run and an imported run still answer 409 in their own words.
|
|
46
|
+
- **A message sent while a run is finishing runs after its end.** A message that arrives after the run's answer, while it writes its end, opens the completed run again with that message as its next turn, never lost and never answered by the end-of-run step.
|
|
47
|
+
- **A stop while an approval waits and a later turn runs** withdraws the call and cuts the turn; the run reads `input_required` and idle, and a later answer is 409.
|
|
48
|
+
- **An OpenCode MCP tool is held to its own setting.** The runner's tool gate now knows the run's MCP servers, so an agent's `mcp:<server>/<tool>` setting applies to OpenCode's own name for that tool (`<server>_<tool>`), where before the call fell back to ask.
|
|
49
|
+
- `@parcha/agentrun-pi`, `@parcha/pi-durable-disk` and `@parcha/pi-durable-agent` are no longer built or published: the server runs workflows, keeps its timeline and confines a run's files on its own code.
|
|
50
|
+
- A program that imports one of them keeps its last published version (0.1.0-beta.35). The server needs none of them, and installs none.
|
|
51
|
+
- `capabilities.runtimes` is `["runner"]`: the server's runners run every run, over its one store. It said `["pi-durable-disk"]`. The field stays informational: a run never names it.
|
|
52
|
+
- `preparing` is no longer sent: `capabilities.places.boxes[].state` is `ready` or `unavailable`, and the API's enum drops `preparing`. A client that checked for it removes that branch; the console's box image banner is gone with it.
|
|
53
|
+
- `ScreenshotOptions.scale` (and `FakeScreenshotOptions.scale`) is a number, the fraction of the device-pixel capture to take, in place of `"css" | "device"`; a driver that passed `scale: "css"` passes `1 / devicePixelRatio`, and a custom `PageDriver.screenshot` honors a number below 1, else `captureWithinBudget` throws `ScreenshotBudgetError` for a capture over budget that it does not take smaller.
|
|
54
|
+
|
|
55
|
+
A screenshot over the 2,000 px long edge now shrinks to fit (CDP `clip.scale`) before its JPEG quality drops, so a long page on a device scale of 2 (stripe.com/pricing, a 2576x1248 viewport) comes back as a 1977x969 viewport in place of `ScreenshotBudgetError`; a full page whose fit would leave its short edge under 600 px is taken as the viewport, and the error is left for a browser that gives no capture that fits. On the runner, an image block in a tool's answer whose data is a PNG, JPEG, GIF or WebP of the type it names, with no held key in its bytes, is no longer cut to `[redacted]` by the run's key cut (any other `data` is cut as before) (which sent the model a `data:image/png;base64,[redacted]` URL and failed the run with a 400), and every image a model request carries is checked where it is attached: one with an unknown type, no data, data that is not base64, bytes of another type or a header that does not say its size goes as `[the image could not be attached: <why>]`.
|
|
56
|
+
- `@parcha/agentrun-serve` no longer exports `ASK_TOOL`, `ToolEntry`, `FauxHelpers`, `TokenSource` or `banner`, which nothing outside the server called. A program that imported one defines its own: `ASK_TOOL` is the string `"ask_person"`, and `banner` built the CLI's start-up lines. `startServe`, `serveWithRunner`, `capabilities`, `TOOLS` and `BOUND_TOOLS` are unchanged.
|
|
57
|
+
- A workflow run's decision receipts are read and written only in the keyed form (one `agentrun.decisions` document per receipt, with `agentrun.decisions.count`). The old single-document form, where one `agentrun.decisions` document held a `receipts` list, is no longer read or continued: a run store written in it shows no decisions. Nothing writes that form any more, so an upgrader with such a store has nothing to do but start new runs. Also gone, with no caller left: the decision writer (`createDecisionWriter`), `committedRoutes`, `lintRecordSchema`, `resultBlocks` and `ToolResultKeyError`, `toolRefusal`, the per-run door-token names in `files.ts`, and a set of unused imports and locals in `server.ts` and the runner.
|
|
58
|
+
- The server's workflow engine moved in from `@parcha/agentrun-pi`, with no fallback to it:
|
|
59
|
+
- `@parcha/agentrun-serve` no longer depends on `@parcha/agentrun-pi`. If your code imported agentrun-pi because the server brought it in, add `@parcha/agentrun-pi` to your own dependencies.
|
|
60
|
+
- The research example (`npm run demo:research -- --live`) no longer falls back to a saved Pi default for its agent steps. Pass `--config ./your-adapters.mjs` with a module that default-exports `{ runJudge, runNode }`; `examples/pi-config.mjs` is gone.
|
|
61
|
+
- `ServeOptions.messageOrigin` is gone. Nothing read it since runs moved to the runner, so a message posted to a run never took the origin it returned. Code that passed it drops the option; the only message the server writes with an origin is a raised cap's follow-up, which the runner marks itself.
|
|
62
|
+
- `ServeOptions.beforeAbort`, `beforeReopenLaunch`, `hostMemory` and `onRunLoad` are gone. They were test hooks from the time runs ran in the server's own processes, and nothing has read them since runs moved to the runner. Code that passed them drops them; none of them did anything.
|
|
63
|
+
- The Archil settings that turn Mode 2 on can now come from the server's environment, for a server no owner's session can save them on (API only, or `AGENTRUN_ACCOUNTS=0` reached beyond loopback): `AGENTRUN_ARCHIL_REGION` and `AGENTRUN_ARCHIL_S3_URL` together, and `AGENTRUN_ARCHIL_IMAGE` for an exec image pinned by digest, beside the account key in `ARCHIL_API_KEY`. Each agent's disk is then made on its first run, as with saved settings. Each value is checked as `PUT /v2/workspace/archil` checks it, and one of the region and S3 URL without the other, or a value the PUT would refuse, stops the server's start (and a runner's, `agentrun-serve runner`) in words naming each variable. Set, they win over saved settings and nothing is written to the store: `GET /v2/workspace/archil` says where the settings come from (`source`: `env`, or `console` for saved ones), and `PUT` and `DELETE` are `409 key_set_by_server` while the environment sets them. Unset, nothing changes. A runner started on its own reads them from its own environment, as it reads `ARCHIL_API_KEY`. The server's read-only view of a run's files now reads the server's environment too, so it finds `ARCHIL_API_KEY` there as a run does.
|
|
64
|
+
- Daytona GPU computers can be made from our own GPU snapshot. `box/build-daytona.py --gpu H100` builds box/Dockerfile (root, our helper) as the snapshot `agentrun-archil-gpu-h100-<recipe hash>` with one H100, in region earth, and `DaytonaProvider`'s `gpuSnapshot` option names it (the conformance module reads `COMPUTER_DAYTONA_GPU_SNAPSHOT`). Its GPU is the one its name says. A Daytona GPU computer still takes no mount, since Daytona's GPU host gives no `/dev/fuse`. An Archil computer's preflight now reads `/dev/fuse`, and refuses without it in words: "this computer has no /dev/fuse, so the Archil folder can't be mounted". `GpuCapability.unmounted` carries a provider's own reason its GPU computers take no mount, and checkGpu gives it. serve refuses a GPU computer in Mode 2 in one sentence with that reason and what to use instead, the same at the save, at the run's start, at the claim and in Settings' `gpu.why`. Daytona: "A Daytona GPU computer can't mount this run's folder: Daytona's GPU runtime gives it no /dev/fuse. Use a GPU computer from the library, or this sandbox without a GPU." Modal: "A Modal GPU computer can't mount this run's folder yet: Archil's FUSE mount isn't proven on Modal's gVisor runtime (#2279). Use a GPU computer from the library, or this sandbox without a GPU."
|
|
65
|
+
- An MCP server can take its credential from each run: the owner saves it with `auth: {type: "per_run", headers?}` (it keeps none; `headers` only list its tools at the save; the save keeps no secret, so the API token may make it) and hand each run its own as `mcp_auth: {"<server>": {"headers": {...}}}` on `POST /v2/runs`, `POST /v2/agents/{agent_id}/runs` and `POST /v2/runs/{run_id}/messages`. The run's calls of that server carry those headers, to the origin the server had at the run's start only. The credential is sealed into the run's launch record for the run's life (a resume, a restart or a lost lease uses it again), erased by the write that ends the run, and never in the run's saved body, timeline, view, a log line or an `Idempotency-Key`'s fingerprint; a message's `mcp_auth` replaces it in the message's own write, so the turn it starts uses the new one. A name that is not a saved per_run server is 422 at `mcp_auth.<server>` for new work; a retry its `Idempotency-Key` already answered replays that answer even when the server has since changed or been deleted. A run handed none for a server it calls has those calls refused unsent, in words.
|
|
66
|
+
- A model node says which model it ran on, so a node on a cheaper tier reads as cheaper:
|
|
67
|
+
- A learned workflow's call: each model node on its `tool_result` row's `learned_nodes` carries `model` (the model the run's route sent it to) and `tier` (when the node named one), and the Timeline reads "extract · fast · gpt-5-mini", or "extract · gpt-5-4-mini" for a node of no tier.
|
|
68
|
+
- A workflow run's graph (`GET /runs/{id}/graph`): each model node that ran carries `model`, and `tier` when it named one (the run keeps each tier's model as it resolves it); a decision node's `model` is its provider's. The console's graph card and node details read the same.
|
|
69
|
+
- A call node never carries a model.
|
|
70
|
+
Upgrading: nothing to do; a run from before this keeps no models, and its nodes read their kind alone.
|
|
71
|
+
- A phone computer now says its Android version, and a server with no adb says so. The deploy image carries adb from Android platform-tools r35.0.2 (amd64; the zip is pinned by sha256).
|
|
72
|
+
- The phone's hello carries `osVersion`, the Android release read with `getprop ro.build.version.release` at connect, beside the ABI. Once a run's computer is connected, the run's timeline has a phase row with what the computer says it is: `The phone is ready: Android 15 (arm64), from Phone harness.` A sandbox or desktop gets the same row, with its OS and architecture.
|
|
73
|
+
- A provider descriptor can name a program it needs on the server's PATH (`hostCommand`: the command, what installs it, and the machines it is built for), and the kind registry's entry carries it. The phone's descriptor names adb. The server looks for it at its start. When it is missing, Settings → Computers shows the provider as not ready, the claim refuses it, and a run is refused at its start, all in the same words: `adb isn't installed on this server (no adb command on PATH): install Android platform-tools, then restart AgentRun`.
|
|
74
|
+
- On arm64 Linux, where Google builds no platform-tools and the arm64 image has none, the words say what the phone needs instead: `this server's image has no adb for arm64 (Android platform-tools has no Linux build for arm64): Phone harness needs an x86-64 server`.
|
|
75
|
+
- An agent can start each run in a checkout of the pull request that started it, without ever holding a GitHub token. An agentic definition's new `checkout: pull_request` (a template's manifest sets it with `checkout: pull_request`) has the server fetch the pull request its GitHub event names before the first turn, into `repo/` of the run's folder, detached at the head, with its base and their merge base fetched beside it (refs `pr/head`, `pr/base`, `pr/merge-base`; read the change with `git diff pr/merge-base pr/head`). The fetch is one server command on the run's folder, so it works the same in Mode 1 and on Archil's exec in Mode 2. It uses an installation token of the server's GitHub App, narrowed to that repository and `contents: read`. The token never lands in the folder, the checkout's git config, the remote's URL, the agent's environment or the log. With no App, or one not installed there, the fetch is anonymous, which works for a public repository. The run's system prompt says what was checked out, or why nothing was, so the agent can read the change through the GitHub MCP instead. The checkout is removed when the run's claim ends. `checkout: none` clears it on an edit; an edit that leaves it out keeps it.
|
|
76
|
+
A GitHub event's payload tag now also carries the pull request's `base_sha`. The server's Docker image installs `ca-certificates`, so git on the server can reach GitHub over HTTPS.
|
|
77
|
+
- An agent's own computer, kept between its runs. An agent's `computer` setting takes `persistent: true` where its provider keeps one for the kind and image (Orgo's Linux desktop; `GET /v2/computers` shows a provider's `persistent`), and is 422 `not_allowed` anywhere else. The agent's first run makes the computer under an owner of this server's id and the agent's. Each run's end detaches it (Orgo suspends it, memory and disk kept) instead of deleting it, and the next run attaches it again, saying on its timeline which happened, or that the computer was gone and a new one was made. A run that finds the computer held by another run still going, or being detached by one that ended, is refused at its start, naming that run. The hold is per claim: a resumed run's later claim takes it over, so the earlier claim's end detaches nothing, and an earlier claim is fenced. A launch that fails once it has the computer (its hold lost to a resume, its record not saved, no connection) lets go of exactly what it acquired: a computer it made is deleted under its claim, so a resume that already took it keeps it, and one it attached is detached. `GET /v2/agents/{agent_id}` shows it as `own_computer` (provider, id, name, and held, detached or deleting). Archiving the agent, turning `persistent` off, or moving the setting to another provider or image deletes the computer once no run holds it (a run's end deletes it then), and the janitor's sweep deletes an agent's computer only when its agent no longer wants it, never another server's.
|
|
78
|
+
- `AGENTRUN_DAYTONA_SNAPSHOT` names the Daytona snapshot every Daytona computer is made from, as `AGENTRUN_DOCKER_IMAGE` names Docker's image. A Daytona computer in Mode 2 mounts the run's folder as root through the box image's root helper, so it needs a snapshot of the computer package's `box/Dockerfile` (`box/build-daytona.py` builds one and prints its name); until now serve always asked for Daytona's default snapshot, which the mount refuses. Unset, nothing changes. The Daytona box (`AGENTRUN_BOXES=daytona`) never reads it. The variable is declared by Daytona's provider descriptor in a new optional field, `imageEnv` (the server environment variable that names the image of every computer of that provider, in place of `defaultImage`; `descriptorProblems` checks it is a variable name), so serve reads it from the descriptor and names no vendor; another provider can declare one the same way.
|
|
79
|
+
- The server runs workflows on its own code: the durable workflow task, its node runner, decisions and their recovery, and the runner a learned workflow's model nodes use moved into the server from `@parcha/agentrun-pi`, which the server no longer depends on or loads. It depends on `@earendil-works/pi-agent-core` 1.5.0 directly, beside `@earendil-works/pi-coding-agent` 1.5.0. Workflow runs, their decisions and their costs behave as before.
|
|
80
|
+
- An agent can run subagents: a revision that names `subagent` in its tools (pi only) gets a tool that runs a fresh conversation with the call's prompt as its whole task and a subset of the agent's own tools (MCP tools and `bash` included), and answers with the child's final text. The child runs on the agent's own model unless the call names a tier (`fast` or `strong`); a revision's `model_tiers` (a template's `model.fast` / `model.strong` in agent.md) names each tier's model, else the server's `AGENT_MODEL_FAST` / `AGENT_MODEL_STRONG`, else the agent's own model. Every tool call a child makes passes the run's gate, so the agent's bash policy (`read-only`) holds its bash too, and every request books on the run's one cap, which ends a child when it is reached. A child is never given `subagent` or `ask_person` (one level deep), at most 4 children of a run work at once, the run's timeline nests each child under its call, and the run's cost and metrics count every child's requests. A child lives in the run's journal: a restart resumes the same child (a finished request is never sent again), a cancel stops every child, and a cap refusal of a child's request fails its call in the cap's words and parks the run, sending nothing more until a raise, which resumes the run (the agent may call `subagent` again). A tier's model may be another provider's (its saved key is read for the tier's route alone) and runs through a gateway (`AGENT_MODEL_BASE_URL`) too, at the tier's price. A child whose answer was cut at its model's output limit fails its call with the words that say so and what it wrote. On a capped run, a call on a tier whose model has no known price is refused before any child starts, and the cap never reads an unpriced model's placeholder as $0. A call may give its child `max_tool_calls`, which narrows the agent's `max_tool_calls` for that child and never widens it (kept in the child's conversation, so a restart holds it too), and `effort` (`low`, `medium`, `high`), the child's thinking level, else the agent's own.
|
|
81
|
+
- A template can name the computer it prefers and fall back: `computer: [shell, none]` in its agent.md, read like `harness`. Apply takes the first entry this server meets now and saves it as the agent's `computer`: `shell` is Archil's serverless exec on the runner when Archil is on (Settings → Workspace; `bash` alone), else the Docker sandbox where Docker answers; `none` is no shell. With `none`, the shell tools in the package's `tools` and `tool_policy`'s bash are not granted, and a `computer` warning on the apply says so and how to get a shell. A list with `shell` alone, where there is none, refuses the apply (409, nothing made). `computer: default`, or no `computer`, keeps today's behavior. `GET /v2/templates` shows each package's `computer` list and `computer_here`, what an apply here would pick now.
|
|
82
|
+
- A second answer to one tool call's approval is refused by the store as `AnswerTaken`, on SQLite and on Postgres alike, matched by the one-answer index's name (`commands_one_answer`). Before, it was a bare `StoreConstraint`, and the server read back the winning answer for any constraint error. Now an approve that lost a race is the same 409 `not_continuable` (`details.reason: already_answered`, the winner's decision) as one sent after, and a person's message that loses to an approve goes on as a plain message. Any other constraint error is no longer mistaken for an answered call.
|
|
83
|
+
- Archiving a run that is already archived keeps its first `archived_at`: `POST /v2/runs/{id}/archive` again is a no-op, never a new time (#2080). A message to an archived run, or to a run of an archived agent, is refused `409 not_continuable` in words that say it is archived (`details.reason` `archived`, `details.archived` `run` or `agent`), with the way back (unarchive the run or its agent) as its `next_action`. It was already `409 not_continuable`; only its message, its `details` and its `next_action` change. Before, it said the run was "finished", with no `details` and a start-a-new-run `next_action`.
|
|
84
|
+
Upgrading: nothing to do.
|
|
85
|
+
- An agent with no computer is no longer shown bash and the background tools it can't use (#2141). The agent's read and the computer list read where a run has its shell by the claim's own rule (`runShellOf`, on the agent's computer setting, else its place, and the server's folder mode now), as the save check and capabilities already do:
|
|
86
|
+
- `GET /v2/agents/{id}`: a tool of bash's family the run would not have carries `resolved: "unavailable: ..."` in the words a call of it gets there. With no computer that mounts the run's folder the background tools are not there, and bash neither when run folders are on the server's own disk.
|
|
87
|
+
- `GET /v2/computers`: each provider, and the one "no computer" choice (kind `none`), carries `shell` (`computer`, `local` or `none`), `host_tools` (exactly the tools a run of that choice gets: the file tools always, `bash` with a shell, the five background tools on a computer) and, unless its shell is `computer`, a `shell_note` saying what it leaves out.
|
|
88
|
+
Upgrading: nothing to do. A client that read bash as available on an agent with no computer now reads it unavailable, with the reason.
|
|
89
|
+
- A run that asks its person a question with its browser open keeps that browser while it waits, for the person's window, `AGENTRUN_BROWSER_PERSON_WAIT_MIN` (15 minutes by default; the same setting now bounds a take-over with no input and an agent's hand-over ask). Before, the browser's own 3-minute idle release let it go while the run waited, so the page, the live view and Take over were gone just when the person might use them. At the window's end the browser is released with a timeline row saying so ("The browser was released after 15 min waiting for you"), and an answer after that opens a new browser. The Screen tab says the browser was released, and when, instead of "Waiting for the browser" (GET /v2/runs/{id}/computer's `none` carries `ended: {at, why}`). pi-browser's extension handle gains `keepForPerson(tag)`, which holds a session from its idle release until let go.
|
|
90
|
+
- A run that parks at its cap sends nothing more on that claim: once a refusal parks it, every later request (another conversation's of the run, such as a subagent's) is refused in the same words until a raise resumes the run on its next claim. Before, a request of another conversation could still be admitted after the run read `input_required`.
|
|
91
|
+
- A run's spend-cap pause no longer says it spent "$0" when it spent less than a cent. The words round what was spent to the cent, so a run that had spent $0.003 read "this run has spent $0 of its $0.105 cap", as if nothing had been spent. A spend above $0 that rounds to $0 now reads "less than a cent" ("this run has spent less than a cent of its $0.105 cap"). A spend of exactly $0, and any spend of a cent or more, reads as before. The exact amount stays in the pause's `spent_usd`.
|
|
92
|
+
- A Claude Code, Codex or OpenCode run whose model answered or called a tool, but whose model requests reached no booking (they went past the run's model proxy), now reads its cost as unknown: on its row, its view, the runs list, its spend as the cap reads it and the /usage tokens meter. It used to read $0, the sum of no bookings.
|
|
93
|
+
- Removed the file-era budget pause (budget.ts: the budget.json and cap.json marks) and the host-tool api's `conversation` member, which nothing calls; the runner parks and raises through the store's budget entries.
|
|
94
|
+
- Security: the Docker egress proxies now run Node 22.23.5, Node 22's November 2026 security release. The computer provider's `EGRESS_IMAGE` and the server's proxy on macOS Docker move from Node 22.23.4 (bookworm) to `node:22.23.5-trixie-slim`, pinned to its multi-arch index digest (amd64 and arm64). None of that release's CVEs reached the proxies: they speak cleartext `node:http`/`node:net` and pass TLS through CONNECT without terminating it. The new image also brings the release's llhttp, which parses the HTTP the proxies read from a box. A host without registry access pulls the new image ahead, as before: `docker pull` the name `EGRESS_IMAGE` gives.
|
|
95
|
+
- A workflow run started inline (`POST /v2/runs`) under a new version of its agent is titled with that version's name. It used to show the previous version's name on its page and in the run lists. A run of a version already stored keeps the agent's current name.
|
|
96
|
+
- A learned workflow's answer keeps the format its last node wrote (#2412): `learned_workflow` hands back a text output (a string, or an object of one string field) as its text, never JSON-quoted, and its description tells the model that a workflow doing the job asked gives the answer, to reply with as it is. Before, the model got the report as one escaped line and wrote its own reply around it, so a skill's fixed format was lost once its workflow took over.
|
|
97
|
+
The draft side holds it too: the ask for a skill's job as a workflow says the draft's output is the job's answer in the skill's output format, written by its last node; a run's proposal carries the skill of each draft's name as the folder holds it (`drafted`), the grader is shown it under the draft, and its rubric drops a draft whose output cannot give the skill's format (Format). Upgrading: nothing to do.
|
|
98
|
+
- A standing rule for every reply or report that a run proposed as a skill is kept as a note: the grader judges it mis-kept (a skill loads only when a job calls for it, a note is served whole on every run) and re-files it, and the merge writes `<name>.md`, with the skill's description and body, in the skill's place, pending when risky. One that would be no note, or one past the run's 8 new notes (a re-filed note counts as one), is dropped, saying it belongs in a note, and one whose note name the run's own kept note takes is dropped, saying "This run also kept a note named <name>, so the rule was not re-filed over it." At the merge, any note the run keeps (a re-filed skill's too) whose name the agent's notes already hold, another run having merged one meanwhile say, no longer fails the whole learning run: the same rule (its body, case, spacing and front matter aside) in an active note is no change, and the skill it re-files is retired; one a person retired or another note superseded keeps the rule out of every run, so the skill stays and the note is left out as a name already held; a note that supersedes the note of its own name replaces it; any other is left out alone, saying a note of that name was added since or was there already, and the rest of what the run learned merges. A learning run that stopped after its merge's commit and before recording it resumes merged, its notes learned, never dropped as already there. The grader's verdict gains the decision `note`, a skill's alone. Learning keeps one copy of each rule: a new note whose body is exactly an active note's (whitespace and case aside), under another name, is refused at the end-of-run checks (`duplicate`) and left out at the merge, and of two new notes with the same body only the first is kept; a near one stays the grader's to judge, and a note that supersedes the one it repeats still updates it. A copy is never lost to its holder's failure: a holder the other checks refuse hands its rule to the next copy. A note the same run supersedes holds no rule, so a copy of its rule under another name is kept, never left out with the rule served by nothing. An answer that would take the index past 200 lines leaves out its last notes that add lines, never the whole answer. Upgrading: nothing to do.
|
|
99
|
+
- A model request a provider refuses for a while (a 429 at capacity, an overload, a 5xx) no longer ends the run after pi's default three retries of about 17 seconds. The adapter loop gives pi 8 retries, 2s doubling to at most 30s apart (about two and a half minutes), and pi-ai retries a request refused before any output twice more inside each attempt, after the wait the provider asked for: the session's model proxy now passes an error answer's `retry-after`, `retry-after-ms` and `x-should-retry` on to the client. Each retry is a new request the run's cap judges and books: a refused one books nothing, and one that finds no room under the cap parks the run in the cap's words, never retried past it.
|
|
100
|
+
- A run's pull request checkout is removed cleanly at the run's end: its fetches run with git's auto maintenance off, so no detached gc writes into `repo/.git/objects` while the removal deletes it (it failed with "Directory not empty").
|
|
101
|
+
- A person can take over a runner run's desktop or phone and hand it back: the runner's pi and CLI runs now give the adapter loop the hold their claim made, so the computer shows up live and a take-over is no longer refused with "This run has no desktop or phone up now."
|
|
102
|
+
- A server no longer rebuilds the view of each of its 50 newest runs four times a second while it follows run ends for the outbound webhook. Each build redacted the run's title and output again, and read the store, even for a run whose end it had already told, or that had not ended. Now only a run with an end still to tell reads its view, once, and the rest are read from their store row alone. An idle server that had redacted a finished run's view 48 times a second now does nothing for it.
|
|
103
|
+
- A run's view (`GET /v2/runs/{id}`) and its timeline (`GET /v2/runs/{id}/timeline`) each read the store as it stood at one moment. A runner's write that landed while a view was built could show in part: a run read `working` with no result beside the cost of its end, and a timeline held rows from before an answer next to rows from after it. Status, result, cost, pending approval and rows now all come from the same snapshot.
|
|
104
|
+
Upgrading: nothing to do.
|
|
105
|
+
- A request a run's spend cap refused before sending is no model request on the runner, as it was before the cutover:
|
|
106
|
+
- A pi run whose first request the cap refused shows "no model request sent" in its usage, not "Cost so far: $0 over 1 model request", and no "Model request failed" row. The model proxy's refusal comes back through pi-ai's Messages client as `<api> API error (400): <body>`, and the timeline now reads that form as well as the bare `400 <body>`.
|
|
107
|
+
- A claude-agent or codex run whose cap refused its first request shows "no model request sent" in its usage too. Before, it had no usage row.
|
|
108
|
+
- Upgrading: nothing to change.
|
|
109
|
+
- A claude-agent or codex run installs its harness on first use again. When nothing was installing Claude Code or Codex (none started yet, an install cut short or failed earlier, or a server that stopped part way), the run failed saying it was not installed; now the run installs it and runs on it, one install at a time on the data, which every run that needs it waits for. The run's timeline says "Installing Claude Code (first use)…" (or Codex) while it waits, not only once it is done.
|
|
110
|
+
A paid tool call's cost on the timeline names the tool again ("Tool cost: parallel charged $0.0010 for web_fetch"), not what was paid for ("… for Parallel's extract"), and a CLI run's harness is given its tools in the order the agent grants them.
|
|
111
|
+
- A stop wins over a run's first input and over two answers that still slipped past it.
|
|
112
|
+
- A run stopped or cancelled before it started now ends at its runner's claim. No loop starts, and its first input never reaches the model, so it is never billed. This covers a run claimed from queued, and one whose earlier claim was lost before its journal had anything. Before, the runner started the run's loop first, and the input could go out before the stop was applied.
|
|
113
|
+
- An answer to a waiting call is now 409 `already_answered` (decision `withdrawn`, or `canceled` for a cancel) in two more cases where it never runs. One: the run's stopped end took the stop and refused the answer before the answer read back. Two: the answer is a retry of one written behind a stop the runner has not taken yet. Before, both were answered 204.
|
|
114
|
+
- A store transaction that runs out of time, or a write that waits out the store's busy timeout, now says in its logged stack who held the store: where the transaction was opened, and the other transactions open in the process with their age.
|
|
115
|
+
- Settings → Computers (`GET /v2/computers`) no longer offers a computer that needs a network (a cloud phone, Browserbase, Kernel, Local Chrome) on a server whose `AGENTRUN_BOX_ALLOW` is none. Such a provider reads `ready: false`, and its `why` says the server has no network and how to change that. Its `network` says the server refuses a computer that needs a network. A kind that only such providers serve reads `offered: false`, saying why. Its runs were already refused at the start and at the claim. Under a host list, the default or the operator's, nothing changes.
|
|
116
|
+
- The serve README no longer describes the Daytona and Modal run boxes that the deleted pi-transport package provided (the box relay, the run's door token, the copy-back marks, the `box_network` and `box_kept` log lines); computers are the `computer` setting's. It no longer lists a run's door token among the tokens a learning approval or an import refuses.
|
|
117
|
+
- Twenty test cases that were skipped against the cutover run again and pass (cap, cost-so-far, decisions, graph redaction, gateway, capacity, tool plane and others), each checked to reach the behavior its title names. Every skipped case that still fails, or that would pass without reaching its subject, stays skipped.
|
|
118
|
+
- A capped workflow run on the runner takes a paid call node's hold only after the workflow's driver has admitted the call's effect. Held before the admission, a runner that died in between left a hold the next claim counted beside running the call again under a new hold (an `llm` call of $0.001 was counted $0.002). A hold the cap refuses for room now ends the admitted effect held with nothing sent, and the run parks once that end is durable; after a raise the call goes again as a new effect. A hold refused for good, and an answer that cost more than its hold, end the effect failed in the cap's words, as before.
|
|
119
|
+
- A capped workflow pauses at its cap on the runner as it should:
|
|
120
|
+
- A capped workflow run with a Parallel decision no longer fails "spend_cap_reached: Not sent: the next model request's model has no price here". Parallel charges by the request, and its decision was priced as a model with no price. Now it is held at its request price, and a cap too small for it pauses the run for a raise.
|
|
121
|
+
- A workflow paused at its cap names the model node whose request waits (`pending.node`), from the one step under way; `null` when several run at once.
|
|
122
|
+
- A workflow paused again at a higher cap (a raise that did not cover the step) tells its owner's webhook again (`run.needs_input`). Waits at one cap are still told once.
|
|
123
|
+
- Upgrading: a run already waiting at its cap when the server is upgraded tells its owner's webhook once more (`run.needs_input`, a new notice id). A budget wait's marker now names its cap, so the one told before the upgrade reads as a different wait. Nothing to change.
|
|
124
|
+
- The two harness adapters list `@parcha/agentrun-dsl` as a dev dependency, since only their tests import it, and serve's package keywords drop the retired `pi-durable`.
|
|
125
|
+
- The runner claim tests wait for the runner's own `claimed` event before they move the clock or close a runner, not for the store's claim call to return. On Postgres the runner reads the claim's command rows in one more round trip before it holds the claim, so the first case moved its mocked clock with nothing to renew and hit its 60 s timeout, and the close case closed before the loop existed. Both cases now gate that read until both runners' claims are back, so the same order happens on SQLite every time.
|
|
126
|
+
- An MCP server's preview says what its tool list is: the tools the server offers, not what the credential allows. A read-only token still lists the server's write tools, and a call the token can't make is refused by the MCP server when a run makes it. Settings → MCP servers shows the note with every preview, and POST /settings/mcp-servers/preview's description says the same.
|
|
127
|
+
- The server and Pi browser READMEs state the Node minimum the packages enforce: 24.22.3 (the server image and the test suites run on it), not Node 22.
|
|
128
|
+
- The serve README's container guide no longer warns that the root `compose.yaml` passes no `AGENTRUN_SEAL_KEY`: it passes the key from `.env` and refuses to start without it (#2199).
|
|
129
|
+
Upgrading: nothing to do.
|
|
130
|
+
- An agent that learns shows its cost per run, run after run: the Learning tab draws every run's all-in cost (the run's own plus what learning spent for it) as a dot coloured by the path it took (by the agent, a learned workflow that handed back, or a learned workflow alone), a rolling mean through them, the agent's level before learning, a marker where a learned workflow first finished a run alone, and the level held after it, with how many times cheaper once 20 runs stand behind it. A table under it holds every run.
|
|
131
|
+
`GET /v2/agents/{id}/learning/cost` (`learningcost/1`) answers the same series and summary, aggregates only (`?limit=`, `?format=csv`); `agentrun learning cost <agent> [--format csv]` prints it or writes it as CSV.
|
|
132
|
+
|
|
133
|
+
## 0.1.0-beta.35 (2026-11-11)
|
|
134
|
+
|
|
135
|
+
- On the runner, a learned workflow node that names a tier (`fast`, `strong`) now runs on the host's model of that tier (`AGENT_MODEL_FAST`, `AGENT_MODEL_STRONG`) instead of the run's own model. Its requests take the run's one route and stay under the run's cap, and each is booked at its own model's price. A tier the host names no model of still runs on the run's own model. A tier whose model can't be reached fails the workflow call and names why; it never runs on another model. This holds on every harness: pi, Claude Agent, Codex and OpenCode. On a CLI harness the tier's requests go through a proxy of their own beside the CLI session's, never through the CLI. A tier's model key saved in Settings → Model keys is opened for that tier's requests alone. It never goes into a tool's environment. A tier whose model has the same id as the run's model is still held and booked at the tier's own price. `AdapterSession.port` and the run ledger's `models` take an optional `tier`. The kernel's `ModelRequest`, `ModelProxyOptions` and in-flight records carry an optional `route`, and the cap's `modelOf(id, route)` prices a request by model and route.
|
|
136
|
+
Who breaks: a host that already sets `AGENT_MODEL_FAST` or `AGENT_MODEL_STRONG` changes with no action. Its learned workflows' nodes of that tier now run on that model and at its price, and when that model can't be reached the learned_workflow call fails where it used to run on the run's own model.
|
|
137
|
+
Upgrading: a host whose `AGENT_MODEL_FAST` or `AGENT_MODEL_STRONG` names a model it can't reach should unset it or make the model reachable; learned tier nodes now run on it.
|
|
138
|
+
- A retired note, skill or workflow draft that waited for its owner's OK waits again when it is restored: a restore gives back the status it had before its retire, and only an approval makes it active. Before, Retire then Restore made a held rule active, and the restore was recorded as the owner's approval. A retire now records the status it took the item from (`retired_from: active | pending` in its front matter), the learning view says it (`retired.from`), and the console's Restore confirm says what the restore does: "It becomes active again" only for an item that was active, else that it goes back to waiting for your OK. A person's edit of a retired note keeps it retired with what its retire recorded, and a run's note may not set `retired_from`. An edit (`PUT /v2/agents/{agent_id}/learning/files/{file}`) that drops or changes a retired note's `status: retired`, or changes its `retired_from`, is now refused (400 `bad_request`, rule `status`); before, an edit that dropped it made the note active.
|
|
139
|
+
Upgrading: restore a retired note with `POST /v2/agents/{agent_id}/learning/files/{file}/restore`; an edit that drops or changes its `status: retired` is refused.
|
|
140
|
+
- A note, skill or workflow draft retired before this upgrade has no recorded status, so its restore puts it back waiting for its owner's OK, never active: approve it after the restore to make it active again. Upgrading: nothing to do.
|
|
141
|
+
- A capped run now wraps up instead of running into its cap with no answer. Once its spend plus what its requests and paid steps still out are held at reaches 75% of the cap, the run's tool gate refuses every tool call a model makes, in every conversation of the run and on every harness, with one fixed message: "Budget nearly spent: stop calling tools and answer now from what you have." A call that would start a child conversation (a `subagent` spawn) is refused the same way. Children already working are not cut: they get the same refusal and answer. Model requests continue, so the parent's final answer lands, and the cap stays the last line. The figure is read from the run's booking records at each call, so a restart or a moved claim holds the same line, and a raise of the cap moves it.
|
|
142
|
+
- Upgrading: this changes how a capped run ends. A run that used to end `spend_cap_reached` (or pause at its cap) after its in-flight reservations filled the cap now stops calling tools at 75% and answers from what it has. A run with no cap is unchanged.
|
|
143
|
+
- A learned workflow draft may run an MCP tool in a call node (`"via": "tool"`, `"tool": "mcp:<server>/<tool>"`) when the agent's revision grants it, by its own name or under its server's wildcard `mcp:<server>/*` (read against the tools the server lists), and its gate does not deny it (one set to ask is offered where someone can answer an ask, the server's accounts on: its learned_workflow call asks once, naming its MCP tools; with no one, it is not, since that call would be refused at once); a draft naming any other is refused, and one the gate denies is refused in the gate's words. The end-of-run turn's draft ask says what each such tool takes and gives, from its server's listing. The grader is told, under each draft, the MCP tools its call nodes run, by server and tool, and holds the draft for its owner's OK when one writes or sends: the learned workflow runs it unattended at every call. A draft's dry run synthesizes an MCP node's output from its `out`, as any call's, and sends nothing.
|
|
144
|
+
A draft whose MCP tools set to ask would not all fit on its learned call's approval card is refused when it is proposed, in the gate's words, by the gate's own rule. A draft with a step calling an MCP tool that has no declared per-call price waits for its owner's OK whatever the grade says, since such a tool runs outside the run's cost and cap; the reason names the step, the tool and its server, and the grader is told it.
|
|
145
|
+
Upgrading: nothing to do.
|
|
146
|
+
- A learned workflow can be made an agent of its own. The owner clicks "Make this an agent" on an active learned workflow in the Learning tab (`POST /v2/agents/{agent_id}/learning/workflows/{name}/promote`), and the server makes a new workflow agent from its `workflow.json`: its runs run the workflow's nodes with no agent loop and answer the workflow's output, and pipelines and triggers can call it as any agent. Only an active workflow is made an agent (one that waits for the owner's OK, or was retired, is `409 learned_not_active`), only from the owner's password session (a token is 403), and only once it passes the checks a restore makes and a workflow revision's save makes. The new agent's tools are the ones its call nodes call, under the source agent's own tool settings, approvals and default cap, never more. The new agent's id is the workflow's name, or the name with `-2`, `-3` and so on when an agent (archived ones too) already has that id or name. The request may give the new agent a `name`, 1 to 200 characters; without one it is named as its id. A retry with the same `Idempotency-Key` answers the agent the first request made, never a second one. The learned workflow stays where it is.
|
|
147
|
+
Upgrading: nothing to do.
|
|
148
|
+
- See learning at work, from the server:
|
|
149
|
+
- A learned workflow's call shows which of its nodes ran: its `tool_result` row in a run's timeline carries `learned_nodes`, each node's label, kind, how it ended (`ok`, `failed`, `escalated`) and how long it took; never why a node failed, whose text can hold part of a secret. A call stopped part way keeps the nodes that ended before it stopped.
|
|
150
|
+
- An agent whose learning is only skills or only workflows now has an impact: a run whose claim laid a learned skill or workflow counts on the "after" side, as one that started from a note does. A run's launch records the learned workflows it was offered beside its skills, and its claim records which skills and workflows it laid.
|
|
151
|
+
- `GET /runs/{id}/learning` gains `used`: which learned skills the run's claims laid and whether its job read each one (`used.skills`; a skill a revision's own skill of that name kept out is not one), and which learned workflows it called, how many times and how many of those failed (`used.workflows`; a call with no result yet is not a failure), apart from `skills` and `workflows`, what it learned.
|
|
152
|
+
A run from before this change: its `used.skills` is empty (its claims recorded no laid skills, `agentrun.learning.laid`), and its `used.workflows` lists its learned_workflow calls, read from its journal, when its launch named notes or skills (one whose launch named neither reads both empty); the agent's impact counts it by its notes, as before.
|
|
153
|
+
There is no "saved vs by hand" figure per run: no per-run baseline exists that is not a guess; the agent's impact (before and after) says it per agent.
|
|
154
|
+
Upgrading: a client reading `GET /runs/{id}/learning` gets a new `used` object (empty lists when none), and a timeline row may carry `learned_nodes`.
|
|
155
|
+
- An agent can now cap its tool calls: `max_tool_calls: N` on the definition (a template's `budget.tool_calls`) gives each conversation of a pi run N tool calls. Past N, the run's tool gate refuses every further call with one fixed message telling the model to stop calling tools and answer from what it has. That refusal is not counted, and the run is never ended by it, so the model's final answer still lands. The count is read from the conversation's journal, so a restart or a moved claim keeps it, and a conversation a tool opens counts its own calls. An edit that leaves the field out keeps it, 0 clears it, and on another harness the save is refused.
|
|
156
|
+
- Upgrading: nothing to change; an agent with no budget runs as before.
|
|
157
|
+
- A Mode 2 server with no exec image saved now runs its Archil execs in Docker's `buildpack-deps:trixie-scm`, pinned by digest (`buildpack-deps@sha256:4f34e1d6…`, git 2.47.3), instead of Archil's default exec image. Archil's image has git 2.34.1, and a shell under a bash policy runs git only at 2.43 or later, so a read-only agent on Archil got no git. An image saved through `PUT /v2/workspace/archil` (`image`) still replaces the default; it needs git 2.43 for a read-only agent, and GNU coreutils and perl for the exec line, as Debian-family images have. The console's image field says the new default.
|
|
158
|
+
- A shell under a bash policy (`tool_settings.bash.policy: "read-only"`) now runs git with its config locked down, so a read of someone else's checkout can't run a program that git config names. git reads no system or global config (`GIT_CONFIG_NOSYSTEM=1`, `GIT_CONFIG_GLOBAL=/dev/null`). Command-line config (`GIT_CONFIG_COUNT`, which outranks a repository's own `.git/config`) turns off core.fsmonitor and hooks, sets cat as the pager, reads no attributes (so no textconv, external diff or filter driver attaches to a path), finds a bare repository only when named (`safe.bareRepository=explicit`, against one planted in the tree), allows no transport and runs no signature program. `GIT_PAGER`/`PAGER` are cat, with no prompt, no optional lock and no lazy fetch. The lock-down needs git 2.43 (`attr.tree`), and an older git ignores what it doesn't know, so under a policy `git` runs only at 2.43 or later. An older one (a stock serverless exec image's 2.34) refuses each git call with words saying why, and nothing runs; give a read-only agent's exec image a newer git. A run with no bash policy keeps the plain shell environment.
|
|
159
|
+
- A capped run straight to Anthropic is no longer paused by a cap it could work under. Before each answer request on a route to `https://api.anthropic.com` (pi and claude-agent), the model proxy asks Anthropic's free token count (`POST /v1/messages/count_tokens`). It sends only the credential and version headers, and never goes through a gateway or any other base. The request's input bound is then that count plus the tool-use prompt, where before it was the body's bytes (about two to three times the tokens billed). A count that fails, says nothing or takes over 3 seconds leaves the byte bound, and the request goes on. Through OpenRouter or any other gateway the bound stays the bytes, so the cap still never passes.
|
|
160
|
+
|
|
161
|
+
The serve README's spend-cap section now states the smallest cap that works, by cap mode, measured on a pi desktop run on Sonnet. In `strict` mode (and in `expected`, the default, until the runner prices a step from the previous request's cache, #2504) it is $0.05 for the first request and $0.11 for a five-step run through a gateway, and $0.03 and $0.09 straight to Anthropic. The console's cap fields say it in a line, with a link. A cap below these still pauses with `Not sent: ... the next step needs at least $X`. A policy may count a request through `ProviderPolicy.countInput` (`InputCounter`, `countedInputOf` in the kernel host).
|
|
162
|
+
- A run paused at its cap and raised goes on the way the API says, on the runner.
|
|
163
|
+
- The raise's answer names the follow-up turn (`message_id`): the id the runner sends "The cap was raised to $X; continue the task." under, one per pause, so two raises sent at once, or a retry, name the same message.
|
|
164
|
+
- That follow-up shows in the Timeline as the server's row ("AgentRun: The cap was raised to $X; continue the task."), never as the person's "You: …", on pi. (A CLI harness's run records it with its per-request follow-up record, which comes separately.)
|
|
165
|
+
- A retry of a raise once the run has paused again under the raised cap is no raise of the new pause: it answers `resumed: false`, and the run stays paused.
|
|
166
|
+
- A CLI run (Claude Code, Codex) that waits for its harness's first-use install shows the "Installing … (first use)…" row on its timeline while it waits, not once the install is done.
|
|
167
|
+
- A run on a CLI harness (claude-agent, codex, opencode) now counts its tokens and its model requests in its metrics, and GET /v2/stats' analytics sum them, as a pi run's are. They are what the run's model proxy booked each request at, which the run's cost already came from; before, every CLI run read 0 requests and 0 tokens. A request booked with no usage, or sent and never answered, is counted unmetered, in no token sum; one answered at no known price keeps its tokens, its cost unknown.
|
|
168
|
+
Upgrading: nothing to do.
|
|
169
|
+
- A Claude Code, Codex or OpenCode run's files on the server's machine (its scratch folder under `<data>/scratch/`: the CLI's working directory, its home and state, the skills laid for it) are now removed when the run's claim ends, as the data layout always said, instead of staying for ever. Each claim gets a private folder of its own, so a run reopened by a follow-up while the last claim is still letting go never loses the new claim's files. The harness's session comes back from the run's journal at the next claim, as before.
|
|
170
|
+
- `deploy/compose.yaml` gives each runner container a memory limit, 2 GB by default (`AGENTRUN_RUNNER_MEMORY` in `.env` sets another). A runner claims runs by its memory, which it reads from its container's limit. With no limit, each of the two runners read the whole host's memory and budgeted all of it, so together they could claim twice what the host holds and an out-of-memory kill would take every run on it. Now each holds 1920 MiB of runs (six claude-agent runs or fifteen pi runs at once); the rest wait queued. A runner process also says its budget once at its start, on the line after its ready line: `Runner <name> memory: <N> MiB for runs, each weighed by its harness`.
|
|
171
|
+
- Upgrading: on a compose host with less than about 5 GB, set `AGENTRUN_RUNNER_MEMORY` (`1g`, say) so the runners' limits and the server fit.
|
|
172
|
+
- A Claude Code or Codex call that needs approval shows on the run's timeline while it waits, and the test harness for those CLIs asks the tool gate before each call, as the real ones do:
|
|
173
|
+
- serve: a CLI call the tool gate asks about goes on the run's record as it parks, its start marked parked, the way an MCP call parked at its door already did. Before, the timeline showed the approval card with no call row above it until the call ran. An allowed call then runs under that one start; a stop withdraws it and its row reads "Not run: the run was stopped while it waited".
|
|
174
|
+
- kernel: `askGate(gate, call, signal)` (`process/tools.ts`) is the gate step every tool bridge takes first: undefined for an allow, the refusal for a deny, and a park holds the call until the signal aborts. The faux harness in `@parcha/agentrun-kernel/testing` now asks it before each call: a deny is the call's answer, recorded so it is never asked again, and a park holds the turn. A recovered turn first runs the calls its last request left with no intent and no result (a parked one), under their own ids, as a real CLI's resume does. A test that scripts a faux CLI call to a tool set to ask (a `monid.` or MCP catalog tool by default) now sees the run park on it.
|
|
175
|
+
- A workflow run's graph read again with the same held keys redacts nothing again (#2464). `GET /v2/runs/{id}/graph` reads only the run's facts (its kind, revision, status, times, and whether it is withheld), never the run's served view, whose output and words were redacted again on every read. Every top-level field of the graph, its name and its value, scalar or not, is cut once per content and held-key set and kept as cut, as its parts already were. A key saved since makes a new set, cut on the next read. The read's own `read_at`, the server's clock, is served as it is.
|
|
176
|
+
Upgrading: nothing to do.
|
|
177
|
+
- Fixes a learned workflow draft that calls a tool the agent's own tool settings deny being left out "set to deny on this server". The words now name where the deny was set: "set to deny for this agent" for the agent's tool settings, "on this server" for the server's. The same holds when an owner restores a draft or makes a learned workflow an agent.
|
|
178
|
+
- Upgrading: nothing to change.
|
|
179
|
+
- Fixes a learning run whose cap you raised mid-run being told it had no budget left to look back. A run paused at a $0.001 cap and raised to $1 completed, then its learning read "Skipped: no budget left in this run to look back" with $0.994 of the $1 left: the end-of-run check compared the run's spend with the cap it started with. It now reads the cap the run is held to after a raise, the same one each of its requests is admitted under and its view shows, on pi and on claude-agent, codex and opencode.
|
|
180
|
+
- Upgrading: nothing to change.
|
|
181
|
+
- A run whose files live on the run's Archil disk (Mode 2) can read what its browser saved. browser_read and screenshot file their evidence in the run's own folder on the disk, where the run's `read` opens it; before, they wrote to a local folder that a Mode 2 run never has, so the call failed. browser_upload chooses from the same folder, and refuses a path that would leave it. browser_downloads, which copies into a folder of the runner's machine, is offered only where the run's files are on that machine (Mode 1), so a Mode 2 run is never told a file was saved where it cannot open it.
|
|
182
|
+
pi-browser exports `uploadMime(name)`, the media type browser_upload gives a file by its name.
|
|
183
|
+
- A data root serves one server again, whatever its store, and a server that replaces another waits for it instead of exiting. Since the switch to the one store, a server took only its store's owner lock, so two servers on one data root, each on a store of its own (two Postgres schemas, or SQLite and Postgres), both started and shared what the server writes beside its store (its token, its seal key, uploads, harness installs). A server now also takes `<data>/server.lock` once it holds its store, and reads or writes its token only after. A start that finds either held by the server it replaces (a redeploy, a restart that starts the new server before the old one has exited) says `another server holds this data root: waiting up to N s for the previous server to stop` and waits up to its `--drain-timeout` and 30 s, then exits 1. A server that died holds neither: both are kernel locks. `serveWithRunner(options)` is exported: a server and a runner beside it in one process, as the CLI's start composes them, for a launcher that starts serve in-process (a server alone leaves every run queued).
|
|
184
|
+
- A run whose paid tool call the cap refuses for room reads waiting on a raise only once the call's "Not sent: …" result is on its Timeline. The pause was journaled inside the call, before the harness stored its result, so for a moment the run showed its budget card with no row saying which call was refused. The pause now lands at the model's next request, as a refused model request's does.
|
|
185
|
+
- Runs left by a server that stopped are taken up correctly by the next start. Two cases were wrong. A run of a harness this host's memory can never hold (say a claude-agent run left working, restarted on a 384 MB host) used to be claimed anyway and read working forever. Now its claim fails it, in the same words a new start of it is refused with ("This server has 384 MB of memory … so it can't start here."). A stop or cancel sent just before the server stopped used to be left for the next start, whose runner could resume the run's turn before applying it. Now the closing runner applies it: the run ends stopped or cancelled before the stop is done, and the next start never opens it again.
|
|
186
|
+
- Upgrading: nothing to change.
|
|
187
|
+
- Runs on the runner behave as before the cutover in four places a person could hit:
|
|
188
|
+
- A run keeps the files it was started with. The server holds each of a run's `file_ids` for it at the start, so a file deleted between the start and the runner's claim is still copied into the run's `inputs/`. The hold goes once the copy is made, or when the run ends without one.
|
|
189
|
+
- A copy of a run's files that fails ends the run failed with "The run's files could not be copied into its workspace: <why>", instead of the bare error.
|
|
190
|
+
- A message sent while a turn works is answered before the run ends. The runner hands a turn's end every message it has not handed on yet, rather than at its next poll half a second later, so the run's end no longer refuses one the API took. On pi, a message placed as the turn answered was answered after the run's end was written: the run read completed, then wrote another answer.
|
|
191
|
+
- A claude-agent run's rows name a file it wrote or read by its name in the workspace (`Wrote hello.md`, `Saved hello.md`), not by the absolute path the Claude CLI sends, which named a folder on the runner's machine. The call's input preview keeps the path as sent.
|
|
192
|
+
- The test kit's faux adapter tells its script the session's working directory (`script(spec, { cwd })`), as a real CLI builds its absolute paths from it.
|
|
193
|
+
- A run's spend cap reads on the runner as it did before the cutover:
|
|
194
|
+
- A run paused at its cap shows the server's row "Paused at the run's cap" on its timeline, and, while it waits, "Waiting for you to raise the cap". The banner keeps the pause's sentence (`pending.said`). Before, nothing on the timeline said the run had paused.
|
|
195
|
+
- A run whose booked spend passed its cap shows by how much, after its usage row ("Spent $0.50, $0.20 over the run's cap of $0.30"), or that a cache miss did it within its bound.
|
|
196
|
+
- A run that passed its cap (`spend_cap_reached`) keeps the answer it paid for as `result.final_answer`, cut as it came. Before, its result was null.
|
|
197
|
+
- A run on a model with no price (a `--faux` module whose `cost` is `"unknown"`) costs unknown (`null`), never $0.
|
|
198
|
+
- Upgrading: nothing to change.
|
|
199
|
+
- A tool call the runner runs again after a crash meets the run's gate again. Before, a replay-safe call (web_search, web_fetch) that pi reran after a crash skipped the gate: a deny set since its first attempt didn't stop it, and a tool set to ask since ran it with no one's approval. Now a deny or a pin refuses the rerun in words saying the earlier attempt may have taken effect ("whether it took effect is not known"), never "nothing was sent", and a tool set to ask parks the run on it, the owner's answer then acting on it. A stop that lands while the rerun is asked wins over a permission that comes after it: the call never starts. Codex and Claude Code reruns say the same.
|
|
200
|
+
- A capped run that reads screenshots is no longer refused at its cap after the first one. A model request's input bound counted an image's base64 as one token per byte, and then the image's billed maximum on top. A 1280x720 screenshot (about a megabyte of base64) read as some 1.3 million input tokens, so a Sonnet step under a $1.50 cap "needed at least $4.83" when Claude bills it a few cents.
|
|
201
|
+
|
|
202
|
+
Each image, in every turn, now counts at what the routed model's provider can bill it as, in place of its data's bytes, whatever API carries it. The size comes from the image's own header (PNG, JPEG, GIF or WebP):
|
|
203
|
+
- Anthropic: its 28-pixel patches or its area at 750 pixels a token, whichever is more, at most 4,784.
|
|
204
|
+
- OpenAI: its 512-pixel tiles after resizing (85 + 170 each; 85 at detail low), or for a patch-billed mini or nano model its 32-pixel patches at that model's multiplier when more, at most 73,800.
|
|
205
|
+
- Google: 258 per 768-pixel tile, at least 1,120.
|
|
206
|
+
- Any other provider: the most of the three.
|
|
207
|
+
An image whose size can't be read counts at its provider's per-image maximum, never at its bytes. An image-shaped object outside where the API reads images (a tool call's arguments) is counted at its bytes, as text.
|
|
208
|
+
|
|
209
|
+
`InputShape.images` (the kernel host's `providerInputOverhead`) is now a list of images, each with the bytes its data takes and its size when known; `InputShape.model` names the routed model; the figure can be below 0, and so can a policy's `serverInputOverhead`, never past the body's bytes. Upgrading: pass `images: [{ bytes, width?, height? }]`, built with `imageInputOf`, `messagesImagesIn` or `responsesImagesIn`, and the model, in place of a count.
|
|
210
|
+
- Three fixes found by running again the tests the cutover skipped:
|
|
211
|
+
- A paid tool call's cost row on a run's timeline names the tool it ran (`web_search`, `web_fetch`) in its `tool_name` and its words, as the API docs say. Before, it named the fee ("Parallel's search").
|
|
212
|
+
- Saving an agent whose workflow the DSL can't read, with `POST /v2/agents` or `PUT /v2/agents/{agent_id}/definition`, answers 422 on `definition.workflow` in the DSL's words. Before, it answered 500.
|
|
213
|
+
- The contract's form of `PUT /v2/agents/{agent_id}/definition` takes any `version` past the current revision's, as the contract says; the revision is numbered the next. Before, a version further on than the next was refused 422.
|
|
214
|
+
- On a Postgres store, a write held up by the server process (its event loop busy with other work) no longer rolls back when the transaction itself was fine: its deadline, counted from the transaction's begin, counts only the time the process could run, as on SQLite. A lease's renew, whose deadline runs from its call, still counts the wall clock.
|
|
215
|
+
A pause longer than the database's idle-in-transaction timeout (the deadline plus 5 s) still ends the session at the database's end, which rolls the transaction back. The write now answers 409 `home_busy`, which is safe to retry, never a 500. A pause that ends just before the commit is credited to the commit's time too.
|
|
216
|
+
- Upgrading: nothing to change.
|
|
217
|
+
- Template follow-ups after launch:
|
|
218
|
+
- `release-notes` makes its own GitHub trigger: each release published on the repository it was applied to starts its notes (only that repository's). Applied where GitHub is not connected, the agent is made and the trigger is skipped with a warning. The GitHub App that Connect GitHub makes now subscribes to `release` events too, beside pull requests and comments.
|
|
219
|
+
- Upgrading: an App connected before this release is not subscribed to releases, so its release-notes trigger never fires. In GitHub, open the App's settings, then Permissions & events, tick Release under Subscribe to events, and save.
|
|
220
|
+
- A skipped GitHub trigger's warning says what it would run on, in the template's own words ("…so it runs by itself: Release notes runs on each release to acme/widgets."), never "review pull requests" for every template.
|
|
221
|
+
- New eval cases: `code-review/mentions-defused` (a review of a PR whose body and diff mention people and a team posts no plain @-mention) and `kyb/opensanctions-on` (with OpenSanctions on, its pages are an index cited as aggregators, the list owners' records stay the evidence, and the licence is stated); `kyb/clean-public-company` checks that with it off, opensanctions.org is never touched.
|
|
222
|
+
- A workflow run on the runner whose decision's provider reported no cost now saves its cost as unknown, not as the decision's hold. The run's end cost read the cap's own figure for its decisions, which counts a decision of no reported cost at its hold, so a run saved the hold (a guess) as a known cost. It now reads its decisions' cost from their booking records, as a pi or CLI run does: an unknown charge leaves the run's cost unknown. The cap still counts such a decision at its hold, so the run's cap is kept as before.
|
|
223
|
+
- What a run shows on the runner is right again:
|
|
224
|
+
- A run a provider's content filter stopped fails `moderated`, in words a person can act on ("The model provider stopped this answer (its content filter). Rephrase the request, or try another model."), on every harness. It failed `run_failed` in the provider's words. The Timeline's error row keeps them.
|
|
225
|
+
- An escalated run's `review` names the escalate node's kind, its label and its summary (`{kind: "review", node: "too big", reason: "needs a person"}`), in the run, in the lists and after a restart. It read `kind: null, node: null` and the reason "escalated at <node>".
|
|
226
|
+
- `GET /runs/{id}/graph` lists a workflow's call nodes' calls in `effects` again, each with its status and, for a refused one, the gate's words. The runner kept no node log, so every workflow run's `effects` was empty.
|
|
227
|
+
- An `llm` call's answer names the model it ran on as the run names it (`faux/faux-strong`), not the runner's internal session provider (`workflow-session-strong/faux-strong`).
|
|
228
|
+
- A workflow run refused for a wrong-typed input field (`input at #/properties/question`) is offered an input its workflow takes (`example`), as a missing or wrong-shaped input already was.
|
|
229
|
+
- Most of the learning tests that were skipped for the CLI harnesses run again. A test's harness table now reaches the in-process runner with or without the faux model, so a CLI run on a gateway runs on the test's harness, never on an installed CLI. These now pass: learned_workflow on claude-agent and codex, the gateway route on codex and opencode, both capped-codex cases, the side-call and claude-agent proxy cases, the real-adapter ask-and-allow cases, and the usage meter. Their checks of root entries the old per-run process wrote now read the runner's request records. Four cases that can't run on the in-process runner are gone, each still covered elsewhere:
|
|
230
|
+
- a learned call set to ask on the faux CLI harness, which asks no gate: covered by learned-route-real's real-adapter ask-and-allow cases on claude-agent and codex;
|
|
231
|
+
- a call cut off with its process, which would kill the test's own process: covered by the kernel's runner tests (a request a crash cut off is booked once, cut) and learned_workflow's never-replay case;
|
|
232
|
+
- claude-agent on OpenRouter alone, which needs a preload in a separate run process: covered by openrouter-route's or-1 and the kernel's side-key test;
|
|
233
|
+
- a call beside learned_workflow staying on its answer, which read the old root entries: covered by the kernel's side-key test (a side request is never the turn's answer).
|
|
234
|
+
Three sites in learn-workflow-run stay skipped, under reasons of their own: the two claude-agent native-search cases (:369, :383) wait on #2458, and the allow-before-the-parked-result race (:430, on codex and claude-agent) waits for the faux harness to ask the gate. learned-route's R2 and R3 no longer check the network guard: its preload can't reach an in-process runner, so those checks proved nothing.
|
|
235
|
+
Upgrading: nothing to do.
|
|
236
|
+
- The learning docs' "Coming" list no longer names what is on main: a grade that contradicts itself is asked once more, and a learned workflow's call node runs a granted MCP tool under the run's gate, each now in the learning section's text; the checker's refusal of a bank account, IBAN, routing or sort-code number is said beside the grader's rule. What a run's own draft may call of MCP stays under "Coming".
|
|
237
|
+
- The server README's GPU section says what a Daytona GPU sandbox is: one `H100` from Daytona's `daytona-gpu` snapshot, with its 16 vCPUs, 100 GiB of memory and 400 GiB of disk, and no mount, so this server refuses a Daytona sandbox with a `gpu` where its run folder is an Archil mount. It used to list six GPU types, up to eight, at 192 GiB of memory and 512 GiB of disk each.
|
|
238
|
+
- Each computer provider is now declared once, in a descriptor (`defineProvider`: its id, label, keys and the option each fills, settings, mounts, configurations, default images, whether it prepares its image, runs on this host or takes a ledger, and a lazy `load()`), and the registry and the kind registry's `PROVIDERS` are derived from the descriptors. `ProviderId` is any string; the built-in ids are `BuiltinProviderId`. The server reads every provider from its descriptor and names none, and an agent's computer can name an image a provider's configurations offer.
|
|
239
|
+
|
|
240
|
+
Who breaks, and what to do:
|
|
241
|
+
|
|
242
|
+
- The package root no longer exports the provider classes or their option types. Import `DockerProvider`, `DaytonaProvider`, `ModalProvider`, `BrowserbaseProvider`, `KernelProvider` and their helpers from the provider's subpath (`@parcha/agentrun-computer/docker`, `/daytona`, `/modal`, `/e2b`, `/orgo`, `/orgo-desktop`, `/phone-harness`, `/browserbase`, `/kernel`), or build a provider by id with `providerFor(id, options)`. Their option types (`DockerProviderOptions`, `ModalSdk` and the like) come from the same subpaths. Each provider's default image (`DAYTONA_DEFAULT_SNAPSHOT`, `MODAL_DEFAULT_IMAGE`, `E2B_BASE_TEMPLATE`, `ORGO_BASE_IMAGE`, `PHONE_IMAGE`, `BROWSER_IMAGE` and so on) is its descriptor's, exported from the root and no longer from its provider module. `ProviderKey` is gone: use `DescriptorKey`.
|
|
243
|
+
- A vendor's own failure is now code `vendor`, with the provider's id in the error's `vendor` field, where it was code `docker`, `daytona`, `modal`, `e2b`, `orgo` or `phone`. Match on `code === "vendor"` and read `vendor`. Settings → Computers' test reads it as "<provider> answered with an error"; an old code has no words of its own.
|
|
244
|
+
- `ComputerSpec.lifetimeMs` is optional in the type: a run's computer still needs it (`checkTenure`, which replaces `checkLifetime` in a provider's `check()`, refuses a spec without it), and an agent's computer has none.
|
|
245
|
+
- A provider whose descriptor declares `prepareImage` has `prepareImage()`, the image a computer starts from, built or pulled (Docker's is its `image()`). The server calls it before the first create and refuses the computer in words when it is missing; nothing looks for an `image()` method instead.
|
|
246
|
+
- Orgo offers Linux desktops only: its Windows and macOS desktops are parked (the descriptor's new `parked` list). An agent whose computer names Orgo's `windows` or `macos` image is refused at its run's start in words saying the desktop is parked and naming the image Orgo offers, `linux`; Settings → Computers lists no Windows image. `create({ os: "windows" })` and `create({ os: "macos" })` still build their providers, for the conformance suite.
|
|
247
|
+
- Local Chrome, the keyless local browser that 0.1.0-beta.34 shipped as the provider `local`, is the provider `local-chrome` (its descriptor `descriptors/local-chrome.ts`; `LocalBrowserProvider` from `@parcha/agentrun-computer/local-chrome`, its provider id's subpath; `./local` is gone): an agent's computer names `{ kind: "browser", provider: "local-chrome" }`, and one saved as `provider: "local"` is refused at its run's start as a provider this server does not know: set it to `local-chrome`.
|
|
248
|
+
- A provider module no longer exports `NETWORK`: the networks a provider makes are its descriptor's `network` (`ORGO.network`, for one), which the kind registry's entry carries and of which each built provider's `capabilities().network` is its own configuration's. Its conformance names are `AGENTRUN_COMPUTER_LIVE_LOCAL_CHROME`, `COMPUTER_LOCAL_CHROME_PATH` and `COMPUTER_LOCAL_CHROME_HEADED`. A descriptor's `hostEnv` names the server's own environment variables its provider reads on this machine (Local Chrome's Chrome lookup), which the server passes as `options.env`.
|
|
249
|
+
- Orgo computers made by a release before this one are swept at the next janitor pass; release them before upgrading. An Orgo computer's deadline is the one in its name alone, never Orgo's own end (`ends_at`) or its labels file, so one whose name carries none is a run's computer with no deadline, which the janitor ends.
|
|
250
|
+
|
|
251
|
+
Persistent computers are in the provider contract: `capabilities().persistence`, `spec.owner` (`{ agent, idleTtlMs? }`, labelled `agentrun.owner=agent:<id>`), `release(ref, "detach")`, `attach(ref, { claim })` under a new claim epoch, and on `ComputerInfo` `owned`, `owner` and `detachedAt`. Every built-in provider refuses `spec.owner` and `detach` in words; none declares persistence yet. `sweep` never deletes an agent's computer by a deadline, only when `ownerGone(agent)` says so or after its owner's idle TTL; `releaseOlder` detaches an agent's computer instead of deleting it (`ReleasedOlder.detached`). Only a provider that declares persistence has agents' computers: of one that does not, an owner label a caller put on a run's spec keeps nothing from the janitor. The conformance suite adds `provider.owner` and `provider.detach` (Core) and `provider.persistence` (Full, where persistence is declared). Docker's inspect read-back moves to `src/docker/inspect.ts`, with the same exports.
|
|
252
|
+
|
|
253
|
+
A configuration (`KindCapabilities`) may name the `image` an agent's setting selects it by and the create() `options` that build it (`imagesOf`, `configurationOf`). An agent's computer may name one: `computer: { kind, provider, image }`, such as `{ kind: "desktop", provider: "orgo", image: "linux" }`. It selects the provider's configuration of that name, built by its options beside the keys' (Orgo's `os`); absent, the kind's default. GET /computers lists each provider's `images` for the kind, the default first. An image the provider does not offer saves with a warning naming the ones it does, and its runs are refused at their start in the same words.
|
|
254
|
+
|
|
255
|
+
The server reads what each provider takes from its descriptor: its saved keys fill the options the descriptor names, a setting it declares (Modal's `modalApp`) fills its option from the server's settings or its default, the store's session ledger goes to a provider that declares one, and the image and host options go to one that declares `prepareImage` or `local`. A provider added to the computer package needs no server edit; an id no descriptor declares is refused.
|
|
256
|
+
|
|
257
|
+
Orgo's Windows desktop (parked: built, not offered to an agent): `create({ os: "windows", apiKey, workspaceId })` (`@parcha/agentrun-computer/orgo-desktop`) gives a desktop with daemon `none` that answers the protocol over Orgo's REST API. The screen is Orgo's screenshot; the pointer and keys are its click, drag, scroll, type and key calls; exec is its bash call, PowerShell, and the files methods go through PowerShell too. A cwd or variable that cannot be set runs nothing, and a move with overwrite replaces what is at its target as rename(2) does. Settings → Computers asks for Orgo's workspace beside its key: `ORGO_WORKSPACE_ID` fills `workspaceId`, which every Orgo provider is built with. The network is `open`, since Orgo has no egress control. Orgo's descriptor offers one configuration, `linux` (the default), and parks `windows` and `macos`. Nothing runs in a computer Orgo does not read running. What Orgo's API cannot do (a triple click, a held key) is refused in words. A `down` and its `up` become one click or drag, and a cancelled batch lets go of its press. Each Orgo provider's list keeps to its own system's desktops (Orgo's listing names each one's os), so no janitor sweeps another's. The conformance suite skips, in words, a case written for another system (`Case.os`, `caseOs`): the Linux exec and process cases, and the files cases on Windows. Such a skip (`CaseResult.os`) is not this computer's to pass or fail, so it leaves Core's verdict as an undeclared group's does. With `COMPUTER_ORGO_OS=windows`, `--kind desktop` runs the desktop's cases against a Windows fixture this package carries, a PowerShell script.
|
|
258
|
+
- A run whose bash has a policy (`tool_settings.bash.policy: "read-only"`) now runs each shell command on Archil's serverless exec (Mode 2, no computer) with its egress denied (`network: {egress: {default: "deny"}}`), so a command can reach the run's folder and nothing on the network. If the owner's Archil plan takes no network policy (a 403 such as `network_plan_required` on the Free plan), the command runs with the network open, and its stderr starts with one line saying so, with Archil's words in it. The workspace remembers the refusal and doesn't ask again. The read-only gate still holds either way. Only the shell's commands are denied: the server's own execs on the run's folder keep Archil's default network. A command on a local folder or in a computer can't be given a network policy, and a Workspace exec that asks for one there is refused before anything runs.
|
|
259
|
+
- The console's agent cards keep their chips on one row at every width: when a card's chips and its three actions don't fit side by side, the actions move to a row of their own and the chips keep theirs ("1 revision · 1 run" stacked one under the other at 820 px, and the Learning chip dropped under its counts at 1440 px). A real-browser flow (`agent-card-footer` in `npm run test:e2e`) measures every card at 1440, 1150, 820 and 390 px: each chip on one line, a card's chips on one row whenever that row fits, nothing past the card's right edge, every action the same square.
|
|
260
|
+
- A paid call the cap refused for room pauses the run with the run's spend as it is when the pause lands, and never refuses a person's answer to a question the same turn ended on:
|
|
261
|
+
- The budget card (and its words) count what calls beside the refused one charged before the model's next request, not the spend at the refusal. A call that would now fit (one beside it settled for less than it held) pauses nothing.
|
|
262
|
+
- A turn that ends on a question to the person (ask_person) with no next model request drops the refused call's pending pause, so the person's answer reaches the model and is never refused in that call's words, on this claim or the next.
|
|
263
|
+
- The kernel cap's refusal for a paid call names the call (`figures.step`: its name, hold and basis), and `paidRefusal` is exported, so a host can say a refusal again with the run's spend later.
|
|
264
|
+
- Security: on the runner, a claude-agent, codex or opencode run's CLI process now starts under `setpriv --no-new-privs`, as pi's commands do, so a setuid program or file capability that the CLI or a command it runs reaches grants nothing. It has been unconfined since the per-run process went. It uses pi's own rule (`noNewPrivsPrefix`, new in `@parcha/pi-durable-disk/internals`): Linux only, nothing on macOS, and on Linux a run is refused with pi's `SETPRIV_UNAVAILABLE` words where `/usr/bin/setpriv` (util-linux) is not usable.
|
|
265
|
+
- A separately started runner (`agentrun-serve runner`) no longer loads a faux module named in its environment. `AGENTRUN_SERVE_FAUX*` and `AGENTRUN_HARNESS_TABLE` left in an operator's shell or a platform's settings decided what a run answered. A runner now loads the faux model only from its own `--faux <module>`, as the server does. Test setups that gave a runner `AGENTRUN_SERVE_FAUX` pass `--faux` instead (`deploy/walk/compose.walk.yaml` does).
|
|
266
|
+
- A capped workflow run on the runner keeps three money rules it used to keep. A raise too small for the step that parked the run shows the new pause at the raised cap, not the launch cap, so the next raise is checked against the cap the run has. A decision whose OpenRouter catalog price can't be read for a moment is read again (three reads) before its node fails, and a catalog still down fails the node unsent, never as the cap's stop. A decision's hold is taken only after the workflow's driver has admitted its request, so a runner that dies in between no longer leaves a hold the next claim counts beside asking the decision again (a $0.40 decision was counted $0.80). In the DSL, a decision request that never left (an `unsent` refusal) now ends failed even when the run is stopping, so the next process asks it again instead of escalating it as asked and never answered.
|
|
267
|
+
|
|
5
268
|
## 0.1.0-beta.34 (2026-11-11)
|
|
6
269
|
|
|
7
270
|
- 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.
|