All work

Recommenders & RankingEuropean B2B wholesale group

An experimentation audit that caught A/B tests running as A/A

An evidence-based audit of a live recommender experimentation stack found the planned A/B tests were running as A/A tests. Once fixed, four live experiments launched on verified data.

live model experiments launched on a verified stack
4
sessions joined to customers with no one-to-many violations
~615K
executed warehouse jobs analyzed over three weeks
87

The problem

A B2B wholesale storefront lets customers request alternative products when an item is unavailable or does not meet their needs. The recommender behind it, a Prod2Vec model, learns product embeddings from co-view sessions and retrieves substitutes as nearest neighbors. New hyperparameter experiments were about to launch across Germany, France, Poland and Romania. A sound model is not enough if traffic allocation, exposure logging or downstream metrics are unreliable: experiments can then produce plausible but invalid results.

What was built

The team audited the experimentation stack from evidence, not documentation. It analyzed 87 warehouse jobs that the experimentation platform had executed over three weeks, reduced them to 21 distinct query patterns, and reconstructed each metric from the underlying assignment, session, impression, interaction, purchase and revenue data.

The audit covered four areas:

  • Treatment routing: which model alias each arm was served
  • Data lineage and joins across customers, sessions and events
  • Funnel integrity from impression to interaction to purchase
  • Statistical validity: allocation balance, sample-ratio mismatch, contamination

Inspecting the model aliases in served responses exposed the critical fault. The experiments had been cloned from an A/A configuration and the treatment alias had not been updated, so both arms received the same production model while the interface still showed two arms. The team corrected the configurations in all environments, reset start times to exclude the invalid traffic, and added a pre-launch assertion that the two aliases must differ.

Results

Four live model experiments launched on a verified measurement stack with documented limitations. Approximately 615,000 sessions joined to customers with no one-to-many violations, the funnel contained no orphan events, and three country-level A/A tests produced balanced conversion rates. Without the routing fix, the experiments would likely have reported no measurable treatment effect. The audit also named the main remaining risk, post-treatment selection: the analysis table included only customers who opened the alternatives panel, approximately 2–5% of assigned traffic.

Where it applies

The same audit fits organizations that already run recommendation or ranking experiments and need confidence that assignment, exposure, attribution and reported uplift reflect customer behavior, not hidden infrastructure or measurement defects.

Delivered by Peak AI’s engineers, including in roles held before Peak AI. The organization is described rather than named, and sensitive details are left out.

Have a POC that needs to become a product?

Tell us what you are shipping. You will talk to the engineers who would build it.