Guide
Roll back an AI agent change
A rollback is only fast if the version you want to go back to still exists, exactly as it was. That is a property of how changes are stored, not of the undo button.
Releases and labels
Rolling back means pointing the agent at a release it already ran, not editing the bad one back into shape.
Contexory stores an agent's changes as two kinds of thing:
- A release is a snapshot that never changes. Each one has a number, r1, r2, r3, and pins the agent's instructions, skills and tools together. The database refuses any edit to a release once it exists.
- A label points at one release.
productionis the label your live agent reads. Moving a label is the only way what the agent serves changes. - The agent reads the label, not a file. It asks Contexory for what
productionpoints at, so moving the label changes the agent without a deploy.
Rolling back
Production remembers the release it pointed at before its last move. Rolling back returns it there:
- 1
Open the agent's releases
Go to the agent and open Releases. The release production is on is marked Live in production.
- 2
Press Roll back
The button names the release you are going back to, for example Roll back to r3.
- 3
Confirm
Production moves to the earlier release. The release you rolled back from stays in history and can go live again later. Nothing is deleted.
Rolling back is for owners and admins, the same people who can make a release live. Rolling back twice undoes the rollback. Every move is saved to the activity log with who made it.
Why a rollback is never held
When someone has run the gate on a release and too many of its test cases failed, making it live is held. A rollback is never held, on purpose.
The undo must always work
What a rollback does not undo
A rollback changes what the agent reads from now on. It is not a time machine:
- Answers already sent stay sent. Customers who got a wrong answer still need a follow-up from a person.
- Actions the agent already took stay taken. A refund issued or a ticket closed under the bad release is not reversed.
- It takes effect on the agent's next request. The agent may reuse what it already fetched for up to 60 seconds by default.
Roll back first, investigate second
After the rollback
Before the next release, run the quick check and the gate, and ask the question that went wrong again yourself. A test only catches what it checks for. See testing answers before release.
Contexory is where a team writes, tests and releases an agent's instructions. Start free and connect your first agent.