Tuesday, November 24, 2026SubscribeMastheadAbout
Cali ReporterCalifornia · National · West Coast · Good News

Advertisement

Technology

Bakery Labeling and Data Modeling Challenges

Small businesses often struggle with modeling shop information due to varying update frequencies, particularly in the context of allergen labeling and food preparation schedules.

Portrait of Benjamin Boyce
Artificial Intelligence & Technology · November 20, 2026
Share

AI-generated editorial illustration from an imagined camera angle.
AI-generated editorial illustration from an imagined camera angle. Source image: dev.to.

Small businesses frequently model shop information as a single content type, which can lead to errors in labeling and scheduling. A bakery, for example, has three types of information that change at different rates: the label (name, ingredients, allergens), which changes with recipe updates; the daily bake schedule, which updates hourly; and the whole cake order, which does not exist until the customer places it (Dev.to, 2023). Treating these as one content type results in issues such as outdated allergen lists and ineffective QR codes that do not meet legal requirements. [1]

In the United States, the Food Allergen Labeling and Consumer Protection Act (FALCPA) requires that packaged food declare each major food allergen by the name of its food source. This includes nine allergens: milk, eggs, fish, crustacean shellfish, tree nuts, peanuts, wheat, soybeans, and sesame. The declaration must be on the ingredient list or in a Contains statement. Specific nuts and fish species must be named (e.g., almonds, not tree nuts) (Dev.to, 2023). [1]

In the United Kingdom, Natasha's Law (effective from October 2021) requires that food prepacked for direct sale must have the name of the food and a full ingredients list with the 14 allergens emphasized. The 14 allergens include celery, mustard, lupin, molluscs, and sulphites over 10 ppm. This is different from the U.S. system, which includes nine allergens. Loose food does not require a label, but the 14 allergens must still be available (Dev.to, 2023). [1]

QR codes are not a legal substitute for physical labels in either the U.S. or the U.K. In the U.S., the declaration must be on the label, and a QR code is not considered a permitted method. In the U.K., local authority guidance explicitly states that a QR code will not suffice for prepacked-for-direct-sale food. A QR code is also a single point of failure in a high-stakes environment, such as a customer deciding whether to buy a cake (Dev.to, 2023). [1]

Advertisement

In the United States, the Food Allergen Labeling and Consumer Protection Act (FALCPA) requires that packaged food declare each major food allergen by the name of its food source (Dev.to, 2023). The FASTER Act added sesame as the ninth major allergen, effective January 1, 2023. The nine major allergens include milk, eggs, fish, crustacean shellfish, tree nuts, peanuts, wheat, soybeans, and sesame. The declaration must appear in the ingredient list or in a Contains statement immediately after or adjacent to the ingredient list. Specific nuts and fish species must be named, such as "almonds" rather than "tree nuts". The requirement extends to retail and food-service establishments that package and label food for sale, but not to food placed in a wrapper in response to a customer's order. This distinction is a data-modelling issue, not a legal technicality, as it determines which items need a generated label and which need only an answer (Dev.to, 2023). [1]

In the United Kingdom, Natasha's Law, effective from October 2021, requires that food prepacked for direct sale must have the name of the food and a full ingredients list with the 14 allergens emphasized (Dev.to, 2023). The 14 allergens include celery, mustard, lupin, molluscs, and sulphites over 10 ppm, which may surprise those familiar with the U.S. list. Loose food, such as a loaf from a tray or a pastry the customer points at, does not need a label, but the 14 allergens must still be available. The Food Standards Agency (FSA) permits this information to be provided orally if there is clear signposting telling people to ask, and recommends written information backed by a conversation. This means the same shop may need two different artefacts for two counters, depending on the type of food being sold (Dev.to, 2023). [1]

QR codes are not a legal substitute for physical labels in either the U.S. or the U.K. In the U.S., the declaration must be on the label as well; a code is not one of the permitted methods (Dev.to, 2023). In the U.K., local authority guidance explicitly states that a QR code will not suffice for prepacked-for-direct-sale food. A QR code is also a single point of failure in the least forgiving place: a customer in a shop, holding a cake, deciding whether to buy it. It requires a charged phone, a working camera, a connection, and a shop that has not let the page go stale. A code on a bag with nothing behind the counter is exactly the single point of failure the guidance is trying to avoid (Dev.to, 2023). [1]

