glossary

Experiments

Feature flag

A feature flag is a switch for a prompt, model or tool that can turn a change off without a deploy, and on an agent it stays fixed for a person for the whole session so the version does not flip mid-task.

Abracadabra Team Glossary

How it works

The flag names a change that can be on or off without a deploy: the prompt for a password reset, the model behind it, or the tool that files the ticket. Turning the flag off returns that behaviour to the previous version while the process stays up. On an agent, evaluate the flag once per person per session and store the value. Later turns of the same reset must see the same prompt, model and tool. A flag recomputed every turn can flip under a person who is halfway through when a percentage changes.

The flag is the switch, not the policy for who has it on. A canary is a small share with a stop rule. An A/B test compares 2 versions on an outcome. A kill switch forces every session, including ones already running, back to the last known version. Those policies use flags, and they are different decisions. A prompt baked into the build, with no off position, is not a flag.

A worked example

Password reset, flag fixed for the session

Example, not a measured result.
IT helpdesk agent. The flag selects the password-reset prompt.
Off is the prompt that shipped last month. On is 1 new prompt.
The model and the ticket tool do not change.
At the first turn the flag is hashed from the person id and stored on the session.
A person who starts on On stays on On until the reset ends, even if the rollout percentage moves.
In this example, 500 sessions are On and 500 are Off.
Turning the flag off needs no deploy. New sessions stop entering On.
Sessions already stored as On keep that prompt until they finish.

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

What goes wrong

  • The flag is read again on every turn. A rollout moves from 10% to 50% while someone is mid-reset, the next turn flips prompt, and the ticket is half the first procedure and half the next.
  • The “off” path still needs a deploy because the new prompt was written into the image. During the bad hour the flag does nothing, and the change is not a switch at all.
  • Several flags combine, and the session stores none of the values. A bad reset cannot be tied to the prompt, the model or the tool that was actually on, so the off switch is a guess.

How to measure it

Log the flag name and the value stuck to the session, and count how often a session shows more than 1 value. That count should be 0 for any flag that is meant to cover a whole task.

Compare task success for the same task with the flag on and off, and keep cost per task beside it. When you turn the flag off, check that new sessions stop arriving on the new value without a deploy in between.

Further reading

How Abracadabra helps

Record which flag value the session kept, compare task success for that task and cohort between the 2 values, and open the conversations where the flagged prompt or tool is the step that stopped.

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.