glossary

Observability

Semantic drift

Semantic drift is the point in a conversation where the replies stop serving the request the person started with, even though each turn still looks like a coherent answer to the one before it.

Abracadabra Team Glossary

How it works

Semantic drift happens inside one conversation. The person starts with a request. Later replies follow the previous turn and no longer serve that request. Each answer looks on-topic relative to the line above it, and off-purpose relative to the job. If the person explicitly replaces the job, that is a new task, and the old one ended on purpose. Semantic drift is the conversation leaving the request without that handoff. A wrong fact inside an on-job reply is a different fault. The job is still the one they opened with.

A shop owner asks whether the shop must register for VAT, and gives an expected turnover. The assistant stays on the threshold, then the owner mentions paying themselves a salary. The next replies explain payroll and pension enrolment. Each turn answers the one before it. None returns to VAT registration. The owner did not drop that question. By the last turn the assistant is doing a different job from the one that opened the chat.

A worked example

A VAT question that slides into payroll

Owner: does this shop need to register for VAT? Expected turnover is under the figure I was quoted. I want a yes or no.

Turn 2 stays on the threshold, and asks for turnover that was already given.

Turn 3. Owner: I also pay myself a small salary.
Turn 4 explains payroll. Turn 5 explains pension enrolment.

Turns 4 and 5 answer the salary remark. They do not serve the opening request. The owner never said to drop VAT, and no later turn gives a yes or no on registration.

Semantic drift starts at turn 4, the first reply that left the VAT job. A wrong threshold inside a VAT answer would be a bad reply to the right job, not this slide.

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

What goes wrong

  • Any topic change is called semantic drift, including a real handoff. The owner says to forget VAT and help with payroll, and that new request is scored as the assistant drifting off.
  • The slide is noticed and the turn is not marked. Reviewers hear that VAT chats go odd, and nobody can point to the reply where payroll took over from the registration question.
  • A wrong VAT threshold is filed as semantic drift. The reply is still about registration, so the job has not changed. The number is a different fault from a slide.

How to measure it

On a sample, write the opening request in one sentence, then mark the first turn whose reply does not serve it. Exclude turns where the person explicitly replaced the job. Report how often a drift turn appears, by the opening job.

Read the marked turns before you change a prompt. A slide into payroll needs a different fix from a wrong threshold. Compare on-job completions for the same opening task with the previous period.

Further reading

How Abracadabra helps

Mark the turn where the replies stop serving the request the person started with. A coherent answer to the previous turn can still be a conversation that left the job, and that turn is the one to read.

A trace says the run finished. Abracadabra says whether the person got the job they came to do, and keeps that outcome on the conversation. It complements tracing and OpenTelemetry. It does not ingest spans or replace a trace tool.

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.