<!--
Sitemap:
- [Installation](/installation): Install the Bento daemon on macOS or Linux, then write your first pipeline to run a coding agent on a GitHub, Linear, or schedule event.
- [Upgrading](/upgrading): Version-specific steps for upgrading an existing Bento install.
- [Concepts](/concepts)
- [Build your first pipeline](/tutorials/pipeline-args)
- [Target a specific issue or PR from a URL](/tutorials/url-targeting)
- [Keep state across runs](/tutorials/pipeline-state)
- [Fire a pipeline on a schedule or on demand](/tutorials/schedule-and-fire)
- [Deploy a box to Railway](/tutorials/deploy-to-railway)
- [Operate a hosted daemon](/tutorials/operate-a-hosted-daemon)
- [Configuration](/configuration): Configure the Bento daemon with daemon.yaml: service name, port, webhooks, sandboxes, knowledge base, and environment variables.
- [Members](/members)
- [Knowledge base](/knowledge-base/)
- [Method and delivery](/knowledge-base/modes): Choose how Bento retrieves knowledge (BM25, vector, or hybrid) and how it delivers that knowledge to a coding agent.
- [Config](/knowledge-base/config)
- [MCP](/knowledge-base/mcp): Give coding agents your team knowledge over MCP. The Bento daemon serves an ask_knowledge search tool and per-file resources.
- [Pipeline configuration reference](/pipelines/config): Reference for Bento pipeline YAML: triggers, agents, skills, instructions, filters, sandboxes, structured results, and outputs.
- [Filters](/pipelines/filters): Filter GitHub, Linear, and webhook events by repository, label, and other fields so only the right Bento pipelines run.
- [Workflows](/pipelines/workflows): Group related Bento pipelines with their own agents, skills, and policies in one workflow directory under .bento/workflows.
- [Model routing](/pipelines/routing): Send each Bento pipeline run to the right model with named routes, label-based routing, and credential pools.
- [Orchestration](/pipelines/orchestration): Let an orchestrator decide how to dispatch a Bento pipeline: run one agent, fan out in parallel, or call typed capabilities.
- [Retries and failover](/pipelines/retries-and-failover): How Bento keeps runs going: route failover, sandbox fallbacks, queue retries, and the circuit breaker.
- [Triggers](/triggers/): Start a Bento pipeline from a GitHub, Linear, webhook, schedule, or manual trigger. Compare the trigger types and when each one fires.
- [GitHub trigger](/triggers/github): Run a coding agent on GitHub pull request, issue, and other webhook events. Configure HMAC verification and event patterns.
- [Linear trigger](/triggers/linear): Run a coding agent on Linear issue and comment events. Configure the Linear webhook, signature verification, and Hookdeck relay.
- [Webhook trigger](/triggers/webhook): Fire a Bento pipeline from any HTTP POST to /webhooks/{name}, with bearer-token authentication declared in daemon.yaml.
- [Schedule trigger](/triggers/schedule)
- [Manual trigger](/triggers/manual): Fire any Bento pipeline on demand with bento pipeline fire, and pass typed inputs to a pipeline that runs only on request.
- [Traces](/pipelines/traces)
- [Slack](/integrations/slack)
- [Public access](/public-access): Expose the Bento daemon to GitHub webhooks through a Cloudflare Quick Tunnel or Tailscale Funnel, and compare the two options.
- [Context engineering](/context-engineering): Assemble each coding agent prompt from personas, policies, skills, and pipeline instructions. Learn which file each instruction belongs in.
- [Best practices](/best-practices)
- [Troubleshooting](/troubleshooting)
- [Architecture](/architecture/vision)
- [Workspaces](/workspaces)
- [Authentication](/authentication)
- [Identity](/identity)
- [Security](/security)
- [References](/references)
- [Changelog](/changelog): Bento release history.
- [CLI reference](/cli/)
- [Setup](/cli/setup)
- [Secrets](/cli/secrets)
- [Lifecycle](/cli/lifecycle)
- [Sandbox image](/cli/image)
- [Sandboxes](/cli/sandbox)
- [Observability](/cli/observability)
- [Diagnostics](/cli/diagnostics)
- [Pipeline](/cli/pipeline)
- [Events](/cli/events)
- [Workbench](/cli/workbench)
- [Auth](/cli/auth)
- [Knowledge](/cli/knowledge)
- [Evals](/cli/evals)
- [Bento docs: run coding agents from version-controlled pipelines](/index): Bento runs coding agents from pipelines you keep in your repository. Declare the trigger, sandbox, skill, and guardrails in YAML.
- [Runtime wrapper](/architecture/runtime-wrapper)
- [Skill evolve](/architecture/skill-evolve)
-->

# Upgrading

Most releases need no action beyond the standard upgrade:

1. `bento update` — replaces the binary (the running daemon stays on its current version).
2. Apply any configuration migration listed for your target version below.
3. `bento doctor` — resolve any configuration errors.
4. `bento daemon restart` — then confirm `bento daemon status` is reachable.

See [CLI setup](/cli/setup) for the full command reference.

The following sections list releases that require a manual change, newest first. A version not listed needs no action beyond the standard upgrade.

## 0.14.0

**Voices move from `agents/_voices/` to `voices/`.** Move each `agents/_voices/<name>.md` file to `voices/<name>.md`, and add `name` and `description` frontmatter, as a policy file has. The `voice:` field of an agent does not change. Until you move a voice, each agent that names it fails to load, and the `unknown_voice` message names the move.
**A pipeline file name can contain only letters, digits, `.`, `_`, and `-`.** The config load fails for a pipeline file with a different character in its name, and the message names the file. Rename each such file in `.bento/pipelines/` before you upgrade. The new name is the new name of the pipeline, so also change each reference to the old name. The daemon also reads [workflows](/pipelines/workflows) from `.bento/workflows/`.
**Claude, Codex, and Linear logins share one stored shape.** You do not need to do a step. The Linear installation moves from `oauth/linear` to `linear/app` the first time the daemon refreshes it, or when you run `bento setup linear`. `bento doctor` does not move it. After the move, a daemon of an earlier version cannot read the installation. Upgrade every daemon that shares the database at the same time. A pipeline `env:` entry cannot name a login secret (`claude/*`, `codex/*`, `linear/app`, or `oauth/*`), and validation names the entry. Other `linear/*` names stay plain secrets. The orchestrator, the knowledge query rewriter, the feedback classifier, and `bento doctor` probes now also use stored Codex logins.
**The `bento invocation` commands move to `bento run`.** A run is one dispatch of a pipeline for an event. An attempt is one try inside a run. Change each script, cron job, and runbook that calls the old commands:

| Old command | New command |
| --- | --- |
| `bento invocation list` | `bento run list` |
| `bento invocation status` | `bento run status` |
| `bento invocation show <run-id>` | `bento run show <run-id>` |
| `bento invocation get-run <run-id>` | `bento run show <run-id>` |
| `bento invocation logs <run-id>` | `bento run logs <run-id>` |

An old command exits 1 with the code `command_moved` and names the new command. There is no alias. `bento run show` prints the final output of the run after its attempts and steps. Use `bento run show <run-id> --format json` to read the record that `bento invocation get-run --format json` printed. `bento run list` prints a header row and the columns `RUN`, `ATTEMPT`, `STATUS`, `PIPELINE`, `STARTED`, and `MODEL`. Change each script that reads the old rows.

