# IntegrityCheckPanel

> Eleven continuous assertions. A failure owns the screen.

Source: https://lopifi.com/components/integrity-check-panel
Part of: Lopifi — US GAAP books on autopilot, checked by a CPA (https://lopifi.com)

---

- **Family:** Close, controls & consolidation — **See also:** `#69 TrialBalance` and `#70 CloseChecklist` in [statements](06-statements.md) — same family conceptually.
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/12-close-controls-consolidation

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/integrity-check-panel
```

## Specification

The eleven continuous assertions — entry balance, accounting equation, subledger ties, schedule ties, roll-forward continuity, cash tie, retained earnings, intercompany, numbering, period integrity, orphans.

**A failing check becomes the primary state of its surface**, not a badge in a corner. The screen's main content becomes the failure, the difference, and the investigation path.

## Rules this component obeys

Money is minor units, never floats. `null` is not `0` and neither is redacted. Negatives render in accounting parentheses with the parenthesis column reserved on both sides. Debit and credit are two columns. Per-currency decimal places. Polarity is explicit — up is not always good. Every figure states its period, entity, currency, basis and as-of.
