Skip to content

Distillery

Shown by TestExhibit in pkg/distillery. Each block feeds generated traffic through the affinity still used by the tests and shows what it distills, next to the persona that actually produced the traffic. The taste is one vector across every category; similarities to personas are cosine, and the highlighted avatar is the reading. It is then read per category, in every category the shopper chose from — dresses, trousers, and the home category of its pick: the product the taste ranks first there, by the shop's own score — the taste seen through that category's weights — must be one the persona likes — within 80% of its favourite there. Shoppers do not always open their favourite, so the favourite is shown where they differ. Home decoration is reached only through the dimensions it shares with fashion, and through the shopper's home picks. Decay uses a one-week half-life at BaseTime, Thu 10 Sep 09:18; phases split below a similarity of 0.90.

How the still works

A still is set up once, with a cut and a chain of infusers, and then only ever does two things: Feed it a batch, which cuts and infuses each event exactly once as it arrives, and Distill it with a recipe, which hands the infused events to the recipe and returns whatever spirit it makes — a pure read, as often as you like. The infusers below are read off the chain the tests use, in order.

1 · A request

One mpv2 request per interaction, as the client sends it: its event, and an envelope — what upstream knows beyond the event. A visit is many requests under one session id.

envelope: At · Session · Personalization consent

→

2 · Cut

Config.Cut keeps or cuts each event. It sees the envelope, so it can cut by where an event came from as well as by what it is.

affinity still: keeps selections, views and carts — nothing else, no listings · consent still: those, and only from batches with personalization consent

→

3 · Infusers, in order, once per event

  1. Stamp — copies the batch's time and session off the envelope, so a recipe can decay by age and group by visit
  2. AddAttractors — sums the attractors of the items the event carries into one vector, whatever their category
  3. WeighByIntent — scales that by how deliberate the choice is — select and view 1, the cart 3

each starts from what the one before returned; the envelope is dropped after this step

→

4 · The still

Kept events with their infusion, in arrival order: Infused{Event, Infusion}, where the infusion is At · Session · Affinity. Never rewritten; only drawn off.

→

5 · Draw off

A Rule selects what the still should no longer hold: by position, name, time or session, composed with Any, All and Not. It runs as a standing policy after every feed, and on request.

affinity still: keeps the newest 1000 choices · on request, e.g. InSession(id) to forget a visit

→

6 · Recipes

  • Fade.Vector — the personalization vector the shop ranks every listing with: faded per event, collapsing its past on a strong change of intent
  • Flat — taste, summed in full
  • Decayed — taste, every event halved per half-life of age
  • nearestIn — a taste read in one category: the product the shop's score ranks first there
  • phases — the history cut into windows of steady taste, a session at a time
  • funnel — events counted by name — a question that ignores taste altogether

anything relative to now, like decay, happens here and nowhere earlier

One visit, request by request

Kate's third visit of her month, two weeks before BaseTime: the shop knows two visits of hers by then, and this one ends in the cart, run through the chain above one infuser at a time. Each column is what that infuser made of the event: the envelope stamped on, the taste its items carry — one vector, dresses, trousers and lamps alike — and finally the weight it is scaled by: a selection in full, the cart three times over. Listings never get that far: the affinity still keeps only the choices it learns from, and cuts everything else at the door.

first request: At Thu 27 Aug 09:18 · Session 1787822299 · personalization consent granted

