@parcha/agentrun-serve 0.1.0-beta.50 → 0.1.0-beta.52
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 +185 -0
- package/README.md +236 -30
- package/dist/adapters.js +1 -1
- package/dist/agent-delete.d.ts +13 -2
- package/dist/agent-delete.js +14 -5
- package/dist/agents-store.d.ts +5 -1
- package/dist/agents-store.js +17 -7
- package/dist/api-only.d.ts +6 -3
- package/dist/api-only.js +8 -5
- package/dist/archil-routes.d.ts +1 -0
- package/dist/archil-routes.js +28 -2
- package/dist/capacity.d.ts +50 -0
- package/dist/capacity.js +49 -0
- package/dist/cli-learning/claude-wire.d.ts +41 -0
- package/dist/cli-learning/claude-wire.js +258 -0
- package/dist/cli-learning/cli.d.ts +11 -0
- package/dist/cli-learning/cli.js +241 -0
- package/dist/cli-learning/codex-worktree.d.ts +10 -0
- package/dist/cli-learning/codex-worktree.js +119 -0
- package/dist/cli-learning/connections.d.ts +62 -0
- package/dist/cli-learning/connections.js +87 -0
- package/dist/cli-learning/entry.d.ts +1 -0
- package/dist/cli-learning/entry.js +4 -0
- package/dist/cli-learning/evidence.d.ts +78 -0
- package/dist/cli-learning/evidence.js +492 -0
- package/dist/cli-learning/hook.d.ts +33 -0
- package/dist/cli-learning/hook.js +544 -0
- package/dist/cli-learning/install.d.ts +33 -0
- package/dist/cli-learning/install.js +335 -0
- package/dist/cli-learning/observation-proof.d.ts +14 -0
- package/dist/cli-learning/observation-proof.js +10 -0
- package/dist/cli-learning/policy.d.ts +48 -0
- package/dist/cli-learning/policy.js +363 -0
- package/dist/cli-learning/schema.d.ts +16 -0
- package/dist/cli-learning/schema.js +27 -0
- package/dist/cli-learning/state.d.ts +23 -0
- package/dist/cli-learning/state.js +61 -0
- package/dist/cli.js +24 -2
- package/dist/computer-setting.d.ts +8 -0
- package/dist/computer-setting.js +11 -0
- package/dist/computers.d.ts +6 -2
- package/dist/computers.js +2 -2
- package/dist/console/assets/index-B-D0EM3j.js +733 -0
- package/dist/console/assets/{index-D0mr9wfZ.css → index-DlQepP2J.css} +1 -1
- package/dist/console/index.html +2 -2
- package/dist/email/email-faux.d.ts +3 -1
- package/dist/email/email-faux.js +3 -2
- package/dist/email/routes.js +22 -12
- package/dist/fal-price.d.ts +76 -0
- package/dist/fal-price.js +368 -0
- package/dist/harness-install.d.ts +6 -2
- package/dist/harness-install.js +40 -8
- package/dist/harness.d.ts +1 -1
- package/dist/harness.js +2 -2
- package/dist/learn/commit.d.ts +5 -0
- package/dist/learn/commit.js +4 -1
- package/dist/learn/compile.d.ts +13 -5
- package/dist/learn/compile.js +24 -7
- package/dist/learn/delete.d.ts +12 -6
- package/dist/learn/delete.js +17 -11
- package/dist/learn/folder.d.ts +11 -0
- package/dist/learn/folder.js +20 -3
- package/dist/learn/learning-of.d.ts +8 -0
- package/dist/learn/learning-of.js +8 -0
- package/dist/learn/learning.sh +14 -1
- package/dist/learn/promote.d.ts +51 -7
- package/dist/learn/promote.js +51 -8
- package/dist/learn/secrets.js +14 -3
- package/dist/learning-reset.d.ts +18 -0
- package/dist/learning-reset.js +115 -0
- package/dist/learning-routes.d.ts +1 -1
- package/dist/learning-words.d.ts +6 -1
- package/dist/learning-words.js +6 -1
- package/dist/learning.d.ts +8 -6
- package/dist/learning.js +5 -4
- package/dist/llms.txt +1 -0
- package/dist/mcp-gateway.d.ts +39 -2
- package/dist/mcp-gateway.js +41 -10
- package/dist/mcp-pin-first.js +3 -2
- package/dist/mcp-private-hosts.d.ts +24 -3
- package/dist/mcp-private-hosts.js +53 -3
- package/dist/mcp-servers-store.d.ts +1 -0
- package/dist/mcp-servers-store.js +2 -1
- package/dist/media-duration.d.ts +2 -0
- package/dist/media-duration.js +136 -0
- package/dist/model-gateway.d.ts +2 -0
- package/dist/model-gateway.js +3 -1
- package/dist/native/runtimes.d.ts +2 -0
- package/dist/native/runtimes.js +2 -0
- package/dist/observation/learning.d.ts +32 -0
- package/dist/observation/learning.js +66 -0
- package/dist/observation/observer.d.ts +8 -1
- package/dist/observation/observer.js +89 -9
- package/dist/observation/schema.js +12 -4
- package/dist/observation/usage-identity.d.ts +9 -0
- package/dist/observation/usage-identity.js +11 -0
- package/dist/openapi.js +133 -24
- package/dist/provider.d.ts +8 -0
- package/dist/provider.js +14 -2
- package/dist/refusal-words.d.ts +0 -3
- package/dist/refusal-words.js +0 -3
- package/dist/request-metadata.d.ts +20 -0
- package/dist/request-metadata.js +24 -0
- package/dist/run-launch.d.ts +27 -4
- package/dist/run-launch.js +18 -3
- package/dist/run-learning-served.d.ts +2 -2
- package/dist/run-usage.d.ts +48 -4
- package/dist/run-usage.js +156 -39
- package/dist/run-view.d.ts +2 -0
- package/dist/run-view.js +8 -7
- package/dist/runner/adapter-loop.d.ts +3 -1
- package/dist/runner/adapter-loop.js +41 -35
- package/dist/runner/adapter-run-spec.d.ts +1 -1
- package/dist/runner/adapter-run-spec.js +15 -15
- package/dist/runner/audit.d.ts +8 -3
- package/dist/runner/audit.js +21 -6
- package/dist/runner/beside.d.ts +13 -0
- package/dist/runner/beside.js +27 -8
- package/dist/runner/claim-secrets.d.ts +2 -1
- package/dist/runner/claim-secrets.js +5 -3
- package/dist/runner/cli-run-spec.d.ts +1 -1
- package/dist/runner/cli-run-spec.js +14 -13
- package/dist/runner/conformance/harness.js +4 -2
- package/dist/runner/disk-free.d.ts +44 -0
- package/dist/runner/disk-free.js +96 -0
- package/dist/runner/dispatch.js +4 -2
- package/dist/runner/feedback-round.d.ts +12 -8
- package/dist/runner/feedback-round.js +16 -30
- package/dist/runner/harness-loops.js +8 -3
- package/dist/runner/journal-kinds.d.ts +4 -1
- package/dist/runner/learning-end.d.ts +2 -1
- package/dist/runner/learning-end.js +51 -22
- package/dist/runner/main.d.ts +17 -6
- package/dist/runner/main.js +187 -45
- package/dist/runner/mcp-claim.js +1 -1
- package/dist/runner/mcp-run.d.ts +9 -0
- package/dist/runner/mcp-run.js +16 -1
- package/dist/runner/model-route.js +7 -4
- package/dist/runner/presence.d.ts +11 -2
- package/dist/runner/presence.js +31 -3
- package/dist/runner/promotion.d.ts +40 -21
- package/dist/runner/promotion.js +130 -59
- package/dist/runner/run-child-host.d.ts +12 -15
- package/dist/runner/run-child-host.js +52 -112
- package/dist/runner/run-errors.js +2 -0
- package/dist/runner/runner-check.d.ts +51 -0
- package/dist/runner/runner-check.js +206 -0
- package/dist/runner/runner-metrics.d.ts +19 -0
- package/dist/runner/runner-metrics.js +49 -0
- package/dist/runner/runner.d.ts +37 -0
- package/dist/runner/runner.js +58 -6
- package/dist/runner/sdk-loop.d.ts +2 -2
- package/dist/runner/sdk-loop.js +37 -25
- package/dist/runner/store-port.d.ts +3 -0
- package/dist/runner/workflow-spec.js +3 -3
- package/dist/runs-over-store.d.ts +13 -3
- package/dist/runs-over-store.js +71 -16
- package/dist/sdk/check.d.ts +6 -5
- package/dist/sdk/check.js +17 -16
- package/dist/sdk/runs.d.ts +22 -2
- package/dist/sdk/runs.js +167 -82
- package/dist/server.d.ts +3 -0
- package/dist/server.js +230 -43
- package/dist/skills/agentrun-serve/SKILL.md +52 -7
- package/dist/start-switches.js +2 -0
- package/dist/stats.d.ts +4 -0
- package/dist/stats.js +1 -1
- package/dist/store/agent-body.d.ts +16 -0
- package/dist/store/agent-body.js +20 -3
- package/dist/store/dialect.d.ts +2 -0
- package/dist/store/dialect.js +1 -0
- package/dist/store/index.d.ts +3 -3
- package/dist/store/index.js +2 -2
- package/dist/store/journal/storage.d.ts +2 -0
- package/dist/store/journal/storage.js +2 -1
- package/dist/store/postgres/connection.d.ts +5 -2
- package/dist/store/postgres/connection.js +19 -7
- package/dist/store/postgres/dialect.js +1 -0
- package/dist/store/postgres/migrate.d.ts +30 -0
- package/dist/store/postgres/migrate.js +72 -5
- package/dist/store/postgres/migration-lint.d.ts +8 -0
- package/dist/store/postgres/migration-lint.js +119 -0
- package/dist/store/postgres/migrations/0024_runner_capacity.sql +28 -0
- package/dist/store/postgres/migrations/0025_run_attempts.sql +27 -0
- package/dist/store/postgres/migrations/0026_run_disk.sql +23 -0
- package/dist/store/postgres/store.d.ts +8 -3
- package/dist/store/postgres/store.js +31 -11
- package/dist/store/schema.d.ts +32 -2
- package/dist/store/schema.js +74 -5
- package/dist/store/sqlite/run-launch.d.ts +31 -1
- package/dist/store/sqlite/run-launch.js +111 -2
- package/dist/store/sqlite/run-patch.d.ts +2 -1
- package/dist/store/sqlite/run-patch.js +4 -3
- package/dist/store/sqlite/store.d.ts +17 -0
- package/dist/store/sqlite/store.js +226 -37
- package/dist/store/store-schema.d.ts +34 -0
- package/dist/store/store-schema.js +125 -0
- package/dist/store/store.d.ts +120 -5
- package/dist/store/store.js +13 -0
- package/dist/store-reads/analytics.d.ts +3 -2
- package/dist/store-reads/analytics.js +20 -8
- package/dist/store-reads/learning.d.ts +12 -8
- package/dist/store-reads/learning.js +33 -24
- package/dist/store-reads/loop.d.ts +4 -3
- package/dist/store-reads/loop.js +7 -5
- package/dist/store-view.d.ts +4 -3
- package/dist/store-view.js +11 -7
- package/dist/template-eval.js +4 -4
- package/dist/templates.d.ts +6 -2
- package/dist/templates.js +7 -5
- package/dist/timeline/labels.js +1 -1
- package/dist/tool-gate.d.ts +4 -2
- package/dist/tools.js +1 -1
- package/dist/unified-usage.d.ts +24 -0
- package/dist/unified-usage.js +400 -0
- package/dist/uploads-archil.d.ts +100 -0
- package/dist/uploads-archil.js +431 -0
- package/dist/uploads.d.ts +52 -1
- package/dist/uploads.js +186 -108
- package/dist/validate.js +5 -1
- package/dist/web-save.d.ts +3 -0
- package/dist/web-save.js +17 -2
- package/dist/workspace/archil-disk.d.ts +6 -5
- package/dist/workspace/archil-disk.js +27 -12
- package/dist/workspace/archil-exec.js +1 -1
- package/dist/workspace/archil.js +4 -3
- package/dist/workspace/revision-skills.js +24 -11
- package/dist/workspace/synced-folder.d.ts +3 -3
- package/dist/workspace/synced-folder.js +7 -6
- package/package.json +10 -10
- package/skills/agentrun-serve/SKILL.md +52 -7
- package/dist/console/assets/index-D7G6o-1E.js +0 -720
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,191 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.1.0-beta.52 (2026-11-21)
|
|
6
|
+
|
|
7
|
+
**Breaking:**
|
|
8
|
+
|
|
9
|
+
- The apply answer (`POST /v2/templates/{template}/apply`) no longer carries `trigger_ids`: read each trigger's `trigger_id` from `triggers`, which lists the same triggers in the same order with their names, kinds and on or off. The TypeScript and Python clients' `ApplyTemplateResponse` drop the field. <!-- changes/apply-drops-trigger-ids.md -->
|
|
10
|
+
|
|
11
|
+
**Changes:**
|
|
12
|
+
|
|
13
|
+
- An agent can limit its own runs' requests on free models: `definition.max_requests`, a whole number, under the server's limit (`AGENTRUN_FREE_MODEL_REQUESTS`, 60 by default), so a run stops at the lower of the two. A dollar cap can't stop a free model, so before, the server's limit was the only bound, for every run on the server alike, and one run looping on a free model could spend a person's whole daily free quota under it. The run that reaches the agent's limit ends `failed` with `spend_cap_reached` in the server limit's words, naming the number it stopped at ("Not sent: this run reached its 20-request limit for free models."). It counts what the server's limit counts, and a paid request never counts. Above 0 sets it, 0 clears it, and an edit that leaves it out keeps it. A template sets it with `budget: { per_run_usd, max_requests }`: the manifest refuses 0 or a fraction, the template list shows it, and the console's template card says "Free-model requests: at most N a run". <!-- changes/agent-max-requests.md -->
|
|
14
|
+
- `GET /v2/computers` says per kind whether a run of it can record its screen on this server, and the console's Recording switch reads that alone. <!-- changes/computers-say-record.md -->
|
|
15
|
+
- Public API addition: each of `kinds[]` carries `record`, `{available: true}` or `{available: false, why}`. A desktop, a phone or a browser is available when this server has `ffmpeg` on its PATH (read at each call, as a save of `computer.record: true` checks it); without it, each says "ffmpeg isn't installed on this server (no ffmpeg command on PATH)". A sandbox and no computer are never available, in their own words. The TypeScript and Python clients' `ListComputersResponse` gain it.
|
|
16
|
+
- The agent editor's Computer step shows the Recording switch for every kind but no computer, from the kind's `record`: where a run can't record here, the switch is off and disabled with the server's words for why (a saved `record: true` can still be turned off). It used to show the switch only for a kind whose `settings` list `record`, and offered it on a server with no ffmpeg until the save was refused. A switch of kind or provider drops `record: true` where the new kind can't record, in the same words.
|
|
17
|
+
- The console filters Composio's actions, the agent editor's Tools step and an app trigger's events by name, slug or description; events list A to Z with their Markdown descriptions rendered; a new trigger marks Agent, Each run is asked and (with no agent default) the cost cap with *. Every list search in the console (agents and connected coding agents, an agent's runs, templates, a run's trace) now keeps a row holding each word typed, in any order. <!-- changes/console-list-filters.md -->
|
|
18
|
+
- A run counts fal's jobs: `run_model`, `submit_job` and `submit_jobs` on a fal MCP server (toolkit `fal`, or `mcp.fal.ai`) are priced before they are sent, at fal's `get_pricing` unit price times the units the job's input states (images, megapixels, characters, seconds, or the length of its input media), held under the run's spend cap and booked as tool cost. A job the cap can't take is refused unsent, as is one whose price can't be known beforehand; with no cap that one runs, booked as an unknown charge. The figure is an estimate at fal's list price. Agents saved before this are metered when their server is at `mcp.fal.ai`; save an agent again to pin a fal server at another address as metered. <!-- changes/fal-spend-metered.md -->
|
|
19
|
+
- `GET /v2/runs/{run_id}/usage` (`runusage/5`) now says which charges were the infrastructure's own redo. A turn is worked again when the claim working it is cut: its runner drained for a deploy (SIGTERM), its runner died, it lost its lease, or the turn was tried again. Each line, browser session and computer interval carries `attempt` (1 for a turn's first, 2 for its first redo, and so on) and `billable`. A turn's charges are split into one line per attempt. `billable` is false only for the model requests a cut attempt sent and never finished, which the attempt that takes the turn over sends again. Answered requests, paid calls, browser and computer time stay billable: the next attempt reuses them. The run also reports `infra_usd`, the sum of the lines that are not billable: 0 for a run with no such request, and null when one has no known cost, which a request cut in flight never does. This is data only: `total` and `cost.usd` still hold every line, and nothing is charged differently. A run from before this read keeps `attempt: null` and `billable: true` on every line. <!-- changes/run-attempts.md -->
|
|
20
|
+
|
|
21
|
+
Each claim writes its turn and attempt in its own transaction to the store's new `run_attempts` table. Postgres gets it from migration `0025_run_attempts.sql`, which is additive (a runner of the earlier version never reads it). A SQLite store gets it at the server's open, and a runner waits for that server. Each row holds `cause`, why the attempt before it was cut: `drain`, `crash`, `lease_lapse` or `retry`. A runner's release writes the cut attempt's own word for `drain` and `retry`. A runner that loses its lease writes `lease_lapse` while it can still reach the store. A lapse with no word reads as `crash`. A claim's `turn` and `attempt` are on `Claim`.
|
|
22
|
+
|
|
23
|
+
Each model request a claim sends to the server's model gateway carries the run, turn and attempt as LiteLLM's spend-logs metadata, in the header `x-litellm-spend-logs-metadata` (`{"agentrun_run_id":…,"agentrun_turn":…,"agentrun_attempt":…}`). That lets a gateway's spend logs be matched to the run's lines call by call. "The server's model gateway" means `AGENT_MODEL_BASE_URL`, or `ANTHROPIC_BASE_URL` on its origin. The header is sent on pi's routes and Claude Code's, never to a vendor's own endpoint. Codex's adapter takes no extra headers, so its requests carry none yet.
|
|
24
|
+
- `web_save` answers a saved audio or video file's length in seconds as `duration_s` (to the millisecond), read from the file's own bytes: mp3, wav, mp4 and m4a. An agent can then fit a cut to a voiceover, or price a job billed by its input's length, without another tool. Any other file, or media whose length its bytes don't give (ogg, webm, a file with no header), answers no `duration_s`. <!-- changes/web-save-duration.md -->
|
|
25
|
+
- A connected SDK agent's learned workflow is promoted only after compile_after checked turns, like a managed agent's, not after one. Each reserved native turn is one row of the check: the agent answers it, the caller's shadow runs the draft, and the server keeps the compared turn on the promotion record (`check.turns`) and waits for the next turn the draft takes. The turn that makes `learning.compile_after` decides once on every turn collected, on the same `agree_min` and `alone_min` bar; a disagreement no longer holds the draft on its own turn, and a turn the backend never completes within an hour is one failed row of the check instead of its decision. <!-- changes/sdk-check-evidence-bar.md -->
|
|
26
|
+
- A synced folder now sees a file rewritten to the same size in the push's own clock tick (a command that lands tens of milliseconds after the claim's push, on a filesystem whose timestamps come from the kernel's coarse clock). Before, such a file kept the size and mtime the baseline listing recorded, and the runner's copy kept the old bytes for good. The claim's push now gives every file `PUSHED_MTIME` (2000-01-01T00:00:00Z) in its tar header, so any later write moves its mtime, and nothing is read back after the push. <!-- changes/sync-sees-push-tick-rewrite.md -->
|
|
27
|
+
computerd's `tar.push` now gives each file its tar header's mtime, as tar and the macOS computerd already did, instead of the time of the extraction. `TarEntry` takes an optional `mtime` for the header, whole seconds from 0 to `MAX_TAR_MTIME` (ustar's 11 octal digits; any other value throws a `RangeError` before the entry is written); without one it is the time the entry is written, as before.
|
|
28
|
+
- In the console, a webhook trigger's once-shown signing secret after a template apply that skipped a trigger (a feed given no feeds, a GitHub or Composio trigger not set up here) is labelled with its own trigger's name, and its warning opens that trigger. Before, the console matched the package's trigger index against the answer's list, which a skipped trigger shifts: the secret carried the skipped trigger's name, and the warning's "Open … (Rotate)" link went to another trigger or to none. The console now finds each trigger by its name. <!-- changes/webhook-secret-name.md -->
|
|
29
|
+
- `DELETE /v2/agents/{agent_id}/learning` resets an agent's learning without deleting the agent: its learning folder whole (corrections, learned workflows, their history and the audit ledger), on this server and on every Archil disk its runs used (`503` while one can't be reached, nothing deleted), then its promotion records and grades. Deleting an agent now also deletes its learning folder on a disk a run's launch named. The agent, its runs and their files stay, and the run list, `GET /stats` and `GET /usage` read the same; the next run takes the agent path with nothing learned. Learning reads only the runs after the reset: they alone count toward `compile_after` and feed a compile, a check's replays and audits. A run whose start read the agent's learning before the reset learns nothing at its end, its learning `dropped` with the new reason `reset`. Learning-only runs in flight (replays, audit shadows) are cancelled first; while a run of the agent's own is still going it answers `409 learning_busy` naming the runs, and nothing is deleted. `204` when done, idempotent (an agent that never learned is `204` too), with the owner's session or the token as deleting an agent takes (any other console session is `403 forbidden`), in the API-only profile as well. The TypeScript and Python clients add `learning.reset(agent_id)`, and the CLI `agentrun learning reset <agent_id>`. <!-- changes/reset-agent-learning.md -->
|
|
30
|
+
- A run on a disk its launch names (`archil_disk`) learns nothing: it starts with no seed, no learned corrections and no learned workflow, and every learning read of the agent's runs (a compile's traces and its `compile_after` count, a check's replays, an audit's draw, the money rule, the cost page's ledger) skips it. Before, such a run read and fed the one learning of its agent, so a self-hoster's customers could see each other's traces in a learned workflow. A later change that lets named disks learn adds a per-disk key to the learning records. <!-- changes/learning-per-disk.md -->
|
|
31
|
+
|
|
32
|
+
Upgrading: runs gain a `disk` column, filled from each run's launch (Postgres migration `0026_run_disk.sql`; SQLite store version 15, which the server applies when it opens the store, and a runner waits for that). A run purged before the upgrade has no launch left, so it reads as the default disk's. A run on the agent's own disk, or on no disk, learns as before.
|
|
33
|
+
- An API-only server (`AGENTRUN_API_ONLY=1`) serves `DELETE /v2/runs/{id}` for a run of an agent an inline run made (`external`): a backend erasing one user's runs of a shared external agent purges each run, where deleting the agent would take every user's runs. The purge is the full server's: `204`, and `204` again once purged; `409 run_not_final` while it or a run made from it is live; every other route of it `410 purged`; its cost kept in every total. A run of an agent made here stays refused there with the profile's `404`, as before. <!-- changes/api-only-run-delete.md -->
|
|
34
|
+
- A run's fal jobs no longer collide with another run's: fal's hosted MCP server (`mcp.fal.ai`) keeps one `submission_key` journal per fal account and refuses a key it has seen with another request, so the same task run twice in a day, which makes the same keys, had its second run refused. The run's gateway now sends fal each `submission_key` of `run_model`, `submit_job`, each request of `submit_jobs` and `get_submission` with a suffix derived from the run, so a retry within one run still reaches fal with the same key and is deduped, and two runs never share one. Replies read back with the agent's own key. A key too long for fal's 128-character limit with the suffix is shortened with a hash of the whole key and marked apart from unshortened keys, so it never becomes another key. A server saved with the toolkit `fal` at another address (an eval's fake) receives the agent's keys unchanged. <!-- changes/fal-run-scoped-key.md -->
|
|
35
|
+
- A `DELETE` of a run or an agent retried after its purge committed and could not write the SQLite scrub marker (the 500 `internal` a full disk answers) now arranges the scrub again: it answers 204 as before, and it also runs the purge's WAL checkpoint again, writing `store.sqlite.scrub` when another connection still holds the log back, so the next start's scrub truncates it. Before, the retry answered 204 and wrote nothing, and the log could keep the purged bytes until some later checkpoint. A `DELETE` of a purged run or agent with the marker already there writes nothing new, and an agent's retried `DELETE` also drops the purge-in-progress mark its failed one left. <!-- changes/purge-retry-marker.md -->
|
|
36
|
+
- On Postgres, a run whose input or text holds an escaped NUL (`\u0000`) or a lone surrogate no longer breaks the store's reads of its launch body, its commands or its journal. The affected reads were an agent's learning starts, the runs made from a run, a run's purge, a reopen, a claim, a trigger's queued message and the start sweep of runs of unknown cost. Postgres keeps such text, but its json functions refuse the whole document over one escape, and a read that scans every launch failed for every run. Outside a transaction, each read retries on that refusal against a copy with those escapes blanked. Inside a transaction, where a refused statement can't be retried, the read uses the copy from the start. Learning starts come back as written: a run's `learning` member is never taken from a blanked copy. <!-- changes/launch-json-unicode.md -->
|
|
37
|
+
- `DELETE /v2/runs/{id}` on a run whose launch named a caller's Archil disk now also deletes the agent's learning folder on that disk, together with the run's own folder. Before, the folder stayed until the agent's learning reset or the agent's delete, and the run's merge diff and its correction line stayed in it after the purge. Nothing reads that folder: a run on a named disk gets no learning seed. <!-- changes/purge-learning-folder.md -->
|
|
38
|
+
- A connected agent's workflow check now holds only after five give-backs in a row, never counts a cancelled turn, and starts the count again when a turn lands. A check held that way is never stopped for good: the agent's next compile revises the workflow and checks the revision afresh. <!-- changes/sdk-check-give-backs-in-a-row.md -->
|
|
39
|
+
- A backend SDK run's compile ask now stops at the agent's own max_requests on a free model, as every other run of the agent does, when that is under the server's AGENTRUN_FREE_MODEL_REQUESTS. <!-- changes/sdk-compile-max-requests.md -->
|
|
40
|
+
- Two files uploaded in one millisecond now list newest first in `GET /v2/files`. Upload ids are minted by the same monotonic UUIDv7 as agent ids, so each sorts after the one before it; before, two ids in one millisecond carried random bits after the time and could list in either order. <!-- changes/uploads-monotonic-id.md -->
|
|
41
|
+
- A run's claim-time lay of its skills no longer depends on the class of a `NOT_FOUND` error to tell that a fresh folder has no `.agents/skills/` yet: it asks `stat`. On beta.50 a Mode 2 run in its own process lost `WorkspaceError`'s class over its channel and failed at its claim with `".agents/skills" is not there` whenever it had a skill (its own, or a desktop or phone computer's); beta.51 registered the class, and the lay now holds without it. A lay that fails says so (`laying the run's skills in .agents/skills/: …`), and an Archil listing or exec of a folder that is not there names the disk's key and the disk. <!-- changes/run-skills-lay-reads-no-error-class.md -->
|
|
42
|
+
|
|
43
|
+
## 0.1.0-beta.51 (2026-11-21)
|
|
44
|
+
|
|
45
|
+
**Breaking:**
|
|
46
|
+
|
|
47
|
+
- A pending approval says why a call its setting allows asks in a field of its own, `asks_because` (on `pending` of GET /runs/{run_id} and the run list), and no longer among the call's arguments: `args_preview` is the model's arguments alone, with no `asked_because` key, and `summary` no longer ends "Asks because ...". A client that read the reason from `args_preview`'s `asked_because` (or from the end of `summary`) breaks: read `asks_because` instead, absent on a call that asks by its setting. The console's approval card, on the run page and on Mission Control, says "Asks because <why>." above the arguments' box. <!-- changes/approval-asks-because.md -->
|
|
48
|
+
- A runner can run on a disk of its own, and `runner --check` checks its environment by name. A runner with `AGENTRUN_STORE_URL`, `AGENTRUN_SEAL_KEY` and a local `--data` never reads the server's data directory: in Mode 2 (Archil settings saved) it runs every run; while the server is in Mode 1 it claims nothing and says why, on its log and to the server, which refuses a new run in those words (`503 runner_refused`) while no runner on its own data directory is there. The mode is the server's (its saved settings, or the Archil settings in its own environment), never the runner's. The runner never fails the run itself. The server tells the disks apart by an id it keeps in `/data/data-root.id` and says in the store at each start, beside the names (never the values) of its run-facing environment. <!-- changes/disk-free-runner.md -->
|
|
49
|
+
What breaks: `runner --check --data D --name N` now also checks the runner's environment (the store opens, the seal key is the store's, the runner holds every run-facing name the server holds, an upstream on loopback answers) and fails on any gap. A health check run with an empty environment (compose's `env -i`) now fails: run it with the container's environment (the check prints names, never values), or use `runner --check --heartbeat --data D --name N` for the heartbeat alone. `runner --check --env [--data D]` checks the environment alone, before a runner starts. Not yet on a disk of its own: screen recordings. See deploy/README.md, "A runner on a disk of its own".
|
|
50
|
+
|
|
51
|
+
**Changes:**
|
|
52
|
+
|
|
53
|
+
- A disk removed at Archil while a run is on it now fails that run's next disk call as the disk being gone (`UNAVAILABLE`, in Archil's words), not as a missing file. <!-- changes/archil-disk-gone-midrun.md -->
|
|
54
|
+
- Email: Save signs in before it keeps the account, and the console opens and makes email triggers. <!-- changes/email-save-signs-in.md -->
|
|
55
|
+
- Behavior change: `PUT /v2/settings/email` signs in to IMAP and SMTP first, as Test does, sending nothing. If either refuses or can't be reached, it answers 424 `upstream_failed` with `details.imap` and `details.smtp` (each `{ok, message}`) and saves nothing, keeping any account saved before. It used to save any password. A body that doesn't read is still 422 by field, before any sign-in. The console's Save shows the refusal beside the form.
|
|
56
|
+
- Public API addition: the apply answer (`POST /v2/templates/{template}/apply`, Apply and Update) carries `agent_change`: `made`, `updated` (a new revision written) or `unchanged` (an update with `agent_id` whose package and parameters the current revision already holds, no revision written), with `revision_version` the agent's current revision once it is done. It also carries `triggers`, every trigger the apply made or kept, in the package's order, each `{trigger_id, name, kind, enabled}`; `trigger_ids` is unchanged. The TypeScript and Python clients' `ApplyTemplateResponse` gain both. The console's Apply and Update result lists each trigger by its name and kind in words, on or off, an email trigger beside its schedules (a schedule keeps its line and next time); it used to list the schedules alone.
|
|
57
|
+
- An email trigger's page opens in the console: the account and mailbox it watches, how often, its last check, its filter, its agent and its firings, with Pause, Run now and Delete. It carries the same "Waits for your approval" warning the other triggers' pages do when its agent has a tool that asks (refused, with accounts off), and Run unattended. It used to say the page didn't open it yet.
|
|
58
|
+
- Triggers → New makes an email trigger (`#/triggers/new-email`), beside the schedule, webhook, GitHub, app and feed forms: its agent, mailbox (INBOX unless changed), how often it reads, what each run is asked, its cost cap and whether it is on, with the same approval warning and Run unattended. With no account saved it says so and links to Settings → Email. An email trigger used to be made through the API or a template alone.
|
|
59
|
+
- A template's apply result, on Templates and in the API playground, says from the answer's `agent_change` what the apply did: an update that changed nothing reads "Nothing to update: rev 2 is current.", never that the agent is made or applied. <!-- changes/lookback-tidy.md -->
|
|
60
|
+
The console also:
|
|
61
|
+
- Takes a run with only a field for an agent whose `input_schema` fields are all optional, as the server does, and says a refusal of neither at the message box. Filling a field clears the server's issue at the message only where the message is optional; a required message keeps its issue until it is fixed.
|
|
62
|
+
- Offers the Grade form on an ended run whose learning reads `reflecting`, and says a `409 run_learning` in the server's words, keeping the choice.
|
|
63
|
+
- Says on every tool row of a template's install page that the template asks you to grant it, and on a tool whose `asks` is `ask` that each call waits for your OK unless you allowed it in Settings or pick Never ask; no listed tool reads as one the template does not ask for.
|
|
64
|
+
- Says on a Triggers row, of any kind, whose agent has tools that ask "Waits for your approval: <tools>" (or "Refused without your approval" with accounts off), as the trigger's page does, reading each agent once.
|
|
65
|
+
- Names each trigger's agent on Triggers when the agent was made after the console opened (a template applied from a URL makes one with its triggers): the agents' names are read again each time Triggers opens, as Runs and Mission Control read them. It used to show the agent's id.
|
|
66
|
+
|
|
67
|
+
A look-back cut by a stop or cancel is said as "a stop or cancel cut it while it wrote what it learned", and the learning state's `reflecting` description names the run's end it reads.
|
|
68
|
+
- A run whose revision ships skills no longer fails at its claim on a fresh Mode 2 (Archil) folder with `".agents/skills" is not there` when it runs in its own process. A `WorkspaceError` now crosses the run's channel as a `WorkspaceError` with its `code`, as the other run errors do, so `layOwnSkills` (and every other check of `instanceof WorkspaceError` in the run's process) reads a missing folder as `NOT_FOUND` again. Runs in the runner's process were not affected. <!-- changes/run-process-workspace-error.md -->
|
|
69
|
+
- A runner that holds many customers' runs keeps per-run users without putting its own user in 256 groups, and its operator can stop owners from allowing private-network hosts (`AGENTRUN_PRIVATE_HOSTS`). See [docs/multi-tenant-runners.md](https://github.com/Parcha-ai/agentrun/blob/main/docs/multi-tenant-runners.md) for the threat model. <!-- changes/runner-per-run-users-one-group.md -->
|
|
70
|
+
|
|
71
|
+
- In the image, the server's user (node) is now in one group, its own, and in no slot's group. A platform that reads a user's groups at start (Northflank's environment injector refused node's 257 groups) can run the image with per-run users on, so `AGENTRUN_RUN_USER=same` is no longer needed there.
|
|
72
|
+
- A run's folders are given to its slot before it starts (`agentrun-runas own <slot>`: the slot's uid, node's group, folders `2770` with the setgid bit) and back to node at its end (`own runner`). The server reads a running run's files through its one group; no other slot can enter them, nor the slot's next run. The helper gains `cap_chown` (kept alone while it gives folders, each entry changed through a descriptor opened without following a link); `reown` and `reap --fix` are gone. A give-back that fails retires the slot, as a reap that does not hold does.
|
|
73
|
+
- A run that shuts one of its folders (`chmod 700`, which drops its setgid bit) hides it from the server until the run ends.
|
|
74
|
+
- `AGENTRUN_PRIVATE_HOSTS` bounds the private-network hosts an owner may allow an MCP server or a calendar on (Settings → MCP servers). Unset, the owner's list holds, as before. `none` reads no owner's list and saves only an empty one (422, naming the switch, otherwise): set it on a server or runner many customers share, and on each runner, which reads its own environment and says the bound at its start. A comma list of address ranges (`10.20.0.0/16,fd12:3456::/32`) allows a listed host only inside them. A value that is neither reads as `none`. `GET /v2/capabilities` lists it under `switches`.
|
|
75
|
+
- `GET /v2/capacity` (`capacity/1`) says how much room the runners have, read from the store alone, so a server with no runner beside it (`--no-runner`, `AGENTRUN_API_ONLY=1`, where it is served too) answers for every runner on its store. It gives the runs waiting for a runner (`runs.queued`: queued, handed back, or with a claim that ran out, past any backoff) and the runs a live claim holds (`runs.executing`). It lists each live runner by name with its build's `version`, its `slots` (the most runs it holds at once), what it holds (`executing`) and its `free_slots`, plus the total `free_slots`. It counts the runs handed back still running within `?window=` minutes (`hand_backs`: 1 to 1440, default 15). It names no run, agent or address, and it takes the server's token like every route but capabilities and health. An operator or a scaler reads it to size the runners by backlog, not CPU. <!-- changes/runner-capacity.md -->
|
|
76
|
+
Each runner's row now says its version and slots (`runners.version`, `runners.slots`), and every release that leaves its run running writes a row to a new `hand_backs` table, kept for a day. Postgres migration `0024_runner_capacity.sql` adds both, and a SQLite store gets them at the server's open. Both are additive. A runner of an earlier build that is already running keeps working, with its version and slots read as null. On SQLite, one also starts again as before. On Postgres, a runner of an earlier build that starts after the migration refuses the store, as for any migration it does not know: upgrade Postgres runners with the server. A runner of this build waits on SQLite for a server that added them.
|
|
77
|
+
A runner prints metric lines in the server's log format (`at=… event=… key=value`), so a log-based metric can count them: `runner_claimed`, with `took_over=1` when it took over a run whose lease ran out; `runner_hand_back` with a `cause` (`drain`, `interrupted`, `end_retry`, `give_back`, or `claim_lost` with its `why`); `runner_drained` (`ms`, `held`, `left`), once per close that held a run; and `runner_gauge` every minute (`active`, `slots`, `rss_mib`). The existing `Runner … claimed` and `ready` lines are unchanged. A runner beside a server prints the same lines where the server prints its own.
|
|
78
|
+
- A runner on Postgres no longer needs the store's schema to match its own version exactly. The server can migrate first while the earlier release's runners keep running, as long as the migrations are additive. Each store keeps a runner floor: the oldest schema version a runner's build must know. A migration marked `-- runners: breaking` raises the floor to its own version. Every runner reads the floor again every 10 s, whether or not it holds runs. When the floor rises above its version, it claims nothing more, drains, hands its runs back and exits 3. A runner that starts below the floor exits 3 and says to run a runner of the server's release. A runner on a store its server has not migrated yet still exits 3, as before. Runners of earlier releases still need an exact match, so roll this release's runners with its server as before; from this release on, a runner keeps running beside the next releases' additive migrations. <!-- changes/runner-floor.md -->
|
|
79
|
+
- `agentrun-serve store-schema [--data DIR]` prints the store's schema version and runner floor beside this build's version, and what this build's server and runner do on that store, as one line of JSON. It reads only: no lock, no migration. `--build` prints the build's own versions with no store. `GET /v2/capabilities` carries the same live values in `store_schema` (`version`, `runner_floor`, `known`), for a deploy check that refuses a build older than its store.
|
|
80
|
+
- A Postgres migration that drops or renames anything, changes a column's type, makes a column NOT NULL, or adds a NOT NULL column with no default must carry the `-- runners: breaking` header. A test fails one that does not. Migrations up to 0022 predate the rule and count as breaking; 0023, the first the lint reads, is additive. A SQLite runner still opens only its own schema version.
|
|
81
|
+
- With Archil on (Mode 2), uploads live on Archil and the server places a run's files in its folder at the run's start, so a runner reads no upload and needs no disk of the server's. `POST` and `PUT /v2/files` keep each file on the server's own uploads disk, `agentrun-<server id>-files` (made by the first upload), at `files/<file_id>/`, and listing, reading and deleting read it there. A run started with `file_ids` has each file copied into its folder at `work/inputs/<path>` before it is queued (2 files at a time across every start on the server, at most 45 s). Its launch records `files_placed` and the disk it used, and its claim copies nothing. A copy that fails refuses the start with `424 upstream_failed` in words, and no run is made. <!-- changes/uploads-on-archil.md -->
|
|
82
|
+
In Mode 2, an uploaded file that no run names is deleted after `AGENTRUN_UPLOAD_RETENTION` (default `7d`, or `off`), swept hourly (`event=uploads_expired`). Mode 1 is unchanged: uploads stay in `DIR/files/`, are copied in at the claim, and are never deleted. Files uploaded under one mode are not seen under the other.
|
|
83
|
+
- Connect independently started Codex CLI and Claude Code sessions with `learning connect`, without <!-- changes/existing-cli-learning.md -->
|
|
84
|
+
an SDK wrapper or replacing the source task launcher. Hooks record completed prompt windows and
|
|
85
|
+
reported usage; later prompts receive pinned owner corrections from AgentRun. Source task dialogue
|
|
86
|
+
never becomes a standing correction automatically. Source hooks do not expose a workflow execution
|
|
87
|
+
bridge or launch extra native reflection sessions. Retired automatic notes and skills stay on disk
|
|
88
|
+
but are not served or converted to owner corrections. Existing CLI profiles with a stored
|
|
89
|
+
`learning: "notes"` setting read as enabled under the current learning model; new definitions use
|
|
90
|
+
its boolean or loop settings.
|
|
91
|
+
|
|
92
|
+
Connection credentials are scoped, installation preserves unrelated hooks, and disconnect removes
|
|
93
|
+
only its own hooks. Incomplete evidence and cancellations stay explicit. The console offers capture
|
|
94
|
+
and correction delivery enrollment for existing applications while execution and editing stay in
|
|
95
|
+
their original setup. Initial enrollment requires a local AgentRun server and the selected CLI's
|
|
96
|
+
sign-in; metadata observation alone does not enable it.
|
|
97
|
+
|
|
98
|
+
Private pending capture journals are bound to their destination and credential generation. A reconnect
|
|
99
|
+
starts a fresh journal; prior or unbound records remain on disk and are not automatically migrated,
|
|
100
|
+
uploaded or deleted. `learning retry` reports `blocked_journals` and exits with status 1 when those
|
|
101
|
+
records need review.
|
|
102
|
+
|
|
103
|
+
Disconnect disables local capture before removing hooks or contacting the server. If server revocation is
|
|
104
|
+
pending, loaded hooks and retries stay disabled until disconnect completes; status exposes `capture_enabled`.
|
|
105
|
+
Retries advance across retained sessions, queued hooks and unfinished turns so older entries cannot indefinitely
|
|
106
|
+
hide later uploads. Interrupted connection commands recover an abandoned lock while a live owner keeps it.
|
|
107
|
+
Recovery also recognizes a proven previous kernel boot on the same host. A different namespace from the
|
|
108
|
+
same boot, or an unknown boot identity, stays protected until its owner's death can be established.
|
|
109
|
+
Project installer and shared Codex hook locks now keep private owner records and recover after a proven
|
|
110
|
+
owner death. Legacy empty or malformed installer locks stay protected regardless of age; the error names
|
|
111
|
+
the lock and requires stopping and verifying all relevant installers before manually removing that lock.
|
|
112
|
+
- Observe token usage from already-running Codex sessions without restarting their native processes. Polling subscriptions follow loaded interactive, exec and delegated sessions; explicitly selected historical sessions remain available. Input, output and reported cache counters use native model metadata and source UTC dates, with cumulative baselines, atomic local checkpoints and sequence deduplication preventing duplicate accounting. <!-- changes/existing-codex-polling-usage.md -->
|
|
113
|
+
|
|
114
|
+
Polling usage requires the receiver’s advertised capability. Existing lifetime totals are not backfilled; missing counters, tail gaps and queue drops remain partial coverage. Conversation content stays local, existing learning consent is unchanged, and OTLP ingestion keeps its existing behavior.
|
|
115
|
+
|
|
116
|
+
Selected failed sessions remain eligible for bounded usage polling, so counters flushed after Codex reports a system error are retained. Acknowledged counters are not counted again after another poll or a connector restart.
|
|
117
|
+
- The CLI capture API uses `agentrun cli-learning enroll|list|revoke|start|get|events|complete`. <!-- changes/cli-capture-command-routing.md -->
|
|
118
|
+
Its earlier generated `CLI learning` group was one word internally and did not accept the documented
|
|
119
|
+
invocations. The generated TypeScript resource is `cliLearning` with the same verbs, and Python uses
|
|
120
|
+
`cli_learning`; API paths and operation IDs are unchanged. The local `learning connect`, `status`,
|
|
121
|
+
`disconnect`, `retry` and `hook` commands and the existing learning API commands keep their routes.
|
|
122
|
+
- Keep delayed CLI hook retries in source order. An older queued submit or session ending cannot <!-- changes/cli-capture-retry-boundaries.md -->
|
|
123
|
+
interrupt a newer prompt. When earlier dialogue cannot be ordered safely, retain it privately and
|
|
124
|
+
mark the capture incomplete instead of presenting it as prior context.
|
|
125
|
+
|
|
126
|
+
Bound newly captured prompts, answers and dialogue to the server's text and event limits, including
|
|
127
|
+
after secret redaction. Truncated evidence remains explicitly incomplete and can be uploaded instead
|
|
128
|
+
of retrying an oversized request indefinitely. Already frozen historical requests remain unchanged
|
|
129
|
+
because an uncertain earlier upload may have committed their immutable payloads.
|
|
130
|
+
|
|
131
|
+
Serialize session journals with the existing token-fenced ownership lock. Concurrent recovery of a
|
|
132
|
+
dead owner cannot remove a new owner's lock. Legacy empty or PID-only locks remain pending rather
|
|
133
|
+
than being removed on age alone; remove such a lock only after confirming no hook or retry process
|
|
134
|
+
still owns that journal.
|
|
135
|
+
|
|
136
|
+
A pending local disconnect no longer advertises learning as ready while hook removal or remote
|
|
137
|
+
revocation is blocked. The connector withholds its readiness proof until the connection is active.
|
|
138
|
+
- Install Codex learning hooks in linked worktrees through the main-checkout `hooks.json` that native <!-- changes/cli-learning-worktree-hooks.md -->
|
|
139
|
+
Codex actually loads. Reconnecting migrates unchanged owned hooks without changing the learning
|
|
140
|
+
connection or credential. Shared-file locking and stable hook group positions preserve other enrolled
|
|
141
|
+
projects and their native trust keys; worktree-local TOML stays untouched. Observation readiness checks
|
|
142
|
+
the derived shared configuration and does not mark ignored local hooks ready. Modified configuration,
|
|
143
|
+
invalid Git ownership and size overflow fail without replacement; interrupted migrations retain both
|
|
144
|
+
ownership records for safe disconnect. Loaded Codex project configuration requires a new or reopened
|
|
145
|
+
session before hooks activate. A nested linked worktree cannot also learn through its enclosing checkout.
|
|
146
|
+
- Capture reported token usage for new Codex and Claude Code CLI learning prompts, deduplicating native response records within each prompt. The dashboard's unified `analytics.usage` includes retained source observations and recorded runs, using verified session identity to group potentially overlapping usage. When exact overlap is unavailable, the total keeps the larger coherent source or recorded view as a lower bound, with incomplete coverage explicit. A stale or zero source report cannot erase a larger completed prompt total; distinct immutable CLI turns can sum, while upload dates alone do not prove separate native execution. Range and session filters apply to the combined total; unavailable cache breakdowns, partial boundary days, missing reports and the 90-day source retention limit stay explicit. Unbound observation identities cannot be matched to separately recorded runs. Missing, ambiguous or incomplete prompt usage remains unknown; existing run completions are not rewritten. An enabled CLI learning profile with no recorded prompts explains that its next source prompt starts capture and that earlier conversations are not imported automatically. <!-- changes/cli-prompt-usage-coverage.md -->
|
|
147
|
+
|
|
148
|
+
The dashboard and Agents page share one connected-agent inventory. Source sessions and AgentRun agents appear together, including profiles awaiting their first captured prompt, and the separate observed-session sections are removed. Selecting a source session filters its reported usage without treating the session as a completed run or requesting a server-agent run endpoint.
|
|
149
|
+
|
|
150
|
+
Ordinary analytics reads project the saved accounting and identity fields instead of transferring full CLI policies and SDK replay records. Historical identity still selects the right source usage across date ranges. PostgreSQL records containing unsupported Unicode escapes retain the earlier JavaScript parsing path for that record, preserving their counters and exact native identity. Unexpected accounting read failures are surfaced by the usage endpoint.
|
|
151
|
+
- Show connected coding agents in the same searchable inventory and count as registered agents, with <!-- changes/connected-agent-inventory.md -->
|
|
152
|
+
project, session, model, activity and token details. Preserve loaded cards when another source is
|
|
153
|
+
loading or unavailable, and exclude nonarchivable connections from the archived view.
|
|
154
|
+
|
|
155
|
+
Identify coding sessions by their native title, project basename or delegated task name, with a stable
|
|
156
|
+
ID suffix for unnamed sessions. Names refresh even while idle. The observer sends bounded labels only
|
|
157
|
+
to receivers advertising support; prompts, conversation previews, full paths and obvious credentials
|
|
158
|
+
are excluded. Token accounting and selection scopes stay unchanged.
|
|
159
|
+
Unicode labels respect queue and delivery byte limits so long multilingual names cannot stall delivery.
|
|
160
|
+
- Give connected coding sessions the same card layout and coding-agent Run/Edit handoffs as other <!-- changes/connected-agent-learning-controls.md -->
|
|
161
|
+
agents, with learning status and setup or settings actions. Project learning connections remain
|
|
162
|
+
available in Learning Dojo but no longer appear as duplicate agents in the active inventory.
|
|
163
|
+
|
|
164
|
+
The connector can associate a session with an existing project/runtime learning connection using
|
|
165
|
+
its installed hook receipt and a scoped proof. Learning is shown as on only after that exact session
|
|
166
|
+
has reported a hook window and the server and project settings allow learning. Missing setup,
|
|
167
|
+
unverified activation and unsupported delegated sessions remain explicit. Revoked or invalid proofs
|
|
168
|
+
do not grant access or prevent ordinary activity and token reports. This does not install hooks,
|
|
169
|
+
enroll additional projects, import conversations or change how coding sessions are started.
|
|
170
|
+
- Dashboard and agent analytics show exact, comma-separated token totals, input and output counts whenever they fit. Counts adapt to the actual column width and font, using compact notation only when needed. The full number remains available on hover and to screen readers when abbreviated. <!-- changes/console-exact-token-counts.md -->
|
|
171
|
+
- The dashboard and agent analytics show Input and Output counts beneath the token total. Input includes cached tokens, including when a connected source reports total and output usage without a cache breakdown. Missing counts display a dash, and genuine zero counts remain zero. The token card no longer shows cache percentages or model-request diagnostics; incomplete coverage and history limits remain visible. <!-- changes/console-token-breakdown.md -->
|
|
172
|
+
- Show Mission Control's activity and token-usage charts directly below the main agent and run counts, <!-- changes/mission-analytics-placement.md -->
|
|
173
|
+
before the observed-session summary.
|
|
174
|
+
- Keep verified session identity privately beside retained observation usage, independently of current <!-- changes/observation-usage-identity.md -->
|
|
175
|
+
learning readiness. Disconnecting, replacing credentials, or receiving an older client's activity
|
|
176
|
+
no longer counts observed tokens separately from the same session's captured runs. Existing verified
|
|
177
|
+
associations migrate when another observation arrives; the accounting identity grants no learning
|
|
178
|
+
authorization and is removed with the retained session.
|
|
179
|
+
|
|
180
|
+
If an earlier disconnect already discarded the verified identity, it cannot be reconstructed. Where
|
|
181
|
+
unidentified observations may overlap recorded native runs, usage compares the complete native view
|
|
182
|
+
with each collector's complete observation view and reports a conservative total with incomplete
|
|
183
|
+
coverage. It does not add possibly overlapping collectors or infer an identity from unverified fields.
|
|
184
|
+
|
|
185
|
+
A verified report that tries to assign a different native identity to an already identified observed
|
|
186
|
+
session is refused with `409 connector_session_identity_conflict`. The entire batch remains uncommitted,
|
|
187
|
+
including its usage and receipts; distinct native sessions must use distinct external session IDs.
|
|
188
|
+
- Template packages such as Inbound Lead and KYB accept and retain their `learning.agree_on` settings through import, apply and later edits. A learned workflow's promotion check and shadow audit compare the declared answer fields, with each dotted path required in the template's output schema; a missing path disagrees. Without `agree_on`, the existing whole-answer comparison remains. The console and API describe which fields the check compared. <!-- changes/template-learning-compat.md -->
|
|
189
|
+
|
|
5
190
|
## 0.1.0-beta.50 (2026-11-20)
|
|
6
191
|
|
|
7
192
|
- An API-only server (`AGENTRUN_API_ONLY=1`) serves four learning reads with its token: an agent's loop, promotions and cost per run, and a run's learning. <!-- changes/api-only-learning-reads.md -->
|