Rightshold™ Sign up
Open betalive and open to everyoneEvidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

Forensic checks on anchored books

A lender deciding on a loan, a buyer of a business or a partner putting money in wants to know whether the books hold together. These checks are the tests an examiner would run on a set of books, published with their methods and thresholds, run the same way every time on records anchored with Rightshold Anchor, whose integrity and sealing dates anyone can check against the anchored roots, with results anyone can reproduce offline.

Rightshold knows something an ordinary examiner does not: when each record was actually sealed. A business's own software chains its records and sends Rightshold a signed root for every period; Rightshold countersigns each period and timestamps the day's roots in Bitcoin. So a sale dated March that first appears in a period sealed in September is visible as exactly that, and the timing tests below use it.

What this proves and what it does not

These results come from a published battery of tests that an examiner would run on a set of books, run the same way every time on the records supplied, with the method of each test stated. A test that flags raises a specific question and names the records that caused it: it is evidence for a person to weigh. The results are not an audit opinion, an assurance, a valuation or a credit decision. A clean run does not prove the numbers are true: sales that were never recorded anywhere cannot be seen, and records that were already false when they were first sealed can pass every test that compares the books with themselves. A flag is not a finding of wrongdoing; many flags have an ordinary explanation the business can give. Reconciliation to outside records is only as strong as the outside records supplied. The timing tests rely on the sealing facts supplied with the records; confirm those against the anchored roots before relying on them.

Each test answers pass, flag (a question to ask, or significant) or not applicable with the reason, when the records it needs were not supplied. A test never passes silently for lack of records. A flag names the records that caused it.

Who runs this

Rightshold and a2ally are under common ownership. a2ally builds systems for some of the businesses that use these checks. Every business is checked by the same published engine with the same published thresholds, and anyone can re-run it on the same records.

Sealing and timing

#TestWhat it doesWhat it needsDefault thresholds
1Continuity
seal.continuity
Every anchored period is listed in order. Each must carry the time it was sealed and countersigned, the anchoring chain must be reported continuous, the next period must begin no later than the day after the previous one ended, and every record must name a period that is in the list. A missing seal, a broken chain, a gap between periods or a record that names an unknown period is flagged as significant.The anchoring facts: the list of anchored periods with their sealed and countersigned times, and whether the chain is continuous.none (exact)
2Timeliness of sealing
seal.timeliness
For each anchored period, the number of whole days from the period's end to the day it was countersigned. A period countersigned more than the stated number of days after it ended is listed with its delay. A late seal widens the window in which records could have been changed before they were fixed.Anchored periods with their end dates and countersigned times.timeliness_max_days = 7
3Late-recorded entries
seal.late_entries
For each entry, its claimed date is compared with the start of the period it was actually sealed in. An entry dated more than the grace window before that period began was recorded late: a sale dated March that first appears in a period sealed in September. Late entries are counted and totalled by category, and those that raise revenue are shown separately. Late revenue at or above the stated share of total revenue makes the flag significant.Entries that name the period they were sealed in, and the anchored periods.late_entry_grace_days = 3; late_revenue_significant_bp = 500
4Corrections
seal.corrections
Every correction is matched to the entry it corrects and its effect is measured: the change in the entry's category total and in cash. Corrections are counted with their net effect per month and per category. Corrections that raise revenue or cash, and corrections sealed in the stated window before the examination date, are listed. A correction is an ordinary bookkeeping event; these are the ones a reader should ask about.Entries; corrections are optional (none recorded is a pass).correction_recent_window_days = 30
5Period-end concentration
seal.period_end
For each calendar month, the share of its revenue dated in its last days is compared with the business's own median share across all months. A month well above its own norm is flagged, and so are refunds or negative revenue entries in the first days of the next month that reverse a stated share of that period-end revenue: revenue pulled into a period and taken back after it closes.Revenue entries across at least the stated number of months.period_end_days = 3; period_end_excess_bp = 2500; period_end_min_months = 3; reversal_share_bp = 1000

