﻿# You own the switch (agent brief)

> FraudLens recommends `allow` / `challenge` / `block`. The merchant enforces UX. Pass shop `user_id` for dossier.

Source: https://fraudlens.io/docs/decisions/  
Updated: 2026-12-04

## Roles
- **FraudLens:** live score + reason codes + optional `support` card copy  
- **Merchant risk:** map `action` → proceed / MFA / deny; Shadow vs enforce  
- **Merchant eng:** hang `/c.js`, origins, `user_id`, branch on `action`  

Buyers are usually trust & safety / risk (or a small-SaaS CTO) — not “drop a marketing button.”

## Unstick the pilot (risk vs eng)
| Owner | Owns | Done when |
|-------|------|-----------|
| Risk | Flow + Shadow + UX map + disagree review | Shadow-compare week-2 CSV reviewed |
| Eng | Origins + hang page+form + assess + user_id | `frod_session_id` fills; assess in logs |
| Solo CTO | Both hats, same split as a checklist | One flow Shadow in an afternoon |

Default: activate https://fraudlens.io/shadow-compare/ → eng hangs one form → 14d Shadow → enforce one flow.

## Map (recommended, non-binding)
| action | Typical UX |
|--------|------------|
| allow | Proceed |
| challenge | MFA / 3DS / email code / review |
| block | Deny or hold; store `support` for CS |

Helpers: `Frod.suggestFriction(action)` (browser + Node SDK) — `enforce: false` always.

## Cookbook
1. Origins: `PUT /v1/account/origins`  
2. Browser: `FX.auto({ publishableKey, hang: "page", form: "#signup" })`  
3. Server after auth: `assess({ email, session_id, user_id: YOUR_ID, context: { flow } })`  
4. Branch on `action` in **your** code  

`watch_mode`: signup/trial → `new_only`; login/checkout/payout → `continuous` (Node: `Frod.watchModeForFlow(flow)`).

Without `user_id` every assess is deep and dossiers do not freeze.

