Prompt rolled back, yet customers may get the bad one for a minute
Langfuse's SDK caches prompts client-side for 60 seconds by default, so treat labels as deploys, evals as tests, and write the rollback plan before you need it.
In brief
- In the label model, moving the `production` label is the deploy and moving it back is the rollback; no code needs rebuilding.
- Automated evals must run on every PR that changes a prompt, and a failure must block the merge; test cases should match the real task distribution and include edge cases.
- Rollback is planned in advance, and with an SDK that caches for 60 seconds by default, the propagation delay belongs in what you tell the client.
Langfuse’s SDK caches prompts on the client with a default TTL of 60 seconds. So when you move the production label back to an older prompt version to contain an incident, some running instances can keep answering customers with the faulty prompt for up to a minute afterwards. The rollback is finished on the dashboard. It may not yet be finished for the customer.
That gap points to a larger problem. A prompt in production is more than a block of text you edit and save. It is an artifact with a full deployment lifecycle: versioning, testing, promotion, rollback and propagation delay.
For engineers who tune LLM systems on a client’s site, this is a discipline to have in place before the first incident, rather than after it. To see why, follow one hypothetical case from start to finish.
Deploying means moving a pointer
Say you run a support-ticket classification agent for a client. The client reports that the agent is filing refund complaints under “information requests”. You edit the prompt and add a paragraph of guidance on financial complaints. In Langfuse, that edit creates a new version, and the latest label automatically points to it.
But latest is not production. When code fetches a prompt without specifying a label, Langfuse returns the version carrying the production label. The two pointers are separate by design: you can create as many experimental versions as you like and the client sees none of them, until you deliberately move production to the new one.
The latest label
- Points automatically to the newest version
- Moves whenever someone edits the prompt
- Not what customers are receiving
The production label
- Returned when code fetches a prompt without a label
- Moves only when you deliberately promote
- Can be protected so viewers and members cannot move or delete it
Langfuse’s technical guide to managing hundreds of prompts sums up the model in one sentence: moving a label is the deploy, and rollback is moving it back. No build, no release, no code change. The only thing that moves is the pointer.
Once a deploy is just a pointer move, the next question is who is allowed to move it. Langfuse offers protected labels, depending on the plan: once a label is protected, the viewer and member roles cannot move or delete it. On the Enterprise plan, an audit log records promotions and label changes.
In this case, if the production label is protected and the client’s staff hold only viewer or member roles, they cannot move the label themselves to push a “quick fix” into production.
The pointer moves only after evals pass
Back to your fix. Before moving the label, the question has to be: where is this version better than the old one, and does it break anything? Braintrust recommends running automated evals on every pull request that changes a prompt.
TianPan, writing on prompt versioning discipline, goes a step further: every PR that touches a prompt file triggers automated evals, and a failed eval blocks the merge.
Treat this as unit testing for prompts. As with unit tests, the quality lies in the test cases. Anthropic’s documentation on building evals advises designing tests that mirror the real task distribution and not forgetting edge cases.
For the ticket classifier, the eval suite should carry the same mix of complaints, information requests and technical faults that the client actually receives, plus the hard cases: tickets written in a mix of languages, tickets that ask a question and complain at the same time.
The “add guidance on financial complaints” fix might raise the complaint score while causing the agent to start classifying questions about shipping fees as complaints. Only evals on the real distribution will catch that before the client does.
Rollback is a rehearsed script
Say the evals pass and you move production. Two days later, the client reports a new failure the eval suite did not cover. This is where TianPan’s point becomes concrete: rollback should be a planned operation, not improvisation during an incident. Braintrust describes the same idea in terms of traffic: reverting means sending traffic back to the last good version.
“Planned in advance” means three things here. You know exactly which version is last known good, not “last week’s one seemed fine”. You know who has permission to move the label and what the operation involves: in Langfuse, reassigning the production label to the old version, with no code redeploy.
And you know the delay: with the default 60-second cache, you tell the client “within a minute”, not “immediately”.
Then go back to testing. The new failure the client reported must become a test case in the eval suite, so that next time the pointer cannot move if the failure returns. That closes the loop, and each incident leaves the eval suite thicker instead of just leaving you more tired.
How to tell the ticket story on a CV
For anyone preparing for an FDE role, the ticket classifier case above is the way to tell it on a CV and in interviews.
Skip “experience in prompt engineering”. Describe how you fixed the prompt that misfiled refund complaints, which eval blocked the fix that broke shipping-fee tickets, who could move the production label, and how long the rollback took to take effect.
When reading a job description, phrases such as prompt management, eval pipeline or observability are the cue to bring out exactly that story. One concrete rollback, even from a side project, carries more weight than any claim about “prompt optimization”.
Customers never see your versions. They see only where the production pointer is aimed, and how long it takes you to move it somewhere safe.
Was this article useful?
Thanks for the feedback!
5 sources
- Prompt Version Control (Langfuse docs)
- How to organize, version, and test hundreds of prompts (Langfuse)
- What is prompt versioning? Best practices for iteration without breaking production · 2026-02-18
- Prompt Versioning in Production: The Engineering Discipline Teams Learn the Hard Way · 2026-04-09
- Define success criteria and build evaluations (Anthropic docs)