WorkflowLending Compliance & Fair Lending

Loan Compliance Testing

Loan compliance testing on every closed loan, each result tied to the page that proves it

See one case, screen by screen ↓
Watch with transcript →

Built forCompliance testersTesting managersFair lending officersControl owners

The Problem Today

Testers check rules by hand on a small quarterly sample of loans, so a systemic error runs for months.

1 in 4
of critical mortgage QC defects are legal and compliance issues published

Checked by hand on each file

  • Disclosures
  • Timing
  • Fees
  • Notices
  • APR copied from the disclosureSo an error in the disclosed figure goes uncaught
  • Same finding next quarterNo branch, channel or system change named as the cause

The Solution

  1. Each closed loan readThe file and its loan system record, each value with its page
  2. The right rules chosenRules picked for each loan by product, lien, state and dates
  3. APR rebuilt from paymentsFinance charge recomputed, and fees marked seller-paid in error are caught
  4. The testing manager confirmsFails grouped into ranked findings, each with its cause and owner

Built-in controls

  • No tolerance looser than Regulation Z
  • Agents change no loan and contact no borrower
  • Workpapers locked once signed

What You Get

A broken fee setting shows up in the next run, with its loans, its cause and an owner named.

  • One root cause, many loansFails traced to the fee table or channel behind them
  • Testers decide hard casesOnly results the rules can't settle reach a person
  • Workpaper from the runObjective, scope, method and findings, ready for the exam
In short

What is Loan Compliance Testing?

It is software that checks closed loans against the consumer lending rules and records each result with its evidence. The rules cover APR and finance charge accuracy, TRID timing and tolerance, RESPA, ECOA and flood notices, and higher-priced and high-cost tests. Loan Compliance Testing has agents read the whole file and test each rule that applies. They group the fails into findings for the testing manager to confirm.

How to choose AI solutions for lending →

Updated

The problem

Testers check only a small sample of loans, so errors run for months

Mortgage lenders must prove that each loan they close followed the consumer lending rules. That job falls to second-line testers, the compliance staff who check the lender's own work. For each file, they confirm that the APR and the finance charge were disclosed correctly. The APR is the loan's yearly cost, fees included. They confirm that the Loan Estimate and the Closing Disclosure, the two cost forms a borrower gets, went out on time. Fee changes between them must have stayed inside tolerance. TRID is the federal rule that sets those deadlines and tolerances. The RESPA, ECOA and flood notices must have been sent too. And the loan must not cross the price lines that make it a higher-priced or high-cost mortgage. By hand, that is a checklist of 40-odd rules per file. So the team tests only a small sample at quarter end, months after the loans closed.

A systemic error does not wait for the sample. Say one fee code is mapped wrong in the loan system. Each loan it touches gets a disclosure that understates the cost. Each month it runs adds more borrowers who may need a corrected disclosure or a refund. The fails are also never traced to a branch, channel or system change. So the same finding comes back next quarter.

typical24.7%of critical mortgage QC defects are legal and compliance, the largest category
Where the days go between closing and a confirmed findingestimated
By hand100 days
With the solution19 days
  • Waiting for the loan to be tested55 → 17.5 d
  • Reading the file and ticking the checklist25 → 0.2 d
  • Recomputing the APR and counting business days8 → 0.1 d
  • Grouping fails and finding the root cause7 → 0.2 d
  • Confirming findings and writing the workpaper5 → 1 d

This split is our estimate. Quarterly sample testing by hand takes about 100 days. In the working solution, one loan took 19 days from its closing to the finding put to the testing manager.

How it works

Five agents test each closed loan, and the testing manager signs

What comes in
Closed loans inThe month's closings · loan file, loan system, rules, prior findings
Agents at work
File readervalues with pages
Then
Rule selector≈ 25 of 212 rules
Independent calculatorAPR rebuilt
Timing checkerbusiness days
Then
Findings analystrank + root cause
A person decides
Compliance Testing Managerconfirms and signs
What comes out
Result per rule, page cited
Ranked findings
Signed workpaper
One case, step by step

A month-end run that traced seven understated APRs to one fee table

