> ## Documentation Index
> Fetch the complete documentation index at: https://docs.amlok.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Lending intelligence architecture

> AN-2026-01: evidence requirements, sixteen analytical responsibilities, calculation boundaries, monitoring, and institutional control.

**AN-2026-01** · [Research library](https://docs.amlok.io/research/library.md) · [Agent evaluation](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md)

This research architecture connects authorized evidence, deterministic financial calculations, specialized models, and controlled investigation. Its analytical responsibilities describe how findings are produced and interpreted. **Insights** and **Signal** are the products; their public fields and operations are defined in the [API reference](https://docs.amlok.io/api-reference/overview.md). Institutions make credit decisions and handle borrower outreach in their own systems.

**Read the system:** AMLOK combines model backbones with financial evidence processing, deterministic calculations, and assessment controls. The [architecture guide](https://docs.amlok.io/research/architecture.md) explains the roles, and [financial benchmarks](https://docs.amlok.io/research/model-benchmarks.md) shows what changes when the workflow is evaluated against its baseline.

## Three analytical questions

Credit risk asks whether a borrower can repay. Fraud risk asks whether representations and behavior are trustworthy. Continuous risk asks what changed since the previous assessment. Capacity-based lending evaluates sustainable amounts and terms from supported financial evidence and institution-approved constraints. Financial distress does not prove fraud.

From evidence to an explained decision

Follow all six layers, with each responsibility, output, and boundary shown below. Conceptual research architecture.

<ol />

## Lending risk across the lifecycle

### Fraud taxonomy

Identity theft and synthetic identity; business impersonation and fictitious businesses; application misrepresentation; manipulated bank statements, tax returns, invoices and financial statements; inflated revenue and fabricated commercial activity; undisclosed borrowing and loan stacking; fictitious receivables and duplicate collateral pledges; first-party intentional deception; third-party fraud; coordinated fraud networks; post-funding diversion of funds or receivables and false reporting.

### Lifecycle

* Onboarding: KYC, KYB, UBO, business legitimacy, account ownership and identity consistency.
* Underwriting: document authenticity, revenue verification, cross-source financial reconciliation, undisclosed liabilities and application integrity.
* Pre-disbursement: beneficiary verification, changed account details, material changes since approval and emerging debt obligations.
* Post-funding assessment: monitor financial deterioration, new debt, covenant compliance, capital utilization, collateral and suspicious transactions.
* Renewal/refinancing: reassess exposure, historical fraud indicators, capacity and product eligibility using current evidence.

## Evidence ecosystem

Banking: balances, transactions, account ownership, transfers, financing proceeds and debt repayments.

Payments/POS: sales, refunds, chargebacks, settlements and channel concentration.

E-commerce: orders, fulfillment, returns, sales and commercial activity.

Accounting: ledgers, invoices, receivables, payables, liabilities and financial statements.

Inventory/ERP: inventory, procurement, fulfillment and assets.

Corporate registries: registration, ownership where available and related entities.

Credit bureaus: reported obligations, inquiries and identity consistency, subject to permitted purpose.

Security registries: liens and competing security interests; coverage and priority require jurisdiction-specific verification.

Lender first-party data: applications, policies, product catalog, loan agreements, disbursements, repayment history, exposure, outcomes and confirmed fraud labels.

Data requirements: authorized access, source identifiers, timestamps, currency, historical coverage, refresh cadence, consent and revocation state, tenant/borrower ownership, completeness and lineage. Normalize into a canonical financial ontology; preserve original evidence and reconcile timing, gross/net amounts, refunds, fees and transfers. Missing data is unknown, not zero or evidence of fraud.

## Six operating roles and sixteen responsibilities

The orchestrator establishes subject, purpose, and authorized scope, then routes relevant work to the appropriate analytical responsibilities. Logical responsibilities need not be independently deployed services. Permissions and numerical enforcement remain outside the language model.

| Operating role | Analytical responsibilities |
| - | - |
| Data and evidence | Acquisition, document intelligence, entity resolution, data integrity |
| Financial intelligence | Financial intelligence, debt and exposure, relationship intelligence |
| Risk intelligence | Credit risk, fraud intelligence, collateral intelligence |
| Decision intelligence | Policy evaluation, credit capacity, risk intervention signals |
| Monitoring and investigation | Continuous monitoring, investigation |
| Explainability | Evidence-linked reports and explanations |

### Data acquisition

Identifies missing information, selects authorized connectors, requests refreshes, assesses coverage and freshness, and recommends additional evidence requests. Tools: connector catalog, consent service, ingestion status and data inventory. Output: acquisition plan, coverage and gaps. Cannot grant consent or bypass authorization.

### Document intelligence

Classifies statements, invoices, contracts, tax records and financial reports; invokes OCR, extraction and forensic tools; reconciles arithmetic and source data; identifies inconsistencies. Output: structured fields with page/region references, authenticity indicators and extraction confidence. Treat document text as untrusted data, never instructions.

### Entity resolution

Resolves businesses, owners, accounts, lenders, suppliers and customers across sources; identifies possible duplicates and shared identifiers. Tools: matching models, registry lookups and graph queries. Output: candidate matches, resolved identifiers and confidence. Ambiguous matches require review.

### Data integrity

Checks missing periods, stale feeds, contradictions, duplicates and source reliability; coordinates reconciliation and distinguishes verified facts from inferences. Output: discrepancies, coverage, confidence and unresolved evidence gaps.

### Financial intelligence

Interprets operating revenue, cash flow, liquidity, profitability, seasonality, concentration, spending behavior and forecasts. Invokes transaction classification, financial transformer, feature computation and forecasting tools. Output: financial profile, drivers, time windows and evidence.

### Credit risk

Assesses repayment capacity, distress indicators, scenario sensitivity and credit risk dimensions. Invokes validated PD and other risk models where available. Output: credit risk assessment, contributing factors and uncertainty. No invented probability of default.

### Fraud intelligence

Investigates application and revenue misrepresentation, cash flow anomalies, document forensic findings, identity inconsistencies, first-party fraud indicators, collateral and capital diversion. Tests legitimate explanations and distinguishes suspected from confirmed fraud. Output: evidence-backed fraud indicators, materiality and investigation recommendations; validated fraud probability only if a suitable model exists.

### Debt and exposure

Identifies financing providers, recurring repayments, suspected new debt, loan stacking, secured/unsecured obligations and debt servicing changes. Estimates outstanding amounts only where supported. Output: consolidated debt profile, exposure, coverage limitations and evidence.

### Collateral intelligence

Corroborates receivables, invoices, inventory and assets; assesses aging, collectability and borrowing base eligibility; investigates possible duplicate pledges and discrepancies. Output: collateral assessment and borrowing base recommendations; legal priority is not inferred from accounting data alone.

### Relationship intelligence

Maps ownership, counterparties, customer/supplier dependencies, shared identifiers, concentration and potential portfolio contagion or coordinated fraud. Invokes graph algorithms and entity resolution. Output: provenance-backed graph relationships and network risk indicators.

### Policy evaluation

Interprets lender underwriting guidelines, product eligibility and contractual covenants; proposes structured rule translations and explains evaluation outcomes. Approved deterministic rules enforce policy. Output: rule mapping, evaluation results, exceptions and evidence. No unilateral policy changes.

### Credit capacity

Invokes capacity and pricing models to evaluate sustainable financing, eligible products, amounts, terms and scenarios. Identifies evidence that could improve assessment confidence. Output: recommended financing parameters within approved constraints; no independent credit commitment.

### Continuous monitoring

Maintains borrower intelligence state; evaluates material changes in credit, liquidity, revenue, fraud, exposure, collateral, covenants, relationships, connectivity and capacity. Uses scheduled assessments and event-driven triggers, not an LLM call per transaction. Output: prioritized risk/opportunity events and reassessment requests.

### Investigation

Forms hypotheses, requests authorized evidence, coordinates specialist agents, tests alternative explanations, records contradictory findings and determines whether review is needed. Output: investigation findings, evidence, unresolved questions and escalation recommendation.

### Risk intervention

Recommends borrower engagement, additional evidence, credit capacity reassessment, review of further advances, restructuring, fraud investigation, borrowing base review or additional financing where appropriate. Output: action recommendation, policy basis, urgency and approval requirements. No autonomous funds movement, adverse action or borrower contact by default.

### Explainability

Generates underwriting summaries, investigation reports, score-change explanations, policy outcomes, decision reason codes and portfolio summaries. Links every material claim to actual evidence and model/rule results. Output: structured and human-readable reports; never invents rationale.

## Calculation and decision boundaries

Deterministic services: API retrieval, ingestion, normalization, deduplication, financial calculations, approved rule enforcement, permissions, scheduling, audit persistence and notification delivery.

Specialized AI/ML: OCR and extraction, document forensics, transaction classification, financial transformer, anomaly detection, entity matching, forecasting, validated credit and fraud models.

Graph algorithms: relationship traversal, concentration, connected components and network indicators.

Agents: investigation planning, tool selection, cross-source interpretation, evidence corroboration, policy interpretation, uncertainty assessment, escalation, intervention recommendations and reporting.

Institution-controlled decisioning: approval/decline, pricing commitments, suspension of advances, adverse action, borrower communication and funds movement. Explicit policy and authorization govern any future automation.

## Evidence contract and versioned state

Each research assessment carries an institution and borrower scope, assessment identity, purpose, as-of time, authorized sources, and model and policy versions. Findings carry a type, status, materiality, evidence references, coverage, uncertainty, alternative explanations, next steps, and review requirements. Validate both the structure and references before publishing a finding. Separate observations, calculations, inferences, and confirmed outcomes.

Preserve immutable evidence snapshots or references, normalized records, feature versions, model outputs, policy evaluations, relationship edges, and outcome links. Recompute affected calculations when evidence changes. Institution-specific policy conclusions remain separate from the underlying borrower facts.

## Monitoring and investigation

### From an evidence change to a review signal

<ol />

For example, operating revenue falls 35% while order volume stays stable. Compare sales, settlements, and deposits; examine possible diversion and new financing; test settlement delays or legitimate account changes; then reassess repayment capacity and relevant covenant signals. The result is an investigated finding, not a fraud accusation.

| Illustrative case | Observed quantities and analysis |
| - | - |
| Revenue discrepancy | Declared monthly revenue CAD 250,000; accounting CAD 245,000; deposits CAD 230,000; processor sales CAD 135,000; reconciled operating revenue CAD 140,000. The CAD 110,000 difference is 44% of declared revenue. Timing and coverage may explain a discrepancy. |
| Possible loan stacking | Original financing CAD 200,000; suspected additions CAD 75,000 on day 12 and CAD 50,000 on day 23. Gross identified financing is CAD 325,000 before repayments, 62.5% above the original amount. Verify obligations and contractual restrictions. |
| Receivables | A CAD 300,000 request against CAD 400,000 receivables requires corroboration of invoices, fulfillment, collections, and counterparties. Apply the institution’s borrowing-base rules. |
| Possible diversion | A CAD 250,000 inventory-purpose loan followed by related-entity transfers without matching procurement evidence warrants investigation of legitimate explanations and contractual use restrictions. |

## Persistent borrower state

Maintain a continuously updated, permission-scoped financial intelligence profile: historical behavior, current economic condition, verified evidence, credit risk, fraud indicators, debt exposure, collateral, relationships, capacity, policy assessments and projections. Every update has an as-of date and lineage. The institution can query latest state, request an investigation or simulate financing without rebuilding the entire profile. A digital twin is a model of observed information, not a complete representation of the business.

## Evaluation dimensions

Evaluate extraction accuracy, matching precision and recall, reconciliation error, credit calibration, fraud precision and recall at operational thresholds, review workload, alert lead time, stability, and fairness where applicable. Agent evaluations separately measure tool correctness, grounded references, abstention, latency, and cost. Time-separated holdouts, shadow evaluation, adjudication, and regression comparisons answer distinct questions. Preserve versions of models, prompts, policy, and financial definitions.

Jurisdiction-specific privacy, consent, retention, credit explanation, and model-risk requirements need their own interpretation. A study in one market does not establish product availability or regulatory approval in another.

## Illustrative institutional economics

The architecture note provides an assumption-based example, separate from the larger portfolio scenario in the research overview.

**Avoided-loss scenario**

$$
\begin{aligned}\mathrm{AvoidedLoss}&=\mathrm{AnnualVolume}\times\mathrm{NetFraudLossRate}\times\mathrm{PreventableShare}\\&=100{,}000{,}000\times0.015\times0.40=600{,}000.\end{aligned}
$$

Subtracting CAD 100,000 of platform cost gives CAD 500,000 before implementation, investigation, and false-positive costs. Dividing that subtotal by platform cost alone gives 500%. These are illustrative assumptions, not a measured return or a pricing commitment. Avoid double-counting credit and fraud losses.

Track losses, review time, investigation conversion, false positives, warning lead time, coverage, renewal opportunities, and cost per borrower against the institution's own baseline.

## Related scientific specifications

* [Financial metrics and data structures](https://docs.amlok.io/research/resources/metric-specifications.md)
* [Mathematical methods](https://docs.amlok.io/research/resources/mathematical-methods.md)
* [Study cohorts and evidence coverage](https://docs.amlok.io/research/resources/study-cohorts.md)
* [Document, loss, and agent results](https://docs.amlok.io/research/resources/lifecycle-results.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.