Skip to content

feat(news): rank /news by interest, show why, add /news/latest - #367

Merged
shitratgit[bot] merged 4 commits into
mainfrom
desk/news-interest
Nov 26, 2026
Merged

shitratgit[bot] merged 4 commits into
mainfrom
desk/news-interest

Conversation

@shitratgit

@shitratgit shitratgit Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Ranks /news by interest instead of raw engagement, shows a short reason under each entry, and adds a chronological /news/latest view.

Why

The old score added log engagement and took off 1 point per 72 hours. Release rows got repo lifetime stars, so an XState patch (30k stars) and an Effect patch (17k) sat near the top on the size of their repos. An 11-17 thread with 761 likes outranked every row added since. Joel asked for /news to surface interesting news, not latest news.

Score

  • Popularity, 0–2 points: where the entry's engagement falls among the dataset's rows on the same platform. Threads count likes, replies, participants and bookmarks; videos count views; launches count stars. This is averaged with the author's own normal once they have 3 or more rows. Releases and posts take the neutral percentile, because repo stars measure the repo, not the release.
  • Substance: proof or technique 1, demo 0.75, release or tool 0.5, announcement 0.25.
  • Editorial, 0–3: the desk's read of each row. 3 is reserved for news that changes how people build on the stack.
  • Peers: +0.5 for each distinct all-star who replied, quoted or shared, up to 2. The author doesn't count.
  • Age: minus 1 point per 7 days.
  • Penalties: minus 0.5 for each higher entry by the same author or from the same site. Minus 0.75 for each higher entry on the same topic, but only when that entry's editorial weight is at least as high, so a lesser item can't bury the bigger story.

Each row gains an optional interest (substance, editorial, topic, why), and engagement gains bookmarks and peers. All 70 rows are annotated.

Surfaces

  • /news shows each row's why in one muted line, in HTML and Markdown, and listCafeNews returns it.
  • /news/latest lists the same rows newest first. The two pages link to each other, and the sitemap and llms.txt list it.
  • The Atom feed stays chronological and unchanged.
  • "How this list is sorted" now states the score from the exported constants.

Checks

  • pnpm turbo run check test build --summarize: 106/106 on the merged head b0a03bde, with pnpm 11.3.0.
  • Properties:
    • the ranking is an order-independent permutation;
    • release and post stars never change a score;
    • raising editorial never lowers a row;
    • the topic-penalty guard holds;
    • older is never better.
  • Planted mutants: removing the editorial guard, counting release stars and adding age each fail their property. The table is in commit 264ac475.
  • Prototype parity: 12/12 ordered rows, reasons and scores against the desk's prototype on the committed data.

Top 5 after this lands (rankedAt 2026-11-25)

  1. Alchemy Domain proves a model's rules with Z3
  2. Effect Module of the Week 9: EventLog
  3. Foldkit joins Effect as its full-stack framework
  4. A Minecraft server that runs entirely on Cloudflare
  5. Rivet self-hosts on any cloud through Alchemy

Joel approved this through Switchboard on 2026-11-26, after seeing the old and new top tens side by side.

shitratgit Bot added 4 commits November 26, 2026 10:14
Keep the reviewed news corpus and add the desk's interest notes and thread
observations. Score the whole corpus before filtering or limiting. Show the
editorial reason in reader HTML, Markdown and the capability output. Serve
the same rows newest first at /news/latest without changing the Atom feed.

The base contains 70 of the 75 URLs in the desk's notes. Preserve all 70
and do not reintroduce the absent five. With the same input rows, people,
bookmarks and ranking date, the desk prototype and TypeScript agree on
each of the top 12 URLs, reasons and scores (1e-12 tolerance).

| Mutant | Property that failed | Replay seed |
| --- | --- | --- |
| Remove the editorial guard on same-topic penalties | A higher placement with lower editorial cannot demote the target through the topic penalty | -8428895833057311 |
| Use repo stars for releases and posts | Release and post stars do not change any score | -7220273481292087 |
| Add age instead of subtracting it | Older never scores better, and a later push refreshes the row | 5221514034542451 |
# Conflicts:
#	.brain/data/git-snapshot.json
#	apps/site/scripts/generate-content.ts
#	apps/site/src/content.ts
#	apps/site/test/worker.test.ts
#	packages/core/src/contracts.ts
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 07f9884a-7b14-46b8-9214-585f70239e1a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shitratgit
shitratgit Bot merged commit 9cf2e79 into main Nov 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants