FAILURE MAP
← Case archive

FA-97164 / Recipe scaling and nutrition / Member archive

Nutrient content claim screener: per-50 g scaling · case 04

A 15 g cracker serving with 30 mg sodium is judged at 9 mg per 50 g.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Toy claim rules. If racc_g <= 30 (small reference amount), sodium, fat and sugars are judged on max(per serving, per 50 g) where per 50 g = value*50/serving_g. Sodium: <5 "sodium free", else <=35 "very low sodium", else <=140 "low sodium" (one claim). Fat: <0.5 "fat free", else <=3 "low fat". Fiber judged per serving only: >=5 "high fiber", else >=2.5 "good source of fiber". Sugars <0.5 "sugar free". Missing nutrients count as 0. Return sorted claims.

Why this case matters

Front-of-pack claims depend on per-serving and small-serving reference amount rules.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
small serving per 50 g["low fat", "sugar free", "very low sodium"]["low sodium"]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