Repository navigation
feat(feed-explain): show the click predictor's score on a feed it orders - #7554
Draft
Daily-Dave wants to merge 1 commit into
Draft
Daily-Dave wants to merge 1 commit into
Daily-Dave wants to merge 1 commit into
Conversation
On v124 the For You ranking shortlists cards on the score the breakdown shows and the click predictor puts them in order, so the breakdown's claim that its rows multiply into the card's place stops being true. When a card's explanation carries the predictor's block, the breakdown leads with its score, out of 1000, keeps the policy factors under "What got it shortlisted", leaves out the variety rows that no longer move a card, and says which card was shown so a new post gets a look. A card without the block reads exactly as before. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Feed v124 (daily-feed #1099) changes how For You orders a page. The policy score the debugger already shows still decides which cards make the shortlist, but the click predictor q̂ decides the order among them, and the slot's variety multipliers are computed and logged but no longer move anything. On a v124 page today's "Score breakdown" would therefore make two false claims: that the variety rows ranked the card, and that the rows multiply into the number that placed it.
The explanation on a v124 card carries a new optional
qhatblock:fit(the predictor's score, out of 1000, in the order it ranked the shortlist),rank,exposureandtail. It deliberately does not carry what the number is made of; the debugger is open to every signed-in reader on For You, and the score is shown as a score and nothing more.What the reader sees
The overlay card on each post is unchanged: its reason line, source and topic chips with their multipliers, and the controls all describe the signals that get a card onto the shortlist, and those still do that.
In "Full explanation", only the Score breakdown box changes, and only on a v124 page.
Before (and still, on every other feed version):
After, on a v124 page:
On the one card per page that v124 shows so a new post gets a look, a line "Shown so a new post gets a look." sits under the score.
Changes
types.ts: the optionalqhatblock on a ranked explanation.describe.ts: with the block, the breakdown's score isqhat.fit, the four variety rows are left out, and the parts carryshortlistedso the renderer knows which wording applies. Without it, nothing changes.ScoreBreakdown.tsx: the score leads with its own hint on a shortlisted card, the factors follow under "What got it shortlisted", and the footer says what the rows did.describe.spec.ts: the two new cases.No GraphQL or daily-api change: the explanation reaches the client as JSON already. This can ship before or after daily-feed #1099 in either order; until that deploys no card carries the block and the breakdown reads as it does today.
Not in this PR
The score on the overlay card next to the "#position" marker, and the controls' visible effect on a v124 page (a boosted topic moves a post onto the shortlist but barely moves its score), which is the open product question on #1099.
🤖 Generated with Claude Code
Preview domain
https://feat-explain-qhat-score.preview.app.daily.dev