**The graph node response gives the claiming run, not the claiming invocation.** In the `GET /graphs/:id/nodes/:key` response, the `claimingInvocationId` field changes to `claimingRunId`. It holds the run ID of the invocation that claimed the node. For an invocation from before run IDs, it holds the invocation ID. There is no alias for the old field. In `@bento/api`, `GraphNodeResponse` changes the same way. `bento graph node` prints `Run: bento trace <run-id>`. Upgrade the CLI and the daemon together. A CLI from an earlier release reads the old field and prints that the node has no claiming invocation.

**The run routes move from `/invocations` to `/runs`, keyed by run ID.** A run is one dispatch of a pipeline for an event. An attempt is one try inside a run. Change each call to the daemon HTTP API:

| Old route | New route |
| --- | --- |
| `GET /invocations` | `GET /runs` |
| `GET /invocations/stats` | `GET /runs/stats` |
| `GET /invocations/:id` | `GET /runs/:runId` |
| `GET /invocations/run/:runId` | `GET /runs/:runId` |
| `GET /invocations/:id/artifacts` | `GET /runs/:runId/artifacts` |
| `GET /invocations/:id/artifacts/:taskId` | `GET /runs/:runId/artifacts/:taskId` |
| `POST /workloads/:id/invocations` | `POST /workloads/:id/runs` |
| `GET /workloads/:id/invocations` | `GET /workloads/:id/runs` |
| `GET /workloads/:id/invocations/:invocationId` | `GET /workloads/:id/runs/:runId` |
| `DELETE /workloads/:id/invocations/:invocationId` | `DELETE /workloads/:id/runs/:runId` |

An old route returns 404. There is no alias. `GET /runs` lists one entry per run in a `runs` field, not an `invocations` field. Each entry has `attemptCount` and an `attempts` list, and each attempt has its own `status`. `limit` and `offset` count runs. `?status=` returns each run that has an attempt with that status, with only those attempts. `GET /runs/stats` counts attempts, not invocations. `GET /runs/:runId` returns the run record, the attempts, and the steps of every invocation in a `steps` field, not a `tasks` field. In `@bento/api`, `InvocationListResponse`, `InvocationDetail`, `InvocationStatsResponse`, and `InvocationRunOutput` change to `RunListResponse`, `RunDetail`, `RunStatsResponse`, and `RunOutput`. `bento run show` takes a run ID, not an invocation ID. The artifact manifest covers every attempt of the run. It has no `invocationId` field, and each entry has an `attempt` number, which is never null. `bento run logs` and `bento daemon logs --agent` take a run ID. A run with more than one attempt prints a list of its attempts. Use `--attempt <n>` to read one attempt. Read and cancel a workload run by the `run_id` that `POST /workloads/:id/runs` returns, the same ID that MCP `submit_run` returns. Upgrade the CLI and the daemon together. A CLI from an earlier release calls the old routes and gets 404.

**The event routes move from `/triggers` to `/events`, and the pipeline actions move to `/pipelines`.** Bento calls a received record an event. Change each call to the daemon HTTP API:

| Old route | New route |
| --- | --- |
| `GET /triggers` | `GET /events` |
| `GET /triggers/stats` | `GET /events/stats` |
| `GET /triggers/:id` | `GET /events/:id` |
| `GET /triggers/:id/inspect` | `GET /events/:id/inspect` |
| `GET /triggers/:id/fields` | `GET /events/:id/fields` |
| `POST /triggers/:id/replay` | `POST /events/:id/replay` |
| `POST /triggers/pipelines/:name/fire` | `POST /pipelines/:name/fire` |
| `GET /triggers/pipelines/:name/inspect` | `GET /pipelines/:name/inspect` |
| `POST /triggers/url` | `POST /pipelines/url` |

An old route returns 404. There is no alias. The `GET /events` response lists the records in an `events` field, not a `triggers` field. The responses of `POST /events/:id/replay`, `POST /pipelines/:name/fire`, and `POST /pipelines/url` give the new record id in `event_id`, not `trigger_id`. An event id keeps the `trg_` prefix. In `@bento/api`, the record types change from `Trigger*` to `Event*`, for example `TriggerListResponse` to `EventListResponse`, `TriggerStatus` to `EventStatus`, and `ReplayTriggerResponse` to `ReplayEventResponse`. The status values do not change. `POST /events`, the GitHub webhook receiver, does not change. `POST /schedules/:name/trigger` does not change.

Upgrade the CLI and the daemon together. A CLI from an earlier release calls the old routes and gets 404.

**Firing and previewing a pipeline move from `bento trigger` to `bento pipeline`.** Change each script, cron job, and runbook that calls the old commands:

| Old command | New command |
| --- | --- |
| `bento trigger fire` | `bento pipeline fire` |
| `bento trigger schedule` | `bento pipeline schedule` |
| `bento trigger inspect --pipeline <name>` | `bento pipeline inspect <name>` |

An old command exits 1 with the code `command_moved` and names the new command. There is no alias. `bento pipeline fire` prints the new record id on an `event:` line, not a `trigger:` line. Change each script that reads the `trigger:` line.

**The commands that read stored events move from `bento trigger` to `bento event`.** Bento calls a stored record an event. Change each script, cron job, and runbook that calls the old commands:

| Old command | New command |
| --- | --- |
| `bento trigger list` | `bento event list` |
| `bento trigger stats` | `bento event stats` |
| `bento trigger inspect <id>` | `bento event inspect <id>` |
| `bento trigger replay <id>` | `bento event replay <id>` |

The flags do not change. An old command exits 1 with the code `command_moved` and names the new command. There is no alias.

**`targets` is renamed to `routes`, and `target_routes` to `routes_by_label`.** A route is one registry entry: a runtime, a model, an optional effort, and a credential selection. Rename every `targets:` key in configuration to `routes:`. This covers the top-level registry in `daemon.yaml`, `ask`, `feedback`, `orchestrator`, `knowledge.retrieval.rewrite`, the pipeline list, the pipeline `orchestrator` block, and each capability in `.bento/capabilities/`. Rename the pipeline `target_routes:` map to `routes_by_label:`. Rename the `targets` parameter to `routes` in each MCP `submit_run` call and each `POST /workloads/:id/runs` body. Rename `bento probe ping --targets` to `--routes`. There is no alias. A config that keeps an old key fails validation with `"targets" was renamed to "routes"` or `"target_routes" was renamed to "routes_by_label"`. `formatter.target` and `bento ask --target` do not change.

**The MCP invocation tools are renamed to run tools.** Update every MCP client that calls them. There is no alias, and the old names are not in `tools/list`.

| Old tool | New tool |
| --- | --- |
| `submit_invocation` | `submit_run` |
| `list_invocations` | `list_runs` |
| `get_invocation(invocation_id)` | `get_run(run_id)` |
| `cancel_invocation(invocation_id)` | `cancel_run(run_id)` |

`submit_run` returns a `run_id`, and each row of `list_runs` has one. Pass that id to `get_run` and `cancel_run`. For a direct run, the run id is the same as the invocation id. `get_run` returns the run record: `runId`, `invocationId`, `status`, `diagnostic`, `output`, `result`, and `notes`. A token reads and cancels only the runs under its own workloads, unless it has `runs:admin`.

**Token scopes have new names.** The daemon accepts only the new names. Old names are not aliases. Replace each old scope in the `scopes` list of every token in `daemon.yaml`:

| Old scope | New scope |
| --- | --- |
| `triggers:read` | `pipelines:read` |
| `workloads:read` | `runs:read` |
| `workloads:write` | `runs:write` |
| `workloads:admin` | `runs:admin` |
| `repos:read` | `projects:read` |