A $412,000 conventional 30-year fixed-rate purchase loan closed through a wholesale broker in the middle of the month. Here is what the month-end run found on that loan, and on six others like it. We follow it screen by screen in the working solution.

A worked example on sample data. Names, IDs and figures on the screens and in this section come from the demo.

  1. 01Month end, overnight

    The month’s closed loans, tested overnight

    The agents

    The month-end run takes all 1,284 closings: retail, wholesale and correspondent, across the lender's three states. By morning the wall is full, with 31,107 tests passed, 318 failed and 167 needing a person. The fails are already grouped into 8 findings. Last quarter's sample would have looked at 64 loans.

    “7 wholesale loans fail APR and finance charge. Same cause on each: discount points and lock fees coded seller-paid since the fee-table update.”

  2. 02Morning

    One loan’s test script, each rule with its page

    Compliance testing manager

    The testing manager opens the loan. The file reader took 14 documents, 212 pages and the loan system record. It pulled 214 values, each with its page. The rule selector chose 26 of the 212 rules, the ones that fit a conventional first-lien purchase in its state, by its closing date. The test took 41 seconds. Of those rules, 19 pass, 4 fail, 1 needs review and 2 do not apply.

    “Disclosed 6.875%, recalculated 7.031%: understated by 0.156, beyond the 0.125% tolerance.” Closing Disclosure, page 5

  3. 03Rebuilt

    The APR rebuilt from the payment stream

    Independent calculator

    The calculator does not take the disclosed APR as its answer. It sorts each fee on page 2 of the Closing Disclosure as a finance charge or not, and rebuilds the amount financed. Then it solves the actuarial APR from the 360 payments of $2,638.08. The disclosure counted $10,423.27 of prepaid finance charges, while the calculator counts $16,723.27. The $5,150.00 of discount points and the $1,150.00 rate-lock extension fee were left out.

    Amount financed $395,276.73 · actuarial APR 7.031% · finance charge understated $6,300.00, against a $100 tolerance.

  4. 04Why

    The loan system and the disclosure disagree

    File reader

    The data-integrity test puts the loan system's fee screen beside the Closing Disclosure. Fee codes 802 and 811 are the discount points and the lock extension. The loan system marks them “Paid by: Seller”, but the Closing Disclosure shows the borrower paying them. That is why the disclosure left them out of the finance charge.

    The loan system's own change log shows fee table v14 for wholesale, changed by Pricing Operations.

  5. 05Review

    A result the rules cannot settle, left for a person

    Independent calculator

    One test stays amber. It is the points and fees test for a qualified mortgage, a loan type with a 3% cap on points and fees. Counting the 1.25 discount points, points and fees are 3.54%, over the limit. If the points are bona fide, meaning they truly bought the rate down, they drop out and the figure is 2.29%. The rate before discount, 6.990%, is within one point of APOR at 6.420%. APOR is a published average rate for prime borrowers. Only the rate sheet can show the points really bought the rate down.

  6. 06Resolved

    The tester decides, with the evidence attached

    Compliance tester

    The review goes to a tester. The tester attaches page 4 of the wholesale rate sheet in force at the lock. It shows the 1.25 points bought the rate down from 6.990% to 6.625%. The tester picks “Pass, evidence confirms it” and signs. A fail would have gone to the testing manager to confirm as a finding.

  7. 07By morning

    318 failed tests, 8 ranked findings

    Findings analyst

    The findings analyst groups the fails by rule and cause. It ranks them by severity and by loans affected. The APR and finance charge finding is Critical. It covers 7 loans and 28 failed tests, with $38,940 understated, all on the wholesale desk. Each affected loan is listed with its disclosed and recalculated APR. The Head of Wholesale Lending is proposed as owner.

    Proposed fix: correct the fee-table mapping. Re-disclose or reimburse the 7 borrowers under the restitution policy. Re-test wholesale loans closing next month.

  8. 08Root cause

    Since when, and where

    Findings analyst

    The heat map shows the APR finding only in the wholesale column. A change timeline explains why. The rate sheet added a 10-day lock extension. Fee table v14 went live a week later, and the first wholesale lock under it came the next day. The 7 affected loans closed in the weeks after. Three findings are back from last quarter's sample. Their counts are higher now that each loan is tested.

  9. 09Signed, 19 days after closing

    The testing manager confirms the finding

    Compliance testing manager

    The testing manager checks the evidence. Each failed test cites its page and value. The APR and finance charge were recomputed on all 7 loans, and the root cause and owner are proposed. The manager signs. Nineteen days after this loan closed, the finding goes to the Head of Wholesale Lending, ahead of the next quarterly sample.

    “Your signature means: I reviewed the evidence and confirm this finding. It goes to the owner and onto the month’s workpaper.”

  10. 10For the exam

    A workpaper written from the run

    Compliance testing manager

    The tester prepares the month's workpaper. It sets out the objective, the scope, the method, results by rule family and the eight findings. The scope is each loan, with no sample. Signing the workpaper locks it, and later changes go in an addendum. It is kept seven years for audit and the examiners.

