AI Compliance Checks: Test Every Transaction Against Policy
Sampling 25 of 4,000 transactions misses most of them. How to turn finance policies into AI compliance checks that run on every transaction, with a rule library, SQL example and auditor evidence list.

AI compliance checks turn written finance policies into tests that run on 100% of transactions, not a sample. Let AI read receipts, invoices and policy text, but let a versioned rule make the pass or fail call. Keep the rule, the run log, the exception list and each reviewer's disposition as evidence.
Last quarter your team reviewed 25 expense reports out of 4,000. The split purchase that broke your approval limit was in one of the other 3,975. AI compliance checks let you test every transaction against policy, as long as each check is a written rule your auditor can rerun.
TL;DR: AI compliance checks turn written finance policies into tests that run on 100% of transactions, not a sample. Let AI read receipts, invoices and policy text, but let a versioned rule make the pass or fail call. Keep the rule, the run log, the exception list and each reviewer's disposition as evidence.
What are AI compliance checks in finance?
An AI compliance check is a written policy rule run as a test against every transaction, returning pass, fail or needs review, with the evidence attached. The policy might be an approval limit, a segregation-of-duties rule, a receipt requirement or a vendor payment control.
The "AI" part does two jobs that used to need a person. It reads unstructured inputs, such as receipt images, invoice PDFs and memo fields, and turns them into fields a rule can test. It can also draft a rule from your policy text for a person to approve. The pass or fail call itself should come from the approved rule, so the same data gives the same answer every time.
Full-population testing means running a test on every item in a population, such as all payments or all journal entries for a period, instead of a sample.
Why test every transaction instead of a sample?
Sampling was a cost decision. When every check meant a person opening a file, testing 25 items was what the budget allowed. When the check is a query, testing 4,000 costs about the same as testing 25.
The fraud data supports watching the whole population. The ACFE's 2024 Report to the Nations studied 1,921 occupational fraud cases. Fraud examiners estimate organizations lose 5% of revenue to fraud each year, and the median loss per case was $145,000 (ACFE, Occupational Fraud 2024: A Report to the Nations). In the same study, 45% of victim organizations had proactive data monitoring or analysis in place. Where it was in place, the median loss was $100,000 against $200,000 where it was not, and the median fraud lasted 9 months against 18.
That is a correlation in a survey of cases, not proof that analytics caused the lower losses. It is still the clearest public data on the question. Tips found 43% of cases, more than three times any other method, so analytics adds to a hotline rather than replacing it.
Auditors are moving the same way. In June 2024 the PCAOB amended AS 1105 and AS 2301 for technology-assisted analysis, effective for audits of fiscal years beginning on or after December 15, 2025. The release notes that auditors may use such analysis "to perform, after identifying such risks, substantive procedures on all items within a population" (PCAOB). The standards allow it; they do not require it. But if your auditor can analyze every transaction, your own controls should not stop at 25.
Which finance policies can you turn into transaction tests?
Most written finance policies already contain a test. The work is writing it down precisely enough that a query can run it. Here is a starting library. Thresholds are examples; use your own policy values.

