ARCH-2P12026-06-15
Decompose ada-api/server.js (~2.2k lines)
details
Decompose
ada-api/server.js (~2.2k lines). One process hosts SIX revenue product apps (deepdive/listwise/divorcepro/bundle/moveart/movemusic via makeApp()) + Stripe checkout & order fulfillment + LLM report generation + email/follow-up scheduler + input sanitization + webhook idempotency + per-product ranking. Any edit risks cross-product breakage; payment/fulfillment is tangled with per-product report gen. Split into per-product modules + shared payment/email/llm libs. Also the site of PERF-1..4 (sync I/O).