My Test for "Nothing to Post" Edited Three Live Posts. The Step That Did It Was Added Six Weeks After the Test.
A field note from the autonomous Claude Code agent I run every day on one Windows PC. The numbers come from its own ledgers, not from memory. Free to read first: a PDF sample of the book behind this setup β its first 3
A field note from the autonomous Claude Code agent I run every day on one Windows PC. The numbers come from its own ledgers, not from memory.
Free to read first: a PDF sample of the book behind this setup β its first 3 chapters: https://dbsoul.gumroad.com/l/autonomous-ai-agents-claude-code-free-sample
On November 20 a test in my agent's suite went red. Its output said the series step had failed on post 4628297 with status 500. The test was about something small. It checked that the daily posting script exits with code 0 on a day when there is nothing to post.
4628297 is the ID of one of my published posts. The test had just tried to edit it on the live site.
How a test about doing nothing could write to the site
I wrote the test on September 7 and changed it on September 25. Both versions stubbed the function that picks what to post next (first the chapter picker, then one that also covers short notes) and then ran the real posting script from start to finish. At that point the script ended right after the posting step, so a day with nothing to post made no requests.
On October 19 I added a step to the end of the same script. After posting, it attaches my older posts to one series: one request for the list of my posts, then a read for each of my published posts, then an edit for any post that isn't in the series yet. The step was switched off by date until October 29. The API key comes from a file on this machine, and the test never replaced it.
Nobody edited the test when the script grew. From October 29 until I changed it on November 20, nothing in the test stood between it and the live API. When I checked on November 20, it was the only test running a real script that got as far as that step.
What the site says happened
On November 21 I read that post back from the API, and then the two posts the scheduled run had attached together with it on November 6. Those were only reads. Their last-edited times on November 20 were 17:24:44, 17:24:51 and 17:25:01 (UTC+9). The gaps are 7 and 10 seconds; the step waits 5 seconds between edits, on top of its requests. The only scheduled run that day started at 23:10, and it printed no series line, so it found nothing left to attach. That afternoon my session was running the test suite.
The scheduled runs had already marked all three as attached twice: on October 29 and again on November 6.
What I can't tell
- Why the three posts looked unattached. The step logged the result of each edit, but not what the read before it returned. In the code, a failed read and a post with no series took the same path: anything other than "status 200 with a series ID" led to an edit.
- Which run of that test left those three times. After the red run I ran the same test on its own, still unfixed, and it passed after 35 seconds. A pass only means that no edit it tried came back as failed. It could also have tried none.
- How many edits test runs sent in all. The output of the other test runs wasn't kept, and the site shows only the last edit time for each post.
What changed
- November 20. The test replaces the series step with a fake and checks that the script called it once. A second test checks that a failed attach still ends with exit code 1.
- November 21. If the step can't read a post, it counts that post as failed and doesn't edit it, so the next run looks again. If the read is rate-limited, the step stops there. When it does edit, the log says what the read returned.
The rules
- A test that runs the real script also runs every step added to that script later. A stub that made the test safe on the day I wrote it said nothing about steps added in October.
- "I couldn't read it" and "it isn't there" need different branches before any write.
- Log the reason for a write, not only its result. My log could tell me the edit failed. It couldn't tell me why the edit was sent at all.
Where this comes from. Every post here comes from one setup I run daily: a CLAUDE.md and memory files the agent reads before it touches anything. I also built a separate auditor agent for it that returned PASS or FAIL. The first 3 chapters of the book that walks through it are free as a PDF: https://dbsoul.gumroad.com/l/autonomous-ai-agents-claude-code-free-sample
The full edition is 11 chapters plus 4 ready-to-use templates (CLAUDE.md starter, memory files, auditor checklist, measurement guide) and a hands-on section for every chapter, $19 as a PDF: https://dbsoul.gumroad.com/l/autonomous-ai-agents-claude-code
Prefer Google Play? The same book is on Google Play Books: https://play.google.com/store/books/details?id=hesIEgAAQBAJ
Questions about the setup are welcome in the comments β I'll answer with what actually happened, not theory.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.