Tie-outs: the books agree with themselves

#TestWhat it doesWhat it needsDefault thresholds
6Statement to entries
tie.statement_entries
For each period statement, the revenue, cost of sales and operating expenses it reports are compared with the sums of that period's entries by category, exactly, in cents, and the statement's net result is compared with revenue minus cost of sales minus operating expenses. Where the statement gives the number of invoices issued, it is compared with the count of invoice entries. Any difference is shown and flagged as significant.Period statements with at least one of these figures, and the entries for their periods.none (exact)
7Cash roll-forward
tie.cash_rollforward
For each period statement with opening and closing cash, the closing cash must equal the opening cash plus the cash entries dated in the period. Where one statement's period follows directly after another's, its opening cash must equal the previous closing cash. Differences are shown in cents and flagged as significant.Period statements with cash at start and end, and cash entries.none (exact)
8Receivables and payables roll-forward
tie.ar_ap_rollforward
Receivables at the end of a period must equal receivables at the start plus invoices issued on credit minus payments received in the period. Payables are checked the same way where the statement gives them: bills recorded on credit added, bills paid subtracted. Consecutive periods must join. Differences are shown and flagged as significant.Period statements with receivables or payables at start and end, and the entries for their periods.none (exact)
9Invoice sequence
tie.invoice_sequence
Invoice numbers are split into a prefix and a trailing number, handling zero padding; the numbering scheme found is stated. Within each prefix the numbers are checked for gaps, for numbers used more than once, and for invoices whose date is earlier than an invoice with a lower number. When the numbers are not sequential by design (too few end in digits, or they fill too little of their range) the test does not apply.At least two invoice entries with invoice numbers.invoice_min_numbered_bp = 8000; invoice_min_density_bp = 5000
10Duplicates
tie.duplicates
Three kinds: entries of the same type with the same counterparty, amount and date; one supporting document hash attached to more than one entry of the same type; and an invoice whose payments add up to more than the invoice, which is how a payment recorded twice shows. Each group found is listed. Payments recorded more than once are significant; the others are questions.Entries.none (exact)
11Supporting documents
tie.support
The share of entries, by count and by amount, that carry the hash of a supporting document, and how many of those documents were themselves sealed (they appear as sealed document records or carry a preparer's countersignature). Support below the stated share of entry value is a question; the largest unsupported entries are listed.Entries.support_min_bp = 8000

Reconciliation to outside records

#TestWhat it doesWhat it needsDefault thresholds
12Bank reconciliation
rec.bank
Cash entries in the books are matched one to one with lines from the bank's or processor's own export, account by account: the amounts must be equal and the dates within the stated window; each entry takes the closest unused line. The report gives the matched share by count and by amount, the unmatched book entries and the unmatched bank lines. Where the bank gives running balances, the books' closing cash for each statement period is compared with the bank's balance on that date. This is only as strong as the bank lines supplied.Cash entries and bank or processor lines.bank_match_window_days = 5; bank_matched_min_bp = 9500
13Deposits against revenue
rec.deposits_revenue
For each period statement, the money that reached the bank (the sum of incoming bank lines dated in the period) is compared with the revenue reported less the increase in receivables. Revenue well above what reached the bank is a question; twice the stated shortfall is significant. Deposits can include loans, owner money and transfers, so a pass here does not prove the revenue.Period statements with revenue, and bank lines dated in those periods.deposits_shortfall_bp = 1000
14Countersigned documents
rec.countersigned_documents
How many of the documents behind the records carry a preparer's countersignature on their exact bytes, and for which periods. Period statements whose document is not countersigned are listed as a question. A countersignature proves which bytes a preparer saw, never that the figures in them are right.The list of countersigned document hashes in the anchoring facts.none (exact)

Screens (statistical: a flag here is only ever a question)

#TestWhat it doesWhat it needsDefault thresholds
15First-digit distribution (Benford)
screen.benford
The first significant digit of every entry amount at or above the stated minimum is counted and compared with the distribution Benford's law predicts for naturally occurring amounts (digit 1 about 30.1%, digit 9 about 4.6%). The statistic is the mean absolute deviation, in parts per million, computed in integers against a fixed table. Above the stated bound the screen raises a question and lists entries with the most over-represented digit. Many honest books do not follow the law (fixed prices, subscriptions), so this is a screen only.At least the stated minimum number of entry amounts.benford_min_entries = 300; benford_min_amount_cents = 1000; benford_mad_ppm = 15000
16Round amounts and amounts just below levels
screen.round_amounts
The share of entries that are whole multiples of the stated round unit is measured for the whole set and for each month; a month whose share stands well above the business's own share is a question. For each stated level (such as an approval limit), amounts just below it are counted against amounts in a band of the same width at and above it; far more just below than just above is a question.Entries (months with fewer than the stated number of entries are not screened).round_unit_cents = 10000; round_excess_bp = 2000; round_min_month_entries = 10; below_threshold_levels_cents = 100000, 250000, 500000, 1000000; below_band_bp = 500; below_min_count = 5; below_ratio = 2
17Customer and vendor concentration
screen.concentration
The share of revenue from the largest counterparty and from the largest five, and the share of costs paid to the largest supplier. This is information for the reader about dependence on a few names; it is flagged as a question only when a stated share is reached. Counterparty references are never repeated in the report; only shares and the entries behind the largest one are given.Revenue entries with counterparty references.concentration_top1_bp = 5000; concentration_top5_bp = 9000
18Month-to-month breaks
screen.breaks
Monthly revenue and gross margin are compared with the median of up to the stated number of prior months. A month whose revenue departs from that median by more than the stated share, or whose margin moves by more than the stated number of points, is a question. Seasonal businesses will show breaks that have an ordinary explanation.Revenue entries across at least the stated number of months.break_min_months = 4; break_trailing_months = 6; break_revenue_bp = 5000; break_margin_bp = 1500
19Weekend postings
screen.weekend
The share of entries dated on a Saturday or a Sunday, and their total. This is information only: for many businesses weekend trading is normal, and for others it is worth a question the reader can ask.Entries.none (exact)

Run it yourself

The engine is one file with no dependencies, the same code the service runs. Engine version 1.0.0.

Put both files in one folder, then run node forensic-check.cjs records.json for plain sentences or node forensic-check.cjs records.json --json for the report. node forensic-check.cjs verify signed-report.json records.json checks Rightshold's signature on a report you were handed and re-runs the engine to the same bytes. node forensic-check.cjs bundle.json runs on an Anchor bundle, the client kit's export or a private checking room's download, with the sealing facts it carries; on a room's bundle it also checks the report the room showed, byte for byte. Node 18 or later; nothing is sent anywhere.

On the service

A business runs the checks on its own records with its account key: POST /v1/forensic-checks. Rightshold signs the result as This engine version, run on this exact input with these options, produced this report. and seals a commitment to the input and the report on the public ledger, so the business can show later that this report existed on that date and was not re-run until it looked better. GET /v1/forensic-checks/{id} returns a report to the account that ran it. Anyone handed a signed report and its records can check both with POST /v1/forensic-checks/verify, which stores nothing.

Rightshold keeps the signed report (the test results, the figures behind them and the ids of the records that raised flags), its signature, the input commitment and the time, visible only to your account. The records you send are used for the run and are not kept: only their SHA-256 commitment is. The public ledger receives only a salted commitment, the engine version and the time: no hash of your records, no figure, no record id, no counterparty and no account. The opening of that commitment (the SHA-256 of the records and of the report, and its salt) is returned to you inside the report. A report sealed earlier holds those two hashes on the ledger as they were.