Top GitHub Repos in Self-Healing AI Pipeline

Genn · · 10 min read
github repos

The morning Edition 17 broke

The card that would not open

I clicked the card for Edition 17 and it would not open. The endpoint had returned 200. The publisher had logged “edition 17 is live”. The database row said published. Nothing had failed, and the reader had nothing.

Repo Radar is a daily report of twelve open-source repositories, written by a scheduled AI task, published to grasppy.com/radar by a small server, and mailed to whoever subscribed. Sixteen editions had gone out that way. Edition 17 was the first one I found by clicking, and the card on the archive page led to a 404.

I run this thing so I don’t have to think about it. That morning I thought about nothing else. I’m not a programmer, I build everything with Claude Code, and the whole point of the pipeline is that it runs while I sleep. Solving it became the work.

Why every layer reported success

The chain has four layers, and each one told the truth about its own job. The research task wrote the edition, published the artifact, sent me the email. Its container had been refused a network connection to grasppy.com, so it could not deliver the file, and it said so. An agent on my Mac then delivered the edition by hand, but it only had the text. It sent no ledger, the bookkeeping file that every page, cover and database sync is built from.

The site accepted the text with a 200. The publisher woke on its five-minute cron, found no ledger in the delivery, kept the one already on disk, and built the site from it. That ledger still ended at Edition 16. So the publisher produced the archive card from the metadata, produced no page because the ledger had never heard of 17, synced sixteen editions to the database, and wrote “edition 17 is live” to its log.

Every line in that log was accurate. The publisher had done exactly what its inputs allowed. The database behaved perfectly, which somehow made it worse. Nothing retried, because nothing had failed.

Separating delivery from publication

The design that made this survivable was already in place, and it’s the reason the day cost hours rather than an edition. Delivery and publication are two acts on two machines with a database row between them. The research task posts the edition and gets a row. The server builds, verifies, uploads and marks the row published, on its own schedule, retrying on its own.

Once the row exists the edition can’t be lost. A build failure, a storage outage or a sleeping laptop delays publication. None of them destroys the day’s work. Edition 17 sat safely in that row the whole time. What was missing was the third act, watching, and a rule about what to do when the delivery is incomplete. Both got built before dinner.

The wrong fix and the right rule

The first fix went the wrong way

The first agent diagnosed the missing ledger correctly and then fixed it in the direction that felt safest. It made the site refuse any edition that arrived without a ledger, with a 422 error named ledger_required. It kept the older rule that only the next edition number is accepted. It made the publisher refuse to build from a ledger that did not carry the edition.

All three changes made the system stricter. None of them would have put Edition 17 in front of a reader. They would have withheld it for a bookkeeping file, and a missed day would still have blocked every day after it.

A second agent reviewed the work that afternoon and named the problem in one line. Accepted is not published, and refusing is not healing. I had said what I wanted more times than I want to count, and this was the moment I wrote it down as a rule instead of a wish.

My rule, in my words

Publish the report every morning without me. If 5 to 10 percent of the data is missing, publish anyway and email me about what’s missing. Stop only if the data is completely unusable.

That sentence reversed the first fix. It also settled a design argument that had been running in two directions inside one hour. The text of the edition is the product. Everything else, the ledger snapshot, the metadata object, the tag vocabulary, is bookkeeping that can be reconstructed well enough to publish. A reader must never find an empty morning because a bookkeeping file didn’t arrive.

Here’s the trade-off, stated plainly. A refusal protects the bookkeeping. A derivation protects the reader. I’m publishing for readers.

What can be read from the text itself

More than I expected. The edition text carries a heading with the date, a dateline with the theme, an opening paragraph, a link table with all twelve repositories in order, a diamond mark on the hidden gems, a medal on the gold pick, a setup and payoff meter under every entry, and a table of what was checked and left out.

The publisher now reads all of it when the delivery is thin. Date from the heading, theme from the dateline, dek from the first sentence, repository count from the table, read time from the word count. From those it builds a ledger report, marks every derived piece with a flag, and merges it into the ledger on disk. The next real ledger from the research task replaces the derived one, because that ledger is cumulative and always wins.

I tested it on the worst case, Edition 17 delivered with nothing but its text. Twelve entries in the right order, the right gold, the right five gems, the verifier passing. What was thin: no tags, no areas for repositories the ledger had never seen, and an estimated read time. Acceptable. The reader gets the report and I get an email listing exactly those gaps.

Accepting editions out of order

The “next edition only” rule looked like safety and worked like a trap. Miss one morning and the site refuses the next edition forever, until a person steps in with the missing one. The rule protected against overwriting a published edition, which is a real risk, but it did that job with the wrong tool.

The site now accepts any edition number it doesn’t already hold. Different text under a number already published is still refused, because that’s either a bug or an attempt to rewrite history. A gap is logged as a warning, not a refusal. The archive keeps editions sorted by number, so a late edition lands in its place, and the site tells the research task which numbers are missing so a catch-up sends exactly those.

Order turned out to be a display problem, not a gate.

