← All live demos
Mortgage Lending · Lenders, Credit Unions & Loan Servicers adl.loandesk · ADL 0.5.1

Loan Desk

No closing with an open condition. No approval over an unreviewed AI draft.

Mortgage underwriting where AI summarizes borrower documents with reported confidence and drafts conditions with their rationale, processors verify pages, underwriters decide which conditions stand and clear them only against verified documents, managers log justified waivers, nothing closes with an open condition or without a verified appraisal, and every decline states its adverse-action reasons.

Declarative Domain Pipeline borrower → loan (submitted → processing → underwriting → approved → clear_to_close → closed | declined [adverseReasons] | suspended [30d nightly withdraw] → withdrawn) · document (AI summary + confidence → processor verify | reject) · loancondition (AI/UW draft → accept [open] | discard [note] → clear [verified document] | manager waive [note])
Loan Desk landing page showing closed FHA cash-out refinance LD-24105 with a discarded AI-drafted self-employment condition and four cleared conditions above live Kalos pipeline counts
The Loan Desk landing page pairs closed FHA cash-out refinance LD-24105 — contrasting dashed machine drafts overruled in writing against solid underwriter and closer decisions — with live Kalos PostgreSQL counts across 24 loans, 11 unreviewed AI drafts in underwriting, 14 open conditions, 6 closed loans, and 3 clear-to-close packages.

Why Loan Desk Exists

Mortgage lenders, credit unions, and loan servicers spend hours per file reading uploaded paystubs, W-2s, tax returns, bank statements, appraisals, and insurance binders, then translating discrepancies into underwriting stipulations. Document-reading and condition-drafting models can cut that manual triage dramatically — yet chief credit officers, investor quality-control teams, and fair-lending examiners all ask the same first question: where can the model act on a borrower alone?

In Loan Desk, the answer enforced by the Kalos server is nowhere:

  • AI summarizes documents and proposes draft conditions; signed-in staff decide: Every uploaded document carries a dashed aiSummary and aiConfidence score in received until a processor or underwriter explicitly verifies it or rejects it with a reviewNote. Every AI-proposed loancondition enters in draft alongside its rationale, and reviewAiDraftsBeforeDeciding blocks loan.approve until an underwriter or manager accepts or discards every draft.
  • Every exception, waiver, suspension, and decline is explained in writing: Discarding an AI draft requires a note, waiving an open condition is restricted to [manager] and requires a note, suspending a file requires a suspenseNote, and declining a borrower requires ECOA adverseReasons captured permanently in the loan’s history.
  • Verified evidence from submission to the closing table: Processors cannot hand a file to themselves to underwrite (underwriterIsNotTheProcessor). Approval requires verified credit and income plus dti <= 50 and ltv <= 97. Clearing an open condition requires citing a verified document (clearAgainstAVerifiedDocument), clearToClose requires zero open/draft conditions and a verified appraisal, and once clear_to_close is reached the condition list locks (noNewConditionsAfterClearToClose).

The entire application — 4 audited resources, 5 RBAC roles, 3 coordinated state machines, 9 cross-resource AEL rules, 3 declarative operational views, a nightly stale-suspension withdrawal schedule, and readable loan-and-condition history timelines — runs from a single ADL 0.5.1 suite (adl.loandesk) on Kalos and PostgreSQL.

Inside the 24-Loan Demonstration Pipeline

Every transition in seeds/seed.yaml (generated deterministically by seeds/gen_seed.py) executes under privileges: user as the actual role-scoped staff account (processor1, processor2, uw1, uw2, manager1, or closer1) rather than an administrative shortcut. All borrowers, employers, and 555-range phone numbers are fictional, with zero tax IDs or account numbers stored across 24 loans (LD-24100–LD-24123), 126 AI-summarized documents, and 88 underwriting conditions spanning Conventional, FHA, VA, and Jumbo programs:

  • 6 Closed & 3 Clear-to-Close Loans (LD-24100–LD-24108): Complete files demonstrating verified income/credit/appraisal chains, cleared AI and manual VOE conditions, and 3 manager waivers (LD-24100, LD-24103, LD-24106) where manager1 waived the $8,400 October deposit condition after documenting an IRS tax refund under program thresholds. Packages LD-24106–LD-24108 sit ready on closer1’s bench.
  • 7 Discarded AI Misreads & 5 Rejected Bank Statements: On odd-numbered files (such as LD-24101, LD-24103, LD-24105, and LD-24109), the AI drafted a self-employment condition because the paystub and W-2 showed different company names; underwriters discarded all seven in writing (“Same employer: it was renamed after an acquisition.”). Across five files (including LD-24100, LD-24105, and LD-24110), processors rejected incomplete 71%-confidence bank statements missing pages 3–4 before accepting full replacements.
  • 4 Approved Files With Open Conditions & 3 Live AI-Draft Queues (LD-24109–LD-24115): LD-24109–LD-24112 sit in approved waiting for verified clearing documents (try clearing LD-24110 against its rejected bank statement to trigger clearAgainstAVerifiedDocument), while LD-24113–LD-24115 sit in underwriting with 11 unreviewed AI drafts blocking approval (reviewAiDraftsBeforeDeciding).
  • 3 ECOA Declines, 2 Suspensions, Withdrawal & Intake (LD-24116–LD-24123): LD-24116–LD-24118 record specific adverse-action reasons for credit delinquency, 54.8% DTI, and low collateral appraisal; LD-24119 and LD-24120 sit suspended awaiting written VOEs; LD-24121 was withdrawn; LD-24122 is in processing with 3 unverified uploads; and LD-24123 is newly submitted.

