US Mortgage Compliance Core · Cluster ㉑ · OpenChainGraph v0.4
US Mortgage Compliance Core
Six computational tools covering the full US residential mortgage compliance stack: Reg Z Appendix J actuarial APR (bracketed-bisection solver with fractional-period support, priced at simple interest per (b)(6)), TRID fee tolerance classification and cure computation, TRID APR accuracy verification (§1026.22(a) tolerances), QM points-and-fees test (§1026.43(e)(3) five-tier table, version-pinned 2021-2026), QM APR-APOR spread classification (§1026.43(e)(2)(vi)), and version-pinned Reg Z threshold lookup. All regulatory reference tables are baked into the kernels citing primary sources (FR citations, CFPB rule citations). Zero PII. Agent-native via MCP.
TRID · 12 CFR §1026.19 IN FORCEReg Z APR · 12 CFR §1026.22 IN FORCEQM Rule · 12 CFR §1026.43 IN FORCEReg Z Appendix J IN FORCEQM Tables · Version-pinned 2021-2026HOEPA Thresholds · Version-pinned 2021-2026First OCG §21.4 Gated Chain LiveFHFA CLL 2026 · Conforming Loan LimitsFannie Mae LLPA 2025-11-01 · Version-pinnedFHA MIP · HUD 4000.1 · ML 2023-05VA Funding Fee · 38 USC §3729 · 2025-01-01ULDD Phase 5 · Public Stencil Only
ALL IN FORCE: TRID disclosure rules (12 CFR §1026.19), Reg Z APR accuracy (§1026.22(a)), Qualified Mortgage rule (§1026.43), Reg Z Appendix J actuarial method, FHFA 2026 conforming loan limits, Fannie Mae LLPA matrix (effective 2025-11-01), FHA MIP grid (HUD ML 2023-05), and VA funding fee table (38 USC §3729, effective 2025-01-01) are all currently in force. Tables are version-pinned. Rerun check_conforming_loan_limit and verify LLPA table_version when annual announcements occur (FHFA Nov; FHA/VA Jan).
EDUCATIONAL: Outputs are decision-support computations. Not legal or compliance advice, not a regulatory filing. Verify QM threshold values against CFPB annual adjustments (Federal Register). Consult qualified mortgage counsel before relying on any result for loan production or remediation decisions.
Chain and tool matrix for US Mortgage Compliance Core: each column is a tool this guide covers, most used first, each row is one chain, and a brighter cell means more of that row's chains run through the tool. Hover a cell to list them.
Entry point: Reg Z threshold lookup
Start here when building any mortgage compliance workflow. Fetches version-pinned QM and HOEPA tables that downstream nodes consume.
Actuarial APR solver (Appendix J) and APR accuracy verifier (§1026.22(a)). Run the solver first to obtain the actual APR, then pass it to the verifier.
Qualified Mortgage: points-and-fees and APR-APOR spread
QM test tools per 12 CFR §1026.43(e)(3) (points-and-fees) and §1026.43(e)(2)(vi) + §1026.43(b)(4) (APR-APOR spread). Run points-and-fees first; only proceed to spread if it passes.
FHFA conforming loan limit classification, Fannie Mae DU / Freddie Mac LPA agency eligibility, and Fannie Mae LLPA stack. Run limit check first, then eligibility, then LLPA pricing for eligible loans.
HOEPA and HPML: high-cost mortgage and escrow screens
HOEPA three-trigger test (§1026.32(a)(1)) and HPML escrow requirement (§1026.35(a)+(b)). Run the high-cost screen first; the HPML screen only applies when no HOEPA trigger fires. Both consume art-220 threshold tables.
Five chains cover mortgage compliance, TRID remediation, agency pricing decisioning, government loan program routing, and HOEPA/HPML screening. Chains with §21.4 gates exit early or fork when a condition is met.
All 6 tools are callable via MCP at https://mcp.ainumbers.co/mcp. Use run_chain to execute a chain end-to-end, or call tools individually by mcp_name.
MCP · chain execution
run_chain
Execute mortgage-compliance-preflight or mortgage-apr-accuracy-and-tolerance-cure end-to-end over MCP. Gates in the preflight chain are evaluated server-side. Returns a composite artifact with decisions[], path_taken[], and skipped_by_gate entries for any early-exit branches.
run_chain
MCP · discovery
find_chain / find_tool
Use find_chain with query "mortgage" to discover both chains. Use find_tool with query "trid" or "qm" to discover individual nodes. Returned tool_id values can be passed directly to tools/call.
find_chain · find_tool
Regulatory references
Primary sources baked into the kernels with explicit version pinning.
Reg Z APR (Appendix J): 12 CFR §1026, Appendix J; actuarial method equation, advances/payments notation, fractional period (odd-day) treatment
TRID APR accuracy: 12 CFR §1026.22(a); 1/8 pp regular / 1/4 pp irregular; definition of irregular transaction
TRID fee tolerance: 12 CFR §1026.19(e)(3); zero-tolerance, ten-percent-cumulative, no-tolerance-limit buckets; cure timing and amount rules
QM points-and-fees: 12 CFR §1026.43(e)(3); five-tier table; annual CFPB adjustments published in the Federal Register (FR Vol. 87, 88, 89, 90 for 2022-2026 thresholds)
HOEPA high-cost triggers (§1026.32(a)(1)): 12 CFR §1026.32(a)(1); three triggers: (i) APR: APOR+6.5pp first-lien, APOR+8.5pp subordinate or dwelling below $50,000; (ii) Points-and-fees: 5% or $1,380 floor (2026, FR 2025-22773; effective 2026-01-01); (iii) Prepayment penalty: applies beyond 36 months or exceeds 2% of prepaid amount. Table: HOEPA-REGZ-2026-01-01.
HPML definition and escrow (§1026.35): Reg Z §1026.35(a)(1) HPML definition; APR exceeds APOR by 1.5pp (first-lien standard), 2.5pp (jumbo, above FHFA conforming limit), or 3.5pp (subordinate lien). Dodd-Frank structural thresholds, unchanged since 2014 (FR 2013-01730). §1026.35(b)(1) escrow requirement: first-lien HPML must maintain property-tax-and-insurance escrow for minimum 5 years. Exemptions: §1026.35(b)(2)(iii) rural/underserved area + assets below $2B + 500 or fewer first-lien HPMLs; §1026.35(b)(2)(ii) condo HOA master policy. Table: HPML-REGZ-2026-01-01.
FHFA Conforming Loan Limits 2026: 12 USC 1454 (Freddie Mac Charter §305); 12 USC 1717 (Fannie Mae Charter §304(b)); HERA 2008 §201; FHFA Annual CLL Adjustment; baseline $806,500 (1-unit); 150% ceiling $1,209,750; AK/HI/GU/VI at ceiling. Source: FHFA FullCountyLoanLimitList2026.xlsx (public). Table: FHFA-CLL-2026.
Fannie Mae Agency Eligibility (DU/LPA): Fannie Mae Selling Guide B3-2-01 (DU eligibility); Freddie Mac Guide Ch.5100 (LPA eligibility); DTI caps, LTV/CLTV/HCLTV grids by occupancy and purpose, multi-unit overlays. Table: FNM-LPA-ELIGIBILITY-2026-01-01.
Fannie Mae LLPA Matrix: Fannie Mae Selling Guide B3-4.1-02; LLPA matrix effective 2025-11-01 (public, FNM website); FICO-by-LTV base grid, purpose/property/subordinate-financing adjustments; SEL-2023-07 FTHB AMI waiver. Table: FNM-LLPA-2025-11-01.
FHA MIP (HUD 4000.1): 12 USC 1709 (FHA §203(b)); HUD Handbook 4000.1 §II.A.8; UFMIP 1.75%; annual MIP grid (ML 2023-05; ML 2024-01); 31%/43% qualifying ratios; FICO-gated max LTV (580 for 96.5%, 500-579 for 90%). Table: HUD-MIP-ML2023-05-ML2024-01.
VA Funding Fee and Residual Income: 38 USC §3729 (funding fee statutory table); 38 CFR Part 36 (VA home loans); VA Pamphlet 26-7 Ch.4 Table 41A (residual income by region and family size); exemption for service-connected disability. Tables: VA-FF-2025-01-01; VA-PAMPHLET-26-7-CH4-2024.
ULDD / ULAD structural lint: Fannie Mae ULDD Phase 5 Data Stencil (public, fanniemae.com; mandate effective 2025-07-28); Freddie Mac ULAD Data Dictionary v1.3 (public, freddiemac.com); Uniform Mortgage Data Program (UMDP); 12 USC 4501 (FHFA). Tool uses public stencils only, not the membership-licensed MISMO v3.x Reference Model. Table: ULDD-PHASE5-ULAD-1.3-2025-07-28.