Editorial Article
The Date Code Is a Legal Document: What a Grocery Markdown System Is Not Allowed to Do
Two yoghurts sit on the same shelf with two different labels. One carries a “use by” date, the other a “best before”. They look interchangeable and they are not: in the European Union the first may not be sold after the date printed on it under any circumstances, while the second may be sold afterwards, marked down, and in some member states given away. Almost everything the grocery markdown industry does sits inside that distinction, and almost none of the industry’s marketing mentions it.
The rules around perishable stock are written for labels, hygiene and consumer protection rather than for algorithms, and the fit between them and a system that reprices several thousand items an hour is poor. That is not a reason to expect the rules to change. It is the reason the market is structured the way it is: a markdown engine is only as portable as its library of local rules, and building that library is work a retailer’s own data team does not want to do in twelve jurisdictions.
Two dates, two entirely different businesses
Regulation (EU) No 1169/2011 on food information to consumers draws the line. A ‘use by’ date is a safety date: food past it is presumed unsafe and must not be placed on the market, which means it cannot be marked down, donated for human consumption or sold through a surplus app. A ‘best before’ date is a quality date: food past it may still be sold, subject to national conditions, and is fully markdownable. The UK’s Food Information Regulations 2014 preserve the same split after Brexit. Cold-chain law does the rest: Regulation (EC) No 852/2004 requires temperature control through the chain, which is why the temperature record is a compliance document and not merely an optimisation input.
Anyone who has watched a markdown system fail will recognise the failure mode this creates. The model needs to know, per item, which kind of date it is holding. When that attribute is missing or wrong in the item master, the system does not produce a legally compliant discount — it produces a proposal to sell unsafe food. In practice this is caught by the store colleague who knows better, which is exactly the human judgement the system was bought to replace.
The United States is the mirror image. There is no federal requirement for date labels on most foods — the mandatory case is infant formula — so date labelling is largely voluntary, standardised by industry convention rather than statute, and varies by state. A markdown model trained on European date discipline and deployed in the United States is operating in a regime with far fewer hard prohibitions and far less consistency in the underlying data. The compliance risk falls; the data quality risk rises. Neither is obviously easier to manage.
| Instrument | What it requires | What it forces the software to do |
|---|---|---|
| Regulation (EU) No 1169/2011; UK Food Information Regulations 2014 | ‘Use by’ stock may not be sold after the date; ‘best before’ stock may | Block markdown proposals on use-by stock; hold date type per SKU |
| Regulation (EC) No 852/2004 | Temperature control across the cold chain | Ingest and retain transit and cabinet temperature history |
| Waste Framework Directive 2008/98/EC | Waste hierarchy: prevention, then redistribution, then recovery | Evidence that prevention was attempted before disposal is recorded |
| France, LOI n° 2016-138 (‘loi Garot’) | Supermarkets above 400 m² must offer unsold food to donation partners | Route stock to a named partner before disposal, with an audit trail |
| Italy, Legge 166/2016 (‘Gadda’) | Simplified donation and waste-reduction incentives | Document donated volumes for the fiscal benefit |
| US Bill Emerson Good Samaritan Food Donation Act | Liability protection for good-faith donation | Record condition at donation to preserve the protection |
| Directive 2005/29/EC, as amended by (EU) 2019/2161 | Reference-price rules for any advertised reduction | Hold prior-price history; suppress claims that breach the reference rule |
| UK Digital Markets, Competition and Consumers Act 2024 | Price transparency and unit-pricing duties | Keep price and unit price consistent through every markdown |
| Regulation (EU) 2016/679 (GDPR); Regulation (EU) 2024/1689 (AI Act) | Lawful basis for loyalty data; transparency in automated decisions | Separate basket data from personal data; document the model’s role |
The donation obligation changes what “the alternative” means
Most markdown economics is framed as a choice between a discount and a bin, with the bin costing nothing but the goods. In France that framing is wrong. Since the 2016 loi Garot, supermarkets above 400 square metres must have agreements with donation organisations covering unsold food still fit for consumption. The alternative to a donation is not a disposal; it is a breach. That single change moves the donation path inside the markdown engine, because the system now has to prove it routed stock to a named partner before it recorded a write-off — and it has to do so in a form that survives an inspection.
Italy took the incentive route instead. Legge 166/2016 simplified donation and attached fiscal benefits to it, which produces a different software requirement: not an obligation to route, but a requirement to document donated volume in a form a tax position can rest on. The United States relies on neither obligation nor incentive but on liability protection through the Bill Emerson Good Samaritan Food Donation Act, which is why American donation programmes live or die on the condition record rather than on the routing logic. Three jurisdictions, three different reasons for the same data field.
Above all of this sits the EU’s Waste Framework Directive and its hierarchy, which puts prevention before redistribution and redistribution before recovery. That ordering is not decorative: it establishes the sequence a retailer is expected to have attempted, and therefore the evidence a system has to hold. A markdown engine that records a disposal without recording the markdown that preceded it has documented a failure of the hierarchy rather than an unavoidable loss.
The pricing rules constrain depth, not just presentation
The part of this that surprises vendors is that consumer-protection law reaches into the discount itself. The reference-price regime codified in Directive (EU) 2019/2161 requires that an advertised reduction be anchored to a defined prior price, which is a live problem for a system generating hundreds of price points a day and pushing some of them to a shelf-edge display. The UK’s Digital Markets, Competition and Consumers Act 2024 tightened the same territory with unit-pricing and drip-pricing duties that a markdown engine must not break in passing. In the United States, the Federal Trade Commission’s authority over deceptive pricing under Section 5 of the FTC Act and a patchwork of state rules apply to the same claim.
And then there is the floor. In France, the prohibition on resale below cost in the commercial code admits only a narrow exception around short-dated stock — narrow enough that the acceptable minimum price for a product on the last day of its life is a legal question before it is an optimisation question. A model that recommends a 70% discount on a low-margin line without knowing the jurisdiction’s floor is not being aggressive; it is being non-compliant. This is precisely the kind of constraint that an in-house build discovers late and expensively.
Why heterogeneity is a moat rather than a drag
None of these rules requires an approval to sell markdown software. The constraint lands on the retailer’s use of the system, market by market, and is checked in an audit rather than at a gate — which is why Pheonix classifies this market as compliance-driven with high regulatory complexity rather than as licensing-based. But complexity has a commercial consequence all the same: the vendors that win cross-border accounts are the ones maintaining rule libraries per jurisdiction, and that maintenance is a fixed cost that favours scale. It is one reason the category has been consolidating upward, and one reason a large chain’s in-house build tends to stall at the second country.
The hardware and packaging layers are where the rules touch physical execution. A shelf-edge network from VusionGroup or Zebra Technologies has to carry a price that satisfies the reference rule, a unit price that satisfies the transparency duty and, increasingly, a date indication that satisfies the labelling regime. The shift toward packaging that carries a shelf-life signal is partly a technology trend and partly a regulatory one, and the same sensors that support a temperature record under hygiene law support the remaining-life input the markdown model needs. The two requirements point at the same hardware.
Where the rules reach the software directly, the pressure falls on the suites that already hold the price file — Oracle and SAP among them — because a reference-price rule is trivial to satisfy if you already own the price history and impossible to satisfy if you do not. Chains with the scale to negotiate their own terms, such as Ahold Delhaize and Tesco, end up specifying jurisdictional behaviour in the contract rather than buying it off the shelf. That is a compliance cost that shows up as commercial advantage for the buyer with enough stores to make the specification worth writing.
The standard that is missing
The one piece of regulation the category genuinely needs is not more regulation. It is standardisation: a common machine-readable form for a date code and the shelf life attached to it, so that a case can arrive at a store carrying its own remaining-life record rather than a nominal date interpreted by a receiving clerk. Today that information is exchanged in a patchwork of supplier-specific formats, which is why sensor and IoT deployments produce records the pricing model often cannot consume.
Until that exists, the market’s compliance burden stays where it is: in per-country rule libraries and in the reconciliation between a markdown engine and a returns and disposition process that is governed by a different set of consumer rights entirely. The full instrument-by-instrument picture, and what it does to market value between now and 2033, is set out in Pheonix Research’s report on the global grocery perishable markdown and shrink management market; the economics of why a compliant markdown is also the more profitable one are set out in the companion piece on grocery’s missing P&L line.