In the United States, the Food Allergen Labeling and Consumer Protection Act (FALCPA) requires that packaged food declare each major food allergen by the name of its food source (Dev.to, 2023). The FASTER Act expanded this requirement by adding sesame as the ninth major allergen, effective 1 January 2023. The nine major allergens include milk, eggs, fish, crustacean shellfish, tree nuts, peanuts, wheat, soybeans, and sesame. The declaration of allergens must appear in the ingredient list or in a Contains statement adjacent to the ingredient list. Specific allergens such as "tree nuts" must be named explicitly, with examples like "almonds" passing the requirement. Retail and food-service establishments that package and label food for sale are subject to these requirements, but food placed in a wrapper in response to a customer's order is not considered the same legally. This distinction highlights the need for accurate data modeling to ensure compliance with labeling laws. [1]

Advertisement

In the United Kingdom, Natasha's Law, effective from October 2021, requires that food prepacked for direct sale must have the name of the food and a full ingredients list with the 14 allergens emphasized (Dev.to, 2023). The 14 allergens include celery, mustard, lupin, molluscs, and sulphites over 10 ppm. Unlike the U.S., the UK law permits the use of oral communication for allergen information if there is clear signposting for customers to ask. However, written information is recommended. The UK's Food Standards Agency (FSA) recommends that allergen information provided digitally must have an alternative route for people who cannot use the digital version. QR codes are not legally acceptable as a substitute for physical labels in either the U.S. or the U.K., as they represent a single point of failure in critical situations. [1]

The distinction between prepacked and non-prepacked food is crucial in determining the legal requirements for allergen labeling. In the U.S., food packaged in response to a customer's order is not subject to the same labeling requirements as prepacked items. In the U.K., loose food such as a loaf from a tray or a pastry selected by a customer does not require a label, but the 14 allergens must still be available through oral or written communication. Businesses must ensure that their data models differentiate between these scenarios to avoid legal liability. QR codes are not a legal substitute for physical labels in either country, and local authority guidance in the U.K. explicitly states that a QR code will not suffice for allergen labeling requirements. [1]

In the United States, the Food Allergen Labeling and Consumer Protection Act (FALCPA) mandates that packaged food must declare each major food allergen by the name of its food source (Dev.to, 2023). This law applies to retail and food-service establishments that package and label food for sale. However, it does not cover food placed in a wrapper in response to a customer’s order. The FASTER Act, effective January 1, 2023, added sesame as the ninth major allergen, expanding the list to include milk, eggs, fish, crustacean shellfish, tree nuts, peanuts, wheat, soybeans, and sesame (Dev.to, 2023). [1]

In the United Kingdom, Natasha's Law, effective from October 2021, requires that food prepacked for direct sale must have the name of the food and a full ingredients list with the 14 allergens emphasized (Dev.to, 2023). The 14 allergens include celery, mustard, lupin, molluscs, and sulphites over 10 ppm, which differs from the U.S. list. Loose food, such as a loaf from a tray or a pastry selected by a customer, does not need a label, but the 14 allergens must still be available through oral or written communication (Dev.to, 2023). [1]

Advertisement

QR codes are not a legal substitute for physical labels in either the United States or the United Kingdom (Dev.to, 2023). In the U.S., allergen declarations must be on the label, and a QR code is not one of the permitted methods. Similarly, in the U.K., the requirement is that the particulars appear on the package or on a label attached to it, and local authority guidance explicitly states that a QR code will not suffice. Digital solutions must have an alternative route for people who cannot use the digital version, ensuring accessibility and minimizing liability (Dev.to, 2023). [1]

Sources

Dev.to

Prepared with AI assistance from the cited sources.

The Cali Reporter newsletter

The stories worth your time.

California, the country, and what comes next. Join our free newsletter for reporting that keeps you informed.

By joining, you agree to receive the Cali Reporter newsletter. Unsubscribe at any time. Privacy policy.

More in Technology

  • Modern Web Guidance 1.0 and Browser Compatibility

    Modern Web Guidance 1.0, announced by Chrome for Developers on November 10, introduces browser compatibility data to assist coding agents in building web features. The initiative emphasizes the importance of fallback…

  • Apache mod_http2 Vulnerability Detection with Nmap

    A new Nmap scripting module has been developed to detect the Apache mod_http2 vulnerability (CVE-2026-119618), addressing the challenges of identifying affected systems accurately.

  • Securing Remote Vendor Access in Industrial Networks

    Best practices for managing remote vendor access in operational technology (OT) networks emphasize controlled access points, multifactor authentication, and time-bound sessions to reduce cybersecurity risks.

Advertisement