Slow or fast news day? Picking the right number of updates

Asked for ten updates, an LLM returns ten whether or not anything happened. A deterministic filter chooses what a daily digest covers before the model is called, and skips the call on slow days.

November 20263 min readAgent systemsVerification

A few quick ink-black strokes sit high on the canvas with one small poppy red smear, above a wide lower area of scumbled chalk.
On this page
  1. Filtering out low engagement and duplicates
  2. Limiting how much comes from one source
  3. Shorter write-ups when there is little material
  4. A bug caused by names in the prompt
  5. Checking the finished text

Ask an LLM for a daily news digest of ten updates and it will faithfully return ten entries, regardless of if anything has happened.

This tendency of LLMs to take everything literally and fulfil their given instructions means that it’s important to scale the request to the requirements and context of the situation. In this case, that meant using a deterministic check that handles filtering and selection before anything touches the LLM. On slow news days, this optimizes the cost straight down to 0.

Filtering out low engagement and duplicates

The first pass filters on engagement rather than the model’s relevance score, which can be high even when there is almost no real activity around an item. Using the metrics collected alongside each item, upvotes and comments on discussions or stars and forks on repositories, it drops anything at two or below before ranking.

Deduplication runs next, collapsing identical URLs into a single item so repetition is not mistaken for independent corroboration. Repositories need an extra normalization step because a single project often surfaces under several URLs on the same day: acme/forge, a sub-path such as acme/forge/tree/main/docs and a numbered copy such as acme/forge-staging-2 would otherwise register as separate updates or appear as multiple sources covering it. The heuristic folds sub-paths and numbered staging or mirror copies back into the main repository while keeping unnumbered suffixes like acme/forge-staging separate, as they may be distinct projects. Even so, the matching is approximate and can be wrong.

Limiting how much comes from one source

After ranking, selection takes up to ten items with a cap of three per source type (GitHub, Hacker News, Reddit and so on). Without it, a single dominant source can fill the digest on rank alone. The cap was added after a run in which about 1,800 of nearly 2,000 collected items came from GitHub and all five selected updates were GitHub repositories.

Selection skips any candidate whose source is already at three and stops if no uncapped sources remain, leaving the digest shorter than ten. Neither the per-source cap nor the engagement threshold is relaxed to reach ten, since relaxing them would bring back a single-source digest or pad the count with low-engagement items.

Shorter write-ups when there is little material

Selected items still vary in how much source material backs them. When an item consists only of a single collected link with no further research, the prompt asks the model to keep the write-up to two to four sentences. Because that limit is requested in the prompt rather than enforced in code, it helps keep thin updates short without guaranteeing compliance.

A bug caused by names in the prompt

One bug was self-inflicted: the persona description in the prompt mentioned me and the system by name, and both names were on the blocklist for finished digests. Given those names in context, the model repeated them in its write-ups. The output check then rejected the affected updates, and backfill drew replacements from the remaining list down to the 33rd-ranked item.

The fix was to strip those names from the persona text before prompt assembly and share a single blocklist between the prompt and the output check so the two stay in sync.

Checking the finished text

A few post-generation checks run over the output. Alongside catching leaked internal names, they flag numbers absent from the collected source material and sentences that link two updates using terms neither source contains. Any failing update is dropped while the rest of the digest is kept. Because these checks are strictly lexical and numeric comparisons against the collected text, an update can pass all of them and still be wrong.

Chris Chabot, November 2026