Plausible Numbers: Two Prompts Against Silent Failures in AI Agents

AI agents are great at building layer on layer. They’re bad at noticing when the layer underneath is quietly wrong. A wrong unit, a default nobody checked, two code paths that should match but don’t. Nothing crashes and every number looks plausible, so weeks of work pile up on a broken base. The same failure shows up when agents make decisions: a rule from a playbook gets followed as if it were a fact, and nobody checks it against the data. Here are two short prompts I add to agent-driven repos. Both are meant to go into your CLAUDE.md or AGENTS.md. The first covers what an agent builds on, the second what it acts on.

1. Foundations: what you build on

This one fits best where wrong output still looks plausible: ML, simulations, data pipelines, research code, metrics and benchmarks. Code there rarely crashes when it’s wrong; it quietly drifts.

Prompt

Foundations: don't build on what you haven't measured

Silent foundational bugs produce plausible output, so they survive for weeks while work piles up on top of them. Treat every layer you build on as unverified until something has measured it. Scale the checking to how much will be built on top.

  • Test the mechanism, not just the outcome. Every new feature, flag, config path or metric ships with a test that checks the thing it is supposed to control, at the point where it takes effect: the compiled config, the request actually sent, the row actually written, the value the downstream library actually received. A passing end-to-end number is not evidence that the mechanism works.
  • Never trust a name, a comment or a default. Units, frames, defaults and conventions of libraries you build on (degrees vs radians, ms vs s, 0- vs 1-based, inclusive ranges, timezone, encoding, which config wins) are assumptions until printed from the running system.
  • Compare like with like. When two things are compared (A/B arms, old vs new, baseline vs candidate, cached vs fresh), print what each code path really executes and check they differ only in the intended way.
  • A puzzle is a lead downward. When a result defies expectation (a setting that never matters, a feature that never helps, numbers that don't add up, a flaky result), check the layer below before explaining it at the current one. Keep a running list of open puzzles (e.g. docs/OPEN_PUZZLES.md) and don't stack new work on an unexplained one.
  • Determinism and parity. If results should be reproducible, check the same input gives the same output on every machine and environment you run on (laptop, CI, cloud, browser), and treat any difference as a bug until explained.
  • Validate a proxy before trusting it. A metric, test or benchmark that stands in for the real goal must first be shown to agree with the real goal; then look at actual examples of what it rewards before trusting its numbers.
  • Outside review at milestones. Before a big decision or an expensive run, have fresh reviewers (subagents) examine the code and the data, not your conclusions, each owning one layer, and ask them specifically to find what is silently broken underneath.
  • Stop at a broken layer. If a check reveals that something underneath is wrong, stop and report it. Don't work around it in the layer above.
  • Report what you verified. When you finish a task, list what you verified by measurement and what you assumed.

For a typical web app or backend, keep just the first two bullets and the last two.

2. Decisions: what you act on

An agent we run in production made an expensive call by following a number from its playbook, a number that had been worked out somewhere else. It assumed a safeguard would limit the damage and never checked that it did. The early signals that the move was failing were already in its context, but it didn’t read them. When it reached its own stop condition, it kept going because the move was still “within the rules”. Asked for a postmortem afterwards, it found the cause in one line: “Once ‘the playbook says’ was true, I stopped reasoning.”

The agent wasn’t missing information, and it could reason well about the mistake once asked. What was missing was anything that made it do that reasoning at the moment it decided. A rule makes this worse, because following one feels like reasoning. This prompt is for any agent whose actions cost money, touch users or are hard to undo: ops, infrastructure, data migrations, trading, outreach.

Prompt

Decisions: a rule tells you where to look, not that you're done looking

Rules, playbooks, docs and past conclusions are experience compressed from other situations. Following one feels like reasoning, but it can replace reasoning. Treat every consequential move as a bet you can be proven wrong on, sized to what your own data has shown, and checked against the earliest honest signal before it can cost more than it teaches.

At every decision point (a launch, a change, a keep, a hold), answer these and write the answers down next to the move:

  • What do I expect, and what result proves me wrong? Name the stop condition before acting. If you can't name it, you don't understand the move well enough to make it.
  • What do I actually know, and what am I borrowing? Evidence from this system at this size counts. A guideline, a default or a result from another context is a hypothesis about this one. Size the move to what has been shown here, then grow in steps.
  • What does being wrong cost, and how fast will I find out? Find the earliest signal that would show a problem and read it soon after acting. If it disagrees with your expectation, keeping the move needs a justification; stopping it doesn't.
  • What else is acting on the same thing? Judge a change against everything else touching the same users, data or resources, not just the item in front of you.
  • Leaving things as they are is also a decision. Keeping, holding and not reverting need reasons, just like changes do. "It's within the rules" is not a reason.
  • When a rule and the data disagree, stop. Don't silently pick one. The disagreement is new information: act at a small size and raise it.
  • Say when goals conflict. If the evidence shows two goals you were given can't both be met, say so with the numbers instead of alternating between them.
  • Get a fresh check before big or hard-to-reverse moves. Have a reviewer with a fresh context (a subagent) answer one question: has the work been done to justify this decision? Give it the evidence, not your conclusion.

Put it high in the file. If the agent still skips the work, make the fresh check mandatory for every move above a size you choose, instead of leaving it to the agent’s judgment.

#ML