I’m building a web crawler. The spec says what to collect and how to process it. It also defines the minimum fields required to publish to production.

The results are inconsistent. Some records come out complete, others very incomplete. When I check the incomplete ones by hand, the information is all there. So the data wasn’t missing. The process wasn’t followed every time.

So now AI agents have moods too?!

No. Writing the prompt more firmly doesn’t fix this either. A numbered list in a prompt is a request. It competes with every other token in the context, and nothing enforces it. Security people solved this decades ago: you never trust the client to follow the rules, so you put the check outside the client.

For the crawler, that means:

  • A validator decides what is complete, not the agent. Every field must hold a value or an attempt log.
  • “Blocked” is accepted only with proof of which methods were tried and what each returned.
  • Every step ends as done, blocked or failed, with evidence. “Skipped” is not a state.

And when it says “you’re right, I skipped it”, that is most likely a fluent reply to your correction, not an audit log.

Which step does your agent skip in some runs and not others?