# ADR-001: Use mw-core as Foundation (Not Fresh Phoenix)

Status: Accepted | Date: 2026-05-21

## Context
Building a fraud detection platform requires: multi-tenancy, JWT auth, audit logging,
rate limiting, circuit breaking, idempotency, cluster support, async pipelines,
and a real-time admin UI. These are all present in mw-core.

## Decision
Build the fraud system as umbrella apps within mw-core.

## Consequences
Positive:
  + Multi-tenancy, auth, pipeline hooks, Broadway, clustering already production-grade.
  + 3–6 months of foundational work avoided.
  + Existing transaction flow carries risk context through the same pipeline.
  + OpenTelemetry + Prometheus observability works immediately.
Negative:
  - MySQL (not PostgreSQL like Jube). Mitigation: MySQL handles all Jube's PostgreSQL
    use cases (JSON columns, indexes, transactions). No change needed.
  - Must add Redis (new dependency). Mitigation: Jube requires Redis; this is mandatory.

---