Poland rounds VAT at the total, not per line. An invoice built with per-line rounding drifts by a cent and is rejected; the gate applies the country's policy explicitly.
Paste the canonical invoice model (JSON). The gate runs locally in this page — the same deterministic engine the agent tools call.