Catalog
pkg/internal/mock/catalog is what the test shop sells: 54 products in a small category tree, each with an attractor vector and a description saying the same thing in prose. Here is every one of them, as the tests see it.
Shown by TestExhibit in pkg/internal/mock/catalog: the 54 products the shop sells, in its category tree. Every picture is drawn from the data it illustrates, so a product that looks wrong for its copy points at a vector, not at the drawing.
Category tree
All Products at the top, two departments below it, each with its categories. The GA4 category path carries the whole branch; in fashion occasion and length sit below the category, home pieces stop at it. Categories are where products are offered, not a signal about the shopper: what the shopper opens, views and buys is.
| listing | products | GA4 path, e.g. |
|---|---|---|
| All Products | 54 | every product |
| Women's Fashion | 36 | Women's Fashion |
| Dresses | 18 | Women's Fashion > Dresses > Business > Midi |
| Trousers | 18 | Women's Fashion > Trousers > Business > Full |
| Home Decoration | 18 | Home Decoration |
| Cushions | 6 | Home Decoration > Cushions |
| Lamps | 6 | Home Decoration > Lamps |
| Vases | 6 | Home Decoration > Vases |
Dimensions
The taste dimensions (pkg/internal/mock/taste) the products' attractors use, by department. Dresses and trousers speak the same ones, so taste carries between them. Home decoration shares only some, so what the shop learns from clothes reaches it only through those.
shared
fashion only
home only
All Products
The top of the tree, every product the shop sells. It has no weights of its own: every product in it is scored in its own category's weights (catalog.Score). Each category's weights average ×1, so they set emphasis, not scale, and a listing of all products ranks a dress against a lamp on one scale.
Women's Fashion
36 products. The weights below are what the department looks at: the base its categories start from. Each category then overrides where it differs, keeps only the dimensions its own products carry, and is scaled to average ×1.
Women's Fashion
| business | ×1.30 | |
|---|---|---|
| casual | ×1.30 | |
| festive | ×1.30 | |
| bohemian | ×1.00 | |
| bold | ×1.00 | |
| classic | ×1.00 | |
| edgy | ×1.00 | |
| feminine | ×1.00 | |
| minimalistic | ×1.00 | |
| modern | ×1.00 | |
| opulent | ×1.00 | |
| retro | ×1.00 | |
| romantic | ×1.00 | |
| structured | ×1.00 | |
| colourful | ×0.80 |
Dresses
18 products, scored in the weights shown first: how much each dimension counts for a dresses product, by the shop when it ranks and by a persona when it chooses. A dimension not listed counts for nothing here. Each product with its facets, copy and attractor: the picture, the description and the bars should all say the same thing.
Dresses
| business | ×1.22 | |
|---|---|---|
| casual | ×1.22 | |
| feminine | ×1.22 | |
| festive | ×1.22 | |
| romantic | ×1.12 | |
| bohemian | ×0.94 | |
| bold | ×0.94 | |
| classic | ×0.94 | |
| edgy | ×0.94 | |
| minimalistic | ×0.94 | |
| modern | ×0.94 | |
| opulent | ×0.94 | |
| retro | ×0.94 | |
| colourful | ×0.75 | |
| structured | ×0.75 |
Whitehall Sheath Dress
Sharply tailored navy sheath, classic structured line — conservative boardroom wear, nothing modern about it.
| business | +0.90 | |
|---|---|---|
| structured | +0.90 | |
| classic | +0.80 | |
| minimalistic | +0.50 | |
| retro | +0.30 | |
| feminine | +0.20 |
Margot Shift Dress
Charcoal wool shift with a soft sixties line: understated, classic office wear.
| business | +0.85 | |
|---|---|---|
| classic | +0.70 | |
| minimalistic | +0.60 | |
| structured | +0.60 | |
| retro | +0.50 |
Monolith Column Dress
Severe black column, architectural seams and hard edges — contemporary business wear for a minimalist.
| modern | +0.90 | |
|---|---|---|
| structured | +0.90 | |
| edgy | +0.80 | |
| minimalistic | +0.80 | |
| business | +0.70 | |
| bold | +0.50 |
Laurel Wrap Dress
Fluid burgundy crepe wrap, seventies cut — softly feminine, the least formal of the business rail.
| retro | +0.80 | |
|---|---|---|
| business | +0.60 | |
| feminine | +0.60 | |
| classic | +0.50 | |
| bold | +0.40 | |
| romantic | +0.40 | |
| structured | +0.20 |
Starlet Sequin Dress
All-over gold sequins, short and loud — maximum party, the opposite of understated.
| festive | +0.95 | |
|---|---|---|
| bold | +0.90 | |
| opulent | +0.90 | |
| colourful | +0.80 | |
| minimalistic | -0.80 | |
| feminine | +0.70 |
Belvedere Velvet Gown
Floor-length emerald velvet: rich, saturated, classic gala glamour.
| festive | +0.90 | |
|---|---|---|
| opulent | +0.85 | |
| bold | +0.80 | |
| colourful | +0.80 | |
| feminine | +0.60 | |
| classic | +0.50 | |
| romantic | +0.50 |
Lune Slip Dress
Bias-cut champagne silk, no ornament — the restrained, modern way to dress up.
| festive | +0.70 | |
|---|---|---|
| modern | +0.70 | |
| minimalistic | +0.60 | |
| feminine | +0.50 | |
| romantic | +0.50 | |
| colourful | +0.30 | |
| edgy | +0.30 |
Odette Tulle Ballgown
Layered blush tulle over a full skirt — unapologetically romantic, the most opulent piece in the catalog.
| feminine | +0.95 | |
|---|---|---|
| festive | +0.95 | |
| opulent | +0.95 | |
| minimalistic | -0.90 | |
| romantic | +0.90 | |
| classic | +0.60 | |
| bold | +0.50 | |
| colourful | +0.30 |
Harbour Shirt Dress
Crisp sky-blue cotton, collar and buttons — plain, practical everyday wear.
| casual | +0.90 | |
|---|---|---|
| minimalistic | +0.60 | |
| structured | +0.40 | |
| classic | +0.30 | |
| colourful | +0.30 |
Sunday Tee Dress
Grey jersey cut like a long t-shirt — the most stripped-back, fuss-free thing on the rail.
| casual | +0.95 | |
|---|---|---|
| minimalistic | +0.85 | |
| modern | +0.50 | |
| edgy | +0.40 |
Meadow Smock Dress
Loose sand linen smock, ankle length — easy bohemian summer wear.
| casual | +0.85 | |
|---|---|---|
| bohemian | +0.80 | |
| minimalistic | +0.50 | |
| feminine | +0.40 | |
| romantic | +0.20 |
Primrose Tea Dress
Rose floral print, forties silhouette — nostalgic and feminine, the dressiest piece on the casual rail.
| retro | +0.90 | |
|---|---|---|
| feminine | +0.80 | |
| romantic | +0.70 | |
| casual | +0.60 | |
| classic | +0.60 | |
| colourful | +0.60 | |
| bohemian | +0.40 | |
| bold | +0.40 |
Carter Belted Shirt Dress
Camel cotton shirt dress with a collar, buttons and a self belt — practical, classic office wear.
| business | +0.70 | |
|---|---|---|
| classic | +0.60 | |
| structured | +0.50 | |
| minimalistic | +0.40 | |
| casual | +0.30 |
Chancery Pencil Dress
Navy pinstripe pencil dress with sharp shoulders — traditional, structured power dressing.
| business | +0.90 | |
|---|---|---|
| classic | +0.80 | |
| structured | +0.80 | |
| bold | +0.30 | |
| retro | +0.30 |
Juniper Satin Dress
Emerald satin, softly draped — elegant evening wear, romantic without the frills.
| festive | +0.80 | |
|---|---|---|
| feminine | +0.70 | |
| romantic | +0.60 | |
| colourful | +0.50 | |
| opulent | +0.50 | |
| classic | +0.40 |
Flamingo Feather Mini
Blush mini with a feather hem — playful, glamorous party wear.
| festive | +0.90 | |
|---|---|---|
| feminine | +0.80 | |
| bold | +0.70 | |
| opulent | +0.70 | |
| minimalistic | -0.60 | |
| romantic | +0.50 | |
| colourful | +0.40 |
Fenna Knit Dress
Grey rib-knit jumper dress — warm, simple, made for the weekend.
| casual | +0.90 | |
|---|---|---|
| minimalistic | +0.70 | |
| modern | +0.40 | |
| classic | +0.20 |
Rowan Pinafore Dress
Indigo denim pinafore with patch pockets — utilitarian and a little playful.
| casual | +0.85 | |
|---|---|---|
| edgy | +0.40 | |
| retro | +0.40 | |
| structured | +0.30 | |
| bold | +0.20 |
Trousers
18 products, scored in the weights shown first: how much each dimension counts for a trousers product, by the shop when it ranks and by a persona when it chooses. A dimension not listed counts for nothing here. Each product with its facets, copy and attractor: the picture, the description and the bars should all say the same thing.
Trousers
| business | ×1.23 | |
|---|---|---|
| casual | ×1.23 | |
| festive | ×1.23 | |
| structured | ×1.23 | |
| edgy | ×1.13 | |
| bohemian | ×0.94 | |
| bold | ×0.94 | |
| classic | ×0.94 | |
| minimalistic | ×0.94 | |
| modern | ×0.94 | |
| opulent | ×0.94 | |
| retro | ×0.94 | |
| romantic | ×0.94 | |
| colourful | ×0.75 | |
| feminine | ×0.66 |
Temple Pleated Trousers
Front-pleated navy wool, high waist and a pressed straight leg — classic boardroom tailoring.
| business | +0.90 | |
|---|---|---|
| classic | +0.80 | |
| structured | +0.80 | |
| minimalistic | +0.40 | |
| retro | +0.40 |
Grid Cigarette Trousers
Slim black cigarette trousers with a sharp crease and nothing else — modern, minimal, a little severe.
| modern | +0.90 | |
|---|---|---|
| minimalistic | +0.85 | |
| business | +0.80 | |
| structured | +0.80 | |
| edgy | +0.70 | |
| classic | -0.30 |
Riviera Wide-Leg Trousers
Fluid camel crepe, high waist and a wide seventies leg — softly feminine office wear.
| retro | +0.75 | |
|---|---|---|
| business | +0.60 | |
| feminine | +0.50 | |
| classic | +0.40 | |
| bold | +0.30 | |
| romantic | +0.30 |
Windsor Check Trousers
Prince of Wales check with a straight leg — traditional suiting with a little pattern.
| business | +0.80 | |
|---|---|---|
| classic | +0.75 | |
| structured | +0.70 | |
| retro | +0.50 | |
| bold | +0.30 | |
| colourful | +0.20 |
Glitterball Sequin Flares
Silver sequins head to toe, flared from the knee — seventies disco, loud and shiny.
| bold | +0.90 | |
|---|---|---|
| festive | +0.90 | |
| opulent | +0.85 | |
| minimalistic | -0.70 | |
| colourful | +0.60 | |
| retro | +0.60 | |
| feminine | +0.40 |
Palermo Velvet Palazzo
Plum velvet palazzo, wide and floor-sweeping — rich, romantic evening wear.
| festive | +0.85 | |
|---|---|---|
| opulent | +0.80 | |
| feminine | +0.70 | |
| colourful | +0.60 | |
| romantic | +0.60 | |
| bold | +0.50 | |
| classic | +0.30 |
Soirée Tuxedo Trousers
Black tuxedo trousers with a satin side stripe — sharp, modern eveningwear.
| festive | +0.70 | |
|---|---|---|
| modern | +0.70 | |
| structured | +0.70 | |
| edgy | +0.50 | |
| minimalistic | +0.50 | |
| classic | +0.30 |
Medici Brocade Trousers
Gold brocade, slim and cropped above the ankle — ornate fabric on a sharp line.
| festive | +0.80 | |
|---|---|---|
| opulent | +0.70 | |
| bold | +0.60 | |
| colourful | +0.50 | |
| structured | +0.50 | |
| classic | +0.30 | |
| retro | +0.30 |
Mile Straight Jeans
Mid-blue denim, straight leg, five pockets — the everyday default.
| casual | +0.90 | |
|---|---|---|
| classic | +0.50 | |
| minimalistic | +0.50 | |
| structured | +0.40 |
Haven Joggers
Grey jersey joggers with a drawstring and cuffs — comfort first, the opposite of dressed up.
| casual | +0.95 | |
|---|---|---|
| minimalistic | +0.85 | |
| modern | +0.60 | |
| opulent | -0.50 | |
| edgy | +0.40 |
Dune Linen Trousers
Loose olive linen, drawstring waist and a relaxed wide leg — easy bohemian summer wear.
| casual | +0.85 | |
|---|---|---|
| bohemian | +0.80 | |
| minimalistic | +0.40 | |
| feminine | +0.30 | |
| romantic | +0.20 |
Field Cargo Trousers
Khaki cotton cargos with patch pockets and a utility cut — practical and a bit tough.
| casual | +0.80 | |
|---|---|---|
| edgy | +0.60 | |
| structured | +0.50 | |
| modern | +0.40 | |
| bold | +0.30 |
Atrium Wide-Leg Trousers
Charcoal wool, high waist and a crisp wide leg with a sharp crease — modern tailoring.
| business | +0.80 | |
|---|---|---|
| modern | +0.70 | |
| structured | +0.70 | |
| minimalistic | +0.60 | |
| edgy | +0.30 |
Ledger Suit Trousers
Navy suiting with a pressed crease and a straight leg — classic and dependable.
| business | +0.85 | |
|---|---|---|
| classic | +0.80 | |
| structured | +0.75 | |
| minimalistic | +0.30 |
Lola Velvet Flares
Burgundy velvet, flared from the knee — seventies glamour for the evening.
| festive | +0.85 | |
|---|---|---|
| opulent | +0.75 | |
| retro | +0.70 | |
| bold | +0.60 | |
| colourful | +0.50 | |
| feminine | +0.50 | |
| romantic | +0.40 |
Gala Cigarette Trousers
Champagne satin cigarette trousers with a crease — sleek, minimal evening wear.
| festive | +0.70 | |
|---|---|---|
| modern | +0.70 | |
| minimalistic | +0.60 | |
| feminine | +0.40 | |
| edgy | +0.30 |
Canyon Corduroy Trousers
Camel corduroy with a wide, soft leg — retro and easy-going.
| casual | +0.85 | |
|---|---|---|
| retro | +0.60 | |
| bohemian | +0.50 | |
| classic | +0.30 |
Sprint Track Pants
Black jersey track pants with a side stripe and cuffs — sporty, minimal, fuss-free.
| casual | +0.90 | |
|---|---|---|
| minimalistic | +0.80 | |
| modern | +0.60 | |
| edgy | +0.50 |
Home Decoration
18 products. The weights below are what the department looks at: the base its categories start from. Each category then overrides where it differs, keeps only the dimensions its own products carry, and is scaled to average ×1.
Home Decoration
| cozy | ×1.30 | |
|---|---|---|
| industrial | ×1.30 | |
| natural | ×1.30 | |
| bohemian | ×1.00 | |
| classic | ×1.00 | |
| minimalistic | ×1.00 | |
| modern | ×1.00 | |
| bold | ×0.80 | |
| colourful | ×0.80 | |
| opulent | ×0.80 | |
| retro | ×0.80 | |
| romantic | ×0.80 | |
| edgy | ×0.60 |
Cushions
6 products, scored in the weights shown first: how much each dimension counts for a cushions product, by the shop when it ranks and by a persona when it chooses. A dimension not listed counts for nothing here. Each product with its facets, copy and attractor: the picture, the description and the bars should all say the same thing.
Cushions
| cozy | ×1.66 | |
|---|---|---|
| natural | ×1.45 | |
| bohemian | ×1.03 | |
| classic | ×1.03 | |
| colourful | ×1.03 | |
| minimalistic | ×1.03 | |
| romantic | ×1.03 | |
| bold | ×0.83 | |
| opulent | ×0.83 | |
| retro | ×0.83 | |
| edgy | ×0.62 | |
| modern | ×0.62 |
Boudoir Velvet Cushion
Plum velvet with gold tassels — plush, romantic and a little theatrical.
| opulent | +0.85 | |
|---|---|---|
| romantic | +0.70 | |
| colourful | +0.60 | |
| minimalistic | -0.60 | |
| cozy | +0.50 | |
| classic | +0.30 |
Fireside Knit Cushion
Cream cable knit, soft and heavy — traditional comfort for the armchair.
| cozy | +0.90 | |
|---|---|---|
| classic | +0.70 | |
| natural | +0.40 | |
| retro | +0.30 |
Driftwood Linen Cushion
Sand washed linen, no trim at all — plain, natural and easy.
| natural | +0.85 | |
|---|---|---|
| minimalistic | +0.75 | |
| bohemian | +0.40 | |
| cozy | +0.30 |
Zigzag Print Cushion
Mustard and black geometric print — graphic, bold, a nod to the seventies.
| bold | +0.80 | |
|---|---|---|
| colourful | +0.70 | |
| modern | +0.60 | |
| retro | +0.60 | |
| edgy | +0.30 |
Cloud Bouclé Cushion
Cream bouclé, nubby and soft — cozy, and quietly modern.
| cozy | +0.85 | |
|---|---|---|
| minimalistic | +0.50 | |
| modern | +0.40 | |
| natural | +0.30 |
Posy Embroidered Cushion
Rose cotton with embroidered floral sprays — romantic and a little retro.
| romantic | +0.70 | |
|---|---|---|
| colourful | +0.60 | |
| retro | +0.60 | |
| classic | +0.40 | |
| cozy | +0.40 |
Lamps
6 products, scored in the weights shown first: how much each dimension counts for a lamps product, by the shop when it ranks and by a persona when it chooses. A dimension not listed counts for nothing here. Each product with its facets, copy and attractor: the picture, the description and the bars should all say the same thing.
Lamps
| industrial | ×1.50 | |
|---|---|---|
| natural | ×1.30 | |
| classic | ×1.20 | |
| modern | ×1.20 | |
| bohemian | ×1.00 | |
| cozy | ×1.00 | |
| minimalistic | ×1.00 | |
| bold | ×0.80 | |
| opulent | ×0.80 | |
| retro | ×0.80 | |
| romantic | ×0.80 | |
| edgy | ×0.60 |
Archive Brass Table Lamp
Polished brass with a pleated shade — classic, warm library light.
| classic | +0.90 | |
|---|---|---|
| cozy | +0.50 | |
| modern | -0.50 | |
| opulent | +0.40 | |
| retro | +0.40 |
Halden Concrete Pendant
Raw concrete pendant on a black cord — industrial, severe and modern.
| industrial | +0.90 | |
|---|---|---|
| modern | +0.85 | |
| minimalistic | +0.75 | |
| edgy | +0.60 | |
| classic | -0.40 |
Bali Rattan Floor Lamp
Woven rattan shade on a tall stand — natural, bohemian, soft evening light.
| natural | +0.90 | |
|---|---|---|
| bohemian | +0.85 | |
| cozy | +0.40 |
Versailles Crystal Lamp
Cut crystal base under a silk shade — glamorous, romantic, made to sparkle.
| opulent | +0.95 | |
|---|---|---|
| romantic | +0.75 | |
| minimalistic | -0.70 | |
| bold | +0.50 | |
| classic | +0.40 |
Meridian Arc Floor Lamp
Black steel arc floor lamp with a dome shade — modern, graphic, a little industrial.
| modern | +0.85 | |
|---|---|---|
| industrial | +0.60 | |
| minimalistic | +0.60 | |
| edgy | +0.40 | |
| bold | +0.30 |
Grove Ceramic Table Lamp
Olive glazed ceramic base under a linen shade — natural, calm and homely.
| natural | +0.70 | |
|---|---|---|
| cozy | +0.60 | |
| classic | +0.30 | |
| minimalistic | +0.30 |
Vases
6 products, scored in the weights shown first: how much each dimension counts for a vases product, by the shop when it ranks and by a persona when it chooses. A dimension not listed counts for nothing here. Each product with its facets, copy and attractor: the picture, the description and the bars should all say the same thing.
Vases
| colourful | ×1.34 | |
|---|---|---|
| industrial | ×1.34 | |
| natural | ×1.34 | |
| bold | ×1.13 | |
| bohemian | ×1.03 | |
| classic | ×1.03 | |
| minimalistic | ×1.03 | |
| modern | ×1.03 | |
| opulent | ×0.83 | |
| retro | ×0.83 | |
| romantic | ×0.83 | |
| cozy | ×0.62 | |
| edgy | ×0.62 |
Kiln Stoneware Vase
Hand-thrown stoneware with a raw foot — natural, quiet and minimal.
| natural | +0.85 | |
|---|---|---|
| minimalistic | +0.70 | |
| cozy | +0.20 | |
| modern | +0.20 |
Obsidian Glass Vase
Smoked black glass cylinder — sharp, modern, with an industrial edge.
| modern | +0.85 | |
|---|---|---|
| minimalistic | +0.80 | |
| edgy | +0.60 | |
| industrial | +0.40 |
Canton Ginger Jar
Blue and white porcelain with a lid — classic, traditional, a little old-fashioned.
| classic | +0.95 | |
|---|---|---|
| modern | -0.60 | |
| retro | +0.50 | |
| colourful | +0.30 |
Carnevale Murano Vase
Swirled Murano glass in rose and amber — loud, colourful and ornate.
| colourful | +0.90 | |
|---|---|---|
| bold | +0.80 | |
| opulent | +0.60 | |
| minimalistic | -0.50 | |
| retro | +0.40 |
Coupe Fluted Vase
Champagne fluted glass — elegant and romantic, it catches the light.
| opulent | +0.60 | |
|---|---|---|
| romantic | +0.60 | |
| classic | +0.50 |
Sienna Terracotta Vase
Earthy terracotta with a raw foot — rustic, natural and bohemian.
| natural | +0.80 | |
|---|---|---|
| bohemian | +0.70 | |
| cozy | +0.40 | |
| retro | +0.20 |
Products
There are 18 dresses and 18 pairs of trousers, six of each per occasion, and 18 home decoration pieces, six per category. Several products in each section suit each persona, so a shopper has real alternatives to choose between. Names are shop-style, an invented model name plus what the product is (Halden Concrete Pendant, Odette Tulle Ballgown); the description, not the name, says what taste it serves.
catalog.All() // []catalog.Item, all 54
catalog.Fashion() // dresses then trousers
catalog.HomeDecoration() // cushions, lamps, vases
catalog.Dresses() // one categoryCategory tree
The GA4 category path carries the whole branch, e.g. Women's Fashion > Trousers > Business > Ankle. Dresses come in mini, midi and maxi, and trousers in cropped, ankle and full; home pieces stop at the category, Home Decoration > Lamps. Item.Category, Item.Occasion and Item.Length read the facets back out of the path rather than storing them twice.
Categories are where products are offered: entry points to browse and choose from, not a signal about the shopper. What the shopper selects, views and buys is the signal. How the shop lists them is the shop's business.
Dimensions
One personalization.Vector carries taste across every category, in the dimensions of pkg/internal/mock/taste (taste.Business, taste.Cozy …). The vector is sparse: an item carries only the dimensions that describe it. Dresses and trousers speak largely the same dimensions, so taste carries between them. Home decoration shares some (modern, classic, minimalistic, bohemian, opulent, romantic, retro, edgy, bold, colourful), never uses the fashion-only ones (business, festive, casual, feminine, structured) and adds its own (cozy, natural, industrial). So what the shop learns from clothes reaches the home department only through what the two share, and the rest is learned from home picks.
Weights and Score
Every product is scored in its own category's weights: catalog.Score(taste, item) is the weighted dot product of a taste and the item's attractor under catalog.CategoryWeights(item.Category()). It is the one scorer the shop ranks with and the personas choose by. Each department states what it looks at, and each category overrides only where it differs. A category then looks only at the part of the vector space its own products speak: no cushion is industrial, so cushions don't weigh industrial, whatever home decoration does. The exhibit above shows every department's base weights and every category's own, next to its products; Personalization explains how they are scaled.
Images
Every product draws its own picture: Item.SVG(), written to pkg/internal/mock/testdata/images (dress_01.svg, trousers_01.svg, home_01.svg …) with the fixtures. Nothing is drawn per id. A dress hangs on a shoulder hanger: its hem comes from its length, its waist, flare, sleeves and neckline from its attractor. Trousers hang from a clip hanger: the leg length comes from the length facet, the leg width from the attractor (palazzo wide, cigarette tapered). Colour comes from the variant, and the fabric finish (sequins, velvet, silk, tulle, print, check, brocade, denim, pleats, pockets) from the material the description names. Home pieces stand on their own: the shape comes from the category, the form from the copy (a pendant hangs, a ginger jar has its lid) and so does the finish (tassels, cable knit, a pleated shade, swirled glass). Change the data and the picture follows.
