Skip to content
Jason R. Adams edited this page Nov 20, 2026 · 18 revisions

LOLA

LOLA is a multi-tenant loan-origination system for protected personal data: MISMO-aligned borrower intake + a loan-officer console, backed by SQLCipher-encrypted SQLite files (one per tenant) with OpenBao envelope encryption, OpenIddict identity, and secured egress to MPEx (pricing/eligibility — PII-free), Zara (fee engine — PII-free), and ISPPr (document packages).

Backend: C# / .NET 10, ASP.NET Core, Dapper + DbUp (no EF). Web: Next.js App Router + TypeScript — officer console (M11) and borrower portal (M12), both on OIDC PKCE login with server-side token custody via a BFF, GitHub-dark theme.

What's shipped

Milestone Surface Status
M0/M1 Workspace, solution scaffold, REST/GraphQL shell, data layer, observability, CI Done
M2 OpenBao foundation — raft auto-unseal, transit envelope encryption, per-tenant DEKs, IFieldCipher, blind indexes, [PiiClass] Dapper protection, rotation/rewrap, crypto-shred Done
M3 Control plane — OpenIddict OIDC server, users/groups/roles, role→visibility masking, tenant provisioning pipeline, borrower invites, rate limits Done
M4 Tenant data plane — DbUp rolling migrations inside keyed files, repository seam + isolation proofs, encrypted backup/restore (VACUUM INTO + sha256 manifests), crypto-shred erasure, data-plane runbook Done
M5 MISMO domain — catalog-driven JSON1 applications, encrypted party index + blind search, REST/GraphQL intake, lifecycle + role scoping, MISMO XML/ULDD interop, TRID clock, workflow seam Done
M6 Data hygiene — hash-chained audit (tenant + control plane), audited reveal, access-review reports, generated PII data-map, Reg B 25-month retention gate, control-plane residual lifecycle Done
M7 Pricing — PII-free MPEx egress behind the firewall, outbox evals with live round-trip, asOf re-eval, rate locks with frozen-path enforcement Done
M8 Fees — Zara adapter behind IFeeService, LE-section itemized fees, audited variant-scoped overrides, FHA-vs-conventional comparison batches Done
M9 Documents — ISPPr adapter behind IDocumentService, per-tenant vendor provisioning, manifest-bounded payloads, doc outbox + registry, presigned-URL downloads, template republish, erasure key-revoke Done
M10 Document vault — streamed multipart uploads, magic-byte allowlist, chunked AEAD seal, per-tenant MinIO buckets, ClamAV quarantine→clean worker, signed capability downloads Done
M11 Officer console — PKCE + sealed-session BFF, pipeline with TRID countdown, tabbed 1003 workspace with audited reveal, closing costs & docs, blind-index search, admin surfaces Done
M12 Borrower portal — invite acceptance, bounded sessions, borrower-safe read plane, MISMO intake wizard with masked-confirm resume, status tracker, vault uploads + disclosure downloads Done
M13 Vendor adapter seam — per-kind egress allowlist + reflection firewall, IVendorAdapter stub (credit/VOE/VOI/flood/fraud/AUS), OpenBao-KV creds per call, outbox order lifecycle with webhook + poll completion, Steps-tab read surface Done
M14 Hardening, UAT & close-out — STRIDE threat model, CI dep-vuln gates, DR runbook sections, live drills (backup/restore, crypto-shred, retention, seal/unseal), full UAT matrix, PII-in-logs audit, wiki refresh Done
M15 Mutation event log + conditions — append-only hash-chained loan_events (same-tx as the mutation, blind-index tokens for PII), GET …/events + …/events/verify, conditions lifecycle with reasons + borrower projection Done
M16 Task engine + Next-Best-Task queue — PII-free control-plane tasks, tenant-side evaluator (conditions, steps, TRID, stale drafts), ranked REST/GraphQL queue, audited claim/complete, officer-console Queue page with do-next flow Done
M17 Validation feedback loop — signed …/{source}/validation ingress for MPEx/ISPPr, vendor_feedback dedupe ledger, findings→conditions (cleared auto-closes; exception opens + ranks a validation_exception queue task), events + audit on every receipt Done
M18 Document intelligence + auto-conditions — IDocClassifier seam (rule/stub via DOC_CLASSIFIER), classify in the scan drain after Clean verdict (2 MiB bounded head, plaintext never durable), vault:-encrypted classification_json, findings→auto-conditions (match closes doc_required; expired/mismatch/unreadable open blocking replace-doc; distance_check review), officer intel chips + borrower "What we need" Done

Wiki pages

  • Security Model — the ten non-negotiable invariants
  • Identity and Tenancy — OIDC endpoints, roles, tenant resolution, invites, rate limits
  • Data Plane — per-tenant SQLCipher vaults: lifecycle, migrations, backup/restore, crypto-shredding
  • Applications and Intake — catalog-driven MISMO domain: JSON1 documents, blind search, lifecycle, interop, TRID, workflow
  • Pricing and Rate Locks — PII-free MPEx egress, outbox evals, locks
  • Fees and Overrides — PII-free Zara egress, LE-section fees, comparison variants, audited overrides
  • Documents and Disclosures — ISPPr adapter, per-tenant vendor keys, manifest-bounded payloads, registry + presigned downloads
  • Borrower Document Vault — upload→quarantine→ClamAV→clean→ capability-download pipeline, cipher + seams, lifecycle
  • Audit and Retention — hash-chained audit, audited reveal, PII data-map, Reg B retention gate, residual lifecycle
  • Vendor Seam — IVendorAdapter port, per-kind egress allowlist, OpenBao-KV creds, outbox order lifecycle, signed-webhook + poll completion channels, signed validation-feedback ingress
  • Officer Console — PKCE+BFF auth, pipeline, tabbed 1003 workspace, closing costs & docs, blind search, admin — with screenshots
  • Borrower Portal — invite acceptance, bounded sessions, borrower-safe read plane, intake wizard, vault uploads + downloads — with screenshots
  • Threat Model — STRIDE over all five PII flow stages, mitigations, residual-risk register
  • Operations Runbooks — index of the drill-tested runbooks (OpenBao DR, data plane, identity) + executed-drill summary
  • Close-Out — M14 UAT matrix results, PII-in-logs audit, drills, hardening gates, follow-up tickets

Key docs (in repo)

  • docs/adr/ — locked architecture decision records (ADR-0001…0011)
  • docs/megaplan-mpe-63.md — milestone plan
  • docs/openbao-runbook.md — transit keys, unseal, crypto-shred
  • docs/identity-runbook.md — OIDC clients, provisioning, invite ops
  • docs/data-plane-runbook.md — tenant-file ACLs, WAL concurrency, backup/restore + erasure ops
  • docs/threat-model.md — STRIDE per PII flow stage, mitigations, residual risks
  • docs/uat-matrix.md — every milestone acceptance bullet re-verified live
  • docs/vendor-feedback-contract.md — the MPEx/ISPPr signed-webhook contract (envelope, finding kinds, dedupe, error codes)
  • AGENTS.md — invariants, coverage policy, workflow rules

Verification

dotnet format --verify-no-changes && dotnet build && dotnet test
docker compose up --build   # openbao + seq + jaeger + minio + clamav

Clone this wiki locally