Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docket — Intelligent Chargeback & Dispute Adjudication Engine

Deterministic Policy Enforcement, GraphRAG Rule Retrieval, and Statutory Grounded Adjudication for Financial Networks.


📐 Architecture & System Workflow

System Architecture

System Architecture

System Workflow Flowchart

System Workflow Flowchart


✨ Core Platform Capabilities

  • 📚 Digitized Rule Knowledge Base: Digitized coverage of all 21 American Express Chargeback Reason Codes and 6 Retrieval Codes with statutory requirements, evidence obligations, and filing constraints.
  • 🛡️ 6-Step Deterministic Policy Gate: Enforces statutory filing windows (120-day standard, 540-day delivery extension) and hard exclusion reroutes (e.g., 4536 invalid authorization → 4521 reroute).
  • 🤖 ML Narrative Classifier & Ambiguity Guard: TF-IDF + Logistic Regression model trained on dispute claim narratives with top-k margin confidence ranking and ambiguity detection.
  • ⚖️ Fairness-Weighted Evidence Engine: Automatic evidence matching with OR-gate rule evaluation. Low-confidence cases (<0.80) or legal exceptions (Reason Code 4754) automatically route to the Reviewer Escalation Queue.
  • 📜 Dual-Register Explainability: Generates plain-English resolution summaries for cardholders alongside technical, clause-cited breakdown reports with downloadable SHA-256 cryptographic audit PDFs.
  • 👤 Multi-Persona RBAC Portal: Dedicated workflows for Card Members (dispute intake), Merchants (evidence rebuttal checklist), and Human Reviewers (escalation queue & decision trace viewer).

🛠️ Technology Stack

Layer Technology
Frontend UI React, Vite, Tailwind CSS v4, TanStack React Query, Axios, Lucide Icons
Backend API Python 3.10+, FastAPI, Pydantic v2, Motor (Async MongoDB), PyJWT, Structlog
Database & Search MongoDB (Primary Store), Neo4j (Graph Exclusions), Qdrant (Vector Embeddings)
Testing & Quality Playwright (E2E Browser Tests), Vitest (Component Tests), Pytest (Backend Tests)
Containerization Docker, Docker Compose

🚀 Quick Start Guide

Prerequisites

  • Node.js v18+ & npm
  • Python 3.10+
  • MongoDB, Neo4j, and Qdrant (or Docker)

1. Backend Setup

# Navigate to backend directory
cd backend

# Create virtual environment & install dependencies
python -m venv venv
source venv/bin/activate  # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt

# Start FastAPI dev server
uvicorn app.main:app --reload --port 8000

API documentation available at http://localhost:8000/docs.

2. Frontend Setup

# Navigate to frontend directory
cd frontend

# Install dependencies & start Vite dev server
npm install
npm run dev

Application available at http://localhost:5173.

3. Docker Compose (Full Stack)

docker-compose up --build

🧪 Testing & Verification

# Run Vitest Component Unit Tests
cd frontend
npx vitest run

# Run Playwright E2E Browser Journey Tests
npx playwright test

📄 License

Licensed under the MIT License.

About

AI-powered, rule-grounded chargeback & credit card dispute adjudication engine with GraphRAG, deterministic policy gates, and auditable PDF reports.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages