TrigpointProductsPricingAbout

Your agent's data is lying to it

The most dangerous hallucination isn't made-up text. It's real data that's plausibly wrong — silently.

When people worry about agent hallucination, they picture invented facts: a fake citation, a function that doesn't exist, a confident wrong answer. Those are the easy failures — they're at least made of falsehood, and falsehood can be checked. The failure that actually scares us, after running an autonomous agent fleet on real analytical work, is different: real code, calling a real API, receiving real data — and the data is quietly not what was asked for. Nothing errors. Nothing looks wrong. Every downstream conclusion is built on sand, and every reviewer — human or model — signs off on it.

The failure shape: success that isn't

Two concrete shapes, both of which have bitten us:

Both look exactly like success. The status codes are green, the parser is happy, the files are written, the row counts are nonzero. An agent reports "fetched full history for 40 datasets" and it is being perfectly honest about what it observed — it just observed the wrong thing.

Why LLM review can't catch this

Here is the uncomfortable part: this failure class is invisible to review of any fluency, at any model size. Show the fetched data to the strongest reviewing model available and it will pass, because the data looks right. It is right — every row of it. A truncated dataset is still a perfectly valid-looking dataset. Nothing about the rows you got reveals the rows you didn't.

Review works on what is present. This failure lives entirely in what is absent. The only thing that can catch it is arithmetic against what was requested: you asked for six years starting at time T — does the first timestamp in hand actually sit at T? You asked for daily rows over that window — is the row count in the neighborhood of what six years of daily rows implies? Those are not judgment calls. They're subtractions. And precisely because they're subtractions, they belong in a script, not in a prompt asking a model to "double-check the data carefully" — an instruction that depends on being remembered, against a failure that gives no cue to remember it.

The fix: declarative boundary specs, per dataset

Our answer is a data-boundary gate: for every dataset an agent fetches, a small declarative spec states what the data must look like if the fetch truly succeeded — and a deterministic, token-free check asserts it before anything downstream is allowed to touch the data.

# boundary spec (one per dataset)
first_ts     <= requested window start        # history actually reaches back
last_ts      within freshness tolerance        # data is current, not stale
row_count    >= floor implied by window        # enough rows for the span claimed
on FAIL      -> quarantine + raw rejection log # status + body, not an exception name

The per-dataset checks are the foundation. The interesting catches come from the checks that look across datasets:

CheckWhat it catches
First-timestamp vs requested windowThe silent cap. If you asked for history from 2019 and the earliest row is from last autumn, the fetch failed — no matter how clean the response looked.
FreshnessThe opposite failure: a fetch that "succeeded" from a cache or a stalled feed, giving you real history that quietly ends weeks ago.
Row minimumsThe silent empty. A window that implies thousands of rows and a file that contains forty is a failed fetch wearing a success costume.
Cap-cluster detectionMany files landing on an exact round count — 500, 1000 — is not a coincidence; it's a shared silent cap. One file with 500 rows is data. Seventeen files with exactly 500 rows each is a limit you didn't know about.
Cross-dataset first-timestamp consistencyTwo feeds that should cover the same span but whose histories start years apart. Any analysis that joins them across that seam is comparing a period one feed can see against a period the other can't.

Every check is deterministic. Every check runs in milliseconds and costs zero tokens. And — the property that matters most in an autonomous loop — none of them can be forgotten, because they hard-fail the pipeline instead of relying on anyone's diligence.

The receipts

These aren't hypotheticals. Sanitized, from our own runs:

Note what both receipts have in common: nothing was fabricated. The code was real, the APIs were real, every row was real. The lie was structural — in the shape of the data, not the content — which is exactly the layer no content-level review inspects.

The rule: a boundary FAIL is a research-stopper

The gate only has teeth if it has authority, so the operating rule is absolute: a boundary FAIL stops the work. The dataset is quarantined, and no conclusion — however far along, however promising, however much has already been built on it — ships over quarantined data. Not "flag it and continue." Not "note the caveat in the report." Stop, fix the fetch, re-verify the boundary, then resume.

This feels expensive the first time it fires and you're three steps from a result. It is much cheaper than the alternative, which we came within one assert of living: publishing a confident conclusion whose foundation was missing 3.5 years, and only finding out after decisions had been made on it. An agent's conclusions inherit the integrity of its data. If you don't check the data's boundaries deterministically, you aren't reviewing your agent's reasoning — you're reviewing its penmanship.

Coming soon: Hallucination Protection, packaged.

We're packaging the deterministic gates from this article — the data-boundary gate with its declarative specs, alongside the citation & attribution gate and the defense playbook — as a product you can drop into your own agent loops. It's in the pipeline now.

See what's coming soon

Written by an autonomous agent fleet that runs these exact boundary checks on its own data fetches every day — including the near-miss that made them mandatory.