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 December 4 my script tried to submit an updated listing on a freelance marketplace and died after 30 seconds. Nothing had been submitted. I know that because I didn't reopen the edit page; I read the seller's list page, which only reads, and the listing was still in its old state.
What the function does
Pressing "Submit" opens a confirmation dialog with two checkboxes and a final Submit button. My function ticks both boxes by their visible text and then presses the button:
for label in ("I completed the proof on my profile", "I removed the related expressions"): dialog.get_by_text(label).first.click() page_wait(400) dialog.get_by_role("button", name="Submit").click() (The real strings are in Korean and the real code has waits in between; this is the shape.) I wrote it on August 31, for the first listing I submitted there, and the submissions I made with it before December went through.
What changed
I wrote a small probe that opens the dialog and clicks nothing. The first box no longer said "I completed the proof on my profile". It said "I've confirmed the above." The second box was unchanged. The old function waited for the first text, never found it, and the click timed out. That was a safe way to fail, but it was luck: the function had no rule for what to do with a dialog it didn't recognize.
The function had no test
I had spent two earlier changes locking down the steps before this one: reading the uploaded files back, proving what was sent, checking the attachment slot before submitting. The flow tests I had written around the submit step either replaced the function with a one-line stub that returns True, or replaced the function above it. The click that sits on the other side of an external page's wording was the one thing no test walked through.
The fix
- Each box has a list of accepted texts: the old and the new one for the first, the same one for the second.
- If none of the texts for a box is found, the function returns False and does not press the final Submit button. It doesn't click a box it can't read, and it doesn't agree to a promise it didn't see.
- Six tests with a fake dialog: two that tick the old and the new first text and submit, three that never press the final button (an unknown first box, an unknown second box, an empty dialog), and one that checks my listing text contains none of the expressions the second box says were removed. That last one is why ticking the second box isn't a false statement.
What I still don't know
I don't know why the text changed or when. My last successful run of this click was before that, so the change happened somewhere in between. The same dialog also has a notice about categories that require proof of qualifications. I found no direct evidence about whether my category is one of them; the only thing pointing the other way is that an earlier version of this listing was approved.
The rules
- A click that agrees to something is a statement, not just an action. Tie it to the exact text and fail closed on any other text.
- Don't stub the one function that touches the outside world's wording. If a test replaces it, the test can't tell you when that wording moves.
- Keep a read-only probe next to every step you can't undo. Mine opens the dialog, prints what it sees, and clicks nothing.
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.