`pipelines:invoke` does not change. A token in `daemon.yaml` that lists an old name fails validation, and the error names the new scope. `runs:read` and `runs:write` still reach only the workloads that the token created, and only `runs:admin` crosses that boundary. `runs:read` still reads every invocation and its artifacts on the daemon, as `workloads:read` did. The route paths do not change. Tokens from `bento token issue` grant `*` and need no change.

Release the broker and the daemon together. A broker JSON Web Token (JWT) that carries only old scope names authenticates, but the daemon grants it no access. The broker must mint the new names in the `scope` claim.

**`guardrails.read_only` and capability `access` are replaced by `secrets`.** Replace `guardrails.read_only` with `guardrails.secrets` in every pipeline, and `defaults.guardrails.read_only` with `defaults.guardrails.secrets` in `daemon.yaml`. Change `read_only: true` to `secrets: none`. Remove `read_only: false`, or change it to `secrets: injected`, which is the default. In every `.bento/capabilities/*.yaml` file, replace `access: observer` with `secrets: none` and `access: actor` with `secrets: injected`. A file that keeps an old key fails validation, and the message names `guardrails.secrets` or `secrets`. With `secrets: none`, the checkout stays writable. The agent gets no GitHub token and none of the pipeline's own `env:` secrets. A trace records each withheld variable with the reason `secrets_none`, which replaces the reason `observer`. The daemon-level `secrets:` key for secret sources does not change. See [guardrails](/pipelines/config#guardrails).

**`repos:` is renamed to `projects:`.** A project is one repository that Bento works on. Its key in `daemon.yaml` is the repository as `owner/name`, and the `url` field is removed. Make these changes:

1. In `.bento/daemon.yaml`, rename `repos:` to `projects:`. Use the `url` value of each entry as its key, and remove `url`.
2. In each `.bento/pipelines/*.yaml`, rename `trigger.repo` to `trigger.project`. The value must be a key of `projects:`.
3. Rename `filter.repos` to `filter.projects`.
4. Replace the diagnostic code `filter_repo` with `filter_project` in scripts and `bento event list --code` filters.
5. Replace `GET /repos` with `GET /projects`, and `GET /repos/:key` with `GET /projects/:owner/:repo`. The list response has a `projects` field, and each entry has a `name` in `owner/name` form.
6. Give `bento event list --repo` and `bento event stats --repo` an `owner/name` slug. A short name from the old `repos:` map is not accepted.

Validation rejects `repos:`, `trigger.repo`, and `filter.repos`, and the message names the new key.

```yaml
# before
repos:
  bento:
    url: 1a35e1/bento
    branch: develop

# after
projects:
  1a35e1/bento:
    branch: develop
```

A managed snapshot no longer falls back to the old `owner/repo:repo-<label>` alias. A declared snapshot that has no ready version under its `owner/repo:<branch>` alias halts setup with `snapshot_not_ready` until its first build. Start that build with `bento pipeline schedule system/managed-snapshots`.

**Codex subscription logins are stored in the database.** A Codex subscription credential no longer reads a file. The daemon keeps the login in its secret store and refreshes it before each run. For each Codex subscription in `.bento/daemon.yaml`, do these steps:

1. Make sure that `database.url` is set and that `secrets.instance` is `postgres` or not set.
2. Run `bento setup codex NAME --reauth` from the harness directory. The command stores a new login, removes `path` from the entry, and removes the old file under `~/.bento/provider-credentials/codex/NAME/`.
3. Restart the daemon.

A credential name must use lowercase letters, numbers, and single hyphens. Validation rejects `path` or `env` on a Codex subscription and names the setup command.

**Claude subscription tokens are stored in the database.** A Claude subscription credential no longer reads an environment variable or a file. The daemon checks for each token in its secret store when it starts. For each Claude subscription in `.bento/daemon.yaml`, do these steps:

1. Rename the credential if its name is not lowercase letters, numbers, and single hyphens, and change each route `credential` and `credential_pool` that names it.
2. Run `claude setup-token` on a computer that has a browser. Then run `bento setup claude NAME --reauth` from the harness directory and paste the token. To use a token that is already in an environment variable, run `printenv VARIABLE | bento setup claude NAME --reauth --token-stdin`.
3. Remove the old environment variable, and remove the old file under `~/.bento/provider-credentials/claude/NAME/` if it is there.
4. Restart the daemon.

`path` is removed from every credential. Validation rejects `path` or `env` on a Claude subscription and names the setup command.

**A migration adds an index on `triggers (run_id)`.** The prior-runs lookup reads this index, so `bento queue status` and the context of each run no longer read the whole `triggers` table. The migration blocks writes to `triggers` while it builds the index, and the daemon starts after the index is complete. On a large `triggers` table, this can take some time, and another daemon that shares the database cannot record events until it is done. To prevent this, run `CREATE INDEX CONCURRENTLY idx_triggers_run_id ON triggers (run_id);` before you upgrade. The migration then finds the index and does not build it again. At start, the daemon now logs the migrations that it applies.

**The status `superseded` is now `replaced`, and one diagnostic code has a new name.** An event that a newer event with the same key replaces now ends with the status `replaced`. An eval that a newer run of the same pipeline and workspace closes also has the status `replaced`. The daemon migrates stored rows. The API refuses `superseded` as an event or eval status. Change each script that passes `--status superseded` to `bento event list`, `bento event stats`, or `bento evals list`. The `supersededBy` field of an event is now `replacedBy`. The diagnostic code `schedule_tick_superseded` is now `schedule_tick_already_queued`. Change each `--code` filter and each alert that uses the old code. There is no alias.

**The lifecycle phases `augment` and `spawn` are now `assemble` and `execute`.** The phases are `validate`, `retrieve`, `assemble`, `execute`, and `observe`. Rename `lifecycle.augment` to `lifecycle.assemble` in `daemon.yaml`. The hooks do not change. The daemon refuses to start with `lifecycle.augment`, and `bento config validate` does not report it. The daemon migrates stored step rows. A step that ran the agent now has the phase `execute`, and its attempt steps are `execute-attempt-<n>`, not `spawn-attempt-<n>`. The step kind `run` is now `agent`. Each step in `GET /runs/:runId` and `bento run show` has a `kind` of `phase`, `agent`, or `tool`. Change each script that reads the old phase names, step names, or kind.

**A wrong note is replaced or tainted, not linked.** The MCP tool `submit_note` no longer accepts `supersedes_note_id` or the note kind `supersession`, and it refuses unknown fields. To fix a wrong note, send a new note with `replaces_note_id`. The daemon taints the old note in the same call. To withdraw a note, call `taint_note`. To reverse that, call `untaint_note`. A tainted note stays in the database, and later prompts leave it out. The daemon migrates each stored link to a taint. Change each agent prompt and MCP client that sends `supersedes_note_id`.

**`submit_note` and `report_progress` write only to your own runs.** A token that is not a sandbox token now gets `not_found` for a run of another token. It also gets `not_found` for a note of another token in `replaces_note_id`. Sandbox tokens do not change.