#eventlist / itemitemsaffinity cutconsent cutStampAddAttractorsWeighByIntent
1view_item_listwomens-fashion36cutkeepnot kept — never infused, never stored
2select_itemLedger Suit Trousers1keepkeepThu 27 Aug 09:18 · 17878222994 dimensions · business 0.85, classic 0.8× 1 → business 0.85, classic 0.8, structured 0.75
3view_item_listwomens-fashion/trousers18cutkeepnot kept — never infused, never stored
4select_itemLedger Suit Trousers1keepkeepThu 27 Aug 09:20 · 17878222994 dimensions · business 0.85, classic 0.8× 1 → business 0.85, classic 0.8, structured 0.75
5view_item_listwomens-fashion/dresses18cutkeepnot kept — never infused, never stored
6select_itemWhitehall Sheath Dress1keepkeepThu 27 Aug 09:21 · 17878222996 dimensions · business 0.9, structured 0.9× 1 → business 0.9, structured 0.9, classic 0.8
7view_item_listwomens-fashion12cutkeepnot kept — never infused, never stored
8select_itemTemple Pleated Trousers1keepkeepThu 27 Aug 09:22 · 17878222995 dimensions · business 0.9, classic 0.8× 1 → business 0.9, classic 0.8, structured 0.8
9view_itemTemple Pleated Trousers1keepkeepThu 27 Aug 09:23 · 17878222995 dimensions · business 0.9, classic 0.8× 1 → business 0.9, classic 0.8, structured 0.8
10add_to_cartTemple Pleated Trousers1keepkeepThu 27 Aug 09:23 · 17878222995 dimensions · business 0.9, classic 0.8× 3 → business 2.7, classic 2.4, structured 2.4
11view_item_listwomens-fashion36cutkeepnot kept — never infused, never stored
12select_itemTemple Pleated Trousers1keepkeepThu 27 Aug 09:23 · 17878222995 dimensions · business 0.9, classic 0.8× 1 → business 0.9, classic 0.8, structured 0.8
13view_item_listhome-decoration18cutkeepnot kept — never infused, never stored
14select_itemArchive Brass Table Lamp1keepkeepThu 27 Aug 09:25 · 17878222995 dimensions · classic 0.9, cozy 0.5× 1 → classic 0.9, cozy 0.5, opulent 0.4
15view_item_listhome-decoration/lamps6cutkeepnot kept — never infused, never stored
16select_itemArchive Brass Table Lamp1keepkeepThu 27 Aug 09:26 · 17878222995 dimensions · classic 0.9, cozy 0.5× 1 → classic 0.9, cozy 0.5, opulent 0.4
17view_itemArchive Brass Table Lamp1keepkeepThu 27 Aug 09:27 · 17878222995 dimensions · classic 0.9, cozy 0.5× 1 → classic 0.9, cozy 0.5, opulent 0.4
18view_item_listall-products54cutkeepnot kept — never infused, never stored

One session

A single converting journey per persona — fashion, then home decoration — summed flat. The reading should be the persona itself, right in every category it chose from, and in the category of the purchase the product bought.

KateKate
shopped
Kate
Kate
0.82
Sofia
Sofia
-0.05
Lena
Lena
0.05
Mira
Mira
0.15
Dresses ✓
Whitehall Sheath DressWhitehall Sheath Dressnearest
Trousers ✓
Temple Pleated TrousersTemple Pleated Trousersnearest
Vases ✓
Canton Ginger JarCanton Ginger Jarnearest

bought Ledger Suit Trousers

classic
+10.05
business
+7.80
structured
+7.10
minimalistic
+3.20
retro
+2.50
modern
-1.80
colourful
+0.90
feminine
+0.40
SofiaSofia
shopped
Kate
Kate
0.03
Sofia
Sofia
0.88
Lena
Lena
-0.38
Mira
Mira
-0.16
Dresses ✓
Starlet Sequin DressStarlet Sequin Dressnearest
Odette Tulle BallgownOdette Tulle Ballgownfavourite
Trousers ✓
Glitterball Sequin FlaresGlitterball Sequin Flaresnearest
Vases ✓
Carnevale Murano VaseCarnevale Murano Vasenearest

bought Starlet Sequin Dress

bold
+10.10
opulent
+9.90
colourful
+9.20
minimalistic
-8.70
festive
+8.50
feminine
+6.25
retro
+1.80
romantic
+0.90
classic
+0.60
LenaLena
shopped
Kate
Kate
-0.29
Sofia
Sofia
-0.24
Lena
Lena
0.78
Mira
Mira
0.58
Trousers ✓
Haven JoggersHaven Joggersnearest
Dresses ✓
Sunday Tee DressSunday Tee Dressnearest
Vases ✓
Obsidian Glass VaseObsidian Glass Vasenearest
Kiln Stoneware VaseKiln Stoneware Vasefavourite

bought Sunday Tee Dress

minimalistic
+9.95
casual
+8.55
modern
+6.60
edgy
+4.80
opulent
-1.00
natural
+0.85
industrial
+0.80
cozy
+0.20
MiraMira
shopped
Kate
Kate
-0.14
Sofia
Sofia
-0.14
Lena
Lena
0.46
Mira
Mira
0.93
Dresses ✓
Monolith Column DressMonolith Column Dressnearest
Trousers ✓
Grid Cigarette TrousersGrid Cigarette Trousersnearest
Lamps ✓
Halden Concrete PendantHalden Concrete Pendantnearest

bought Grid Cigarette Trousers

modern
+10.65
minimalistic
+9.75
edgy
+8.40
structured
+7.50
business
+6.90
classic
-3.00
industrial
+2.70
bold
+1.50

