Problem: two API layers — live src/router.ts+src/handlers/* vs orphaned src/api.ts + Analytics.ts classes (AnalyticsStore/QueryAPI/AggregationPipeline) only referenced by tests/exports (audit).
Scope: delete or clearly quarantine the dead path so contributors know the source of truth.
Done when: there is one real request path; tests target it.