Who it’s for

Testers, the testing manager, a control owner and fair lending

The same month-end run, seen by the four people who carry it: what their quarter looked like, and what it looks like now.

Compliance testing manager
Confirms findings
Before
Learns of a systemic error only when the quarterly sample happens to land on it, months after the loans closed.
Now
Has each closed loan tested within days, confirms each finding with the evidence at hand and signs a workpaper written from the run.
Compliance tester
Resolves reviews
Before
Tests 64 loans by hand, ticking 40-odd rules per file, and hopes the problem is not in the other 1,220.
Now
Decides only the results the rules could not settle, with the page, the working and a place to attach the evidence.
Head of wholesale lending
Control owner
Before
Wants to know what broke and since when, and gets a finding months later with no cause attached.
Now
Gets the APR finding with the 7 loans, the dollars understated, the fee-table change that caused it and the date it started.
Fair lending officer
Reads the pattern
Before
Wants the pattern across loans, and pieces pricing and high-cost results together from sampled files.
Now
Reads findings by branch and channel or by product, with higher-priced and high-cost tests run on every loan.
The agents

An independent APR calculator and four more agents for each loan

Each closed loan is tested against the rules that apply, and its APR is rebuilt from the payment stream. The testing manager confirms each finding.

File reader

Reads the Loan Estimates, Closing Disclosures, note, appraisal receipt, notices, flood determination and the loan system's fee screen. It pulls each value the rules need, with its page and position. These include fees with payer and section, dates of issue, delivery and receipt, and rates.

  • Never fills a value it could not find, and marks it missing
  • Read-only on the loan system
  • Cites page and position for every value
Rule selector

Chooses which of the 212 rules in the library apply to each loan. It decides by product, lien position, purpose, occupancy, state, channel, and application and closing dates.

  • A rule left out always has a reason
  • Library changes need the testing manager
Independent calculator

Recomputes the APR, finance charge, amount financed, total interest percentage, and points and fees. It also recomputes the rate spread against APOR for the lock week, and the fee tolerance buckets from Loan Estimate to Closing Disclosure. Then it compares them with the disclosure and shows the working.

  • Never takes the disclosed APR as input
  • Shows the full working on every result
  • Same file, same answer
Timing checker

Counts business days for each delivery and receipt. Closing Disclosure receipt and the right to cancel use the specific definition, which leaves out Sundays and federal holidays. Loan Estimate delivery and notices use the general definition.

  • Never assumes receipt without the evidence or the mailbox rule
  • Says when it applied the mailbox rule
Findings analyst

Groups failed tests into findings and ranks them by severity and loans affected. It looks for a common branch, channel, product, settlement agent or system change. Then it proposes an owner and drafts the workpaper.

  • Only the testing manager confirms a finding
  • Never contacts a borrower or changes a loan
Compliance Testing Manager

Confirms findings and signs workpapers, and testers resolve reviews.

Ask in plain words

A loan, a rule or a finding, explained from the page behind it

The testing manager and testers ask in plain words, or say what to change. Each answer points back to the page and the test it came from, on the sample loans.

Why did the APR test fail on this loan?

The disclosure counted $10,423.27 of prepaid finance charges and showed an APR of 6.875%. Yet the Closing Disclosure also shows $5,150.00 of discount points and a $1,150.00 lock extension fee paid by the borrowers. The loan system has both as seller-paid. Counting them, the amount financed is $395,276.73 and the APR is 7.031%. That is 0.156 over, beyond the 0.125 tolerance. The finance charge is understated by $6,300.00.

