Adam BlansettSenior Full-Stack & AI Engineer
Autonomous AI WorkforcePhase 2 Implemented (MIT)

AI Insurance Operations Platform

Self-hosted AI insurance operations platform for ACORD policy clause indexing, FNOL triage with SIU scoring, citation-grounded coverage checks, and loss-run underwriting.

Engineering RoleLead Systems & AI Architect

01. Problem & Context

Claims adjusters and underwriters manually cross-reference dense ACORD filings, endorsements, exclusions, FNOL reports, and multi-year loss runs—while unredacted policyholder SSNs, FEINs, and protected health information (PHI) cannot safely be sent to external LLM APIs.

02. Engineering Solution

Architected and built a Phase 2 self-hosted insurance operations platform uniting a FastAPI + async SQLAlchemy 2.0 backend (`backend/alembic/`, HS256 JWT + RBAC, sliding-window rate limiting, CSP headers) with a React 18 TypeScript console served behind unprivileged Nginx. Automates async policy clause indexing via native `pgvector` HNSW search, FNOL severity/SIU triage, `Policy · Page N · Section` coverage verification, and loss-run underwriting behind role-scoped HITL gates and an outbound PII/PHI redaction sandbox.

03. System Architecture

Five core API domains (`/api/v1/intake`, `/api/v1/jobs`, `/api/v1/claims`, `/api/v1/coverage`, `/api/v1/underwriting`) and `/api/v1/audit` run on async SQLAlchemy 2.0 with PostgreSQL `pgvector` HNSW cosine search (and automatic SQLite fallback), Celery async upload workers, HS256 JWT RBAC (`viewer`, `adjuster`, `underwriter`, `claims_manager`, `admin`), and `/api/v1/health/{live,ready}` probes.

Core Architectural Components

Policy Intake & Native pgvector Indexing (`/api/v1/intake`, `/api/v1/jobs`)

Parses ACORD and declaration PDF, TXT, and JSON documents, extracts schedules and page-numbered clauses, indexes embeddings with native `pgvector` HNSW cosine search, and processes large files via `POST /api/v1/intake/policies/upload-async`.

FNOL Claims Triage & SIU Scoring (`/api/v1/claims`)

Normalizes First Notice of Loss (FNOL) submissions, computes severity tiers and reserve bands, scores weighted SIU fraud indicators, and routes claims to specialized adjuster queues (`fast_track_desk`, `field_property`, `complex_casualty`, `cyber_incident`, `siu_investigation`).

Citation-Grounded Coverage Verification (`/api/v1/coverage`)

Matches claim facts against policy grants, endorsement buy-backs, sublimits, deductibles, condition notice checks, and exclusions with explicit `Policy · Page N · Section` citations.

Underwriting Support & Loss-Run Analysis (`/api/v1/underwriting`)

Evaluates line-of-business submission completeness checklists, aggregates 3- and 5-year loss runs and loss ratios, calculates composite risk scores and indicated premiums, and escalates outliers to senior underwriters.

Role-Scoped HITL Gates, Audit Ledger & PII/PHI Sandbox (`/api/v1/audit`)

Enforces approval gates across `claim_reserve`, `siu_referral`, `coverage_determination`, and `underwriting_decision`, logs mutations to a concurrency-safe SHA-256 audit chain, and scrubs SSN, FEIN, DOB, Driver's License, VIN, Member ID, and Luhn payment cards.

04. Notable Engineering Decisions

Outbound PII/PHI Redaction Sandbox & Local-First Ollama Routing

Claims and underwriting packets carry regulated PII/PHI. Setting `LLM_REDACT_PII_FOR_CLOUD=true` scrubs SSNs, FEINs, DOBs, VINs, Member IDs, and Luhn cards prior to any cloud Gemini call alongside local Ollama and offline `mock` support.

Page-Numbered Citation Grounding for Coverage Determinations

Uncited coverage summaries cannot survive regulatory or claims-audit scrutiny. Every grant, endorsement, and exclusion check resolves to exact `Policy · Page N · Section` spans.

Role-Scoped HITL Approvals & Concurrency-Safe Audit Chain

Adjusters, underwriters, and claims managers hold distinct authority limits; separating RBAC roles and locking SHA-256 audit sequence writes prevents unauthorized reserve or coverage sign-offs.

05. Engineering Challenges & Solutions

Challenge: Supporting high-speed semantic clause search in PostgreSQL production while keeping local dev and CI zero-dependency.

Engineering Solution: Implemented native `pgvector` HNSW cosine indexing in PostgreSQL with seamless fallback to SQLite vector similarity during local development and CI test runs.

Challenge: Preventing large multi-policy ACORD PDF uploads from blocking API request workers.

Engineering Solution: Added asynchronous Celery job orchestration (`POST /api/v1/intake/policies/upload-async`) paired with bounded connection pooling, HTTP retry/backoff, and sliding-window rate limiting.

06. Implementation Highlights

  • ACORD/declaration PDF, TXT, and JSON parsing with page-numbered clause indexing and `pgvector` HNSW cosine search
  • Async upload job queue (`/api/v1/intake/policies/upload-async`, `/api/v1/jobs`) backed by Celery and Redis
  • FNOL triage with reserve-band sizing, weighted SIU fraud scoring, and 5 specialized adjuster routing queues
  • Citation-grounded coverage verification (`Policy · Page N · Section`) and 3/5-year loss-run underwriting analytics
  • RBAC HITL gates (`claim_reserve`, `siu_referral`, `coverage_determination`, `underwriting_decision`), SHA-256 audit ledger, and PII/PHI sandbox
  • React 18 + Vite + TypeScript console verified with pytest, Vitest, Playwright E2E, `npm audit`, and Trivy CI scanning