Summary
Authentication events are written fire-and-forget and every database error is swallowed. Incident-response history can silently disappear even though the request path logs success.
Repository evidence
lib/auth/auth-event-log.ts:82-103 documents and implements an unawaited AuthEventModel.create(...).catch(() => {}).
lib/auth/auth-event-log.ts:114-116 relies on that collection for incident review.
Scope
- Queue auth events through a durable bounded path or await critical event classes.
- Emit metrics/alerts for dropped events and validate field-size limits before logging.
Acceptance criteria
Tests
Non-goals
- Replacing the broader financial audit trail.
Summary
Authentication events are written fire-and-forget and every database error is swallowed. Incident-response history can silently disappear even though the request path logs success.
Repository evidence
lib/auth/auth-event-log.ts:82-103documents and implements an unawaitedAuthEventModel.create(...).catch(() => {}).lib/auth/auth-event-log.ts:114-116relies on that collection for incident review.Scope
Acceptance criteria
Tests
Non-goals