Which other loans have the same fee-coding problem?

7 loans, all wholesale, all locked after the fee-table update and closed this month. They add up to $38,940. No retail or correspondent loan is affected, because their fee table did not change.

Test each wholesale loan the day after it closes

Done. From tonight, each wholesale loan is tested the night after it closes, on top of the monthly run. With this on last month, the APR finding would have shown up the night after the first affected loan closed, before the other 6 did. It is a watch rule in Settings, recorded on the audit trail.

Is this loan still a qualified mortgage?

Probably, but a tester needs to confirm one fact. Counting the 1.25 discount points, points and fees are 3.54%, over the 3% limit. If the points are bona fide, they drop out and the figure is 2.29%. The rate before discount is 6.990%, within one point of APOR at 6.420%. The wholesale rate sheet in force at the lock will show whether the points really bought the rate down.

The screens

Month wall, APR recalculation and findings, in the working solution

From the working solution, on its sample data. Pick one to see it large.

The test runOne loan's test script. It shows the agents' run log, each rule grouped by regulation with its result, and the page behind the selected test.
The whole monthAll 1,284 closings of the month on one wall, each loan green, amber or red, with counts by rule family.
The recalculationThe APR rebuilt from the payment stream. Each fee is classified, then the prepaid finance charges, the amount financed and the actuarial APR are worked out.
Loan system against the disclosureFee codes 802 and 811 marked seller-paid in the loan system, borrower-paid on the Closing Disclosure.
A review for a personQualified mortgage points and fees are 3.54% with the points, or 2.29% if they are bona fide. A tester settles it.
Resolving a reviewPass or fail, with the evidence named and a signature.
Loan coverageFull coverage against last quarter's sample, with pass, fail and review counts and findings for each loan.
Ranked findings318 failed tests grouped into 8 findings by severity and count, each with the affected loans, root cause, fix and owner.
Confirming a findingThe testing manager signs, and the signature records what it means.
Root causeFindings by branch and channel or by product, the change timeline behind the APR finding, and what came back from last quarter.
The rule library212 rules by family: when each applies, its tolerance, how it is tested, its source and its version.
The testing workpaperObjective, scope, method, results and findings, written from the run and locked once signed.
SettingsPopulation, cadence, rule library, tolerances, who confirms findings and who resolves reviews.
Governance

Controls on loan compliance testing results, and who signs them

Each result cites its pageEach pass, fail or review names the page and value it was decided on. That might be Closing Disclosure page 5, Loan Estimate page 1 or the loan system's fee screen. The result and its page stay on the audit trail.
Recomputed from the payment streamThe APR, finance charge and amount financed are rebuilt from the payment stream and the itemized fees. The full working is shown beside the page, so a fail comes from arithmetic.
Only the testing manager confirms a findingFindings are confirmed with an electronic signature that records its meaning: “I reviewed the evidence and confirm this finding.” Testers sign each review they resolve.
Tolerances go tighter, never looserRegulation Z, the federal rule on disclosing loan costs, sets the 0.125 APR tolerance. It cannot be loosened. Rule versions are dated and approved, library v2026.3 among them, and each change needs the testing manager.
No agent changes a loan or contacts a borrowerThe agents only read the loan system. They change no loan record and contact no borrower. Fixes go to the named control owner.
Workpapers locked once signedA signed workpaper is locked and kept seven years. Later changes go in an addendum. Examiners get read-only access to signed workpapers, for 30 days.
Configuration

Which loans are tested, how strictly, and who confirms each finding

The testing manager sets what gets tested, how strictly and who decides.

SettingDefaultChoose from
Which closed loans are testedEvery closed loanEvery closed loan · 5% random sample · 10% random sample · Risk-weighted sample
When a closed loan is testedNightly, the day after closingNightly · Weekly · Monthly
Rule libraryv2026.3 · 212 rulesv2026.3 · 212 rules, or v2026.2 · 207 rules. A new version is tested on last month first
APR tolerance, regular transaction0.125 percentage pointTighter allowed, never looser than Regulation Z. The tolerance is 0.250 for an irregular transaction
Finance charge tolerance, mortgageUnderstated by no more than $100Set by Regulation Z. The right to cancel has its own tolerances, tightest once foreclosure starts
Who confirms findingsTesting managerAny testing manager
Who resolves reviewsCompliance testersCompliance testers · Testing manager only
Keep signed workpapers7 years5 · 7 · 10 years
Connections