- Approval limits: amount is above the approver's limit in the delegation-of-authority table. Data: payments, approvals, DOA table.
- Segregation of duties: the person who created a vendor, invoice or journal entry also approved it. Data: user IDs on create and approve events.
- Duplicate payments: same vendor, same amount and same or similar invoice number within 90 days. Data: AP invoices and payments.
- Split purchases: same employee, same merchant, same day, each item under the limit but the total over it. Data: card or expense lines.
- Missing receipts: expense above your receipt threshold with no receipt attached, or a receipt whose amount or date does not match the claim. Data: expense lines, receipt images.
- Vendor bank detail changes: a payment to a vendor within 30 days of a bank account change without a recorded call-back. Data: vendor master change log, payments.
- Manual journal entries on weekends or by unusual users: entries posted outside business days or by users who do not normally post. Data: GL entries with user and timestamp.
- Out-of-period postings: entries posted to a closed period, or with a document date outside the period. Data: GL entries, close calendar.
Several of these line up with the large fraud categories. In the ACFE data, billing schemes appeared in 22% of cases with a $100,000 median loss, and expense reimbursement schemes in 13% with a $50,000 median (ACFE 2024).
Where should AI help, and where should a rule decide?
Here is the split that keeps a check auditable:
- AI reads. It extracts the amount, date and merchant from a receipt image, reads line items from an invoice PDF, and classifies a free-text memo.
- AI proposes. It drafts a rule from your policy text ("expenses over $75 need a receipt") for a controller to approve and version.
- AI explains. It drafts a plain-language note on why an item failed, linked to the rows that caused it.
- The rule decides. The approved, versioned rule makes the pass or fail call. Same inputs, same rule version, same answer.
AI can propose a rule; only an approved rule should decide. If a model's judgment is the control, you cannot rerun it next month and get the same answer, and your auditor cannot test it. Our post on deterministic AI in accounting covers why replay matters.
Regulators draw the same line. At an Axios event in September 2026, the PCAOB's Logothetis said of audit work: "The science, the transaction part of it, can be replaced, can be done by AI," while the judgment part "requires people" (Accounting Today, September 21, 2026).
Want every flagged transaction to come with the source rows, the rule and the SQL behind it? Join the Yoraito waitlist for early access.
What does a compliance check look like in SQL?
Here is the split-purchase test from the library above, written so anyone can rerun it:
-- Rule SPLIT-01 v3: same employee, same merchant, same day,
-- each line under the $2,500 card limit, total over it
SELECT employee_id,
merchant_name,
txn_date,
COUNT(*) AS line_count,
SUM(amount) AS day_total
FROM card_transactions
WHERE txn_date BETWEEN :period_start AND :period_end
AND amount < 2500
GROUP BY employee_id, merchant_name, txn_date
HAVING COUNT(*) > 1
AND SUM(amount) > 2500;
Every run then writes one result row per flagged group. A result record looks like this:
- Rule: SPLIT-01, version 3, approved by the controller on the date it changed.
- Population: 4,112 card lines for October, tied to the card statement total.
- Run: timestamp, the user or job that ran it, and the query text used.
- Result: fail, with the three source transaction IDs and the $2,940 day total.
- Disposition: reviewer, decision (policy breach, approved exception or false positive), reason and date.
The population count matters as much as the exceptions. A test that ran on 4,112 lines when the statement shows 4,130 has a completeness gap, and that is the first thing an auditor will ask about. The figures here are illustrative.
How do you keep exceptions from burying the team?
Testing everything finds more. The first run of a new rule often flags items that are fine. Plan for that before you switch it on.

- Tune on history first. Run the rule on last quarter. Read the false positives and tighten the rule before it goes live.
- Rank by severity. A segregation-of-duties failure on a $90,000 payment comes before a missing $40 receipt.
- Set review thresholds. Decide which results need a person and which can be logged. Our guide to human-in-the-loop review thresholds covers how to set them by amount and account.
- Never suppress silently. If a recurring exception is acceptable, record an approved exception with a reason and an end date.
- Close the loop. If one rule fails the same way every month, fix the process or the policy, not the alert.
What will your auditor want to see?
If you want your auditor to rely on these checks, keep this evidence for each one:
- Rule definition: the policy it tests, the logic, the threshold and the version history with approvals.
- Completeness: the population count tied to the GL, bank or card statement for each run.
- Run log: when it ran, who or what ran it, and the exact query or rule version used.
- Exception list: every flagged item with its source rows.
- Dispositions: who reviewed each item, what they decided and why.
- Change control: who can edit rules and how changes are approved.
If AI is in the loop, add what the model read and what it extracted. Our AI audit trail checklist lists the fields, and our post on SOX controls for AI journal entries covers which controls apply when AI proposes entries.
FAQ
What is full-population testing in accounting?
Running a test on every item in a population, such as all payments or journal entries in a period, instead of a sample. It became practical once tests could run as queries on ledger data, so the cost no longer scales with the number of items.
Can AI replace sampling in an internal audit?
AI can make full-population testing practical, but the auditor still decides what to test and judges the exceptions. The checks themselves should be rules that give the same result every time they run on the same data.
What finance policies can be automated as compliance checks?
Approval limits, segregation of duties, duplicate payments, split purchases, receipt requirements, vendor bank detail changes, unusual manual journal entries and out-of-period postings are common starting points. Each needs a precise rule and the data fields to test it.
How do you handle false positives from automated compliance checks?
Run each new rule on past data and tighten it before it goes live. After that, record every dismissed item with a reason, and treat a recurring false positive as a sign that the rule or the policy needs to change.
What is the next step?
Pick one policy your team samples today, such as split purchases or approval limits. Write it as a rule, run it on last quarter's full population, and count what the sample missed. For the AP side, our accounts payable automation audit-trail checklist is a good next read. To hear when Yoraito opens up, join the waitlist.