Why We Think Agents Need Their Own Release Cycle
Post{Author: "Matt", Published: "", ReadingTime: 5 * time.Minute}Post{
Author: "Matt",
Published: "",
ReadingTime: 5 * time.Minute,
}Prior to Partite, we were building AI features for a real estate analytics and valuation platform. We quickly had a working prototype: a chat interface that could run custom analyses for end users using our proprietary datasets and models. Over time, some challenges started to surface.
An early experiment with LangChain became an exercise in finding all the prompt fragments each layer added, then finding the right keyword arguments to change them.
The cost of a small prompt change
“It’s only a small prompt change.” A sentence added or removed could make a substantial difference in agent behavior:
- Instructions intended to address a specific gap were sometimes interpreted broadly enough to cause regressions in unrelated requests.
- A change in wording could cause an agent to reach for a tool far more than intended.
- Our response was often to add more instructions and exceptions. As those accumulated, it became harder to predict which instructions the agent would follow reliably.
Fixing one case meant checking what else we might have disturbed.
And those changes often shipped alongside unrelated application code. If the agent regressed, rolling back the whole deployment was like using a chainsaw when what we needed was a scalpel.
This also made iteration awkward. One of our PMs or a researcher might propose an improvement. They needed to compare it with current behavior, test it, and eventually put it in front of customers. Putting that work on the application’s deployment schedule meant coordinating across teams and shipping new builds even when the application’s integration hadn’t changed.
A problem we had already solved
We already used Terraform to manage two kinds of configuration, and each had its own review and release process:
| Configuration | Examples | Reviewed by |
|---|---|---|
| Sales and billing | Subscriptions, pricing tiers, plan entitlements | PMs |
| AWS infrastructure | ECS services, queues, databases | Backend engineers or DevOps |
We could deploy those changes without deploying new application code. Sometimes an infrastructure change required an accompanying application change, and we released them together. Often it didn’t.
We began to see the benefit of managing our agents the same way. Agent configuration could change product behavior while leaving the application’s interfaces intact. That led us to a design decision: give the agent system its own release cycle.
What a release is made of
In Partite, changes to an agent’s instructions, input schema, or tool associations create a new agent version. A mesh connects specific agent versions through structured inputs and outputs. A mesh’s working draft is where we iterate and test the next release. That gives us room to keep working without replacing the agent versions referenced by a frozen production release.
Releasing a change
Partite supports initiating conversations via a route, which splits conversations across a mesh’s versions by weight. That means your application doesn’t need to refer to a release directly. Here, a route sends every new conversation to v1.4.0:
resource "partiteai_route" "production" {
name = "analysis-production"
mesh_id = partiteai_mesh.analysis.id
segments = [
{
mesh_version_id = partiteai_mesh_version_label.v1_4_0.mesh_version_id
weight = 100
},
]
}
The application calls that route using our SDK (or plain http calls to our conversation API):
import { PartiteAiClient } from "@partite-ai/sdk";
const client = new PartiteAiClient({
apiKey: process.env.PARTITE_API_KEY,
});
await client.conversations.createConversation({
params: {
// The ID of partiteai_route.production.
routeId: process.env.PARTITE_ROUTE_ID!,
intent: "analyze",
input: {
question: "Compare median sale prices in 02139 and 02140 for 2025.",
},
},
});
Now suppose we want to change the analyst agent’s instructions. We make those changes in the working draft. Partite’s built-in evaluations let us compare the draft with the current release, and traces let us inspect the individual results.
Once we’re satisfied with the results, we freeze the draft under a release label. We add a label resource for v1.5.0:
resource "partiteai_mesh_version_label" "v1_5_0" {
mesh_id = partiteai_mesh.analysis.id
label = "v1.5.0"
}
Creating v1.5.0 freezes the draft’s agent-version references, inputs, links, and response definitions. Partite then automatically creates a new draft so work can continue.
Production is still using v1.4.0; labeling the new version leaves the route unchanged. We update that route to send five percent of new conversations to v1.5.0:
segments = [
{
mesh_version_id = partiteai_mesh_version_label.v1_4_0.mesh_version_id
- weight = 100
+ weight = 95
},
+ {
+ mesh_version_id = partiteai_mesh_version_label.v1_5_0.mesh_version_id
+ weight = 5
+ },
]
The SDK call and route ID from the application stay exactly as they were.
Rolling out, and rolling back
Then we assess performance on live traffic using a Partite eval monitor.
As the evidence supports it, we increase the new version’s traffic share. If it regresses, the rollback is two lines:
{
mesh_version_id = partiteai_mesh_version_label.v1_4_0.mesh_version_id
- weight = 95
+ weight = 100
},
{
mesh_version_id = partiteai_mesh_version_label.v1_5_0.mesh_version_id
- weight = 5
+ weight = 0
},
New conversations go back to the previous release, and the unrelated application changes stay deployed. A conversation retains the mesh version selected when it started, so changing the split doesn’t swap its instructions halfway through.
The withdrawn release remains available to investigate. We can inspect its traces, revise the instructions in the draft, and prepare another release.
We still coordinate with application releases when we change something the application depends on, such as an input or output contract. But a compatible agent change can now have its own release (and its own rollback) without taking an otherwise good application release with it.