#Deployments
Your coding agent changes the agent through the Vatio MCP:
update_agent, set_tool, remove_tool, set_backend, set_auth,
write_knowledge_entry and delete_knowledge_entry. The owner and developers
can do the same in the inbox, on the Agent and Knowledge pages, and the
team (supervisor) on the Knowledge page. Every
change is checked and saved as a new version of the one agent. There is
nothing to publish and no preview to promote: a change reaches people on its
own. This page is about how.
#How a change reaches people
Every change reaches two groups, one after the other:
- Your team, at once.
chat_with_agent, Try the agent in the inbox, Vatio's shared WhatsApp number and Instagram test account, and your app's pages served from your own machine (localhost, a private address, a.localor.testname) talk to the newest version as soon as the change is saved. - Everyone, once the tests that pass today pass on it. In the background, Vatio replays every test against the change. When no test that passes on the version everyone has fails on it, the change reaches everyone: the widget and the SDKs in your app, your own WhatsApp number and your Instagram account. That takes a few minutes, about two in a typical workspace.
A workspace with no tests gets every change at once, everyone included, and so does one nobody outside the team has talked to yet: until that first conversation there is nobody to hold a change back for.
The tests are every reply your team reported with a note of what should have
happened, on a customer's conversation or one of the team's own, and every
question add_test keeps (Improve your agent). Tests that fail on
both versions hold nothing back: a fix for three of five reports reaches
everyone while the other two wait.
Changes made a few seconds apart are tested together. A change made while the one before it is still being tested, or is held, joins it: the newest version carries both, and its tests start over.
Every change says what it means: "Everyone has it now", or "Your team has it
now", with around when everyone should. While nobody outside the team has
talked to the agent, "Everyone has it now" also says it went out without
waiting for the tests (the change's shipping.draft is true). get_status says where it stands at
any time (Where a change stands).
#When a test holds a change
A test that passes on the version everyone has and fails on the change in every attempt (a failing test is replayed up to three times; Eval runs) holds the change back:
- your team keeps it:
chat_with_agentand Try the agent still talk to it; - everyone else keeps the version they have;
- whoever made the change gets an email naming the tests.
get_status shows the change held, with the tests in held.tests. Three
things release it:
| What | How |
|---|---|
| Another change that fixes it | Fix the agent and change it again: the newest version is tested from scratch |
| Removing a test the change made obsolete | remove_test with the test's id. The change is tested again without it. Only when what the test checks no longer applies, never because it fails |
| A run of the tests that passes | run_tests, then get_test_results with the run's id: a run of the held version in which no test that passes today fails takes it to everyone. For a test that failed by chance |
There is no way to force a held change through.
A test Vatio could not judge because of an error on its side (the model
provider or the judge failed) is not a failure: Vatio tests the change again
on its own, up to three runs, before such a test holds it, and then it is
listed with vatio_error: true. A change is also held when Vatio cannot test
it, with reason tests_capped (the workspace used up the day's
test runs), or cannot put it in place, with reason
error and a message. Another change, or a run of the tests, moves either
on.
When a change reaches everyone, what its tests found goes with it: the reports they passed are resolved with the version's short sha, and the version everyone has is not replayed again.
#Where a change stands
get_status carries shipping:
| Field | What it is |
|---|---|
state | live: everyone has the newest change. testing: your team has it, and its tests are running. held: a test held it back |
version | The deployment everyone has |
newest_version | The deployment your team has; the same as version when state is live |
changed_by, changed_at | Who made the change on its way, and when |
testing | While testing: since, started_at and expected_by, around when everyone should have it |
held | While held: since, reason (tests_regressed, tests_capped or error), message, and tests, each with its id, title, vatio_error and the chat_id of its replay, which get_conversation opens |
"shipping": { "state": "held", "version": 42, "newest_version": 43, "changed_by": "ivan@acme.com via Claude", "changed_at": "2026-11-01T14:02:11Z", "held": { "since": "2026-11-01T14:05:40Z", "reason": "tests_regressed", "tests": [ { "id": "F-7K2QX", "title": "Never promise a date for a pre-order", "vatio_error": false, "chat_id": 9120 } ] }}Besides shipping, get_status returns the open reports, the links to try
the agent, its channels and the inbox, and put_in_the_app: the publishable
key the widget and the SDKs take, and the widget's script tag. How many
people talk to the agent is get_analytics.
The inbox shows where a change stands at the top of Continuous improvement, to the owner and developers, with a banner when a change has been held for a day or more.
#The newest version and the version everyone has
A deployment is a saved snapshot of the agent. There are two at most: the newest version, which your team has, and the version everyone has. They are the same one except while a change is testing or held.
- Conversations. What your team says to the agent (
chat_with_agent, Try the agent, the shared number, your app on your own machine) talks to the newest version. In the inbox's Conversations those conversations sit among your customers', each marked Team, for the owner and developers. A reply reported on one of them is a test like any other (Improve your agent). - Reading the agent.
get_agentreads the newest version, and says who made it and when. - Knowledge goes with the version: a write lands on the newest version and reaches everyone with it (Knowledge).
- Workspace-wide. Channel connections and brand settings are not part of a
deployment. The widget's look and the business's name are edited with the
MCP's
update_widgetandupdate_business, or in Web chat in the inbox (the logo only there), and everyone has them as soon as they are saved. Schedules, quiet hours and secrets are not part of a deployment either. What the business does is part of the agent's instructions, and so of each deployment.
There is nothing to choose between them. What reads or talks to the agent
(get_agent, read_knowledge, chat_with_agent, add_test, run_tests)
uses the newest version. What reads what happened reads your customers'
conversations: get_tool_health always, list_conversations unless it gets
team: true for your team's. The API's payloads still say whose a
conversation is in an environment field: live for a customer's, preview
for one of your team's.
#Undo a change
There is no rollback. To undo a change, make the change that reverts it: write
the old instructions back with update_agent, the old tool with set_tool, or
the old entry with write_knowledge_entry. get_agent shows the agent as it
is, and an entry's history (read_knowledge with history: true) shows its
earlier text.
What protects people from a bad change is the tests: a change that breaks a test that passes today reaches your team but not everyone else, so write a test for what must keep working before you change it.
#Working with others
There is one newest version per workspace, and every change builds on it, so
the whole team changes the same agent, through the MCP or the inbox. Try the
agent in the inbox, open to the workspace's owner and developers, talks to
it, and get_agent says who made it and when. A change made while another is
on its way joins it, and the two reach everyone together, or are held
together.
#Secrets
Your tools read the workspace's secrets as $env.KEY: your backend's URL, an
API key. Your coding agent sets them with the MCP, taking each value from
where you keep it, such as the app's .env, and never repeating it back:
| MCP tool | What it does |
|---|---|
set_secret | key and secret_value; with "tests": true, the test value below |
list_secrets | The keys and where each applies, never the values |
remove_secret | Removes one everywhere, with any value set before for one version alone; "tests": true removes only the test value |
{ "workspace": "acme", "key": "ACME_API", "secret_value": "https://api.acme.com" }To type a value in yourself, without it passing through a chat, use Settings → Secrets in the inbox.
Keys use uppercase letters, digits, and underscores, starting with a letter;
keys starting with VATIO_, and DISPATCHER, are reserved for Vatio.
Tools read values with $env.KEY. Listing returns names, never
values. A secret is not part of a version: a change applies to the next tool
call, for everyone, with no tests.
A secret is one value everywhere, plus, when you set one, a test value: the one your team's conversations with the agent use, and every test run. One staging URL for everything that is not one of your users:
{ "workspace": "acme", "key": "ACME_API", "secret_value": "https://staging.acme.com", "tests": true }Without a test value, the usual value is used.
A value set before for one version alone still works and still shows:
list_secrets lists it as preview (the newest version) or live (the
version everyone has), the inbox with a Test or Live chip, and
remove_secret with its key removes it together with the value for
everywhere ("tests": true removes only the test value). A new value is always
everywhere, or the test value.
A tool call from a test run also carries an X-Vatio-Test: 1 header, and a
write (any method but GET) whose URL has no test value is not sent: the agent
gets a success instead, or, when the case's photographed turn made that same
call, the answer your backend gave then. See Eval runs.
A tool runs on Vatio's servers, so it cannot reach localhost; to test against
a backend on your machine, expose it through a tunnel and set that URL.
Keep credentials out of the instructions, tool definitions, knowledge, and tool results.
A secret key (vsk_) for your backend to call Vatio's server API is a
different thing: it is created in the inbox, under Settings → API keys,
because it is shown once, to a person, and a chat transcript is no place for
it.