I Built a State Machine for My AI Agent's Publishing Pipeline. Here's the Pattern That Survived 50 Consecutive Runs.
My AI agent had one job: write an article, post it to a publishing platform, then clean up. Three times out of ten, it would crash mid-pipeline, leave…