1. The Problem with Floating-Point Compliance
In traditional software using standard IEEE 754 double-precision floating-point numbers, simple arithmetic like0.1 + 0.2 yields 0.30000000000000004. When dealing with strict regulatory boundaries—such as the20.00 Wh single-cell limit or the 100.00 Wh battery pack cap—a tiny rounding discrepancy can trigger false rejections or incorrect classifications during automated intake audits.
To solve this, our calculation engine operates entirely with fixed-point integer arithmetic (scaled to 1/1,000 precision). All voltages, milliampere-hours, and Watt-hours are represented and manipulated as exact integer fractions. Zero floating-point rounding occurs in the decision pipeline.
2. Regulatory Standards Grounding
Our rulepack (v0.1.0) implements the exact decision trees specified by:
- IATA Dangerous Goods Regulations (67th Edition, 2026): Packing Instructions 965, 966, and 967 (Lithium-ion), and 968, 969, and 970 (Lithium-metal).
- US Title 49 Code of Federal Regulations (49 CFR § 173.185): Transport conditions for small lithium cells and batteries.
- UN Manual of Tests and Criteria (Part III, Subsection 38.3): Mandatory laboratory safety criteria for lithium batteries.
3. Core Threshold Evaluation Table
| Battery Chemistry | Unit Level | Section II Exemption Limit | Packaging Instruction |
|---|---|---|---|
| Lithium-Ion / Polymer | Single Cell | ≤ 20.00 Wh | PI 966 / PI 967 Section II |
| Lithium-Ion / Polymer | Battery Pack | ≤ 100.00 Wh | PI 966 / PI 967 Section II |
| Lithium-Metal Primary | Single Cell | ≤ 1.00 g ELC (Equivalent Lithium Content) | PI 969 / PI 970 Section II |
| Lithium-Metal Primary | Battery Pack | ≤ 2.00 g ELC | PI 969 / PI 970 Section II |
| Dry Cell (Alkaline / NiMH) | Any | Not regulated as lithium Class 9 | Special Provision A123 |
4. 5% Technical Specification Tolerance Audit
When a seller enters both an engraved label Watt-hour rating and nominal voltage/capacity figures, our engine computes:
If the discrepancy between declared label Wh and calculated Wh exceeds 5.0%, the engine flags a specification mismatch warning. Discrepancies often indicate that peak charging voltage (e.g., 4.2V) was mistakenly used instead of nominal working voltage (e.g., 3.7V), which is a common cause of Amazon compliance audit rejections.
5. Listing Risk Keyword Scanner Heuristics
Our listing scanner processes title, bullet points, and descriptions through five dangerous goods lexicons:
- Battery: Detects lithium, rechargeable, polymer, and battery indicators.
- Chemical & Solvents: Detects cleaning solutions, alcohols, and chemical compounds.
- Aerosols & Gases: Detects compressed gases, propellant sprays, and pressurized canisters.
- Flammable Materials: Detects volatile fluids and combustion hazard terms.
- Magnets: Detects strong magnetic assemblies exceeding compass deflection limits.
Crucially, the scanner implements negation window analysis. Preceding windows (up to two words, e.g. "without any battery", "no lithium") and trailing suffixes (e.g. "battery-free") are evaluated to mark safe contexts as non-hazardous, preventing unnecessary worry for dry-goods sellers.
6. Deterministic Traceability
Every evaluation produces an immutable decision trace array detailing each rule evaluated, the input value observed, the threshold applied, and the binary pass/fail condition. There are no black-box machine-learning predictions or subjective guesses.