glossary

Experiments

Prompt versioning

Prompt versioning assigns an id to each saved state of a prompt and stores that id with the output, so a reply can be traced to the exact text, settings and tools that produced it.

Abracadabra Team Glossary

How it works

Each time the prompt is saved, it gets an id that has not been used, such as viewings-v7. The id is not a changelog line the reply never sees. It is stored on the output, on the trace and on the eval record for that run. When a viewing is booked into the wrong slot, the id on that reply is the text you open, not the text someone believes is current. The id should name an immutable body: prompt text, model settings and tool list. If any of those change, that is a new id.

Editing the body and keeping viewings-v7 is how the id stops meaning anything. Prompt drift is those small edits going uncounted until live text no longer matches the eval. Versioning makes that visible: the id changes with the body, or someone overwrote a body the id still names. A git commit is a weak id if the prompt can be edited in a database after deploy.

A worked example

Each viewing reply carries viewings-v7

Example, not a measured result.
Estate-agent assistant booking viewings.
viewings-v6 is the prompt, model settings and tool list that the eval ran.
An editor saves a new refusal line and a shorter greeting.
That save mints viewings-v7. The v6 body is left unchanged.
A reply that offers the wrong slot stores viewings-v7 on the message and on the trace.
Opening that id shows the new refusal line, not v6.
In this example, 80 bad slots are all stamped v7, and 0 of them are stamped v6.
The eval record for v6 is not reused as evidence that v7 is fine.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • The id is the deploy commit, then an operator edits the prompt in a config store. Replies still cite that commit, which no longer contains the text that booked the wrong slot.
  • The id is written to an application log and not on the output. Support has the bad booking and no id, and the reply cannot be joined back to a prompt body.
  • Two saves share viewings-v7 and the second overwrites the first. An old reply stamped v7 now opens a body that did not exist when it was sent.

How to measure it

Every reply should carry a prompt id, and every id should resolve to exactly 1 immutable body. Count replies with a missing id, and count ids that map to more than 1 body. Both counts are defects in the versioning, not in the model.

Compare task success by prompt id on the same task. When an id’s finish rate drops, open the replies stamped with it. Do not attach a new eval pass on an old id to a body that has changed since that pass.

Further reading

How Abracadabra helps

Group conversations by the prompt id stored on the reply, compare task success for that task and cohort across those ids, and open the replies tied to an id whose finish rate fell.

Experimentation, canary releases and guarded rollouts are in early access. Today, compare task success before and after a change on the same task and cohort, and open the conversations behind a drop.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.