How ADL Enforces Underwriting & Fair-Lending Governance

When an investor auditor, credit-risk committee, or regulator inspects a loan file, five declarative mechanisms in backend/domain.yaml guarantee that every invariant held at the API boundary:

  1. Mandatory human triage over AI drafts (reviewAiDraftsBeforeDeciding & aiDraftReview): AI-originated loancondition rows enter in draft. Querying len(query('loancondition', { loan: $record.id, status: 'draft' })) > 0 on loan.approve makes it impossible to approve a loan while any AI proposal is unreviewed, while discard captures note into both history and aiDraftReview.
  2. Verified baseline documents & hard ratio caps (approvalNeedsVerifiedIncomeAndCredit, debtToIncomeCap, loanToValueCap): Even after drafts are reviewed, loan.approve verifies via AEL query() that a verified credit_report and at least one verified income document (paystub, w2, or tax_return) exist on the loan, and rejects files with $record.dti > 50 or $record.ltv > 97.
  3. Origination separation of duties (underwriterIsNotTheProcessor): On submitToUnderwriting, Kalos checks $record.underwriter == $record.processor and rejects self-assigned underwriting (422 "Assign a different underwriter."), which is why the seed pairs processor1/uw1 and processor2/uw2 across distinct accounts.
  4. Evidence-linked condition clearing & locked closing packages (clearAgainstAVerifiedDocument, noClosingWithOpenConditions, clearToCloseNeedsAppraisal, noNewConditionsAfterClearToClose): loancondition.clear requires a document reference whose status is verified; loancondition.waive restricts guards to [manager] with a required note; clearToClose blocks on any open or draft condition or missing verified appraisal; and loancondition.create rejects new conditions once a loan reaches clear_to_close or closed.
  5. Non-punitive timers & ECOA adverse-action auditability (withdrawStaleSuspensions & history): Declining a loan requires adverseReasons (Declined: {adverseReasons}), whereas the daily 02:30 schedule transitions loans left suspended for more than 30 days to withdrawn — ensuring an automated timer never issues an adverse credit determination against a borrower.

Zero Sign-Up · Live Kalos Sessions

Sit at a Bench and Try It Live

Each card below signs directly into a real role-scoped JWT session on the production Kalos backend so you can test role queues, transitions, and server refusals immediately.

Production Interface Walkthrough

Inside Loan Desk — Screen by Screen

Captured directly from the live Kalos deployment. Click any screenshot to inspect full resolution or jump straight to that screen in the running application.

01

Auditing Every AI Proposal: Rationales, Waivers & Discarded Misreads (aiDraftReview)

Scoped to underwriters, managers, and admins, aiDraftReview tracks all 73 AI-drafted conditions alongside their rationale and human outcome — including manager1's tax-refund waiver on LD-24100, verified-document clearances, and the 7 discarded self-employment drafts (such as LD-24101) where uw2 noted that the borrower's employer was renamed after an acquisition rather than changed.

Open AI draft review as Underwriter (uw1) ↗
https://loan-desk.infinity-sdg.com/app/#as=uw1&go=/ai Full size ↗
Loan Desk AI draft review view as uw1 showing 73 AI-drafted conditions, 5 summary KPIs, manager waiver notes, verified document clearances, and discarded self-employment draft on LD-24101
02

Full 24-Loan Lending Pipeline Across Conventional, FHA, VA & Jumbo (pipeline)

The declarative pipeline view tracks all 24 applications across every lifecycle state — 6 closed, 3 clear to close, 4 approved with open conditions, 3 in underwriting with unreviewed AI drafts, 3 declined with ECOA adverse-action reasons, 2 suspended, 1 withdrawn, 1 in processing, and 1 newly submitted — displaying LTV, DTI, processor/underwriter separation of duties, and rate-lock expirations.

Explore the 24-loan Pipeline view live ↗
https://loan-desk.infinity-sdg.com/app/#as=manager1&go=/pipeline Full size ↗
Loan Desk Pipeline view as manager1 showing stage filter counters across all 9 loan states and tabular rows for Conventional, FHA, VA, and Jumbo loans
03

