Interactive engineering lab

Conversation canaries: sticky hash assignment, ramps and mid-thread switches

Compare per-request, recomputed-hash and pinned assignment while a ramp moves, and inspect every synthetic conversation.

By Sandeep Belgavi · Published 2026-11-26 · Prepared 2026-11-25

Synthetic fixtures computed locally. No model or production service is contacted.

Experiment workspace

Decision trace

    The question this experiment answers

    When a prompt or model change is ramped from 5 to 20 to 50 percent, how many conversations see both variants, and how many lose the new behaviour mid-thread? Each synthetic conversation has a fixed identifier such as CASE-4001 and a number of turns. The ramp has three steps spread evenly across the turns, so every conversation is open while the ramp moves. No assistant, model or traffic is involved.

    Change one assumption at a time

    Assignment policy chooses between a fresh random draw per request, a hash bucket recomputed on every turn against the current ramp, and a hash bucket computed once at the first turn and then pinned. The three ramp steps are in basis points, where 10000 means everyone. Salt is the string mixed into the hash; setting Change salt at turn to a value above zero switches to a different salt from that turn onwards, which reshuffles recomputed assignments. Seed affects only per-request draws. Run experiment after editing; until then the previous result stays on screen and export is disabled.

    Expected outcomes

    With the defaults (400 conversations, 6 turns, ramp 500, 2000 and 5000, salt prompt-v7) the pinned policy shows 0 conversations with both variants and 25 in treatment at both the first and the last turn. Hash recomputed each turn shows 179 conversations with both variants and 0 treatment-to-control switches, because raising the ramp only adds buckets. Random per request with seed 11 shows 347 mixed conversations and 202 backward switches; those two counts are specific to this lab's seeded generator. Set all three ramp steps to 2000, choose Hash recomputed each turn and change salt at turn 3: 124 conversations are mixed and 66 switch backwards. The companion Python example reproduces every hash-based count exactly.

    Read the table and the trace

    Each table row is one conversation: its bucket under the base salt, the variant on every turn written as C for control and T for treatment, and whether it saw both variants or switched backwards. The decision trace explains each conversation in a sentence. Start trace clears the visible steps, Next step reveals one more, Show all reveals every step and the slider selects any prefix. These controls do not recompute the experiment.

    Reset and export

    Reset inputs restores the documented defaults and recomputes them. Export JSON downloads the inputs, every conversation row, the metrics, the trace, the model version and the limitations, so a result can be compared with the companion example offline. Nothing is stored in the browser or sent anywhere.

    Limits

    Conversations here all start together and last the same number of turns, so the pinned policy never lets a ramp step reach an open conversation; real traffic starts continuously, and pinned exposure then follows the ramp with a lag of about one conversation length. The hash is 32-bit FNV-1a from RFC 9923, chosen for exact reproducibility; any well-distributed hash works if every component uses the same one. The counts are regression fixtures for this model, not measurements of an assistant. Views are my own and do not represent any employer, past or present.