Loan files, the origination system and the APOR tables each test reads

Loan files and disclosuresLoan Estimates, Closing Disclosures, note, notices, appraisal receipt, flood determination
Your loan origination systemfees, payer, dates and pricing, read only
Rule checklists by product and statefederal rules plus the overlays for each state you lend in
Rate sheets and APOR tablesfor rate spread and bona fide discount points
Prior testing findingsto show what came back from last quarter
Workpapers and resultsworkpaper PDF and a results workbook for audit and the exam
What it changes

Loan compliance testing coverage and time to a finding

Each figure carries its label: a target the solution is built to, an estimate, a typical published result, or a proven one.

target
100%
of closed loans tested every month, instead of a 5% sample
1,284 of 1,284 loans
closings in one month
target
19days
from closing to a confirmed finding, ahead of the next quarterly sample
Quarterly sample≈ 100 days
With agents19 days
typical
24.7%
of critical mortgage QC defects are legal and compliance, the largest category
SampledEvery loan

“demo” means seen in the working solution, on its sample lending data. “target” means the design goal, measured in the live solution. “estimated” means our estimate. “typical” means published figures. ACES Quality Management's Q4 2025 Mortgage QC Industry Trends report found 24.66% of critical defects were legal, regulatory and compliance defects, about 1 in 4. Rules cited: 12 CFR 1026.18, .19, .22, .32, .35, .43 (Regulation Z) · 12 CFR 1024.17, .20 (Regulation X) · 12 CFR 1002.14 (Regulation B). Names on the screens are sample data.

Questions

TRID, APR and sampling questions about loan compliance testing

What is loan compliance testing software?

It is software that checks closed loans against the consumer lending rules and records each result with its evidence. The rules cover APR and finance charge accuracy, TRID timing and tolerance, RESPA, ECOA and flood notices, and higher-priced and high-cost tests. Loan Compliance Testing has agents read the whole file and test each rule that applies. They group the fails into findings for the testing manager to confirm.

Does it test every loan or a sample?

Every closed loan, by default. In the working solution, that was all 1,284 closings of the month and 31,592 rule tests. Last quarter's sample covered 64 loans. A random or risk-weighted sample is still a setting if you want one.

How does it check the APR and finance charge?

It recomputes them. The independent calculator sorts each fee as a finance charge or not and rebuilds the amount financed. It solves the actuarial APR from the scheduled payments and compares the result with the disclosure, showing the working. The disclosed APR is not its answer.

How does it count TRID business days?

The timing checker uses the specific business-day definition for Closing Disclosure receipt and the right to cancel. That definition counts all days except Sundays and federal holidays. Loan Estimate delivery and notices use the general definition. The checker applies the mailbox rule only when there is no evidence of receipt, and says so.

Which rules does it test?

The rules in your library. The working solution runs 212 rules and picks the ones that apply to each loan by product, lien, purpose, state and dates. They cover TILA loan calculations, TRID timing and tolerance, RESPA notices and Equal Credit Opportunity. They also cover higher-priced and high-cost tests, flood, data integrity and the overlays for three states.

Who decides whether a fail is a finding?

People do. Testers resolve each result the rules could not settle, with the evidence attached. Only the testing manager confirms a finding, with an electronic signature. The agents change no loan record and contact no borrower.

Can we tighten tolerances or add our own rules?

Yes. Tolerances can be set tighter than Regulation Z, but never looser. New rules and rule changes go to the testing manager for approval. A new library version is tested on last month's loans first.

Which files and formats does it start from?

It starts from your rule checklists, your workpaper format and a sample of closed loan files. The Agentic Solution Engine builds and deploys it from those requirements. It goes live once each quality gate has passed. We will walk you through it on a month of your own closed loans first.

Put loan compliance testing
on a month of your closed loans.

We’ll run Loan Compliance Testing on a month of your own closed loans.