Design the recommendation system that powers the up-next rail and autoplay queue on a YouTube-like watch page. Given a user, the currently playing video, and session context, the system should return a personalized ranked slate of five videos. The first position becomes the autoplay target. Home feed, search, subscriptions, and trending are out of scope.
The product objective is not simply to predict the next click. The system should…