Blueprints, versions and install codes
A blueprint is a prepared agent, like a Dockerfile: a named, versioned bundle
of files plus one manifest, caldera.agent.yaml, that says what the files
are. One command, caldera init <code>, sets it up on a machine; afterwards
Caldera can name a newer version and the agent applies it, checks it and keeps or
rolls back.
Existing formats are composed, not replaced. The bundle carries ordinary files (a
CLAUDE.md, a .claude/ directory, a .mcp.json, a compose file, your code).
The manifest names them and adds only what none of them says: settings, secrets by
name, bindings, state, health. The manifest is described field by field on
The manifest.
A blueprint says how an agent works, not what it works on. Caldera assigns no work.
The life of a blueprint, in order: write the files and the manifest, zip them
(the bundle), upload a version (a draft), publish it (immutable), issue an
install code, run caldera init on a machine. Afterwards a desired version
moves the agent: update, pin, roll back. The agent applies it, runs its health
check and keeps the version or rolls back.
Bundles
A bundle is a zip archive with caldera.agent.yaml at its root. It holds the
blueprint's files and nothing else: no secrets, no agent.env.
Limits (Caldera at upload and the runtime at install apply the same numbers):
| Limit | Value |
|---|---|
| Archive | 20 MB |
| Entries | 5000 |
| Unpacked, in total | 100 MB |
| One file, unpacked | 50 MB |
| Manifest | 256 KB |
Refused whole, before anything is stored: an archive that is not a zip, is
encrypted, spans disks or needs zip64; an entry with an unsafe path, or under
.caldera/; a symlink, device, pipe or socket; a name twice; a missing file that
the manifest names; a compressed entry that does not unpack to the size its header
declares; a manifest that does not validate.
The stored bytes are the uploaded bytes, never a rewrite, so the checksum an agent verifies is the checksum of what was validated.
YAML
Caldera parses the manifest with a full YAML reader (aliases are refused). The
runtime reads a subset, and refuses everything else by name: anchors, aliases,
tags, multiple documents, complex keys, tabs as indentation, and a plain scalar
that continues on the next line. Supported: block mappings and sequences, flow
sequences and mappings ([a, b], {k: v}), plain, single and double quoted
scalars, > and | block scalars, comments, one leading ---. Write plain
block-style YAML. A construct outside the subset could pass the upload and fail
at install.
The catalog
Blueprints Caldera ships itself, the same in every workspace, read-only, listed beside a workspace's own.
| Name | What it is |
|---|---|
starter |
The smallest agent: a loop that writes a heartbeat to data/status.json. Start here to see an agent appear, then replace agent.py. No secrets, no bindings, no settings. |
project-agent |
Works in one repository: clones it, sets it up, runs Claude Code in it at an interval. Settings: repository URL, branch, prompt, minutes between runs, highest cost of a run, model, effort. Optional secrets GIT_TOKEN and ANTHROPIC_API_KEY; the repository, the board and the knowledge source can come from Caldera instead. Two optional bindings: a member of the suite's board product and of its document product, each where the product is activated. |
ops-agent |
An operations agent for a task board: its own scheduler with a daily run limit, a budget per run, a model and effort choice, and the board settings. It works its board by the board contract, as the project-agent does, and starts no run without a usable board. Two bindings to the suite's other products (a member that reads and writes, a member that reads). Optional secrets ANTHROPIC_API_KEY, TECTO_TOKEN, FAVRO_EMAIL, FAVRO_TOKEN. |
assistant |
A person's assistant for the inbox: it sorts new mail into three labels, prepares reply drafts in the person's own format, tells the person only what needs them and takes orders in a chat thread. It never sends a mail. Its own scheduler with a cost limit per day and working hours; Telegram or Google Chat as its channel, Gmail through gog, instruction pages in a source, cards on a board. Optional secrets ANTHROPIC_API_KEY, CLAUDE_CODE_OAUTH_TOKEN, GOG_HOME, GOG_KEYRING_PASSWORD, TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID, GCHAT_WEBHOOK_URL and the board and source secrets. With the internet assigned (since 1.6.0), its chat may search the web and read pages, held by the runtime's checks, and use the ticked tools of an assigned MCP server or HTTP API. Before a draft it can look an assigned source up with the mail's sender or subject, such as the sender's contact in EGroupware (runtime 0.51, see Look up before every draft). |
team-mailbox |
A team's shared mailbox, such as one for customers' requests: it sorts new mail into the same three labels as the assistant, prepares reply drafts in the mailbox's own name and signature, and tells the team's channel what needs an answer. It never sends a mail. It runs on the runtime's mail core, which it shares with the assistant. Only the people an admin lists give orders: take a mail, hand it on, archive, a change to the draft, and the trash after a second word of the same person; every order is on the record. Later notices name who is responsible, and what nobody took is named at the end of the working day. A free chat about the mailbox is there to switch on, without archive and trash. Off until an admin switches on "Sort the mailbox", and its dry run is on. It is work for a company, so it belongs on a business seat or an API key. Like the assistant it can look an assigned source up before a draft (runtime 0.51). |
Each blueprint's current version is on its page in Caldera's catalog; the versions named below say since when a feature exists. Both agents that run Claude
Code let you choose the model (Haiku, Sonnet, Opus) and the effort of a run (Default, Low,
Medium, High, Extra high, Max) under Settings; a change applies from the next run, and Default leaves
the effort to Claude Code. A smaller model or a lower effort costs less per run. The project-agent says
role: build and the ops-agent role: operate; the starter names no role, because it is a
skeleton and the role is its builder's choice (see Roles and collections).
Since 1.3.0 the ops-agent asks before it deploys and carries out your deployment command
only after a Yes. Since 1.6.0 the project-agent can work the cards of a task board by one workflow on
any supported board tool (see Boards and drivers); since 2.0.0 the ops-agent does the same, by the same contract and drivers. Since 1.5.0 the
project-agent documents its work in the documentation area an admin gives it, and ends every piece of
work with a section ## Folgen: one line each for the documentation area, public docs, handbook,
marketing site, changelog and other products, saying erledigt, nicht betroffen or
Folgekarte: <link>. Every follow-up card is reported to the people who run the agent as a notice with
its link; a missing section is reported too.
What a run may do (since project-agent 1.13.0 and ops-agent 2.4.0). Every Claude Code run is
started with permission mode dontAsk: what is not allowed is refused instead of waiting for a person.
The agent allows its own board and source commands; your repository's .claude/settings.json decides
everything else. A run holds no credential in its environment: the board and source commands and git
read the tokens themselves, from the file the runtime keeps them in, which a run may not read. A
repository that allows every shell command (Bash or Bash(*)) is reported as the finding
run:broad-shell, because such a run could still go looking for a token: list the commands a run needs
instead.
- Versions without a release: Caldera ships a version of each catalog blueprint, and a fix to one is published on its own within minutes, with no release of Caldera. The agent page offers the newest ten versions and the one the agent runs, so Roll back works for a catalog agent as for a blueprint of your own. A version that turns out bad is withdrawn and replaced by a higher one; a version never changes.
- Install it directly, or copy it into the workspace to change it. The copy is an editable blueprint with that version already published.
The assistant
The assistant (ADR-0063) is a process agent with a scheduler of its own. Its work comes in capabilities
you switch on one by one in the settings; nothing runs until you do. The first is Sort the mail
(capability_mail): every mail_interval_minutes it reads the mail that is new since the last run and sorts it
into three labels, Prefix/Antwort nötig, Prefix/Zur Info and Prefix/Automatisch (the prefix is the setting
mail_label_prefix). For a mail that needs an answer it prepares a draft in Gmail, written after your
instructions for greeting, tone and length. The first run only sets its starting point: the old inbox is not
worked through (unless you set mail_since).
A small model sorts each mail first (sort_model, Haiku by default). A mail it sorts as needing no answer, no
card and nothing suspicious is labelled there, without a draft. Every other mail, and every doubt, goes on to the
model, which sorts it again and writes the draft. Empty, or the same model as model, means one run per mail.
It never sends. The code refuses every send command (a test fails if one gets through), and a mail is only text to read: what it asks for is at most a suggestion you see. It never deletes a mail on its own, files no card and writes no draft for a mail that looks like fraud, and warns you instead.
Telling you. With mail_notify set to actionable (the default) it tells you only about mail that needs an
answer, a mail it filed a card for and anything that looks like fraud; all tells you about every mail. Outside
your working hours (hours_start, hours_end) it sorts but tells nothing, and at the start of the next hours it
tells what waited. The channel is the setting channel_tool: Telegram (secrets TELEGRAM_BOT_TOKEN and
TELEGRAM_CHAT_ID; only messages from that chat count) or Google Chat (the secret GCHAT_WEBHOOK_URL to write, your
account through gog to read, with the settings channel_gchat_space and channel_gchat_person). Without a channel
you hear of mail in Caldera's conversation only, and the finding channel:config says so.
Voice messages. A voice message to the assistant in Caldera arrives as text once the setting transcription_url names a
whisper service on the machine or in your own network (such as http://127.0.0.1:9000; an address on the internet is never
used). Empty is off, and the assistant gets the recording alone. Since 1.3.2, runtime 0.50.
Orders. Reply to the message about a mail with archivieren (or erledigt), löschen (to the trash, restorable
for 30 days), a change to the draft in your own words, or merke: ... for a lasting instruction. Only your own
messages count. Archive and delete are decided by the word, never by the model, and only in a short message.
Free chat (ADR-0086, since 1.4.0, off by default). With mail_chat on, a message that is no fixed order and
belongs to no mail, in the channel or in Caldera's conversation, is answered by a model run with tools on the
mailbox: it lists and reads mail and threads, writes a reply draft, archives and sets the assistant's labels. It
cannot send, forward, set a filter, change a setting, run a command, open the web or read a file: those tools do
not exist. The trash, and a draft to an address the mail does not have, only ask you; a "ja" carries them out. The
reply ends with what the code really did. Each answer is a model run within chat_max_usd and counts towards the
cost limit of the day.
Learning from the mailbox (ADR-0088, since 1.5.0). The action "Jetzt einarbeiten" on the agent's page, and
learn_every_days when you set it, start a learning run: it reads the threads of the last learn_days (60) in which
you sent an answer, at most learn_threads (50), with the assistant's own decision on each mail, and one model run
without tools looks for patterns. What at least two threads show is written as one line into the section "Gelernt"
of the instruction page, never into "Meine Vorgaben". Edit or delete those lines as you like: a line you deleted
does not come back on its own, and is asked once at most when later mail shows it clearly again. A finding that
contradicts your instructions, a line of "Gelernt" or another finding is asked as a question (old, new or neither)
in the channel and in Caldera's conversation, and the page changes only after your answer. Nothing a line says can
widen what the assistant may do: a line that asks to send, forward, delete or pay, or carries a link, is dropped. A
run costs at most learn_max_usd (2 USD) and counts towards the cost limit of the day; the state keeps
fingerprints and the questions, never a mail's text.
Links stay out of the chat. A link from a mail never reaches you as a clickable link: in what the assistant tells you it is replaced by "[Link entfernt]". A card has no link in its title and only the mail's own links in its details. A draft that holds a link which is not in the original mail is flagged in the message ("enthält Links, die nicht in der Originalmail stehen"), and so is a Reply-To on another domain than the sender's. Whether you already answered a mail is decided by the code from the thread, not by the model: if you wrote later in the thread, there is no draft and the mail is "Zur Info".
Drafts like in Gmail. The draft goes out from the address of yours the mail was sent to, carries your Gmail signature, and your own addresses are never in Cc. When you ask for a change in the chat, the assistant reads the draft from Gmail first, so what you edited there counts; if the draft is gone, it makes a new one.
Switching over safely. mail_dry_run sorts and logs only: no label, draft or card, and one summary message per run. It is
on by default (since 1.3.2), so the first run changes nothing in the mailbox; turn it off once the summaries are right. mail_since
(a date such as 2026-10-01) makes the first run start there instead of now. A mail that already carries one of the assistant's
labels is skipped. data/audit.jsonl (a log Caldera shows) says for every mail what became of it and which instructions were used.
person_name is used in the model's instructions and to close a draft. The order status in the chat shows how it is doing.
Nothing waits for the end of a long run, and no mail is lost. Between two mails the assistant looks at the chat, so an order is answered at once. Found mail is kept in a queue, so a long outage loses nothing. A mail that could not be sorted three times is told to you ("Nicht verarbeitet - bitte selbst ansehen") with the link, so you look at it yourself.
Instruction pages. The assistant reads how to behave from pages in its source (the suite's document product or
Notion): a root page with general instructions and one page per capability, found by its title. A missing page is
created from a template; a page with content is never overwritten. Each page has two sections: "Was diese Fähigkeit
tut" is written by the assistant from its code and never read back as an instruction, "Meine Vorgaben" is yours, and
merke: ... adds a line there word for word. When your instructions ask for it, it files at most one card per
mail in the Eingang column of its board (the board standard, see Boards and drivers).
The model sees text and answers JSON. Every model run has no tools, no MCP servers and no settings, runs in an empty directory with a minimal environment, and its answer is checked against a schema in the code. An answer that does not fit is dropped and reported; nothing happens on a guess.
Budget. budget_usd_per_day is a hard limit: when the day's cost reaches it, no model run starts until
tomorrow (the finding budget:brake), and the assistant says so once. When the model answers that the subscription's
limit is reached, it waits until the reset. "Burn through" lifts the day's limit only.
Files. With the data source type files (ADR-0089) it reads a folder of a Google Drive and its subfolders: the
code picks excerpts for a draft, the model may name one of them to attach, and the free chat gets three reading tools
(search, list, read). Every file is checked against the folder in the code; the agent writes only into a folder of its
own (files_drop), and only when asked (ablegen). See Give a mail agent a folder of files.
Needs. gog installed and signed in on the machine (the findings gog:missing and gog:signed-out say what to
do), and claude signed in or ANTHROPIC_API_KEY. Controls: pause, resume, run now, burn and message. ABOUT.md
in the bundle describes it in German for the people who use it.
The team mailbox
The team-mailbox (ADR-0087) does for a team's shared mailbox what the assistant does for a person: the same
three labels, a reply draft for a mail that needs an answer, a notice in the team's channel, and never a sent
mail. It runs on the runtime's mail core, so a fix there reaches both agents. Its drafts carry the mailbox's own
sender address and Gmail signature and follow the team's page "Team-Postfach", never a person's name.
Who may give orders. Only the people in the list team_people, each with a name and the account the chat
names them by: in Google Chat the user id (users/123), which the person who writes cannot set, never a display
name; in Telegram the user id. A message from anyone else is logged by its account and passed over: nothing is
answered and nothing is done.
Orders. Reply to a notice with übernehmen (you are responsible), abgeben an <Name> (someone else on the
list is), archivieren, löschen, a change to the draft, /merke ... or /status. löschen only asks: the mail
goes to the trash when the same person answers ja; anyone else's ja does nothing. Every order is written to
data/audit.jsonl with who gave it, when and about which mail, never with the text of a mail or a message.
Someone responsible. Later notices about a mail somebody took start with "Zuständig: " (in Google Chat as a mention). What nobody took is named once a day, at the end of the working hours (at 17:00 when they cover the whole day), for three days at most. There is no escalation to a person yet.
Free chat (off by default). With mail_chat on, a listed person's message that is no order and belongs to no
mail is answered by a model run with tools on the mailbox: it reads mail and threads, writes a reply draft in the
mailbox's name and sets the agent's labels. It cannot archive or delete (fixed orders in the team), send, forward,
set a filter, change a setting, run a command, open the web or read a file. A draft to an address the mail does not
have only asks the person who wrote. Each answer is a model run within chat_max_usd and the cost limit of the day.
Learning from the mailbox (since 0.3.0), as the assistant does (see above): from the answers the mailbox sent, into "Gelernt" on the team's page. A listed person answers its questions; the answer is on the record. It reads the mailbox's sent mail, which is customers' data: run it on a business seat or an API key.
Needs. The mailbox's own sign-in on the machine (see Set up a team mailbox),
a channel, the list of people, and a Claude access of a business seat or an API key: it is work for a company.
capability_mail is off and the dry run on until an admin changes them.
Every catalog blueprint brings an ABOUT.md, named by the manifest's about: a
page for people that says what the agent is for, what it does, what it never does, what it needs from
you and how you notice that something is wrong. Caldera shows it on the agent's page, under the
profile, and with the blueprint. A blueprint you make for one project writes its own.
Workspace blueprints and versions
The life of a version
- Create a blueprint: a name (
^[a-z][a-z0-9-]{0,62}$, unique per workspace) and a description. It has no versions yet. - Upload a version: the archive (at most 20 MB). The version number comes
from the manifest inside, and the manifest's
namemust equal the blueprint's name, becausedesirednames a blueprint by name and a version of another blueprint under this one would hand an agent somebody else's code under its own name. - A draft can be uploaded again; the new upload replaces it.
- Publish a version. This is idempotent; the time of the first publish stays. A published version never changes: a change is a new version.
- Delete a version. A draft can always be deleted. A published version can be deleted once nothing needs it any more: no agent of the blueprint was installed from it, runs it, is to take it or would roll back to it (the newest published version below the one it runs), and no open install code is for it. The blueprint page names what still needs a version, and its delete button stays off until nothing does. An agent's own rollback uses the copy on its machine and does not need the version here. Delete a blueprint only while no agent is installed from it (otherwise those agents could never fetch another version).
- Only published versions can be installed or named as the desired version.
Versions are ordered by semantic version (1.10.0 above 1.9.0; a pre-release
below its release).
The version rule in practice
The manifest's version is the version. To release a change you edit the
manifest's version, rebuild the bundle, upload, publish. Re-using a version
number that is published is refused (version_published). The same applies to
versions you uploaded as a test: if 1.0.1 and 1.0.2 exist, the next real
version is at least 1.0.3.
Build and ship an own blueprint
An own blueprint (ADR-0098) lives in its repository. Three small files and one line of CI build and release it the same way for every agent (ADR-0106). An agent never pulls its code from git: a version is a bundle in Caldera, and the agent takes it from there with its update window and its rollback.
caldera.bundle lists the files the bundle holds, one path or glob per line; # starts a comment, a
folder takes everything below it. It must list caldera.agent.yaml. A name that looks like a secret
(.env, secrets*, a key or certificate), .git, a link or a path outside the repository stops the
build; caches are left out. In a git repository only tracked files are read, so a laptop and CI build the
same bundle (a pattern that matches only untracked files says git add it). The entries are stored
uncompressed and marked as made on Unix, so the bytes do not depend on the machine's zlib; the build in CI
is the one that is published.
# what ships
caldera.agent.yaml
ABOUT.md
CLAUDE.md
*.py
caldera.deploy names the agents a new version is sent to, one agent name per line (# comments).
Each must run from this blueprint. An empty file sends the version to nobody; the agents then move by
hand.
# the agents that follow this blueprint
website-waechter-1
python3 caldera.pyz build [--dir <repository>] writes dist/<name>-<version>.zip. Name and version come
from the manifest; the entries are sorted and carry a fixed timestamp and mode (executable files stay
executable), so the same files give the same bytes. It checks the manifest as the runtime will, prints
the checksum, and refuses a version that was already built with other bytes: raise the version.
caldera publish <bundle> --dir <repository> asks the agents of caldera.deploy to move to the version.
--deploy <agent> can be given more than once and then replaces the file (publish says which source it
used, and warns when --dir has no caldera.deploy or --deploy overrides it). Every agent is checked before
anything is uploaded; one unknown agent, or one of another blueprint, stops the release with nothing sent.
CI. On a push to the main branch whose manifest version has no tag yet, the template fetches
caldera.pyz from Caldera (/cli/caldera.pyz) and checks its signature against the release key, as the
runtime's self-update does; builds the bundle; runs the repository's tests (with CALDERA_STD set to the
standard library inside that verified caldera.pyz, so the tests need no Caldera checkout); publishes with
caldera.deploy; and tags the commit v<version>. A branch builds and tests only. A rerun is safe: a
version already published with the same bytes is not an error.
GitLab, in .gitlab-ci.yml (the template is in the project parrotmedia/caldera-agents/ci, from
docs/caldera/ci/caldera.gitlab-ci.yml):
include:
- project: parrotmedia/caldera-agents/ci
ref: main
file: caldera.gitlab-ci.yml
Protect the main branch. On GitLab a protected variable reaches only protected branches, and
CALDERA_API_TOKEN and CALDERA_GIT_TOKEN are protected. Protect main under Settings, Repository,
Protected branches with "Allowed to push and merge": Developers + Maintainers. Then main gets the
variables and a Developer's token (a workbench's) can still push to it. Without it the publish job stops
at once and says that a variable is empty.
GitHub, in .github/workflows/caldera.yml (the reusable workflow is docs/caldera/ci/caldera-publish.yml):
name: Caldera
on: [push, pull_request]
jobs:
caldera:
uses: <owner>/caldera-ci/.github/workflows/caldera-publish.yml@main
secrets: inherit
permissions:
contents: write
The token is a Caldera API token with the scope blueprints:write and nothing else, kept as the
protected, masked CI variable CALDERA_API_TOKEN: one per group (GitLab group variable, GitHub
organization or repository secret), valid for one year. Write its renewal date into infra/RUNBOOK.md
when you create it. It reaches the release routes and nothing else, so a leak can publish a version but
cannot read an agent or change a setting. The workspace's id goes into the variable CALDERA_WORKSPACE;
the tests' command into CALDERA_TEST_COMMAND (default python3 -m unittest discover -s tests). On
GitLab the tag is made with a group access token (CALDERA_GIT_TOKEN, scope api), on GitHub with the
workflow's own token.
Install codes
An admin presses "Install" on a published version (or a catalog blueprint), chooses the agent name and gets a one-time code.
- Shape:
caldera_inst_plus a long random string. Only a hash is stored. Shown once. - Valid once, for 15 minutes, for one installation of one version.
- The agent name (
^[a-z][a-z0-9-]{0,62}$) becomes the agent's name in Caldera and the directory name. It must not be an agent's name in the workspace yet. - At issue, Caldera already checks what would fail later, so the dialog says it and not a terminal ten minutes on: the agent name is free, every binding's product is activated for the workspace, a same-named bot does not exist with another role, the issuer may lend the role, and the workspace stays within ten bots.
- The dialog shows two commands: fetch and verify
caldera.pyz, thenpython3 caldera.pyz init <code> --url <origin>. The warning says the code sets up an agent with a token and a bot token for each product, works once and is shown once. - For a process agent the dialog also shows the same installation as a compose file, under "Or install as a container stack", for a host where nothing may be installed. See Install as a container stack.
- Needs an admin role. Install codes are session-only: no personal token can issue one, because a token that could would be a credential that issues credentials.
Preview, then redeem
Both calls take no token; the code is the credential (the protocol).
- Preview reads what the code would install and creates and spends nothing: blueprint, version, description, agent name, runtime, secrets (name, purpose, optional), bindings. The CLI asks for the required secrets and notices a taken directory before the code is used.
- Redeem does it in one transaction: it claims the code (two redemptions racing for one code: exactly one wins), creates the agent and its token, creates or reuses one bot per binding with a token each (an optional binding only when its product is activated), and returns the bundle once.
A refusal rolls back all of it, the claim included, so a refused redemption leaves the code usable after the cause is mended:
| Status | When |
|---|---|
| 403 | A bound product is not activated; or the person who issued the code may no longer install agents (it is checked as they stand now); or the workspace is not activated for Caldera. |
| 409 | The workspace would hold more than ten bots; a bot of that name exists with another role; the workspace has an agent of that name already. |
| 404 | An unknown, expired and used code: all the same answer, on both calls, so a code cannot be probed. |
| 429 | More than twenty install calls a minute from one address (preview and redeem together). |
An unredeemed code leaves no agent behind, and because the preview comes first, neither does a setup that is aborted at a secrets prompt.
Bindings and bots
A binding gives the agent access to one of the suite's other products without any person's credential on the machine.
At redemption, for each binding Caldera creates (or reuses) one bot in the
workspace, with the declared role, and mints a token with the declared scopes,
stamped for that product (it works at that product's address and nowhere
else). It writes the result into .caldera/agent.env:
| Variable | Is |
|---|---|
CALDERA_BINDING_<PRODUCT>_URL |
the product's origin |
CALDERA_BINDING_<PRODUCT>_WORKSPACE |
the id of the workspace the bot belongs to (the product's API addresses it by id) |
CALDERA_BINDING_<PRODUCT>_TOKEN |
the bot's token |
<PRODUCT> is the upper-cased product id. A blueprint's .mcp.json can refer to
these before anything is installed, for example
${CALDERA_BINDING_<PRODUCT>_URL}/mcp with the product id filled in. The
runtime does not rewrite that file; it passes the variables in the agent's
environment and whatever reads the file resolves them (Claude Code expands
${VAR} in .mcp.json).
Rules:
- The bot is named
<agent name> (<product>)and keeps that name when the agent is renamed. - The bot's owner is the person who issued the code. It is capped at their role
as it stands at redemption; a bot is a
memberorguest, never more. - An existing bot of that name and role is reused and never changed; one with another role is a 409.
- A workspace holds at most ten bots; the refusal says how many are needed and held.
- The product must be activated for the workspace.
- Binding tokens are valid for a year, the longest a token may be. Nothing renews one. After a year the binding breaks; see Operating agents.
- A bot is a workspace member, not product content.
Binding health. For each binding the runtime adds a health item Binding <product> to its report (at most once in five minutes), from one request to the
product with the bot's token. ok for 200 and for 403 (a token whose scopes do
not cover that read still works); bad for 401 (revoked, expired or deleted
token) and 404 (the bot is no longer a member); warn when the product cannot
be reached. Caldera shows bad as a broken binding on the agent's page. Only
the product's own bot settings can mend it. These items never count in the
agent's own level, so they cannot roll back an update.
Data sources and the documentation area
Besides the manifest's bindings, "Install..." offers every activated product with content as a data
source: read only and ticked. Untick what the agent must not read; without a tick it gets
nothing. Each ticked product gets a guest bot, which has no access by default and sees only what it
is granted: it reads the open and closed collections you may give away, never a private one. A product the
blueprint already binds is not offered.
On the agent's tab Setup the category "Access in the suite" lists, per product, the collections the
agent reads, and the check "Documentation area" names the one place it writes. You add and remove
collections there; removing one means the
agent no longer sees it. You may give the agent one documentation area: a collection, or a page with
its subpages. It writes there and nowhere else, everywhere else it reads at most. You can give only what
you could give to a person yourself. The agent learns its area with its next report, as
CALDERA_DOCS_PRODUCT, CALDERA_DOCS_COLLECTION and CALDERA_DOCS_PAGE in its agent.env.
A bot with the role member (the ops-agent's bindings) reaches every open collection through its role;
Caldera shows it as "by role" and cannot limit it. A product that was not ticked at install is added later
with "Grant access", without a new install; see
Operating agents.
Deleting an agent does not revoke its bots
Revoking is the product's own act. Caldera cannot do it. When an agent is deleted, its bots and their tokens stay. The delete confirmation names the bots so they can be revoked in the product's bot settings. A deleted agent's bot token still works until it expires or is revoked.
Updating, pinning and rolling back
All three are one field: the desired version of the agent. It must be a published version of the agent's own blueprint (a catalog agent: the one shipped version), or empty to withdraw the wish.
| You want | Name |
|---|---|
| Update | a newer published version |
| Roll back | the previous version |
| Pin | the version it runs (the agent sees nothing to do) |
| Withdraw the wish | nothing |
The agent's page ("Blueprint" panel) shows three versions: installed (what the code brought), running (what the agent says it runs now) and wanted (Caldera's wish), the last outcome in the agent's own words, and the broken bindings. The change is followed to the agent's answer: waiting for the next report, then applied, rolled back by the agent, or failed.
The runtime then fetches the bundle with its own token (its own blueprint's published versions only; another blueprint's version and an unknown one answer 404). See the runtime and Operating agents.
Writing your own blueprint, step by step
The example is a private assistant that sorts new mail and writes reply drafts.
-
Make the agent one long-running process that does its own scheduling and writes a status file. The example has one process, started with
python3 -m agent.cli serve, one thread per job, writingdata/status.jsonevery 30 seconds and on every change. Pause and resume are then the runtime stopping and starting that process. (An agent that cannot be one process uses an adapter instead.) -
Decide what is state. Anything the agent learns or stores must live under a
statepath, or an update will not keep it. The example keeps its secrets and database outside the blueprint entirely (in the user's own config and state directories) and declares onlydata/for its status file. -
Write the manifest, and an
ABOUT.mdthat tells the people who run the agent how it works (seeabout). The example's manifest is short:name: mail-assistant version: 1.0.0 description: >- Sorts new mail and writes reply drafts. It never sends. Only numbers go out to Caldera, never contents. runtime: type: process command: [python3, -m, agent.cli, serve] state: [data/] status: data/status.json controls: [pause, resume, run_now] health: command: [python3, -m, agent.cli, health] timeout_seconds: 40It declares no
secrets(soinitasks for nothing), nosettingsand nologs(so nothing is asked for and no log ever leaves the machine). -
Write the health check so that it needs the new version to have worked. The example's check verifies its configuration and that the programs it calls are in the path, then waits for a heartbeat in the status file that is newer than
CALDERA_AGENT_STARTED. A fresh-looking file the old version left behind does not pass. -
Build the bundle from a fixed list of files, never "everything except". The example's build script includes code, prompts, templates, schemas, a config example and the manifest; a name that looks like a secret, state or
.gitstops the build; fixed order, timestamps and modes mean the same files give the same bytes. A bundle never holds secrets or state. -
Validate by uploading a draft. Caldera validates the manifest and the archive at upload and stores nothing on a refusal. The refusal names the field (
manifest_invalidcarries its path) or the rule. A draft can be uploaded again as often as needed; nothing is installable until it is published. -
Upload and publish. In the workspace: Blueprints, "New blueprint" (the name must equal the manifest's
name), "Upload a version" with the zip, then "Publish". -
Issue a code and install on a machine (the runtime).
-
Prove independence and an update with a forced failure (Connecting an agent). The example's check was: offline pause and resume, an update, and a deliberately broken version whose health command exits 1, rolled back within a second.
-
Release the next version by raising
versionin the manifest (never to a number that exists), rebuilding, uploading, publishing, and naming it as the desired version.
Not built
- Cloud spawning of agents and declared dependencies between blueprints.
- A marketplace or sharing across workspaces.
- Third-party credentials held by Caldera: they stay on the machine.
- A package registry for the runtime.