A Good Mystery Never Cheats. Neither Should Your AI.
Vinay Patankar · 13 Jul, 2026 · Technology · Business
The best mystery novels follow a rule most readers never notice. Every clue you need to solve the case is already on the page before the detective names the killer. The golden-age writers even wrote it down: play fair with the reader. No secret twin sprung in the final chapter. No poison no one could have known about. The pleasure comes from a twist you could have seen, not one that was kept from you.
Break that rule and the reader feels it instantly. A mystery that pulls its answer from something you were never shown does not feel clever. It feels like a cheat. You do not think “I should have caught that.” You think “that was not fair.”
I keep coming back to this rule when I watch people build with AI agents.
An agent reaches a conclusion and acts on it. Sends the email, updates the record, moves the money. And when you ask why, the honest answer is often that you cannot tell. It weighed something it never put in front of you. The reasoning is real, maybe even right, but it lands like the last chapter of a bad mystery. The ending arrived without the clues.
That is the moment trust breaks. Not when the agent is wrong. When it is right in a way you cannot retrace.
A good mystery and a good agent are held to the same contract. Show the clues, then the conclusion. Let me arrive at the same answer from the same evidence. The surprise is allowed. The hidden card is not.
This is why the agents I actually trust are the ones that fail closed and show their work. When they act, I can walk the trail backward: here is what it saw, here is what it decided, here is why. Nothing was slipped in during the final paragraph.
The instinct when you build these things is to hide the machinery and present the answer, clean and confident. It looks smarter. It reads worse. Confidence without the clues is exactly the twist that makes a reader throw the book across the room.
Write the mystery your reader can solve alongside you. Then let the ending land anyway.