# Identity Desk

**identity-desk.infinity-sdg.com** — KYC and identity verification review where AI checks and scores, analysts decide, and compliance owns the hard cases.

```
applicant → onboarding (submitted → in review)
  ← verifications: document · selfie match · database · address · device (AI, vendor or analyst)
                   sanctions · PEP screening (pass | review | hit)
  ← AI risk assessment (model, score, tier, factors) → analyst accepts or overrides the tier
  → approve · decline (with the reason the applicant is told) · request information · escalate
  → compliance: clear (false positive) or confirm (blocks approval)
nightly: applications waiting on information for 30 days expire
```

## What it enforces

| Rule | Why |
|---|---|
| Approval needs a passing document check, selfie match and sanctions screening | The core KYC checks are never skipped |
| A failed check blocks approval | No approving over a red flag |
| A watchlist hit blocks approval until compliance clears it as a false positive | Name matches are common; only compliance can clear one |
| A confirmed escalation can never be approved | Confirmed concerns end in a decline |
| No approval while the AI risk score is unreviewed, or without one | The AI scores; an analyst decides |
| Overriding the AI's tier needs a written reason | Disagreements are explained and measurable |
| A high final risk tier needs compliance clearance before approval | Enhanced due diligence for high risk |
| Escalations go to someone other than the analyst who raised them | Independent review |
| Every decline states the reason the applicant is told | Adverse decisions are explained |

Every resource is audited. Applications keep a readable history of every decision. No government ID numbers are stored.

## Resources, views, roles

- **Resources:** applicant, onboarding, verification, assessment (AI), escalation
- **Views:**
  - `reviewQueue`
  - `complianceQueue`
  - `aiRiskAgreement`: AI tier versus final tier, with the reason when they differ
- **Roles:**
  - `analyst`: reviews applications and AI scores, approves, declines, escalates
  - `compliance`: enhanced due diligence, decisions on escalated cases
  - `admin`

## Demo data

The demo holds 26 applications across five products, in every state:

- 14 approved:
  - 7 clean
  - 4 after compliance cleared a watchlist name match as a false positive
  - 2 after a high risk tier was cleared
  - 1 after an analyst overrode the AI's tier with a written reason (the "shared device" was a library computer)
- 4 declined:
  - 2 for a failed document check
  - 1 after compliance confirmed a watchlist match
  - 1 over an unexplained source of funds
- 2 open escalations
- 2 AI scores awaiting review
- 2 waiting on information
- 2 just submitted

Watchlist matches are described ("name and birth year partially match a watchlist entry"), never tied to a real listed person. Every decision is made by the demo user who would make it (`analyst1`, `analyst2`, `compliance1`, `compliance2`), with that user's own roles. That needs Kalos seeder 1.2.0 or later.

Every applicant is invented, and phone numbers use the 555 range. To regenerate the data, run `python3 seeds/gen_seed.py`.

## Run it

```bash
scripts/kalos.sh validate    # static checks
scripts/kalos.sh start       # kalosd on :9220
scripts/kalos.sh verify      # live checks
```

By default, `KALOS_REPO` is `../kalos`.

Sign in with `admin` / `Admin123!`. The other users are `analyst1`, `analyst2`, `compliance1` and `compliance2`, all with password `Demo123!`.

## Reselling

This is an original ISDG product for fintechs, banks, exchanges and marketplaces. It has no customer data and no third-party branding. Screening lists, risk models and decline wording are configured per program and jurisdiction in a real deployment.
