Tenant context is trusted
Policy, query, and persistence constraints with cross-tenant negative tests.
Supporting project · Backend reliability
Domain modernization plannedA legacy TypeScript backend being repositioned around its actual loyalty, coupon, and gift-card domain with tenant isolation and failure-safe workflows.
Engineering thesis
The repository name reflects its history; the implementation's real domain is loyalty operations. The modernization makes that discrepancy explicit and targets trusted tenant context, constrained commands, persistence-level isolation, idempotent mutations, durable jobs, and complete audit history.
Duplicate delivery, partial failure, concurrent updates, token lifecycle, and recovery are treated as normal system behavior.
Target evidence
Policy, query, and persistence constraints with cross-tenant negative tests.
Validated commands, idempotency keys, concurrency control, and transactional boundaries.
Outbox processing, duplicate delivery tests, retry limits, dead-letter behavior, and operator repair.
Actor, tenant, command, transition, timestamp, correlation, and recovery history without leaking secrets.
Current boundary