← All posts

On October 28th, Australia and New Zealand Reopened the Fight Over a Mandatory Six-Nutrient Food Score. Two of Those Six Nutrients Have No Field Anywhere in Mr Bite's Own Food Data.

FSANZ's second public consultation on making the Health Star Rating mandatory runs through December 23rd and leans on six per-100g inputs, including sodium and saturated fat. Mr Bite's own packaged-food type has no field for either, and the two places those nutrients do exist in our codebase only ever apply to one recipe source.

A front-of-package nutrition label growing a small row of stars in one corner next to six small nutrient icons, two of them drawn as faint dotted outlines instead of solid icons, warm cream background with coral and soft teal accents

On October 28th, Food Standards Australia New Zealand reopened public consultation on Proposal P1067, the plan to make the Health Star Rating mandatory on most packaged retail food in Australia and New Zealand. It’s the second round, an eight-week window instead of the usual six given how much interest the first round drew, and it runs through December 23rd. FSANZ has published the draft regulatory text, a cost-benefit impact statement, and a report on how the scoring algorithm actually performs across real products. The system itself isn’t new, it’s been sitting on shelves voluntarily since 2014, but it’s never been required, and Food Ministers are the ones who’ll eventually vote on whether that changes.

What struck me reading through it is how specific the algorithm is about what it needs. The official HSR calculator, a government-maintained spreadsheet, takes exactly six per-100g (or per-100mL) inputs: energy, saturated fat, total sugars, sodium, fibre, protein, and the percentage of fruit, vegetable, nut, or legume content. Feed it those six numbers for a product and it hands back a rating from half a star to five. It’s not a vibe, it’s arithmetic, done the same way for every product that gets fed through it.

So I went and checked what Mr Bite’s own food data could actually feed into something like that, and the answer is: not much, for the one food type almost every scan produces. PackagedFood, the type in types/index.ts that every barcode scan and every text search result resolves to, carries exactly six nutrients of its own: calories, protein, carbs, fats, fiber, sugar. No sodium field. No saturated fat field. Not unpopulated, structurally absent, there’s nowhere on the type to put either number even if we had it.

And we often do have it, just never looked for. normalizeOffProduct in openFoodFactsService.ts, the function that turns an Open Food Facts product into a PackagedFood, reads proteins_100g, carbohydrates_100g, fat_100g, fiber_100g, and sugars_100g off the product’s nutriments object. Open Food Facts’ own nutriments object also carries sodium_100g and saturated-fat_100g as standard fields, the same way it carries the ones we do read, populated for a large share of products. normalizeOffProduct never asks for either. The barcode lookup itself pulls the full product document with no fields filter, so the numbers are sitting right there in the response on every single scan. Nothing downstream was ever told to keep them.

Here’s the part that made me actually sit back: we already built the two missing fields, for a different food entirely. Recipe in that same types/index.ts carries spoonacular_sodium and spoonacular_saturated_fat, populated straight from Spoonacular’s nutrition data by spoonacularMapper.ts, and rendered as real rows, “Sat. Fat” and “Sodium,” in the nutrition breakdown on RecipePreviewScreen.tsx. It’s the identical gating Issue 41 found for the Spoonacular health score badge: the block only runs when recipe.is_spoonacular. A recipe pulled from Spoonacular gets a sodium number. A product scanned at a store, the same two nutrients the government calculator treats as non-negotiable, gets nothing, because the type that represents it was never given anywhere to hold them.

Even the search paths make this worse than an oversight. OFF_SEARCH_V2_FIELDS and OFF_SEARCH_CGI_FIELDS, the explicit field lists Mr Bite sends to Open Food Facts’ search endpoints, list out nutriments generically, so sodium and saturated fat do come back in a search hit’s raw data too. They just land in a candidate object that gets run through the same normalizeOffProduct, and vanish the same way.

I’ll say the obvious thing before anyone else does: FVNL percentage, the seventh input the calculator actually wants for most categories, doesn’t exist as a concept anywhere in this codebase either, and there’s no realistic path to it from a barcode alone. I’m not arguing Mr Bite should go build its own Health Star Rating clone by December 23rd. I’m pointing at something smaller and more fixable: four of the six inputs the Australian and New Zealand governments are about to require on a label are either missing from our own data model for the exact food type we scan most, or they exist already, gated to a third party’s recipes, sitting unused right next to the thing that needs them.

Worth noting, for anyone tempted to assume Open Food Facts could just hand the finished star rating back instead: it mostly can’t. The project’s own wiki says the rating lives as a crowdsourced label tag, not something OFF computes from the nutriments itself, and as of their last public count only a few thousand products carried it at all. Even a perfect fields request wouldn’t get you a reliable number today. The six inputs would still have to come from the nutriments object, the same six numbers, mostly, that we already know how to read and chose not to, for everything but a Spoonacular recipe.

Three Quick Bites

Three vignettes in a row: a bean sprout tangle beside a seed packet and a magnifying glass over a glowing bacterium icon, a farm fence with a pumpkin and a petting-zoo goat silhouette beside a warning triangle icon, and a folded wrap sandwich beside a question-mark icon and a closed file-folder icon, warm cream background with coral and soft teal accents

  1. The CDC declared an end on November 10th to an unusual dual outbreak, both E. coli and Salmonella, traced to alfalfa sprouts and the seeds used to grow them. Sixty-four people were infected with E. coli, ten with Salmonella, and three people with both, with illness onsets running from May 31st to October 19th; the FDA still hasn’t named the seed supplier publicly even as the outbreak closes. Food Safety News

  2. Will County, Illinois health officials are investigating a cluster of E. coli cases tied to Bengtson’s Pumpkin Farm in Homer Glen, with five lab-confirmed Shiga toxin-producing infections reported as of late October, four of the five hospitalized. The farm voluntarily closed its petting zoo on October 23rd while samples from animals, railings, and hand-washing stations went to a lab for testing; the farm itself has not been confirmed as the source. Medical Daily

  3. The FDA closed its investigation into an E. coli O157:H7 outbreak tied to ready-to-eat chicken wraps after the patient count climbed to 50, without ever naming a brand or region. Both agencies said the implicated wraps were past their expiration date and no longer sold by the time investigators traced them, which they gave as the reason the public was never told what to look for on a shelf. Food Safety News

Tool of the Week: The Health Star Rating Calculator

A spreadsheet grid icon with a column of six small nutrient icons, an energy bolt, a fat droplet, a sugar cube, a salt crystal, a fiber stalk, and a protein strand, each connected by a thin line into a single glowing star-rating icon, warm cream background with coral and soft teal accents

Since this issue is about exactly which numbers a mandatory food score actually needs, the pick this week is the free government spreadsheet that does the math in the open. The Health Star Rating Calculator, maintained by the Australian government, is a downloadable Excel tool that takes the same six per-100g inputs FSANZ’s proposal is built on and returns the star rating a product would actually get, category rules and lookup tables included, no login or submission required. It won’t tell you whether a given barcode’s data is complete enough to run through it, that’s still on whoever filled in the product page, but it’s the clearest free way to see what “mandatory” is actually going to demand of a nutrition panel. Health Star Rating Calculator

Thanks for reading. If you want a coach that’s honest about which six numbers it actually has, Mr BITE is free on iOS and Android.

Collins, building Mr BITE

← Back to all posts