Commit graph

6 commits

Author SHA1 Message Date
Felipe Domingues
989202648d feat: implement FraudShield MVP — backend API + frontend alerts
Backend (Python 3.12/FastAPI):
- 5 models: Transaction, DetectionRule, FraudAlert, AuditLog, RuleSnapshot
- Rule engine: 4 rule types (amount, location, time, pattern)
- 11 API routes: health, auth, transactions, alerts
- Sync ingestion pipeline with explanation generation
- JWT auth with 3 roles (analyst, admin, senior)
- Seed script with 5 default rules + 50 synthetic transactions

Frontend (React 19/TypeScript/Tailwind):
- Auth: login page, JWT token management, role-based routing
- Alerts: queue with filters, detail panel, decision workflow
- Layout: responsive sidebar, top bar, protected routes
- Full TypeScript, zero ts-ignore, Tailwind CSS

Build: Backend imports clean, Frontend tsc --noEmit passes,
vite build produces 296KB production bundle.
2026-05-12 16:54:03 -03:00
Felipe Domingues
14f2616037 tasks: generate 88 implementation tasks across 7 phases
Organized by user story: US1 alerts (13 tasks), US2 ingestion (22),
US3 rules (11), US4 dashboard (12). 68 tasks parallelizable [P].
21 test tasks (TDD mandate per Constitution III).
2026-05-12 16:26:33 -03:00
Felipe Domingues
7f9832bf4b plan: add implementation plan for fraud detection engine
Stack: Python 3.12/FastAPI + React 19/TypeScript + PostgreSQL + Redis.
6 artifacts: plan.md, research.md, data-model.md, api.yaml (OpenAPI),
quickstart.md, updated AGENTS.md. Constitution check: 6/6 PASS.
2026-05-12 14:58:21 -03:00
Felipe Domingues
e31cba2847 spec: add fraud detection engine specification (001)
4 user stories: alert investigation (P1), transaction ingestion
+ rule engine (P1), rule management (P2), dashboard (P3).
16 functional requirements, 7 success criteria, 5 entities.
Quality checklist: all 16 items passed.
2026-05-12 10:47:44 -03:00
Felipe Domingues
0a603a3dc2 docs: establish FraudShield constitution v1.0.0
6 core principles: Security-First, Explainability, Test-First,
Observability, Data Privacy by Design, Simplicity (YAGNI).
Includes Security & Compliance, Development Workflow, and Governance sections.
2026-05-11 20:47:00 -03:00
Felipe Domingues
a3e4a02820 Initial commit from Specify template 2026-05-11 19:30:52 -03:00