AI agents as explicit state machines | Dark Hacker News