@parcha/agentrun-serve 0.1.0-beta.59 → 0.1.0-beta.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +188 -106
  3. package/dist/agent-delete.d.ts +6 -9
  4. package/dist/agent-delete.js +5 -3
  5. package/dist/agent-package.js +11 -1
  6. package/dist/api-only.d.ts +2 -2
  7. package/dist/api-only.js +3 -3
  8. package/dist/archil-routes.d.ts +4 -1
  9. package/dist/archil-routes.js +15 -12
  10. package/dist/archil-settings.d.ts +18 -8
  11. package/dist/archil-settings.js +35 -17
  12. package/dist/chatgpt-plan.d.ts +4 -2
  13. package/dist/chatgpt-plan.js +13 -3
  14. package/dist/claude-login-token.d.ts +5 -0
  15. package/dist/claude-login-token.js +8 -0
  16. package/dist/claude-login.d.ts +49 -3
  17. package/dist/claude-login.js +140 -10
  18. package/dist/cli-learning/connections.js +1 -1
  19. package/dist/console/assets/{backend-BztxEAvb.js → backend-QnwGVBeU.js} +1 -1
  20. package/dist/console/assets/index-DZi-muIj.js +629 -0
  21. package/dist/console/assets/{share-L84tlUDW.js → share-pz61zIn9.js} +2 -2
  22. package/dist/console/assets/{styles-CaRKlHke.js → styles-CcceGcu2.js} +31 -31
  23. package/dist/console/assets/styles-fjQBFfMv.css +1 -0
  24. package/dist/console/index.html +3 -3
  25. package/dist/console/share.html +3 -3
  26. package/dist/decisions.d.ts +1 -1
  27. package/dist/decisions.js +2 -2
  28. package/dist/factory-activity.d.ts +68 -0
  29. package/dist/factory-activity.js +153 -0
  30. package/dist/factory-runs.d.ts +11 -0
  31. package/dist/factory-runs.js +52 -0
  32. package/dist/filed-tool.d.ts +32 -0
  33. package/dist/filed-tool.js +122 -0
  34. package/dist/harness-keys.d.ts +1 -2
  35. package/dist/harness-keys.js +1 -2
  36. package/dist/harness-table.d.ts +4 -0
  37. package/dist/harness-table.js +4 -0
  38. package/dist/harness.js +6 -2
  39. package/dist/import-worker.js +2 -2
  40. package/dist/import.d.ts +9 -0
  41. package/dist/import.js +11 -1
  42. package/dist/key-refusal.d.ts +5 -0
  43. package/dist/key-refusal.js +25 -15
  44. package/dist/learn/audit.d.ts +20 -22
  45. package/dist/learn/audit.js +72 -55
  46. package/dist/learn/check.js +1 -1
  47. package/dist/learn/commit.d.ts +35 -43
  48. package/dist/learn/commit.js +62 -270
  49. package/dist/learn/compile.d.ts +4 -4
  50. package/dist/learn/compile.js +6 -7
  51. package/dist/learn/corrections.js +1 -1
  52. package/dist/learn/delete.d.ts +5 -12
  53. package/dist/learn/delete.js +17 -30
  54. package/dist/learn/forget-run.d.ts +16 -0
  55. package/dist/learn/forget-run.js +53 -0
  56. package/dist/learn/index.js +1 -1
  57. package/dist/learn/learning-of.d.ts +0 -4
  58. package/dist/learn/learning-of.js +0 -5
  59. package/dist/learn/{folder.d.ts → legacy/folder.d.ts} +2 -1
  60. package/dist/learn/{folder.js → legacy/folder.js} +4 -7
  61. package/dist/learn/legacy/place.d.ts +16 -0
  62. package/dist/{workspace/learning-workspace.js → learn/legacy/place.js} +12 -42
  63. package/dist/learn/legacy/scrub.d.ts +28 -0
  64. package/dist/learn/legacy/scrub.js +258 -0
  65. package/dist/learn/promote.d.ts +40 -66
  66. package/dist/learn/promote.js +69 -207
  67. package/dist/learn/reset-ledger.d.ts +18 -0
  68. package/dist/learn/reset-ledger.js +14 -0
  69. package/dist/learn/rows.d.ts +186 -0
  70. package/dist/learn/rows.js +376 -0
  71. package/dist/learn/workflow-draft.d.ts +4 -1
  72. package/dist/learn/workflow-draft.js +12 -2
  73. package/dist/learning-reset.d.ts +1 -1
  74. package/dist/learning-reset.js +9 -11
  75. package/dist/learning-routes.d.ts +60 -81
  76. package/dist/learning-routes.js +187 -360
  77. package/dist/learning-words.d.ts +2 -0
  78. package/dist/learning-words.js +2 -0
  79. package/dist/learning.d.ts +18 -24
  80. package/dist/learning.js +35 -66
  81. package/dist/mcp-gateway.d.ts +6 -0
  82. package/dist/mcp-gateway.js +44 -8
  83. package/dist/mcp-resources.d.ts +1 -1
  84. package/dist/native/discovery.d.ts +6 -0
  85. package/dist/native/discovery.js +14 -1
  86. package/dist/native/remote.d.ts +5 -0
  87. package/dist/native/remote.js +16 -0
  88. package/dist/native/runtime.js +3 -2
  89. package/dist/observation/observer.d.ts +6 -6
  90. package/dist/openapi.js +89 -29
  91. package/dist/place-offers.d.ts +3 -0
  92. package/dist/place-offers.js +3 -0
  93. package/dist/place.d.ts +33 -11
  94. package/dist/place.js +61 -26
  95. package/dist/purged-workflow.d.ts +0 -33
  96. package/dist/purged-workflow.js +3 -71
  97. package/dist/redact/match.d.ts +19 -4
  98. package/dist/redact/match.js +123 -30
  99. package/dist/run-launch.d.ts +3 -3
  100. package/dist/run-learning-served.d.ts +3 -3
  101. package/dist/run-learning-served.js +1 -1
  102. package/dist/run-listing.d.ts +1 -1
  103. package/dist/run-timeline-served.d.ts +1 -1
  104. package/dist/run-timeline-served.js +6 -5
  105. package/dist/runnable.js +25 -8
  106. package/dist/runner/adapter-run-spec.js +11 -20
  107. package/dist/runner/audit.d.ts +2 -4
  108. package/dist/runner/audit.js +28 -51
  109. package/dist/runner/cli-run-spec.js +8 -14
  110. package/dist/runner/compare-end.d.ts +0 -2
  111. package/dist/runner/compare-end.js +6 -2
  112. package/dist/runner/disk-free.d.ts +15 -4
  113. package/dist/runner/disk-free.js +25 -7
  114. package/dist/runner/feedback-round.d.ts +1 -1
  115. package/dist/runner/feedback-round.js +2 -2
  116. package/dist/runner/harness-loops.js +2 -3
  117. package/dist/runner/held.d.ts +0 -10
  118. package/dist/runner/held.js +0 -25
  119. package/dist/runner/journal-kinds.d.ts +4 -1
  120. package/dist/runner/journal-kinds.js +1 -1
  121. package/dist/runner/learned-first.d.ts +0 -2
  122. package/dist/runner/learned-first.js +3 -3
  123. package/dist/runner/learning-end.d.ts +12 -16
  124. package/dist/runner/learning-end.js +41 -75
  125. package/dist/runner/learning-seed.d.ts +13 -16
  126. package/dist/runner/learning-seed.js +13 -23
  127. package/dist/runner/main.js +1 -1
  128. package/dist/runner/mcp-run.d.ts +4 -0
  129. package/dist/runner/mcp-run.js +2 -0
  130. package/dist/runner/native-loop.js +2 -3
  131. package/dist/runner/promotion.d.ts +19 -28
  132. package/dist/runner/promotion.js +50 -69
  133. package/dist/runner/reflect-hook.d.ts +2 -2
  134. package/dist/runner/reflect-hook.js +4 -1
  135. package/dist/runner/run-child-host.d.ts +1 -9
  136. package/dist/runner/run-child-host.js +11 -67
  137. package/dist/runner/runner.d.ts +1 -1
  138. package/dist/runner/sdk-loop.js +2 -4
  139. package/dist/sdk/check.d.ts +1 -4
  140. package/dist/sdk/check.js +2 -3
  141. package/dist/sdk/runs.d.ts +20 -7
  142. package/dist/sdk/runs.js +105 -68
  143. package/dist/secrets.d.ts +4 -0
  144. package/dist/secrets.js +44 -10
  145. package/dist/server-fs.d.ts +1 -1
  146. package/dist/server-fs.js +1 -1
  147. package/dist/server-keys.d.ts +6 -0
  148. package/dist/server-keys.js +12 -0
  149. package/dist/server.d.ts +15 -15
  150. package/dist/server.js +214 -164
  151. package/dist/source-sync/auxiliary.js +2 -2
  152. package/dist/store/index.d.ts +1 -1
  153. package/dist/store/index.js +1 -1
  154. package/dist/store/postgres/migrations/0032_learning_rows.sql +65 -0
  155. package/dist/store/schema.d.ts +28 -2
  156. package/dist/store/schema.js +81 -5
  157. package/dist/store/sqlite/learning-rows.d.ts +23 -0
  158. package/dist/store/sqlite/learning-rows.js +559 -0
  159. package/dist/store/sqlite/store.d.ts +7 -1
  160. package/dist/store/sqlite/store.js +84 -18
  161. package/dist/store/store.d.ts +219 -6
  162. package/dist/store/store.js +13 -0
  163. package/dist/store-reads/journal.d.ts +33 -3
  164. package/dist/store-reads/journal.js +99 -4
  165. package/dist/store-reads/learning.d.ts +18 -22
  166. package/dist/store-reads/learning.js +35 -26
  167. package/dist/store-reads/loop.js +1 -1
  168. package/dist/store-view.d.ts +24 -2
  169. package/dist/store-view.js +40 -11
  170. package/dist/templates.d.ts +10 -2
  171. package/dist/templates.js +31 -4
  172. package/dist/tool-plane.d.ts +4 -2
  173. package/dist/tool-plane.js +9 -2
  174. package/dist/web-holds.d.ts +2 -0
  175. package/dist/web-holds.js +5 -2
  176. package/dist/web-run.js +2 -1
  177. package/dist/workspace/archil-exec.js +1 -1
  178. package/dist/workspace/archil.d.ts +1 -1
  179. package/dist/workspace/archil.js +1 -1
  180. package/dist/workspace/computer-deps.js +5 -3
  181. package/dist/workspace/computer-providers.d.ts +11 -1
  182. package/dist/workspace/computer-providers.js +29 -2
  183. package/dist/workspace/index.d.ts +1 -2
  184. package/dist/workspace/index.js +1 -2
  185. package/dist/workspace/paths.d.ts +0 -4
  186. package/dist/workspace/paths.js +0 -6
  187. package/dist/workspace/workspace.d.ts +1 -1
  188. package/dist/workspace/workspace.js +1 -1
  189. package/package.json +13 -13
  190. package/templates/TOOLS.md +46 -0
  191. package/dist/console/assets/index-LwNL4L9q.js +0 -619
  192. package/dist/console/assets/styles-DQo8rzY-.css +0 -1
  193. package/dist/workspace/learning-workspace.d.ts +0 -24
  194. /package/dist/learn/{learning.sh → legacy/learning.sh} +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,83 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.0-beta.60 (2026-11-26)