End-to-End File Lineage: Verified AI Summaries, Waivers, Discards & History (LD-24103)

Closed Jumbo purchase LD-24103 ($943,000, Danielle Pryor) keeps every piece of underwriting evidence on one auditable file: conditions cleared against verified documents, manager1's justified large-deposit waiver, uw2's written discard of a false self-employment AI draft, dashed 94%-confidence AI document summaries verified by processor2, and the chronological loan-and-condition history timeline through final closing by closer1.

Inspect LD-24103 full file lineage live ↗
https://loan-desk.infinity-sdg.com/app/#as=manager1&go=/loan/LD-24103 Full size ↗
Loan Desk LD-24103 loan detail view showing cleared employment condition, manager-waived deposit condition, discarded AI self-employment draft, verified documents with 94% AI summaries, and closing history timeline
04

Underwriter Bench & Live 422 Refusal: No Approval Over Unreviewed AI Drafts (LD-24114)

Signed in as uw1 on VA cash-out refinance LD-24114 ($306,000, Omar Haddad), attempting to approve while three AI-drafted conditions remain in draft triggers an immediate Kalos HTTP 422 refusal ('Accept or discard every drafted condition first.' · Rule: reviewAiDraftsBeforeDeciding) with zero database mutation — even though income, credit, 39.80% DTI, and 77.96% LTV all pass.

Test the unreviewed AI draft gate on LD-24114 ↗
https://loan-desk.infinity-sdg.com/app/#as=uw1&go=/loan/LD-24114 Full size ↗
Loan Desk Underwriter Desk 1 on loan LD-24114 showing a live HTTP 422 server refusal banner for rule reviewAiDraftsBeforeDeciding above the readiness checklist and unreviewed AI draft card
05

Loan Processor Workbench: Intake, Page Verification & Role-Scoped Queues (processor1)

Signed in as processor1, My work focuses strictly on file assembly: newly submitted Jumbo refinance LD-24123 waiting for assignment, VA refinance LD-24122 with 3 unverified uploads to inspect before routing to a separate underwriter, and 14 open conditions needing borrower documents — while underwriter-only AI draft review is withheld by RBAC.

Sit at Loan Processor Desk 1 (processor1) ↗
https://loan-desk.infinity-sdg.com/app/#as=processor1 Full size ↗
Loan Desk Processor Desk 1 workbench showing 16 items across 3 queues including submitted LD-24123, in-processing LD-24122 with 3 unverified documents, and 14 open conditions
06

Nine Requests the Kalos Server Turns Down — Verbatim HTTP 422 Guardrails

Every underwriting, separation-of-duties, collateral, and closing constraint lives in backend/domain.yaml and executes on every transition or write, returning exact HTTP 422 messages and rule names whether invoked from the role console or directly against /api/v1/loandesk.

Read all nine server refusals on the live site ↗
https://loan-desk.infinity-sdg.com/#rules Full size ↗
Loan Desk What it enforces section listing all nine HTTP 422 server refusal messages and corresponding ADL rule names

Declarative Server Enforcement

What the Kalos Server Refuses — Whoever Asks

These invariants live in the ADL domain definition, not in client-side UI JavaScript. Every REST request is checked by Kalos before touching PostgreSQL, and any violation returns a structured error naming the rule.

Attempted Operation Enforced ADL Rule / Guard Regulatory Alignment
Approve a loan while any AI-drafted condition is still unreviewed in draft reviewAiDraftsBeforeDeciding Human-in-the-loop credit underwriting
Approve a loan without both a verified credit report and a verified income document (paystub, W-2, or tax return) approvalNeedsVerifiedIncomeAndCredit Ability-to-Repay (ATR) verification
Approve a loan above a 50% debt-to-income ratio debtToIncomeCap Program DTI credit policy limit
Approve a loan above a 97% loan-to-value ratio loanToValueCap Collateral & LTV program cap
Submit a file to underwriting with the loan's own processor assigned as its underwriter underwriterIsNotTheProcessor Origination separation of duties
Mark a loan clear to close while any condition remains open or unreviewed in draft noClosingWithOpenConditions Complete pre-closing condition clearance
Mark a loan clear to close without a verified appraisal on file clearToCloseNeedsAppraisal Verified collateral valuation
Clear an open condition against an unverified or rejected borrower document clearAgainstAVerifiedDocument Document-backed condition evidence
Add a new underwriting condition after a loan is already clear to close or closed noNewConditionsAfterClearToClose Locked closing package integrity

Domain Footprint

ADL Suite Inventory

Resources (4)

borrowerloandocumentloancondition

RBAC Roles (5)

processorunderwritermanagercloseradmin

Declarative Views (3)

pipelineopenConditionsaiDraftReview