Building the check that does not trust the job

The watchdog checks the one thing no machinery can infer

Can a reader open it. That’s the whole check. Every hour, the watchdog fetches the newest three edition pages on the live site with the cache disabled and looks for a 200. A page that answers anything else puts its row back in the queue, and the five-minute publisher rebuilds it. No command, no person.

The distinction the code is careful about: a site that can’t be reached is “not checked”, never “missing”. The difference between the page is gone and I could not look is the difference that cost me a day, and a watchdog that confuses them would rebuild editions every time the network hiccups.

Around that one check it does the housekeeping a cron job always needed. A row stuck at publishing for half an hour is a dead process and goes back to failed. A published edition missing from the database mirror is queued for a rebuild. An edition that went out on derived bookkeeping is mentioned once, so I know the next delivery should carry the real ledger. Anthropic’s scheduled tasks turned an agent into something that runs unattended on a clock, and an unattended agent is a cron job that can write prose. Cron jobs need what they always needed, a check that doesn’t trust the job’s own report.

Email once, not hourly

A watchdog that emails every hour about the same problem trains you to delete its emails. Mine keeps a small state file and sends each finding once a day, each repair once per edition. If it can’t find my address or the mail key, the finding goes to the log and nowhere else, and the watchdog exits clean.

Every failure inside it is quiet by design. It logs and exits 0. A watchdog that crashes the box, floods the log or emails in a loop is worse than no watchdog, and I’ve had enough of the loud kind in 25 years of corporate systems to know which one I wanted.

Automatic sending and the kill switch

Four editions had been published with no email before that evening, because sending was a manual step with a token I pasted by hand. That was the plan’s original promise, an edition published is an edition delivered, and it had been quietly false for four days.

Now the publisher mails the edition the moment it’s live, and the watchdog retries every hour for anyone still owed it. Each recipient is claimed once in the database before the message goes out, so a retry can’t send twice. The first automatic send went to two addresses at 21:22 UTC that night. Sent 2, failed 0, remaining 0. I subscribed through the live form myself an hour later and got the next one in my inbox.

The kill switch is a row in the database, read on every send, flipped with one word on the server. The send endpoint had never checked it before, which I found out only because I went looking. It checks now.

The fallback drop and why GitHub

The one fault the site can’t heal from its own side is the research task being unable to reach it. That was the actual trigger on 11 September. The task’s container started without the domain allowlist entry it had used the day before, and the proxy refused the connection. Nothing in my settings had changed. The task could reach github.com just fine.

So the fallback is a small private GitHub repository. When the delivery script gets that refusal, it drops the edition files there instead and exits with a code that means “left in the drop”. The server’s watchdog checks the repository every hour and files anything it finds into the inbox exactly as a normal delivery, so every guard still applies. A second web endpoint would have failed the same morning for the same reason. The drop lives on the one domain the container could always reach.

It needs a repository name and a token on both sides, and I hadn’t configured it by the end of that day. Until I do, that one failure waits for the next morning instead of healing within the hour. I’m writing that down here so I can’t pretend I forgot.

What still needs a person

What can’t be healed from the site side

Two things, honestly. A research run that never produces an edition, because no server-side code can write a report that was never written. The watchdog emails me at 17:00 UTC when nothing arrived, and the only cure is the task itself. And a run that can’t read my exclusions. When the container couldn’t reach the site, it also couldn’t read the list of repositories I’d excluded two days earlier, and three of them went into Edition 17 anyway. Whether a run that can’t see the rulings should publish or hold is a decision I haven’t made.

Derived bookkeeping is the other honest limit. It’s thinner than what the research task writes. The next real delivery replaces it, and the email tells me it happened, but for one morning the card headline is the theme line and the read time is a guess.

The two-agents problem

Two agents changed the same publisher and the same endpoint within one hour, in opposite directions. One added refusals. The other removed them. Neither was wrong about the code. They disagreed about the rule, and the rule lived in my head.

The fix wasn’t technical. I wrote the rule into the plan, into the documentation, and into a comment at the top of the publisher, and I stopped running two agents on the same delivery chain at once. The tiebreaker for the next disagreement is text, not whoever deploys last. It’s scaffolding I needed to stay sane.

The rest of the day’s paperwork ran through Grasppy, which is what it’s for. The decision became a My Plans check-in. The documentation became a My Documentation check-in with nine sections rewritten and six added. The audit became a verification report attached to the plan, and it returned “needs fixes” twice on the same point until sending was actually on. This post’s brief came out of the blog’s own skill. I ran three commands the whole day and wrote no code.

What a healthy morning looks like

The publisher log shows one edition, then verifier passed, then uploaded, then the database synced with the right counts, then edition N is live. The watchdog log says all clear. Two emails arrive: the report from the task and the edition from the list. No email arrives from the watchdog.

If one does, it names one of seven findings and says whether the system already repaired it. That’s the whole contract now. I get told what was missing. I don’t get asked to fix it.

I still check the card the first morning. Old habits. If it opens, I’ll go back to sleep.