6
+
7
+ **Breaking:**
8
+
9
+ - Turning on Claude Code's login on this machine at AgentRun's own login (`place` `agentrun`) is refused (403 `forbidden`) where `<data>/claude-login` is a link, in words that name the link and what it leads to: the new Sign out removes that folder whole, so it is a folder AgentRun keeps itself and never a link into another tree. Who breaks: a server whose `<data>/claude-login` was made a link to a folder elsewhere. What to do: remove the link (move what it led to into `<data>/claude-login` if you want that login kept), then turn the mode on again. <!-- changes/claude-login-folder-link-refused.md -->
10
+ - `GET /capabilities` no longer has `features.harness_keys.kept`, and its `features.harness_keys` is now the same for every caller. The console offers Settings → Harness keys wherever the server serves the keys' routes (`features.harness_keys.routes`), as it does Tool keys, so the tab now shows on a server started with no plan-billed recipe too, empty there. `GET /settings/harness-keys`, which any authenticated caller can read (saving and removing a key still take the owner's session), still lists each id whose recipe the server no longer names (`named: false`), so its keys can be removed. A client that read `kept` should read that list instead. <!-- changes/harness-keys-tab-routes.md -->
11
+ - An agent's learning (its corrections, learned workflows, promotions, grades and audits) is now kept as versioned rows in the server's store, SQLite or Postgres, in place of a git folder on the agent's disk and settings keys. Runners must be upgraded with the server: a server upgrade adds the tables (Postgres migration 0032, which raises the runner floor to 32, and SQLite schema version 17), and a runner of an earlier release is refused at its open (on Postgres, `RunnerBelowFloor`, naming the version it must know), since it would still keep learning in the folder and settings keys. Each agent starts again from nothing learned. Learning kept before the upgrade (a learning folder on disk or on an Archil disk, and the old settings keys) is not migrated, nothing reads it, and nothing removes it at the upgrade, but `DELETE /runs/{id}` still scrubs that run from it as before: its corrections line and learned workflows come off the local folder's current files in a host commit (its merges stay in the folder's git history until the agent's purge), its diff files go, the agent's learning folder goes from an Archil disk the run's launch named, and its grade and its promotion copies come off the old `learning.grades` and `learning.promotions` keys. An agent's purge removes the folder and those two keys whole, as before. Nothing else of it is removed, and `learning` stays a reserved folder name in an agent's home. Version ids (`main`, `commit`, a run's `learning.seed`) are now opaque save ids, still 40 hex characters. A run's purge deletes its learning rows in the same transaction (its notes, workflow versions, grades, and the promotions and audits of what it alone wrote), so nothing of it is refused or served later. The purge is itself a save, so a change computed before it is computed again, and a run that read the agent's learning before another run's purge has its learned files dropped (reason `purged_since_seed`, new in the closed list of a run's learning reasons); an owner's correction alone still lands. The purge also blanks what other promotion records and SDK runs' inboxes copied from the run (an inbox names every run that wrote a file of a workflow it delivered, its `README.md` as well as its `workflow.json`). An SDK start pinned by a server before the upgrade names none of those runs, so its receipt sent again (the same `Idempotency-Key`) answers `409 not_continuable`, and any run's purge empties its inbox: start a new run with a new key. A revision whose promotions the purge deletes keeps its K in the agent's reset ledger while another run is still billed against it, so the runs that carry its spend keep the same `share_usd`, `learning_usd` and `all_in_usd`; the entry goes with the purge of the last such run. Its learning diff goes too, and like every route of a purged run, `GET /runs/{id}/learning/diff` answers `410 purged`. The agent cost read drops its `degraded` field, and learning no longer runs git or a learning script except for that scrub. An API-only server (`AGENTRUN_API_ONLY=1`) now serves `GET /agents/{id}/learning/audits` with its token too, beside the loop, promotions and cost reads, so a backend's Learning tab can read an agent's audit ledger. <!-- changes/learning-store-rows.md -->
12
+ - On a server with no Docker box whose runner has no shell (Mode 1), a new agent with no place is refused, never sent to the runner or to another box, and `capabilities.places.default_place` is `null` there. Two things break. A create that used to succeed now fails: an agentic definition that names no place and would get the Docker box (it names no tools, or names a shell tool such as `bash` or a background tool) is `422 input_invalid` with `{field: "definition.place", reason: "missing"}`, and the message `name a box: this server has no Docker box for a new agent. Set place to {mode: sandbox, box: <one of: …>}, or to {mode: runner} to run without a shell.` The message lists the boxes this server has, or `<none is set up>`, and ends with why the Docker box is not here, in its own words with their fix (`docker: <why>.`, such as joining the docker group, then a restart); the `fix` names the place to set alone. Before, such an agent was saved with no place and ran on the runner with no shell. An edit that would save such a revision is refused the same way, and so is a template apply, or an `agentrun deploy`, of a package that names no `tools` and no `computer` list, whatever MCP tools the apply ticks: with Docker such an apply gets the Docker box and its shell tools, as a create does. Its `dry_run` is refused alike, in the same field, reason and words, with no plan, so `agentrun deploy` stops at the preview: no plan printed, no confirmation asked, no apply sent. And `capabilities.places.default_place`, still always sent, can be `null`: no default, so a new agent names its place. `default_reason` is there exactly when it is `null`, with the refusal's words. A client tells the cases apart by `default_place === null`, never by reading `default_reason`. <!-- changes/no-box-new-agent-names-a-box.md -->
13
+
14
+ Upgrading: by mode, where a new agent with no place goes now. Agents saved before the upgrade with no place and no tools keep running on the runner, in every mode: the store holds their tools as `[]`, the same as an agent that named none, so they are not refused.
15
+ - Refused (`name a box`; `default_place` is `null`): no Docker box, and the runner has no shell (Mode 1).
16
+ - Not refused: where Docker's box is available, a new agent gets it (`default_place` is `{"mode": "sandbox", "box": "docker"}`, no `default_reason`). In Mode 2, the runner's shell is Archil's serverless exec: a new agent with no place saves for the runner as before, and `default_place` is `{"mode": "runner"}`, no `default_reason`.
17
+
18
+ What to do on a Mode 1 server with no Docker: name the place, `"place": {"mode": "sandbox", "box": "<a box this server has>"}`, or `"place": {"mode": "runner"}` with no shell tool. To keep the runner without naming it, name the tools, with no shell tool among them (`"tools": []`, or `["read", "write"]`). A client that catches the refusal keys on `field` `definition.place` and `reason` `missing` (no new error code). A client that read `places.default_place.mode` checks for `null` first; the OpenAPI document marks the field `x-agentrun-serve: "place/5"`.
19
+ - The default box is the one whose provider descriptor sets `defaultBox` (Docker's). Another box that answers is never picked for a new agent.
20
+ - On Mode 1, a run of an agent saved earlier with no place and a shell tool, once Docker is gone, is `409 agent_not_runnable` in the same words. That run was already refused; only the words change.
21
+ - A package for an apply or a deploy on Mode 1 with no Docker names its tools (`tools: []` keeps the runner) or its computer list (`computer: [shell, none]`). One that already names either applies as before.
22
+ - A definition with no place that names a shell tool and the browser, on Mode 1 with no Docker, is refused at the shell tool (`not_an_option`): no place runs both, since a box refuses the browser, so the words say to remove one, never to name a box.
23
+ - Unchanged: a workflow, a definition that names its place (the runner included), and one whose tools need no shell.
24
+ - On Mode 1 with no Docker, the start's `Boxes:` line reads `Boxes: none, so a new agent must name its place: a box, or the runner.`, followed by Docker's reason. In Mode 2 it still reads `Boxes: none, so new agents run on the runner.` `agentrun doctor` reads `places.default_place`: with `null` it says a new agent must name its place, a box (listing the ready ones) or the runner, never that it runs in another box instead; otherwise it says what it said before.
25
+ - The console reads a `null` `default_place`: its new-agent form starts on neither the server nor a box (in the Computer step, no kind is picked), and Create waits until one is chosen, None included; on a server with no box, its place picker says to set one up for the agent, or choose On the server to run it without a shell.
26
+
27
+ **Changes:**
28
+
29
+ - Add Agent Factory, a kanban view of sessions reported to the server: waiting, working, needing attention, or with unknown source activity. Cards link to the existing run viewer and to GitHub work established by launch or trigger provenance. Reported active child conversations stay visible, SDK sessions and connected CLI sessions are labeled observed, with no stop or cancel offered, and ended failures and escalations needing attention appear separately. The same sessions also read as a list grouped by state, one row each, where a state's heading folds its rows away: a List and Cards switch beside the totals picks the view, and the browser keeps the pick. <!-- changes/agent-factory-visibility.md -->
30
+
31
+ Active and review scopes on the runs API filter before keyset pagination, including archived active executions and an audit's shadow run while it runs, while excluding imported history. A scoped page reads each run from the listing its row keeps, built once per change of the run as the runs list's items are, so a refresh builds no view of a run that has not changed; its journal is read again only to say who drives a desktop or phone that is up, or where a computer held for its owner stands. A GitHub link is what the server saved of the delivery that fired the run, so an example payload in a trigger's instructions is never taken for the event. The console refreshes bounded pages every 10 seconds, says beside Refresh when the sessions were last read, exposes remaining coverage, and keeps last-known cards visibly stale when a refresh fails. Its Control filter offers Managed and Observed whichever the loaded sessions have, and its top bar stays while the sessions scroll under it. This visibility layer does not schedule work, grant new controls, or infer verification or merge state.
32
+ - Agent37 needs only `AGENT37_API_KEY`. The server makes its own Ed25519 SSH key on first use, seals it in its store as it seals every saved key (the row `computer.agent37.ssh_key`, under `AGENTRUN_SEAL_KEY`), and registers its public half on the workspace (`POST /v1/ssh-keys`, named `agentrun-<hash>`) before its first instance, so the instance has it from boot. The one key serves every instance and outlives a restart on the same store. Claims or servers that reach first use together on one store make one key between them: the row is written only where none is, every one takes the key kept there, and only that key is registered. Before, a server took Agent37 only with `AGENT37_SSH_KEY` set to a key you made and registered yourself. <!-- changes/agent37-own-ssh-key.md -->
33
+ - `AGENT37_SSH_KEY` is now optional. When set, it is used as before, and nothing is made, stored or registered.
34
+ - A workspace that already holds Agent37's 20 SSH keys is refused before any instance, code `limit`, in words that name the cap and the way out: delete keys the workspace no longer needs (`agentrun-…` keys are ones AgentRun registered), or set `AGENT37_SSH_KEY`. No key is deleted. Any other 400 to the registration is a vendor error in Agent37's words.
35
+ - An instance made before the key was registered is tried again for up to three minutes after the registration (Agent37 hands a key to running instances within about two), within each call's own time. Past that the call is `denied`, and its words name the instance, the key's fingerprint and when it was registered.
36
+ - With no seal key, the server keeps its key in memory, so it makes and registers a new key each time it restarts. The conformance module does the same, so `COMPUTER_AGENT37_SSH_KEY` is optional. A key made that way stays on the workspace and counts toward the 20.
37
+ - The registration is a note naming the key by its fingerprint. The private key appears in no call, note, error or log.
38
+ - For callers of the package: a descriptor may declare `secrets: { option }`, the store (`ProviderSecrets`, `get` and `putIfAbsent`) where a provider keeps secrets it makes for itself. Serve passes its sealed store. Given no store, Agent37's provider keeps its key in the process's memory.
39
+ - Turning Archil on no longer asks for the region's S3 URL when serve knows the region. For `aws-us-east-1`, `aws-us-west-2`, `aws-eu-west-1` and `gcp-us-central1` (the regions Archil's SDK names a control plane for), `PUT /v2/workspace/archil` takes the region alone and saves that region's S3 endpoint (the control plane's host with `control.` made `s3.`, such as `https://s3.green.us-east-1.aws.prod.archil.com`); an `s3Url` given is still checked as https and used instead. The same holds where the server is started: `AGENTRUN_ARCHIL_REGION` alone is enough for a known region, and `AGENTRUN_ARCHIL_S3_URL` is needed only for another one. <!-- changes/archil-s3-url-from-region.md -->
40
+ - A region serve doesn't know, with no `s3Url`, is `422 input_invalid` at `s3Url` saying the region needs one and naming the regions serve knows; a server started that way stops in the same words. An `s3Url` that is not https, or empty, for a known region is refused naming that region's URL.
41
+ - `GET /v2/workspace/archil` (`x-agentrun-serve: "archil/2"`) adds `regions`, each region serve knows with its S3 URL, and, while on, `s3UrlFrom`: `region` when `s3Url` is the region's own, `given` otherwise.
42
+ - Settings → Workspace offers the known regions in the Region field, and leaves S3 URL empty for one of them, showing the region's URL as its placeholder.
43
+ - A disk-free runner reads a server started with `AGENTRUN_ARCHIL_REGION` alone as in Archil mode.
44
+ - A runner given `AGENTRUN_ARCHIL_REGION` without `AGENTRUN_ARCHIL_S3_URL` claims nothing while the server's S3 URL may be another (the server is started with `AGENTRUN_ARCHIL_S3_URL`, or its saved settings hold an `s3Url` other than the region's), and says on its presence row to hand it the server's S3 URL, so a runner and its server never reach a run's folder at two endpoints. `runner --check` lists `AGENTRUN_ARCHIL_S3_URL` as missing on such a runner when the server is started with it.
45
+ - Sign out of Claude Code's login on this machine: `POST /v2/settings/claude-login/sign-out` (operation `signOutClaudeLogin`), and a Sign out button on Settings → Model keys' Claude login row. Before, the row had no way to sign out or switch accounts: Turn off kept the login as the CLI holds it, so Turn on read the same account again with no sign-in page. <!-- changes/claude-login-sign-out.md -->
46
+ - On AgentRun's own login (`<data>/claude-login`) the sign-out ends a sign-in that waits, turns the mode off, runs the pinned CLI's own `claude auth logout` there (its credentials file and, on macOS, its Keychain item for that folder), then removes the folder, the login's signed-in note and the runner's token reader whatever the CLI said. The next Turn on reads not signed in and offers the CLI's sign-in, for the same account or another. Each removal stands alone: one that fails is named in the answer, and the rest, the reader's drop and the server's reread of the keys still happen. `confirmed` false adds a `message` saying what may remain: the CLI didn't confirm its own sign-out, or its step failed (named), or a file could not be removed. A link found at `<data>/claude-login` is removed alone, with the login's signed-in note, no CLI run through it and nothing it leads to touched.
47
+ - This machine's own login (`place` `machine`, the person's `~/.claude` or `CLAUDE_CONFIG_DIR`) is never signed out: the route answers 403 in words that say to run `claude auth logout` in a terminal there, and the console offers no Sign out on it.
48
+ - Runs already going on the login are left as a turn-off leaves them: each fails saying the login is signed out at its next read of it. Where each run is a user of its own, a run claimed on the login and started while the mode is off is refused at its start ("turned off or moved to another folder since this run's claim"), as after a turn-off. The claim checks the login's folder, not its account: a run claimed before Sign out and started after a new sign-in may run on the new account.
49
+ - Not guaranteed for a run still going where runs stay in the runner's process: its CLI holds the refresh token and may write a renewed pair back into `<data>/claude-login` after the sign-out, and nothing removes it when the run ends. Once such runs end, a turn-on that reads signed in again means Sign out again.
50
+ - The harness exports `claudeLogout(cli, login, { timeoutMs, path, platform })`: the CLI's `auth logout` with the sign-in's variables in the person's home, true when it exited 0 within its limit (15 s), false otherwise; it never throws.
51
+ - An MCP tool's answers can go to the run's files, for the skill's code, instead of coming back as the tool's result. A template sets it per tool with `mcp[].file: {<tool>: {folder, show}}` beside `pin`, and apply writes it into the agent's own tool settings as `mcp:<server>/<tool>: {file: {folder, show}}`. Each answer is written whole, credentials scrubbed, at `<folder>/<tool>-<time>-<id>.json` before the model gets its turn back. The tool's result is three lines: the answer's size and path, the value at each `show` path (at most 8, a string cut at 200 characters), and the answer's shape (keys and types to depth 2, array lengths, never a value). The shape names only keys that read as short names (a letter or `_` first, at most 32 letters, digits or `_`) and counts the rest, so a map keyed by emails shows none of them. The answer goes through neither the 60,000-character clip nor `evidence/mcp/`, however long it is. <!-- changes/mcp-filed-tool-results.md -->
52
+ - This keeps the answer out of the tool's result, not out of the model's reach. The model's own file tools (`read`, `grep`, `ls`, and `bash` on a computer) can still open the folder. A template that must keep the model off the answer shouldn't grant those tools, or should run its skill's code where the model can't read the output.
53
+ - An answer that is an error is filed the same way, and the tool's result is the same summary with `isError: true`, so the model can still react through a shown field such as `error.code`. Without the setting, error answers are shown as before.
54
+ - If the file can't be written, the call answers an error in the Workspace's words and shows none of the answer.
55
+ - A stored setting that no longer reads (a rule tightened since it was written, or a runner older than the server that wrote it) fails closed: every call of the tool is refused with an error naming the setting, and nothing is sent to the server. The owner sets it again or removes it.
56
+ - `folder` is 1 to 3 segments, none starting with a dot. A `show` path is 1 to 6 segments, each a key, an index or `-1` (the last item). A path that names a free-text field shows that text and defeats the option, so name only what the model needs to go on, such as the next page's cursor.
57
+ - The owner may change or remove the setting like any other in the agent's tool settings. With it removed, the tool's answers reach the model whole again, as before. The server's own tool settings and an MCP server's wildcard take no `file`.
58
+ - `GET /v2/templates` shows the setting on each tool that has one, and `GET /v2/agents/{id}/package` carries it back into the package's `mcp[].file`.
59
+ - An older serve refuses a package with `file` (an unknown field of its `mcp` entry), so a template that uses it needs this release.
60
+ - On macOS, a native Claude Code runtime now finds the person's login when the server was started without `USER`, as a service launchd starts may be. The `claude` it starts for the sign-in check and for each turn names its Keychain item's account by `USER`, and without one it looked under `unknown`, read signed out and refused every turn. Where the server's environment has no `USER` or `LOGNAME`, or an empty one, they are now set to the user the server runs as; a `USER` it has is kept as it is. <!-- changes/claude-keychain-native-user.md -->
61
+
62
+ At AgentRun's own login folder, the Keychain item an earlier console sign-in left under the account `unknown` is now deleted once the item under the Mac user is there: after a sign-in from the console, or at the first status check that reads signed in. Items of this machine's own Claude Code login, and items under any other account, are never touched.
63
+ - Every console page with a top bar now keeps the bar in view while the page scrolls under it. Before, these pages scrolled as a whole, bar and all: Agents, Templates and a template's page, Triggers, the Learning Dojo, Suggested agents, a connected agent's page, New race, a race, and Compare runs. Settings → Demo now scrolls under the Settings tabs as the other Settings pages do. <!-- changes/console-page-bars-pinned.md -->
64
+ - OpenRouter, Anthropic and Parallel now map a 402 (the account is out of credit) to `payment_required`, as Jev does. It was `http`. A workflow decision on an out-of-credit account is now booked at $0, and serve's run cost says $0, where it booked the hold. <!-- changes/decisions-payment-required.md -->
65
+ - dsl: in a map with `onItemFailure: "collect"`, a decision that answers `payment_required` now fails the run, as `auth` does, since every item would get the same 402. Before, a 402 was `http`, so each item failed on its own, booked at its hold, and the map went on.
66
+ - A recipe the server is started with (`--harness-recipe`) is now always in `GET /v2/capabilities`. Until it is installed, checked and has its keys or sign-in, its offer says `available: false` and its `reason` holds the code (`HARNESS_NOT_INSTALLED`, `HARNESS_NOT_CHECKED`, `HARNESS_KEYS_NOT_SAVED` or `HARNESS_NOT_SIGNED_IN`) and the command that fixes it. Before, it was left out of the list, so the console showed nothing to say why it was missing. A definition naming it still saves with a warning, and its run is refused with the same reason, as before. <!-- changes/harness-unchecked-listed.md -->
67
+ - OTLP redaction now also holds a credential that `OTEL_EXPORTER_OTLP_HEADERS` or an endpoint writes percent-encoded. A line quoting such a credential, as written or decoded, no longer prints it. The forms covered: <!-- changes/otel-encoded-credentials-held.md -->
68
+ - a credential with `%2C` in it, kept whole rather than cut at the encoded comma;
69
+ - a credential before an `&` written `%26`, or with a `%20` in it before one;
70
+ - a credential inside quotes written `%22` or `%27`;
71
+ - a pair value that follows an empty first `;`.
72
+ - Two reads of the ChatGPT sign-in that overlap no longer answer oldest last. Before, a server could read signed in again after it had found the sign-in expired (another process's renewal refused for good), until its next read. Now the newest read's state stays. <!-- changes/plan-read-newest.md -->
73
+ - A saved secret now stays hidden in more spellings: HTML references such as `&amp;`, zero-padded or unterminated numeric references, a "+" between halves split across strings, and a single-quoted dict. A run whose learned workflow start was withheld still records that workflow's name. The run graph now says when its node states are withheld. A console polling a run no longer re-checks unchanged tool arguments on every read. <!-- changes/redact-followup-spellings.md -->
74
+ - A run's rows are cut of its held values once per text, not once per read. A reader that follows a run (the console's live Timeline, a run's view polled) renders its rows on each change, and each render cut every text of the run again, so a long run cost the server work that grew with the square of its turns and slowed the run itself: a run of 61 web searches spent most of its time redacting what it had already redacted. A second read now cuts no text again; a key saved, rotated or reordered since cuts them all again, what is kept is bounded at 32 MiB per store (the oldest dropped first), and a deleted or purged run's texts are dropped from memory with its answer. <!-- changes/run-rows-cut-once.md -->
75
+ - An agent in a sandbox box is no longer refused for want of a model key that is set, on a machine where Claude Code is signed in. With Claude Code's login on, an agent in a box (a pi agent on an OpenRouter model in E2B, say) read as having no model key at all, saved in Settings → Model keys or set where AgentRun starts: its run was refused with "No OpenRouter key here …", its save warned the same, and its learning page read no model, while the same agent on the runner ran. <!-- changes/sandbox-place-keeps-model-keys.md -->
76
+ - Each `web_search` with Jev on also sends TypeSafe each result's published date, when the provider gives one, along with its URL, title and snippet. Searches already sent the date, but GET /capabilities' `why` and the README left it out. Both now name it. <!-- changes/serve-jev-search-published-date.md -->
77
+ - The web tools' Jev requests no longer follow a redirect. A 307 from the TypeSafe host fails the sift or the passage pick, so the key never goes to another address, and the search or fetch answers as it does when Jev is down. <!-- changes/serve-jev-web-redirect-refused.md -->
78
+ - In the console, editing a trigger, picking another agent and then picking the trigger's own agent again now brings back the input the trigger had. Before, the first pick discarded the stored input, so saving after the switch back sent the target again with the typed fields blank and without the keys no field shows (a `note` written through the API), and nothing on the page said so. <!-- changes/trigger-edit-agent-switch-back.md -->
79
+ - A provider setting named `constructor` or `__proto__` is now reported as a setting the provider does not take; before, checking it threw. The server holds a keyless provider for at most 25 hours from now, even when its Retry-After or reset names a later time. <!-- changes/web-settings-own-checks-hold-bound.md -->
80
+ - `DELETE /runs/{id}` empties an SDK start pinned before the learning-rows upgrade only when that start belongs to the purged run's agent. Before, a run's purge emptied every such inbox on the server, including other agents' and other tenants'. Those receipts already answer `409 not_continuable`, so nothing was disclosed; the purge now writes only its own agent's rows. <!-- changes/sdk-legacy-inbox-scrub-agent.md -->
81
+
5
82
  ## 0.1.0-beta.59 (2026-11-25)
6
83
 
7
84
  **Breaking:**