Skip to content
Castellan
Developer Herald's icon

Concept · Developer Herald

Read as

How the Developer Herald decides what's news

The rules code follows for what's news in a project's releases; how the local model summarises release notes, and its limits; and how each host is read.

Article
1503
Applies to
Developer Herald 0.10.0
Last reviewed
For
For developers
Written for Developer Herald 0.10.0. Developer Herald is at 0.10.13 now (12 small releases since: what changed).

The baseline#

The first time a feed is read, the releases upstream has then are recorded as known. None of them is news. A feed added later gets its own baseline.

What's news#

Every release not seen before: a tag new to the feed, newest first. Where a host has no releases, its tags are read instead.

  • A prerelease is news, marked as one.
  • A draft is never news, nor an older release that comes back into the list when a newer one is deleted.
  • Every new release of a feed you follow is news. Nothing is filtered or flagged by words: to hear less, follow fewer feeds.

What the model adds#

With Plain-words notes on (in Castellan's Settings > Employees, under Settings for the whole staff), a small model on this PC writes a two- or three-sentence summary of each new release's notes, asked for the main changes, new models and features first. It runs on the NPU, a graphics card or the processor, taking its turn with the rest of the staff (see Where the work runs). Each summary is labelled summary from the Developer Herald, and its hover says to check it against the facts beside it.

  • The notes are cleaned first: link targets, images, "first contribution" lines, pull request bylines, and paragraphs repeated from the release before, so a header every release carries isn't read as news.
  • Long notes are read in pieces, each summarised, then combined. At most 6 pieces (about 30,000 characters); longer notes are summarised from their start, and the summary says it read part of them.
  • At most 6 releases a round are summarised (Model calls per round). New releases come first, then each feed's latest, so the first round has summaries too.
  • Nothing is asked twice: summaries are kept by release and notes.
  • When the accelerators are busy, summarising waits, and the page says for how long ("Busy: summaries deferred for about 10 min."). The next round tries again.
  • Without the local AI, the news and its facts are all still there, with a line saying why there's no summary.

How it reads upstream#

GitHub is read through the GitHub CLI (gh) when it's installed and signed in, else through GitHub's public API without a token. Which one is decided every 10 minutes, so signing gh in takes effect without a restart.

  • Signed in, the hour's allowance is 5,000 requests; without, 60, enough for a few dozen feeds once their first answers are known.
  • An unchanged answer (304) doesn't count against the allowance.
  • Below a tenth of the allowance left, the GitHub feeds wait for the next round.

GitLab, Gitea, Forgejo, Codeberg, Bitbucket Cloud, Azure DevOps and GitHub Enterprise are read through their public APIs, without a token. Each host has its own allowance: once it asks to wait (429), or with fewer than 3 requests left, its other feeds wait for the next round. Dates from every host are said in UTC.

An Atom or RSS feed is read as it is. A private feed's sign-in is kept in Windows Credential Manager and sent only to that feed's own site, over https: a redirect to another site is asked without it.

npm, crates.io and PyPI are read only to find a suggested package's repository.

Every call is a read: it can't comment or change anything. A failing feed shows its error on the page, and doesn't stop the others. Offline, a feed that can't be read shows "offline", what it had stands, and it's read again next round. Anything that looks like a token or a sign-in is blanked from errors, its log and the page.

Its limits#

  • It reads the newest 10 releases of each repository a round (Releases read per repo). More than that between two rounds, and it misses the oldest.
  • A folder or a plain git remote has no release feed. Follow the project's repository on its host, or a feed of its releases.
  • Bitbucket Data Center has no tags it reads: give an Atom or RSS feed of its releases instead.

Is this page right?

If something on it is wrong or out of date, tell us and we'll fix the page.

Still stuck? Write to support@castellan-software.com and mention article 1503. Every version of Developer Herald, and what changed in it, is in its release notes.