Steady month

A month of one persona's visits, read with decay and cut into phases. A steady shopper should read as themselves, per category as in a single session, and stay one phase.

KateKate
shopped
Kate
Kate
0.84
Sofia
Sofia
-0.01
Lena
Lena
0.01
Mira
Mira
0.14
Dresses ✓
Whitehall Sheath DressWhitehall Sheath Dressnearest
Trousers ✓
Temple Pleated TrousersTemple Pleated Trousersnearest
Lamps ✓
Archive Brass Table LampArchive Brass Table Lampnearest
KateKate
Fri 14 Aug 09:18 – Thu 10 Sep 09:26 · 7 visits
SofiaSofia
shopped
Kate
Kate
0.11
Sofia
Sofia
0.96
Lena
Lena
-0.40
Mira
Mira
-0.22
Dresses ✓
Odette Tulle BallgownOdette Tulle Ballgownnearest
Trousers ✓
Glitterball Sequin FlaresGlitterball Sequin Flaresnearest
Vases ✓
Carnevale Murano VaseCarnevale Murano Vasenearest
Lamps ✓
Versailles Crystal LampVersailles Crystal Lampnearest
Cushions ✓
Boudoir Velvet CushionBoudoir Velvet Cushionnearest
SofiaSofia
Fri 14 Aug 09:18 – Thu 10 Sep 09:26 · 7 visits
LenaLena
shopped
Kate
Kate
-0.28
Sofia
Sofia
-0.28
Lena
Lena
0.83
Mira
Mira
0.58
Trousers ✓
Haven JoggersHaven Joggersnearest
Dresses ✓
Sunday Tee DressSunday Tee Dressnearest
Cushions ✓
Driftwood Linen CushionDriftwood Linen Cushionnearest
Vases ✓
Obsidian Glass VaseObsidian Glass Vasenearest
Kiln Stoneware VaseKiln Stoneware Vasefavourite
LenaLena
Fri 14 Aug 09:18 – Thu 10 Sep 09:26 · 7 visits
MiraMira
shopped
Kate
Kate
-0.16
Sofia
Sofia
-0.14
Lena
Lena
0.46
Mira
Mira
0.94
Dresses ✓
Monolith Column DressMonolith Column Dressnearest
Trousers ✓
Grid Cigarette TrousersGrid Cigarette Trousersnearest
Lamps ✓
Halden Concrete PendantHalden Concrete Pendantnearest
MiraMira
Fri 14 Aug 09:18 – Thu 10 Sep 09:26 · 7 visits

Drift

Every ordered pair: the first three visits (up to two weeks ago, including a purchase) are one persona, the last four another. Summed flat, the old taste too often wins; decayed, the recent one should — as a persona, and in every category the recent half chose from. Phases should recover both, split where the taste changed.

