Cached totals drift to the cent when a template recomputes only one of the three figures. The gate recomputes every total from the lines and reports the exact delta.
Paste the canonical invoice model (JSON). The gate runs locally in this page — the same deterministic engine the agent tools call.