Slot catalogs
A slot catalog names several configurations of one slot by alias and picks one per run. It lives in the machine file; the project may only restrict it.
agent and runtime are catalogs; workspace and executor hold exactly one entry (the executor keeps per-branch state), so more than one is refused with a message and a single-plugin config loads unchanged as the default entry.
js
runtime: {
catalog: [
{ alias: 'sandbox', use: '@bakers-build/addon-runtime-bwrap' },
{ alias: 'box', use: '@bakers-build/addon-runtime-docker', with: { image: 'node:22' } },
],
routes: { default: { '*': 'sandbox', review: 'box' } },
allow_unsandboxed: false,
},The runtime catalog holds the built-in system entry (the host, a reserved alias that does not isolate), the runtime a top-level addon supplies (the preset, under its id) and your catalog entries; an alias equal to the preset id replaces it. A machine with no runtime runs on system, which the run note records.
Which entry runs a ticket
The first match wins, for runtime and for agent through its own chain:
- A permitted ticket label
runtime:<alias>(orruntime:<route>), also with@<state>(labels). - The route for the ticket's state,
routes.default[<state>]. routes.default['*'].- The project's
runtime.default. - The addon preset.
- The built-in
system.
A machine select(candidates, ticket) => alias replaces this order. An alias it returns that is not a candidate, or a throw, fails the run with the reason; there is no fallback. An unknown runtime: label alias fails the run too. agents.select does the same for agents, and replaces the deprecated project select_agent.
js
runtime: {
catalog: [{ alias: 'sandbox', use: '@bakers-build/addon-runtime-bwrap' }],
select: (candidates, ticket) => (ticket.labels.includes('risky') ? 'sandbox' : 'system'),
},Unsandboxed runs
A label may put a run on an entry that does not isolate (system) only when runtime.allow_unsandboxed is true on the machine. Otherwise the label is ignored, the order continues and the conductor logs a warning naming the ticket and alias. The server decides who may add the label (protected namespaces); this flag is the machine's own lock.
Each run appends a run note with the agent and runtime alias, the reason (label, function, route, default-route, project, preset, fallback) and the conductor's owner. A run that a label put on a runtime that does not isolate also posts a ticket comment saying so; a host default posts none. Clone mode follows the run's runtime, so a catalog may mix isolating and host entries; the git and herdr workspaces switch between a run clone and a worktree at the same path per run, and uncommitted work in the workspace refuses the switch.
Slot keys
Some options belong to the slot, not to one addon. The machine's agents and runtime blocks set them for every addon of that slot that reads the key. The project's blocks of the same name may change a key only where the machine lists it in that slot's allow.
| Slot | Block | Keys | Read by |
|---|---|---|---|
| agent | agents | args, model, effort, permissions, sandbox, config, env_deny | every agent harness that ships an options schema declaring the key; a harness without one gets every agent key |
| runtime | runtime | image, shared | image: Docker. shared: Docker and Bubblewrap |
js
// ~/.bakers/machine.config.js
addons: ['@bakers-build/addon-runtime-docker', '@bakers-build/addon-claude'],
runtime: { image: 'ghcr.io/acme/base:1', allow: ['image', 'shared'] },
agents: { permissions: 'sandbox', allow: ['effort'] },
// .bakers/project.config.js
runtime: { image: 'ghcr.io/acme/php:8.3', shared: true },
agents: { effort: 'high' },Here the project's image runs, without the project listing the Docker addon. The project's effort applies to every agent. The machine's permissions stays, because agents.allow does not list it.
Each addon instance (an addons[] entry, an agents.catalog or runtime.catalog entry) gets, weakest first:
- the addon's own defaults;
- the machine's slot keys;
- the entry's own
with; - the project's slot keys listed in the machine's
allow.
Plain objects such as sandbox merge key by key; lists and strings replace. Without allow a project changes nothing. A project value the machine does not allow keeps the machine value (or the default) and prints one warning at every load. It is a warning, not an error, because one project file serves many machines. Slot blocks only configure: they load no addon and create no alias. An unknown key, in either file or in allow, fails to load.
Options that reach the host, such as Docker mounts, network and allow, or Bubblewrap readPaths, are not slot keys. They stay in the machine's with on the addons[] or catalog entry. Listing config, env_deny, permissions or sandbox in agents.allow lets anyone who can push to the repository loosen the agent sandbox on this machine.
bakers conductor check prints each key with its value, its source (machine, project or default) and the addons that read it, plus each rejected project value:
text
runtime.image = "ghcr.io/acme/php:8.3" (project) — read by @bakers-build/addon-runtime-docker
rejected: project agents.permissions = "yolo" (not in agents.allow)