What problem does it solve?
Hart Agency’s event-sourced Express backend has multiple runtime registration points (events, projections, endpoint wiring) that TypeScript may not catch, causing failures only when code runs.
Core Features & Use Cases
- Endpoint-first backend changes: guide updates to commands/queries and the central
api.ts + index.ts implementation registry so frontend and mobile stay in sync.
- Correct event-sourcing workflow: help implement aggregates, creation/transformation events, and the
withEventStore generator pattern without async-in-generator mistakes.
- Projection and reaction safety: ensure projection repositories and Ambar consumers are registered and that reactions handle at-least-once delivery risks (idempotency/marker events).
- Auth-guard correctness: enforce proper
resolve vs authorize split and correct use of privileges and actor-type narrowing.
Quick Start
Update the Hart Agency backend endpoint and related event/projection wiring for my request touching app/backend/src by following the conventions and checklist in this skill.