Correct by construction.

A ledger is useful when its numbers can be trusted as they stand. Nivium enforces its laws as close to the data as they can be held: in the types of its Rust engines, in database constraints, and in tests that prove they can fail.

The laws of the ledger.

  • Exact decimal money

    Amounts are decimals with their currency’s precision. Rounding has one rule, and its residual never lands on a control account.

  • Balanced at commit

    Debits equal credits per posting and per book, in functional and group currency, checked by the database when the transaction commits.

  • Append-only history

    Corrections are reversals, so last year’s report can always be reproduced exactly.

  • Invariants after every scenario

    The whole ledger is checked against its laws after every test scenario: balance, tie-out of subledgers to controls, and settled documents summing to zero.

  • Rules stated before code

    Every posting rule is specified in writing before it is built, and every claim the specification makes is tested, including tests deliberately broken to prove they can fail.

Every correction stays on the record.

The original entry, its exact reversal, and a net effect of zero. The trail shows what was believed, and when it changed.

A correction, as the ledger keeps itINV-2026-0412USD
EntryAccountDebitCredit
Issued Nov 31200 Accounts receivable42,000.00–
4010 Consulting revenue–42,000.00
Reversed Nov 51200 Accounts receivable(42,000.00)–
4010 Consulting revenue–(42,000.00)
Net effect1200 Accounts receivable––
4010 Consulting revenue––

The original entry stays in the books. The reversal keeps each line on its side with the amount negated, so each account nets to zero and its turnover stays true. The corrected invoice posts next to both.

Illustrative. The invoice and amounts are invented.

Controls that hold for everyone.

Segregation of duties

Whoever prepares a document cannot approve it, and whoever approves a payment cannot release it alone. The system enforces it for people and agents alike.

Approvals with authority

Ceilings by role, entity, amount and category. Delegation for absences is recorded, and so is every approval.

Periods that stay closed

Soft close, close and reopen, each by named authority with a reason that is kept.

Tenant isolation in the database

Row-level security keeps every company’s data separate in the database itself.

An evidence trail

Every posting links to its document, its rule, its approvals and its actor. Auditors read the trail directly.

Your data is yours

Every register exports in full, at any time, in open formats.

Ask us how it works.

A briefing can go as deep into the ledger’s design as your auditors would like.