Implementation patterns

Start from the action you protect.

Each guide connects collection timing, a conservative probe profile, the mobile payload, and the backend contract for one real product flow.

One action, one traceable context
  1. Backend creates an opaque action ID.
  2. App collects only purpose-approved probes.
  3. Host API sends the raw event with authentication.
  4. Backend validates freshness and action ownership.
  5. Policy combines observations with server evidence.

What every implementation keeps constant

Server-known action

Use a short-lived login, payment, recovery, redemption, or protected-action ID. Do not invent a persistent device ID.

Purpose-bound collection

Use consentFor(...), disable unnecessary probes, and project fields before the event leaves the app.

Raw outcome semantics

Preserve success, skipped, timeout, error, omitted values, and observed false.

Backend-owned policy

The SDK does not calculate a risk score, produce a verdict, upload data, or make a blocking decision.