ShoppedRead flatRead decayedCategories, decayedPhases
Kate → Sofia
Kate then Sofia
Sofia Sofia
5/5 categories
Sofia Sofia
5/5 categories
Odette Tulle BallgownOdette Tulle Ballgown
Glitterball Sequin FlaresGlitterball Sequin Flares
Versailles Crystal LampVersailles Crystal Lamp
Boudoir Velvet CushionBoudoir Velvet Cushion
Carnevale Murano VaseCarnevale Murano Vase
KateKate
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
SofiaSofia
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Kate → Lena
Kate then Lena
Lena Lena
2/4 categories
Lena Lena
4/4 categories
Haven JoggersHaven Joggers
Sunday Tee DressSunday Tee Dress
Obsidian Glass VaseObsidian Glass Vase
Driftwood Linen CushionDriftwood Linen Cushion
KateKate
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
LenaLena
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Kate → Mira
Kate then Mira
Mira Mira
3/3 categories
Mira Mira
3/3 categories
Grid Cigarette TrousersGrid Cigarette Trousers
Monolith Column DressMonolith Column Dress
Halden Concrete PendantHalden Concrete Pendant
KateKate
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
MiraMira
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Sofia → Kate
Sofia then Kate
Sofia Sofia
0/3 categories
Kate Kate
3/3 categories
Temple Pleated TrousersTemple Pleated Trousers
Whitehall Sheath DressWhitehall Sheath Dress
Archive Brass Table LampArchive Brass Table Lamp
SofiaSofia
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
KateKate
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Sofia → Lena
Sofia then Lena
Sofia Sofia
0/4 categories
Lena Lena
4/4 categories
Haven JoggersHaven Joggers
Sunday Tee DressSunday Tee Dress
Obsidian Glass VaseObsidian Glass Vase
Driftwood Linen CushionDriftwood Linen Cushion
SofiaSofia
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
LenaLena
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Sofia → Mira
Sofia then Mira
Mira Mira
3/3 categories
Mira Mira
3/3 categories
Grid Cigarette TrousersGrid Cigarette Trousers
Monolith Column DressMonolith Column Dress
Halden Concrete PendantHalden Concrete Pendant
SofiaSofia
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
MiraMira
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Lena → Kate
Lena then Kate
Kate Kate
3/3 categories
Kate Kate
3/3 categories
Temple Pleated TrousersTemple Pleated Trousers
Whitehall Sheath DressWhitehall Sheath Dress
Archive Brass Table LampArchive Brass Table Lamp
LenaLena
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
KateKate
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Lena → Sofia
Lena then Sofia
Sofia Sofia
5/5 categories
Sofia Sofia
5/5 categories
Odette Tulle BallgownOdette Tulle Ballgown
Glitterball Sequin FlaresGlitterball Sequin Flares
Versailles Crystal LampVersailles Crystal Lamp
Boudoir Velvet CushionBoudoir Velvet Cushion
Carnevale Murano VaseCarnevale Murano Vase
LenaLena
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
SofiaSofia
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Lena → Mira
Lena then Mira
Mira Mira
3/3 categories
Mira Mira
3/3 categories
Grid Cigarette TrousersGrid Cigarette Trousers
Monolith Column DressMonolith Column Dress
Halden Concrete PendantHalden Concrete Pendant
LenaLena
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
MiraMira
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Mira → Kate
Mira then Kate
Mira Mira
0/3 categories
Kate Kate
3/3 categories
Temple Pleated TrousersTemple Pleated Trousers
Whitehall Sheath DressWhitehall Sheath Dress
Archive Brass Table LampArchive Brass Table Lamp
MiraMira
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
KateKate
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Mira → Sofia
Mira then Sofia
Sofia Sofia
5/5 categories
Sofia Sofia
5/5 categories
Odette Tulle BallgownOdette Tulle Ballgown
Glitterball Sequin FlaresGlitterball Sequin Flares
Versailles Crystal LampVersailles Crystal Lamp
Boudoir Velvet CushionBoudoir Velvet Cushion
Carnevale Murano VaseCarnevale Murano Vase
MiraMira
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
SofiaSofia
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Mira → Lena
Mira then Lena
Mira Mira
2/4 categories
Lena Lena
4/4 categories
Haven JoggersHaven Joggers
Sunday Tee DressSunday Tee Dress
Obsidian Glass VaseObsidian Glass Vase
Driftwood Linen CushionDriftwood Linen Cushion
MiraMira
Fri 14 Aug 09:18 – Thu 27 Aug 09:27 · 3 visits
LenaLena
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits

Drawing off

Four of the drifts above, fed into two stills: one holds everything, the other has a standing draw-off, affinity.Rules.OlderThan(env.Stamped().At, 10 days), run after every feed against the time of the batch. By the end of the month the old taste has been drawn off: summed flat, the still that holds everything misreads some of them as the old shopper (red), the bounded one reads every one as the recent shopper, and only the recent phase is left.

ShoppedHolds everything, read flatDraws off after 10 days, read flatChoices heldPhases left
Kate → Sofia
Kate then Sofia
Sofia SofiaSofia Sofia37 of 65
SofiaSofia
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Sofia → Lena
Sofia then Lena
Sofia SofiaLena Lena37 of 65
LenaLena
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Lena → Mira
Lena then Mira
Mira MiraMira Mira37 of 65
MiraMira
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits
Mira → Kate
Mira then Kate
Mira MiraKate Kate37 of 65
KateKate
Tue 1 Sep 09:18 – Thu 10 Sep 09:26 · 4 visits

Detour

Kate's month with visits three and four shopped by Sofia. Phases are contiguous, so the return is a third phase rather than a Kate phase with a hole in it.

KateKate
Fri 14 Aug 09:18 – Fri 21 Aug 09:24 · 2 visits
SofiaSofia
Thu 27 Aug 09:18 – Tue 1 Sep 09:25 · 2 visits
KateKate
Sat 5 Sep 09:18 – Thu 10 Sep 09:26 · 3 visits

The same detour, but Sofia's two visits were made without personalization consent. The consent cut drops them on the way in, so the still never sees them and Kate's month is one unbroken phase.

KateKate
Fri 14 Aug 09:18 – Thu 10 Sep 09:26 · 5 visits