**A declared snapshot `refresh` is a cron expression in UTC.** Change each `refresh` value under `projects.<owner/name>.sandbox.snapshot` in `.bento/daemon.yaml` from an interval, such as `1d`, to a cron expression, such as `"0 21 * * *"`. The default is `"0 0 * * *"`. The daemon refuses to start with an interval. The daemon builds a declared snapshot only at the refresh times, also after a failed build or a changed declaration. To build sooner, use `bento sandbox snapshot retry`. See [Managed snapshots](/cli/sandbox#managed-snapshots).

**Queued webhook jobs no longer store request headers.** Earlier releases stored the `authorization` header of a `verify: bearer` webhook in each queued job. A job that the queue held before the upgrade keeps that header until the queue removes the job. If a `bearer` source received requests before the upgrade, rotate its secret.

**This release pins Cloudflare bridge 2.3.0.** Run `bento sandbox update --provider cloudflare` after `bento update`. The previous release pinned bridge 2.1.1. A Cloudflare image that fails preparation now fails the build at once, with the reason from Cloudflare. An image preparation that Cloudflare schedules stays pending until it is ready. See [Sandbox](/cli/sandbox).

**MCP discovery needs `mcp:read`.** The daemon now refuses `tools/list` to an MCP token that holds neither `mcp:read` nor `*`. That token also gets no `agent://`, `skill://`, `wiki://`, `blueprint://`, or `recipe://` resources. Its tool calls are still checked per tool. Earlier releases let every authenticated token list the tools and read every resource. If an MCP client token holds only `mcp:write`, `notes:write`, or `host:execute:<name>`, add `mcp:read`. The client then gets its list of tools.

**A pipeline with explicit principals cannot mount a shared credential directory.** When a pipeline declares `principals:`, validation rejects a `sandbox.mounts` host path of `~`, `~/.config`, `~/.config/gh`, `~/.bento`, or a path inside `~/.config/gh` or `~/.bento`. Before each run, the daemon also refuses an absolute path to the same directories. This includes a `gh` directory that `GH_CONFIG_DIR` or `XDG_CONFIG_HOME` moves. The daemon then fails the event with `setup_precondition_failed`. These directories hold the tokens of the operator and of other principals. Mount the narrower directory the agent needs instead.

**Bento works only on registered projects.** Validation accepts an entry in `trigger.project` or `filter.projects` only when it is a key of `projects:` in `.bento/daemon.yaml`. The match ignores case. Validation and `bento doctor` report an entry that is not registered. The daemon discards a GitHub event on an unregistered repository with the code `project_not_registered`. A manual or URL trigger on an unregistered repository fails with the same code. Before you upgrade, add each repository that your pipelines work on to `projects:`.

**The `github.review` verdict `HOLD` is removed.** A review pipeline returns `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. Change each pipeline that returns `HOLD` to return `COMMENT`. A result with `HOLD` fails result validation, and the daemon posts no review.

## 0.13.2

**`trigger.repo` must be the `url` of a registered `repos:` entry on every pipeline that sets it.** Validation and daemon startup reject any other value. An earlier release accepted a `repos:` key such as `bento`, and the run started with no checkout. Set `trigger.repo` to the `url` of the entry, for example `1a35e1/bento`. Run `bento config validate` to find each pipeline to change.

## 0.13.1

**Host Pi requires version 1.0 or later.** This applies to both `pi` and `pi-google` runs, even without daemon MCP tools. Upgrade the `pi` executable on the daemon's `PATH` before you restart Bento. Check that executable with `pi --version`. Earlier versions reject the `--no-approve` flag and do not include the `builtin:mcp` extension.

Bento sets `PI_CODING_AGENT_DIR` to an isolated directory for each Pi run. Host runs no longer read authentication, settings, models, or user extensions from `~/.pi/agent`. Configure the provider key through the daemon's [credentials](/configuration#credentials). Bento delivers the selected key as `OPENROUTER_API_KEY` for `pi` or `GEMINI_API_KEY` for `pi-google`. A key stored only in Pi's `auth.json` does not reach the run.

Every pipeline must declare `targets`. A pipeline that omits the field fails validation with `missing required "targets" field`. Add a named target to `targets:` in `daemon.yaml`, then list it on the pipeline, for example `targets: [claude-opus-high]`.

Remove `runtime`, `model`, and `effort` from the frontmatter of every `agents/<name>/PERSONA.md` and every `skills/<name>/SKILL.md`. An agent or a skill that keeps one of these keys fails discovery with a message that names `targets:`. The `targets` of the pipeline or the invocation are the only source of the route.

Name `targets` on every direct invocation, in each MCP `submit_invocation` call and each `POST /workloads/:id/invocations` body, for example `"targets": ["claude-sonnet-medium"]`. An invocation without `targets` is refused. Earlier releases ran it on the skill's route, or on `claude` with `claude-sonnet-5`.

Add a `feedback:` block with `targets` to `daemon.yaml`, for example `targets: [claude-haiku-low]`. The daemon refuses to start without it. The feedback classifier behind `submit_feedback` is now part of the daemon, so delete `skills/feedback-classifier/` if your repository has it. See [Feedback](/configuration#feedback).

**This release pins Cloudflare bridge 2.1.1.** Run `bento sandbox update --provider cloudflare` after `bento update`. From bridge 2.1.0, the bridge does not limit the sandboxes of an image. `queue.remote.concurrency` sets how many remote runs start at the same time. The bridge also answers a request to create a sandbox before the container starts, so the first start from a new snapshot image does not fail at the Cloudflare request limit. Bridge 2.1.1 runs sandboxes on the current `agent:default` image. See [Sandbox](/cli/sandbox).

## 0.13.0

**A `knowledge:` block accepts only known keys.** Validation now rejects an unknown key in a pipeline `knowledge:` block or in `defaults.knowledge`. The known keys are `method`, `delivery`, `instructions`, `filter`, `rerank`, `topK`, and `maxTokens`. In `filter`, the known keys are `categories` and `tags`. Earlier releases ignored an unknown key, and the setting kept its default value. Validation also rejects a `knowledge:` block or a `filter` that is not a map. The error message names the file and the key. Correct the key, or remove it.

**A pipeline `context:` block accepts only `diff`.** Validation now rejects the fields `git_history`, `related_prs`, `sessions`, `linear`, and `docs`. These fields never added anything to a prompt. When a pipeline sets one of them, the daemon refuses to start and `bento config validate` fails. Remove the field. Set `context.diff` to `true` or `false`, or leave it empty.

**A result schema must declare each required name.** Validation now rejects a `required` name that is not a key of `properties` in the same schema object. This applies to nested objects and array items. Earlier releases made such a field optional, so a result that omitted it passed. The error message names the missing name. Add the property, or remove the name from `required`.

**A timeout budget must be a positive whole number of seconds.** Validation now rejects zero and negative values for `guardrails.timeout` in a pipeline, in `defaults.guardrails`, and for each value of a timeout map. Earlier releases accepted these values, and the run timed out before its first attempt. Set the budget to 1 second or more.

**The circuit-breaker webhook must be an `http` or `https` URL.** Validation now rejects any other value for `queue.circuit_breaker.escalate.webhook`. Earlier releases accepted any non-empty string. Set a full URL, or remove the key.

**A closing frontmatter fence must be the only text on its line.** A line that starts with `---` and holds more text no longer closes the frontmatter. Examples are `----` and `---notes`. This applies to agent, skill, and pipeline files. Earlier releases accepted these lines as the closing fence. Change the closing line to `---`.

**This release pins Cloudflare bridge 2.0.0.** Run `bento sandbox update --provider cloudflare` after `bento update`. Bridge 2.0.0 uses `@cloudflare/sandbox` 1.0.0. It replaces the `Sandbox`, `WarmPool`, and snapshot classes of the earlier bridge with one class, `BentoSandbox`.

A Durable Object migration in the update deletes the earlier classes. After the update, you cannot deploy an earlier bridge again. The update stops when the bridge has active sandboxes, so wait until no run uses a Cloudflare sandbox. After the new bridge passes its health check, the update deletes the container applications of the earlier classes. If a deletion fails, the command reports the number of applications that remain. Run `bento sandbox update --provider cloudflare` again to delete them. The second run does not deploy the bridge again.

A snapshot version that an earlier release built cannot run on bridge 2.0.0. The daemon builds the newest version of each snapshot alias again. It starts these builds only when the bridge runs version 2.0.0 or later. Until you update the bridge, a queued Cloudflare build waits, and the earlier versions continue to serve runs.

After the bridge update, the bridge refuses a sandbox from an earlier version with `snapshot_unavailable`. Until the new version of an alias is ready, a run on a declared snapshot or on a compute class snapshot halts with `snapshot_not_ready`. A pipeline with [`sandbox.fallbacks`](/pipelines/config#fallbacks) runs on its next step instead. A run on another snapshot alias uses the default image. To start the builds now, run `bento pipeline schedule system/managed-snapshots`. The bridge refuses the earlier versions until retention removes them.

## 0.12.16

**A retrieval block must match `engine`.** The daemon reads only the block of the selected engine. Validation now rejects a `knowledge.retrieval.chroma` or `knowledge.retrieval.turbopuffer` block when `knowledge.retrieval.engine` selects a different engine. When `engine` is not set, the engine is `qmd`. The error message names the block and the engine. Set `engine` to the engine of the block, or remove the block.

## 0.12.14

**The `fast` queue lane is removed.** Remove `queue.fast` from `.bento/daemon.yaml`, and remove `lane` and `priority` from every `.bento/pipelines/*.yaml`. Validation rejects all three fields. At startup, the daemon moves any pending `fast` jobs to `host` capacity and resets stored job priorities; it preserves job IDs, payloads, queue keys, attempts, and ready times. Historical traces keep their original lane labels. `host.concurrency` now limits every local backend, including just-bash, and `remote.concurrency` limits Daytona and Cloudflare runs.

## 0.12.12

This release pins Cloudflare bridge 1.3.0. Run `bento sandbox update --provider cloudflare` after `bento update`.

A pipeline `env:` grant, or credentials the daemon injects into a setup step (for example `GH_TOKEN`), now travels in the sandbox exec request instead of a command script written to the sandbox's disk. A daemon that still points at a bridge older than 1.3.0 refuses any command carrying such a grant, with the message "lacks exec\_env; update the managed bridge", instead of running it. Update the bridge before or together with the daemon.

## 0.12.11

This release pins Cloudflare bridge 1.2.0. Run `bento sandbox update --provider cloudflare` after `bento update`.

The update writes the complete variable set to the Worker. It removes a variable you set by hand on the Worker. Set the variable again after the update, if you need it. The update also renames the variable `BENTO_INSTANCE_NAME` to `BENTO_DAEMON_NAME`.

A snapshot that sets `instanceType` or `max_concurrent` needs bridge 1.2.0 or later. The daemon refuses to build it on an older bridge, with the message "update the managed bridge". A snapshot with neither setting builds on any bridge version.

`bento sandbox status --provider cloudflare` and `bento doctor` now report a bridge registration that this daemon does not track. An earlier database, or an incomplete removal, can leave one behind. Remove it with `bento sandbox snapshot prune --provider cloudflare --orphans`.

Do not point two daemons with the same `name` and different databases at one bridge. Each daemon then reports the other daemon's registrations as orphans, and prune removes the idle ones.

## 0.12.8

Pipeline `env` commands now share the snapshot resolver’s 60-second timeout. Commands that exceed it fail resolution: required entries stop the invocation, and optional entries are withheld.

Rename `repos.<name>.sandbox.snapshot.build_env` to `env`, and replace the snapshot CLI option `--build-env` with `--env`. Existing variable-name lists keep the same meaning. `env` also accepts pipeline-style `command` and `secret` entries. The old names are rejected. Recreate manually registered snapshots that stored `buildEnv` in their build options; repository-managed declarations enqueue replacements after the configuration changes.

## 0.12.2

A `secret_ref` value is a full secret name, `<kind>/<leaf>`. Change `secret_ref: github` to `secret_ref: webhook/github` on each webhook source. Validation fails with a message that names the full form until you change it. `bento setup webhook <name>` stores `webhook/<name>`, and `bento secrets list` shows every stored name.

A secret name is lower-case letters and digits, joined by single hyphens, in each segment. A webhook secret that you stored under a name with `_` or upper case stays in the table, and you can list and delete it, but no `secret_ref` can name it. `bento doctor` lists each such name. Delete it with `bento secrets rm <name>`, then run `bento setup webhook <new-name>` with a name that matches the grammar, and point `secret_ref` at `webhook/<new-name>`.

`secrets.source` in `daemon.yaml` is `secrets.instance`. The values `postgres` and `env` do not change.

## 0.12.1

`bento daemon reload` and SIGHUP configuration reload are removed. Replace reload commands with `bento config validate && bento daemon restart`. All configuration changes require a restart, including pipelines and lifecycle hooks. The process uses one configuration snapshot from startup. The daemon ignores SIGHUP so old reload commands do not terminate it.

`bento queue status` shows only active, waiting, and delayed work by default. Add `--verbose` to scripts that need failed counts or rows. This flag selects failed history; it does not restore the job-ID listing removed in 0.10.0. Use `--since`, `--limit`, and `--offset` to filter that history. See [queue status](/cli/observability#bento-queue-status).

This release changes only an install with a `linear` pipeline principal. An install without one needs no action.

Linear credentials now live encrypted in Postgres, not in a local file. The daemon reads them through a credential key file instead of `linear.client_id`/`linear.client_secret` in `daemon.yaml`.

1. Generate the credential key, then keep a secure backup of the printed path.

   ```sh
   bento secrets key --generate
   ```

2. Set `LINEAR_CLIENT_ID` and `LINEAR_CLIENT_SECRET` as environment variables, then re-run setup. This moves the Linear credentials into Postgres.

   ```sh
   bento setup linear
   ```

3. Remove `linear.client_id` and `linear.client_secret` from `.bento/daemon.yaml`. The daemon no longer reads them at boot.

`bento setup rotate-credential-key` is removed. Use `bento secrets key --rotate` instead.

## 0.11.0

**An authentication failure disables a credential instead of cooling it.** A 401, a 403, a revoked token, or an expired one no longer parks the credential on a cooldown. Bento marks it dead: it leaves every queue, never earns a probe, and stays dead across restarts. None of the 0.10.0 self-clearing applies to a dead credential, because the throttled probe covers the cooling lane only. Watch the daemon log for `credential dead` after this upgrade — on an install with one credential per runtime, a dead mark stops dispatch for that runtime until an operator acts.

To revive one, replace the secret, delete its row from `credential_cooldowns`, and restart the daemon. Left alone, Bento drops the row on the first restart more than 30 days after the failure.

This release adds a `dead_at` column to `credential_cooldowns`. The migration runs at startup and needs no action.

**The `agents.<name>.watch` field is removed.** An agent no longer polls Linear for work assigned to it. A pipeline gets Linear work through `trigger.linear` on an agent session event. A `daemon.yaml` that still sets `agents.<name>.watch` fails to load. Delete the block.

## 0.10.1

This release changes only an install that sets `knowledge.retrieval.engine: chroma`. An install on the default `qmd` engine needs no action.

1. **Install `uv`.** The Chroma embedder now runs on the host through `uvx --from chromadb==1.5.9`, in place of the bundled `@chroma-core/default-embed` package. Without `uv` on the PATH of the daemon, the index build fails with `cannot start the Chroma host embedder; install uv so uvx is on PATH`. Check the PATH the service runs with, not only the PATH of your shell.

   ```sh
   curl -LsSf https://astral.sh/uv/install.sh | sh
   uvx --version
   ```

2. **Start Chroma from the service stack.** `services.yml` now defines a `chroma` service on port 8000, in place of a hand-started `npx chroma run`. Chroma data lives in `./.resources/chroma`, which `docker compose down -v` does not delete.

   ```sh
   curl -fsSL https://install.getbento.sh/services.yml -o docker-compose.yml
   docker compose up -d
   ```

## 0.10.0

This release replaces the pipeline output surface, moves notes into the database, and adds three floors that stop the daemon booting. Work through the steps in order: step 1 happens before you upgrade, steps 2 through 8 are configuration the daemon hard-errors on, and steps 9 through 11 run after the daemon is back.

### Before you upgrade

1. **Check three floors.** Each one refuses to boot rather than degrading.

   * **Postgres 15 or later.** A migration uses `NULLS NOT DISTINCT`, which earlier versions reject with a syntax error. The bundled stack is `postgres:17-alpine`, so only a self-managed database needs attention.

   * **QMD 2.8.3 or later.** A missing or older `qmd` was a warning that disabled retrieval; it is now fatal whenever Bento discovers knowledge sources. Check the PATH the service runs with, not only your shell's.

     ```sh
     npm install -g @tobilu/qmd@latest
     qmd doctor   # must exit 0
     ```

   * **A broker `scope` claim is a string.** A `scope` minted as an array, number, or object previously coerced to empty and authenticated as a scope-less principal. It is now refused, so every request from that broker fails at the middleware. Mint `scope` space-delimited: `"workloads:read workloads:write"`.

### Configuration migrations

2. **`output:` was replaced by `result:` and `outputs:`.** A pipeline declares the shape its agent returns under `result.schema`, then binds each publication to a named handler under `outputs.<key>`. A leftover `output:` fails the load with `pipelines/<name>.yaml: "output" is removed; migrate to "result" and "outputs"`. A `defaults.output` block in `daemon.yaml` is dropped from the merge instead, so post-back stops silently — remove it too.

   ```yaml
   # before
   output:
     github: comment

   # after
   result:
     schema:
       type: object
       properties:
         comment: { $ref: 'bento://schemas/github/comment/v1' }
       required: [comment]
   outputs:
     comment:
       handler: github.comment
   ```

   The property named `<key>` must `$ref` exactly the handler's schema id, and `outputs:` without `result.schema` is refused. Map each old spelling to its handler:

   | Before | `handler:` | `$ref` |
   | --- | --- | --- |
   | `output.github: comment` | `github.comment` | `bento://schemas/github/comment/v1` |
   | `output.github: review` | `github.review` | `bento://schemas/github/review/v1` |
   | `output.github: review_comment_reply` | `github.review-comment-reply` | `bento://schemas/github/review-comment-reply/v1` |
   | `output.github: review_replies` | `github.review-replies` | `bento://schemas/github/review-replies/v1` |
   | `output.slack: { bot, channel }` | `slack.message` | `bento://schemas/slack/message/v1` |

   A Slack output carries its addressing under `outputs.<key>.config: { bot, channel }`, where `bot` names an entry in `channels.slack.bots`. The GitHub handlers reject a `config` block.

   Four old spellings have no replacement. `output.github: upsert_comment` and `output.diff` are removed outright. `output.github: { mode: orchestrated, allowed: [...] }` is removed because an orchestrated run now constrains its publications through `result.schema`. `output.linear` is removed — an agent that writes to Linear does so through its own tools.

3. **`ask.targets` is required.** Knowledge retrieval validates its route at startup, so a `daemon.yaml` with no `ask:` block no longer boots. Set an ordered route, and replace the scalar `ask.target` with a one-name list. `ask.runtime` and `ask.model` are refused the same way.

   ```yaml
   # before
   ask:
     target: claude-high

   # after
   ask:
     targets: [claude-haiku-low, codex-low]
   ```

4. **`knowledge.retrieval.rewrite.target` became `targets`.** The rewrite step routes across a pool rather than a single target, so a leftover `target` fails as an unknown key. Replace it with an ordered list.

5. **A circuit-breaker Slack escalation needs a full address.** `queue.circuit_breaker.escalate.slack` no longer accepts a bare channel name, because a bot name alone cannot address a message.

   ```yaml
   # before
   escalate:
     slack: eng-bento

   # after
   escalate:
     slack: { bot: <channels.slack.bots entry>, channel: <slack channel id> }
   ```

6. **A pipeline `env:` manifest cannot declare a `BENTO_*` name.** The daemon sets those variables about the run itself and injects them after the manifest, so such an entry was always inert. It now fails the load with `env "<NAME>" is reserved`. The rule covers the whole prefix. Run `bento config validate` to list every offending file.

7. **Skill frontmatter `version:` moved under `metadata:`.** Move the SemVer value to `metadata.version` in every `SKILL.md` that declares one. A definition that keeps the top-level key is rejected with a message naming the replacement, and `bento doctor` lists every file to change.

8. **A token reaches only the workloads it created.** `workloads:read` and `workloads:write` no longer cross the owner boundary, so a token that reads or cancels a workload another token created now receives the response an absent identifier receives. Grant `workloads:admin` to any token that needs cross-owner reach, or converge on a single token. `admin` does not cross the boundary — it is daemon lifecycle authority. The `*` wildcard holds both, so a local operator and a token from `bento token issue` are unaffected.

### After the daemon is back

9. **Import existing notes.** Notes moved from `notes.jsonl` to the database, and the migration does not carry the history across. The import is idempotent and leaves the source files in place.

   ```sh
   cd services/daemon
   bun scripts/import-notes.ts --dry-run
   bun scripts/import-notes.ts
   ```

   Skip it and every thread's prior-state slot comes back empty, so agents lose their accumulated context. Any custom skill that tells an agent to write `/workspace/notes.jsonl` must use the `submit_note` tool instead.

10. **Rebuild and republish the sandbox images.** The runtime versions moved from `latest` to hard pins, and this release adds the `opencode` and `pi-google` runtimes, which no earlier image carries. Publish `agent:default` first, then run `bento image pull` and `bento doctor` on each daemon host. `bento image pull` covers `agent:default` and `studio:default` only — `agent:mergenet`, `agent:codegraph`, and `agent:tlc` are pulled or built on the host that runs the pipelines requesting them.

11. **Repoint anything that parses CLI output.** Several commands changed shape.

    * `bento doctor --json` and `bento trigger inspect --json` now emit real JSON. Both previously printed the human table despite the flag, so a script parsing that table breaks.
    * `bento trace` no longer resolves a short prefix. After the `trg_` / `run_` / `inv_` / `tsk_` kind prefix, at least six characters are needed; an ambiguous prefix lists candidates and exits 1. It also writes `resolved <input> → <full-id>` to stderr when the two differ.
    * `bento queue status` reports `failed: <recent> in the last <N>h, <total> on the queue` when the count is non-zero, so a field-position read now returns the windowed count rather than the queue total.
    * `bento queue status` always prints a job table after the counts and no longer prints a `completed:` line; the `-v`/`--verbose` flag is removed. On the wire, `GET /queue/status?verbose=1` returns `details.<state>` as job objects (`task`, `lane`, `pipeline`, `trigger`, `workspace`, `changedAt`, `attempts`, `maxAttempts`) rather than id strings.
    * `bento ask --fast` and `bento ask --method` are removed. The local BM25 path is gone, so `bento ask` always needs a reachable daemon, and the configured retrieval engine decides the method. `--target` is now repeatable and builds an ordered failover route.

### Behaviour that changed without an error

**Retrieval defaults to hybrid.** `knowledge.method` is `hybrid` rather than `bm25` unless pinned, so a pipeline that relied on the implicit default now runs lexical and semantic retrieval together. Pin `method: bm25` to keep the previous behaviour. If you set `knowledge.retrieval.engine: chroma`, start a reachable Chroma server before the daemon and retune `minScore` — Chroma scores are not comparable to QMD's.

**A dispatch naming an unknown agent or skill is discarded, not errored.** Such triggers no longer appear under `bento trigger list --status error` and fall on the shorter discarded retention tier. Find them with `bento trigger list --status discarded --code unknown_agent_reference`.

**Credential cooldowns survive a restart.** Restarting the daemon no longer clears a wrongly parked credential. A lifted cap self-clears, because a seeded cooldown still earns a throttled probe. To clear one by hand, delete its row from `credential_cooldowns` and then restart the daemon. The delete alone changes nothing: the pool seeds its in-memory map from that table once at startup and is authoritative from then on.

## 0.9.3

**A setup step refuses a template placeholder.** A `{{ … }}` placeholder in a `setup:` step's `run` reached the shell as literal text. Configuration validation now rejects it, and the daemon does not load a pipeline that declares one.

Replace each placeholder with an environment variable. Every setup step receives `WORKTREE`, `RUN_DIR`, `SURFACE_DIR`, `REPO`, `SHA`, `BRANCH`, `EVENT_NAME`, `EVENT_SOURCE`, and `PAYLOAD_JSON`. Read any other event field from `PAYLOAD_JSON`:

```yaml
# before
setup:
  - run: git fetch origin {{event.repository.default_branch}}

# after
setup:
  - run: git fetch origin "$(echo "$PAYLOAD_JSON" | jq -r .repository.default_branch)"
```

## 0.9.2

**Token scopes are enforced.** An earlier daemon parsed a scope and never read it, so any valid token reached every route. Every route except `/` and `/health` now requires one. A token that lists a scope outside the vocabulary below matches nothing and is refused everywhere.

Migrate `auth.tokens.<name>.scopes` in `.bento/daemon.yaml`. The earlier `pipelines:*` and `agents:*` spellings are not in the vocabulary:

```yaml
# before
auth:
  tokens:
    ci:
      scopes: ["pipelines:*", "agents:*"]

# after
auth:
  tokens:
    ci:
      scopes: ["pipelines:invoke", "triggers:read"]
```

| Scope | Grants |
| --- | --- |
| `workloads:read` | Read workloads, their invocations, and run artifacts |
| `workloads:write` | Create and close workloads, submit and cancel invocations |
| `workloads:admin` | Cross-owner workload access |
| `triggers:read` | List and inspect triggers, read `/trace` lineage |
| `pipelines:invoke` | Fire a pipeline, replay a trigger, dispatch a URL, run a schedule now |
| `knowledge:read` | `POST /ask` and the knowledge listing |
| `repos:read` | The configured repos and their pull requests |
| `evals:write` | List and curate evals, and read eval statistics and cohort comparisons |
| `admin` | Drain, queue status, resume, reconcile, purge, and the doctor probes |
| `*` | Every scope |

Grant `*` to restore the previous reach of a token. A token issued by `bento token issue` already carries `*`, and the loopback client keeps it, so a local install with no `auth.tokens` block needs no change.

**Protocols are now policies.** The concept is unchanged: a reusable behavioral block that bento injects into the system prompt of an agent. Only the names change.

1. **Rename the directory.** `protocols/` becomes `policies/`. The file contents and their `name` / `description` frontmatter are unchanged.

   ```sh
   git mv protocols policies
   ```

2. **Rename the frontmatter key** in every agent `PERSONA.md` and skill `SKILL.md` that declares one. The values are unchanged.

   ```yaml
   # before
   protocols:
     - commit-aware-retry

   # after
   policies:
     - commit-aware-retry
   ```

   A definition that still declares `protocols:` is rejected with a message naming the replacement, and `bento doctor` lists every file to change. The key is not silently ignored, because a definition that loses its behavioral contracts without an error is worse than one that refuses to load.

3. **If you gate on diagnostic codes**, match `unknown_policy_reference`. `unknown_protocol_reference` still exists and is deprecated, so an existing matcher keeps working until a major version removes it.

## 0.9.0

Steps 1 and 2 are config changes the daemon hard-errors on until migrated — apply them to `.bento/daemon.yaml` before restarting. Step 3 changes a JSON shape and a command flag.

1. **Webhook credentials move to one `sources` map.** `webhooks.secret`, `webhooks.linear`, and `webhooks.tokens` were removed. Each inbound source is an entry under `webhooks.sources`, keyed by its route name, carrying the check its requests pass:

   ```yaml
   webhooks:
     sources:
       github:
         verify: github
         secret: ${GITHUB_WEBHOOK_SECRET}
       linear:
         verify: linear
         secret: ${LINEAR_WEBHOOK_SECRET}
       deploy:
         verify: bearer
         secret: ${BENTO_DEPLOY_TOKEN}
   ```

   * `webhooks.secret` becomes a `verify: github` source.
   * `webhooks.linear` becomes a `verify: linear` source.
   * each `webhooks.tokens.<name>` becomes a `verify: bearer` source named `<name>`.

   A source named `<name>` serves `/webhooks/<name>`, and `/events` is an alias for the `github` route. `verify`, not the key, decides which trigger reaches a source: `verify: github` and `verify: linear` match `trigger.github` and `trigger.linear` under any route name, and `verify: bearer` matches `trigger.webhook: [<name>]`. A trigger pointed at a source that verifies a different way is refused at startup.

   A route with no source now returns `401`. A sender that posted to an unverified `/webhooks/<name>` needs a source before it delivers again.

2. **Host tools declare an executable and argv.** `orchestrator.tools` was removed — move the definitions to a top-level `host_tools` block. Inside each tool, `run:` was removed; declare `exec` and `args`:

   ```yaml
   host_tools:
     deploy_status:
       description: Check deploy status for a service
       input:
         service: { type: string, required: true }
       exec: ./scripts/deploy-status.sh
       args: ["--service", "$service"]
   ```

   Each `args` entry becomes exactly one argv element after `$name` substitution, and no shell interprets it. Pass structured input through `stdin` and secrets through `env`. `exec` names an explicit path and references no input.

   Each tool registers as `host_<name>`, not `orchestrator_<name>`. To call one, the token of the caller holds the scope `host:execute:<name>` or `*`; `mcp:write` does not authorize a host tool. The token the daemon issues to a sandboxed agent is refused whatever scopes it carries.

3. **A failed trigger carries a `diagnostic`, not an `error` string.** Repoint anything that reads the old fields. Existing rows are backfilled on first start, with no manual step.

   * `triggers.error` (free text) becomes `triggers.diagnostic` — nullable `{ code, message }`.
   * `TriggerStatus` no longer has a `timeout` value. A timed-out trigger is `status: error` with `diagnostic.code: agent_timeout`.
   * `bento trigger list --status timeout` was removed. Use `bento trigger list --code agent_timeout`, or `bento trigger stats --status error --by code` for the breakdown.

## 0.8.0

Steps 1 and 2 are config changes the daemon hard-errors on until migrated — apply them to `.bento/daemon.yaml` and every `.bento/pipelines/*.yaml` before restarting. Step 3 changes a JSON shape and fails silently instead.

1. **`trigger.manual` was removed.** You fire every pipeline by name, so delete the key. `trigger` is optional as a consequence, and a pipeline that only runs on demand declares no `trigger` block at all. Declared `args:` remain the gate on a fire's inputs. A pipeline still carrying the key fails with `pipelines/<name>.yaml: "trigger.manual" was removed — every pipeline is fireable by name, so delete the key`.

2. **`observability.phoenix` was removed.** Delete the block and drop the `PHOENIX_API_KEY` it referenced. `observability.langfuse` is the tracing sink. A leftover `phoenix:` block fails the load with `.bento/daemon.yaml: observability.phoenix was removed`. The in-process orchestrator loop is no longer traced. Spawned agent runs still reach Langfuse unchanged.

3. **A failed invocation carries a `diagnostic`, not a `failure_reason`.** Repoint anything parsing the old key — it is absent rather than rejected, so a consumer reads `undefined` with no error:

   * `bento trace --json`: `invocations[].failure_reason` becomes `invocations[].diagnostic_code` plus `invocations[].diagnostic_message`.
   * `GET /trace/:id` and `GET /invocations/:id`: `failureReason` (a nullable string) becomes `diagnostic` — nullable `{ code, message }`, optionally carrying `target`, `path`, `field`, `metadata`, and nested `details`.

   Existing rows are backfilled automatically on first start, with no manual step.

If you tracked `develop` between 0.7.1 and this release, two keys that came and went inside that window also hard-fail the load: move `channels.slack.identities` out of `daemon.yaml` into a `.bento/members.yaml` member whose `identities` are `{ github: { handle }, slack: { id: U123 } }`, and change any member's `kind: bot` to `kind: agent`. A 0.7.1 install has neither.

## 0.7.1

**Every pipeline needs a `version`.** A pipeline inherits it from its governing skill when its skill closure resolves to exactly one skill. A pipeline with no skill (agent-only), or with more than one — a governing `skill` plus `companions` — declares `version:` explicitly as a SemVer string. Startup validation hard-fails otherwise: `pipelines/<name>.yaml: no single-skill version to inherit — declare an explicit "version" field`, and a non-SemVer value gives `"version" must be a SemVer version`. Add `version: 1.0.0` to each affected `.bento/pipelines/*.yaml`, and bump it when you change the pipeline — posted comments carry it for traceability.

**`retain_checkout` must be a boolean.** The daemon now rejects a non-boolean value at startup with `pipelines/<name>.yaml: "retain_checkout" must be a boolean`. An earlier release accepted any value without a check.

**`bento trace` now requires a running daemon.** Lineage resolution (trigger → workload → invocations → tasks) moved from a direct Postgres connection to a `GET /trace/:id` call on the daemon. `bento trace` previously worked with only Postgres reachable. It now needs a running daemon, and without one it fails with the standard "daemon not reachable" message. It resolves against whichever daemon `BENTO_DAEMON_URL` points at, local or remote. The top-level keys of `bento trace --json` — `trigger`, `workload`, `invocations`, and `tasks` — are unchanged. A single `artifacts` object keyed by invocation id replaces `agent_logs`, `attempt_logs`, and `sub_tasks`. Each entry mirrors the artifacts manifest and adds the rendered text of each artifact. Any script parsing the old keys needs to read `artifacts` instead.

## 0.7.0

Apply these to `daemon.yaml` and every `.bento/pipelines/*.yaml` before restarting the daemon — config validation hard-errors on the old shapes until migrated.

1. **Orchestrator `strategy` is required. `assess` and `orchestrator: false` are removed.** In each `orchestrator:` block (top-level and per-pipeline):
   * `orchestrator: false` → **remove the field**. Omission now means direct execution (no orchestrator).
   * Any `orchestrator: { … }` object → add `strategy: { type: auto }` (mandatory, `type` is `auto`). This includes `orchestrator: { targets: [...] }` and `orchestrator: {}`.
   * `assess:` → **`guidance:`**.
   * Remove any other keys under `orchestrator` — unknown fields now error.

2. **Skill principal bindings are enforced.** The built-in skills declare required principals: `agentic-review` requires `pull-request-reviewer`, `pr-approved-merge` requires `pull-request-author`. Any pipeline whose `skill:` or `companions:` reference such a skill declares matching bindings, for example `principals: { pull-request-reviewer: github.principal.<login> }` (form `<provider>.principal.<id>`). For direct (non-orchestrated) execution with such a skill, also set `principal: <binding-name>`. An observer or read-only pipeline never selects a `principal`. Remove any `sandbox.mounts` that mount a shared `~/.config/gh` — it is rejected when principals are configured.

3. **MCP tool calls are now scope-gated.** MCP write tools require `mcp:write`, read tools require `mcp:read`, `*` satisfies both. Ensure every MCP client token — `daemon.yaml` `tokens[].scopes` and any OAuth-issued tokens — carries the scope it needs. Under-scoped clients now get `Forbidden`. Loopback and anonymous local clients are unaffected (`*`).

4. **`GET /events` is removed. Use `GET /triggers`.** Repoint any integration calling `/events`, `/events/stats`, `/events/:id`, or `/events/:id/fields` to the `/triggers` equivalents (or `bento trigger list`). List rows omit the payload — fetch `/triggers/:id` for it. The `POST /events` webhook receiver is unchanged.

5. **`workspaces.retentionDays` was split into two tiers.** Rename it to `workspaces.checkoutRetentionDays`, which governs only the regenerable `checkout/` (default 30 days). Run transcripts are kept on the separate `workspaces.transcriptRetentionDays` tier (default 90), and notes are stored in the database beyond workspace retention. `transcriptRetentionDays` is clamped to at least `checkoutRetentionDays`, so a transcript never expires before the checkout it describes. A leftover `retentionDays` fails the load with `.bento/daemon.yaml: workspaces.retentionDays was renamed to workspaces.checkoutRetentionDays`.

## 0.6.5

Pipeline and orchestrator routing fields `runtime`, `model`, `effort`, `credential`, and `fallbacks` were replaced by named **targets**. Define reusable targets under a top-level `targets:` map in `daemon.yaml`, then reference them with `targets: [name]` on the pipeline or orchestrator. Validation hard-errors until migrated.

## 0.6.1

`sandboxes.forwardEnv` and per-pipeline `sandbox.forwardEnv` were removed. Declare any secret a run needs in that pipeline's `env:` manifest. Skill and agent frontmatter `env:` no longer injects on its own.

## 0.5.1

`knowledge.mode` split into `knowledge.method` + `knowledge.delivery`. Migrate:

* `mode: qmd` → `method: hybrid, delivery: prompt`
* `mode: mount` → `method: none, delivery: file`
* `mode: ambient` → `method: none, delivery: search`
* `mode: catalog` → `method: none, delivery: browse`

## 0.5.0

* `prompt:` → `instructions:` in every `.bento/pipelines/*.yaml`. Hard rename, no alias. Validation hard-errors until changed.
* Custom agents only: rename each authored `agents/<name>/SOUL.md` to `PERSONA.md`.

## 0.3.7

The `lifecycle.retrieve` pipeline block was removed. Move retrieval tuning (`topK`, `minScore`, `rewrite.*`) to `knowledge.retrieval` in `daemon.yaml`. A leftover `lifecycle.retrieve` key fails at startup.

## 0.2.4

Pipeline output type `inline_review` → `upsert_comment`. Rename it in any `output:` block that used it. In the current format, `output:` is rejected at startup. Declare the complete structured result under `result:` and route keyed namespaces through `outputs.<key>.handler`; pipelines with no `outputs:` retain opaque stdout, and actor-side provider actions remain in the agent workflow.

## 0.2.3

The `BENTO_MANAGEMENT_TOKEN` env-var fallback for CLI-to-daemon auth was removed. If you relied on it, authenticate with `bento auth setup` instead.
