The flow
- I decide
- The system acts a job, a service or a model
- A gate checks
Numbers match the steps below.
Steps
-
MeChoose what goes in
Feeds sit in folders in a hosted reader. Newsletters get in only through a forwarding rule that I add myself for each sender. My own likes and dislikes, set in the reader, teach it what I want.
-
Feed serviceCollects and stores the feeds
A hosted account does the fetching, storing and first de-duplication, so I do not run a crawler. A few sources are fetched directly instead.
-
Ingest jobReads everything on a timer
A small Python job runs every morning and again on a light refresh each hour. It is plain code on a schedule: nothing in it decides what is worth reading.
-
TriageDrops what I would skip
The editorial gate. A small model that runs on a machine of my own reads each item. If that model is unreachable, the step falls back to a cheap cloud model rather than passing everything through.
-
Cloud modelRanks what is left
A stronger cloud model scores the items. This step and the compose step are the paid calls; the small-model steps cost nothing.
-
DedupRemoves repeat coverage
A second small model groups items that cover the same story. A zero-guard stops it from returning nothing, because an empty result would otherwise mail a blank digest.
-
Cloud modelComposes the digest and mails it
The model writes the digest. The run mails it from a sender address reserved for this stream, and posts it to the app's API.
-
Web appStores it and serves it, private
An API and a database keep every digest and a web app shows them. The app answers only to my own devices; anyone else gets a 404.
-
MeRead, and decide what counts
I read the mail or the app. Clicks are recorded. Each week an optimizer proposes new source weights, and they stay pending until I approve them.
-
Restore testProves the backup comes back
A nightly backup copies the database off the machine. A weekly job restores the newest copy into a throwaway database. A quarterly drill boots the app images against a restored copy.
-
Smoke and heartbeatsNotice when it stops
Smoke checks the containers, the endpoints, backup age and that the public path says no. A job that stops reporting success trips a dead-man alert, and a failed run mails me.
Guardrails
Smoke and heartbeats
- Smoke covers the services, the endpoints, how old the last backup is, and that the public path answers 404, never 200.
- Every scheduled job leaves a success marker with a maximum age. A stale marker raises an alert, and so does a heartbeat that stops arriving.
- The two jobs that only tune things (the hourly refresh and the optimizer) are deliberately unwatched, because their failure costs nothing.
My call
- Database migrations, and any change to who can sign in or what data is kept.
- The optimizer's reweighting proposals, and any new newsletter rule.
- Every deploy follows the same written ship procedure, so a live change is never improvised.
Dump, restore, drill
- A nightly dump to storage off the machine, with a month of history kept.
- A weekly restore test, so a backup is proven by use rather than assumed.
- A retention job prunes old rows, so the database does not grow without bound.
The idea
A useful system is mostly plumbing around a few model calls. Put the cheap, replaceable models at the gates, spend the paid ones where judgment matters, and make every stage fail loudly: a zero-guard against a blank result, a backup proven by a restore, a heartbeat for every job. I choose the inputs and approve any change to the weights; the rest runs without me and tells me when it does not.