AIWF All articles
Practical Guides

Your Trolley, Rewritten: When the Supermarket's Algorithm Does the Choosing

AIWF
Your Trolley, Rewritten: When the Supermarket's Algorithm Does the Choosing

Order placed at 9.14pm on a Tuesday: forty-two items, one slot, £96.40. By six the next evening the bags contain thirty-nine of them, a tub of creme fraiche nobody requested, and an apologetic note explaining that the chicken is unavailable.

This is now an entirely ordinary British shopping experience, and most of it is fine. But the machinery behind the substitutions, the vanishing items and the delivery price that read £4.99 while you filled your basket and £6.49 at checkout deserves ten minutes of your attention. Not because it is sinister. Because you are the only person in the transaction who has not been told what the system is optimising for.

Three systems wearing one app

People talk about 'the supermarket algorithm' as if it were a single brain. It is at least three, and they want different things.

The first is forecasting: how many units of each line each store or dark store should hold, given weather, payday, school holidays and last week's sales. Get it wrong and you get gaps on the shelf — which becomes your problem at the pick.

The second is the substitution engine, which decides what goes in the bag when the exact item is not there. It is usually scoring candidates on pack size, category similarity, shelf life and what is physically nearby in the aisle.

The third is pricing and slot management, which decides what delivery costs at 8pm on a Sunday versus 11am on a Wednesday, and sometimes nudges offers at you based on how you shop.

None of them was built to know that your nine-year-old will not eat capers.

What the substitution engine is really solving for

Retailers publish 'substitution policies', and they differ meaningfully. Some promise to charge you the price of the item you ordered if the replacement costs more. Others charge what you actually receive. Some allow you to mark individual items 'no substitutes'. Others bury that toggle three taps deep.

What the engine is usually chasing is fill rate — the proportion of ordered lines that arrive in some form — because fill rate correlates with customer satisfaction and with basket value. A substitute keeps the basket whole. A refund shrinks it. That is a reasonable commercial goal, and it also explains why you occasionally receive a premium version of something you ordered cheaply, and why you sometimes receive something baffling from a nearby shelf.

The price can move between basket and checkout

Two separate things get muddled here.

Slot pricing that varies by demand is not unlawful. Charging more for a popular Christmas Eve slot is the same logic as an off-peak train fare. What matters is that the price you are shown is the price you pay, and that fees you cannot avoid are included up front. The consumer provisions of the Digital Markets, Competition and Consumers Act 2024, whose enforcement regime went live in 2025, tightened the rules on drip pricing and gave the Competition and Markets Authority the power to fine firms directly rather than haul them through court.

Personalised pricing — different prices for different shoppers for the same item — is a murkier area. It is not banned outright, but it has to be done without misleading you, and the regulator has been openly wary of it. If you want to know whether it is happening to you, that is a subject access request under the UK GDPR, and you are entitled to a copy of your personal data plus meaningful information about the logic involved.

Also worth a glance: unit pricing. The price per 100g or per litre is the honest comparison, not the flashy 'was £3.50' sticker.

What the law actually gives you

The Consumer Rights Act 2015 says goods must be as described, of satisfactory quality, and fit for purpose. A substitute that is nothing like what you ordered is arguably not 'as described' — but in practice you will be dealing with the retailer's own policy, because the fastest resolution is always the one they have already written down.

The Consumer Contracts Regulations 2013 give you 14 days to cancel a distance sale, but fresh food and anything liable to deteriorate is exempt. So your cancellation right will not rescue a warm bag of prawns. What does the work instead is the industry norm: near-universal refunds on missing and substituted items, usually processed within a few days.

Beyond that, Part 2 of the 2015 Act requires terms to be fair and transparent, and Trading Standards can act on misleading pricing. Citizens Advice is the practical front door for a complaint that goes nowhere.

The doorstep decision

You do not have to accept a substitution. Hand it back to the driver if you are there, and ask for it to be removed from the bill. If it has already been charged, ask for a refund rather than a voucher — vouchers expire, cash does not.

Screenshot the order confirmation before delivery. It is the only record of what you asked for, and the app tends to update itself quietly afterwards.

Questions worth putting to your supermarket

Five questions, one chat window, and a much better sense of who is doing the choosing. Your trolley is yours. It is worth reminding the software occasionally.

All Articles

Related Articles

Before You Wrap It: A Parent's Field Guide to AI Toys

Before You Wrap It: A Parent's Field Guide to AI Toys

The Payment That Hit a Wall: Challenging an AI Fraud Hold at Your UK Bank

The Payment That Hit a Wall: Challenging an AI Fraud Hold at Your UK Bank

Who Read Your Symptoms First? The Quiet Triage Behind an Online Prescription

Who Read Your Symptoms First? The Quiet Triage Behind an Online Prescription