---
name: labelguard-21cfr101
description: "Audit food product recipes or UPC/EAN barcodes against FDA 21 CFR Part 101 nutrition rounding, 2020 %DV, Atwater 20% calorie tolerance, FASTER Act Top-9 hidden allergens (including Sesame/Tahini), nutrient-content claims, and openFDA recall signals, plus render print-ready 21 CFR 101.9(d) SVG panels."
---

# LabelGuard 21 CFR 101 — Agent & Developer Skill

Flat callable FDA 21 CFR Part 101 nutrition rounding, FASTER Act Top-9 allergen detection,
21 CFR 101.54-101.62 nutrient-content claim validation, openFDA recall screening, and
print-ready 21 CFR 101.9(d) vertical Nutrition Facts SVG generation engine for CPG food
brands, co-packers, Shopify & Amazon Grocery sellers, and AI coding agents.

Zero prompt or formulation trace resale.

## Core Deterministic Capabilities

- **21 CFR 101.9(c) Rounding**: Exact Python `Decimal` `ROUND_HALF_UP` rules for Calories (`<5 -> 0`, `<=50 -> nearest 5`, `>50 -> nearest 10`), Total/Sat/Trans Fat (`<0.5g -> 0g`, `<5g -> nearest 0.5g`, `>=5g -> nearest 1g`), Cholesterol (`<2mg -> 0mg`, `2-5mg -> less than 5mg`, `>5mg -> nearest 5mg`), Sodium & Potassium (`<5mg -> 0mg`, `5-140mg -> nearest 5mg`, `>140mg -> nearest 10mg`), Carbs/Fiber/Sugars/Added Sugars/Protein (`<0.5g -> 0g`, `<1g -> less than 1g`, `>=1g -> nearest 1g`), and Micronutrients (Vitamin D, Calcium, Iron, Potassium) on the `2% / 5% / 10%` %DV ladder.
- **2020 FDA Daily Values (2,000 kcal Adult Reference)**: Fat `78g`, Sat Fat `20g`, Cholesterol `300mg`, Sodium `2,300mg`, Total Carbohydrate `275g`, Dietary Fiber `28g`, Added Sugars `50g`, Protein `50g`, Vitamin D `20mcg`, Calcium `1,300mg`, Iron `18mg`, Potassium `4,700mg`.
- **Atwater 20% Tolerance Check (`21 CFR 101.9(g)(5)`)**: Flags calorie divergence beyond 20% from `(4*Protein + 4*Carbs + 9*Fat)`.
- **FALCPA + FASTER Act Top-9 Hidden Allergen Scanner**: Detects Milk (`whey`, `casein`, `caseinate`, `ghee`, `lactose`, `lactalbumin`), Eggs (`ovalbumin`, `albumen`, `lysozyme`, `meringue`, `mayonnaise`), Fish (`anchovies`, `worcestershire`, `pollock`, `fish sauce`), Crustacean Shellfish (`shrimp`, `prawns`, `crab`, `lobster`, `krill`), Tree Nuts (`almond`, `cashew`, `walnut`, `pecan`, `pistachio`, `marzipan`, `gianduja`, `pignoli`), Peanuts (`arachis oil`, `peanut flour`), Wheat (`spelt`, `kamut`, `semolina`, `farro`, `bulgur`, `couscous`, `seitan`), Soybeans (`soy lecithin`, `tamari`, `miso`, `tvp`, plus refined soybean oil advisory), and Sesame (`tahini`, `halva`, `benniseed`, `gingelly`, `gomashio`, `sesamum indicum`).
- **21 CFR 101.54-101.62 Nutrient Claim Validator**: Deterministic pass/fail validation with CFR citations and remediation hints.
- **Print-Ready 21 CFR 101.9(d) Vertical SVG Export**: Self-contained W3C vector XML with 2020 visual hierarchy, 7pt/3pt/0.25pt bars, italic *Trans* Fat, double-indented Added Sugars, statutory footnote, and wrapped `INGREDIENTS` + bold `Contains:` block.

## Quick Invocation

### 1. Via `treg hub` (`$0.025`/verified check, `$0.00` on error/empty)

```bash
treg call labelguard-21cfr101 \
  --data '{
    "product_name": "Cheddar Sesame Crisp Crackers",
    "serving_size_label": "1 oz (28g)",
    "ingredients_text": "ENRICHED WHEAT FLOUR, CHEDDAR CHEESE (MILK, SALT), TAHINI, SUNFLOWER OIL, SEA SALT.",
    "calories": "144",
    "fat_g": "6.4",
    "sodium_mg": "203",
    "claims": "Low Sodium"
  }'
```

### 2. Via REST API (`preview_only=true` free; `preview_only=false` uses 1 credit for SVG)

```bash
curl -s -X POST https://labelguard.far31prescan.com/api/check \
  -H "Content-Type: application/json" \
  -d '{
    "preview_only": true,
    "recipe": {
      "product_name": "Cheddar Sesame Crisp Crackers",
      "serving_size_label": "1 oz (28g)",
      "ingredients_text": "ENRICHED WHEAT FLOUR, CHEDDAR CHEESE (MILK, SALT), TAHINI, SUNFLOWER OIL, SEA SALT.",
      "declared_contains": ["Milk", "Wheat"],
      "nutrients_per_serving": {"calories": 144, "fat_g": 6.4, "sodium_mg": 203}
    },
    "claims": ["Low Sodium"]
  }'
```

### 3. Via Causal Bazaar Public Card

- **Card ID**: `fda_21cfr101_nutrition_allergen_label_auditor_v1`
- **Price**: `$0.025`/call (`25,000` micros; `$0` on invalid/empty input)
- **Actions**: `check`, `check-barcode`, `check-recipe`, `render-svg`, `catalog`, `credits`, `checkout`, `self-test`

## Prepaid Creem Credit Tiers (Ready for `sync_live_creem_skus.py --live`)

- **Single SKU Rescue (`sku_labelguard_single_29`)**: `$29` one-time (1 credit + print-ready SVG)
- **5-SKU Brand Launch (`sku_labelguard_launch_99`)**: `$99` one-time (5 credits, `$19.80`/SKU)
- **Pro Monitoring (`sku_labelguard_pro_149_mo`)**: `$149`/month recurring (15 credits/mo, `$9.93`/SKU)
- **20-SKU Co-Packer Pack (`sku_labelguard_copacker_249`)**: `$249` one-time (20 credits, `$12.45`/SKU)

## Support & Compliance Scope

- **Support**: `prep@far31prescan.com`
- **Disclaimer**: Independent engineering regulatory pre-screening tooling only; does not provide legal advice, CPA firm services, or formal audit reports.
