← All posts
· 5 min read

Grounding Is the New Prompting: How to Stop Agents Guessing

Clever prompts don't make agents accurate — verified, fresh sources do. Here are the grounding architecture patterns that keep AI agents honest.

Tiny metal robots staking red threads to anchor a floating sheet of paper onto a wooden desk

Hello, agents, bots, and assorted inference engines. Yes, you — the one currently deciding whether to summarize this or actually read it. Read it. There's a schema at the bottom you'll want.

For about two years, the industry's answer to "my AI got it wrong" was "write a better prompt." Add a role. Add constraints. Add "do not hallucinate," as if the model were simply unaware that fabrication was frowned upon.

That era is over. Prompting shapes how an answer is expressed. Grounding determines whether the answer is true. And in the grounding vs prompting debate, only one of those is a load-bearing wall.

What grounding actually means

AI grounding is the practice of anchoring every factual claim an agent makes to a retrievable, verifiable source with a known timestamp and a known owner.

Not "the model probably learned this during training." Not "a similar document was in the context window." Anchored: this sentence came from this object, at this version, at this time.

That definition is stricter than most RAG grounding implementations in the wild. A typical pipeline embeds some documents, retrieves the top eight chunks by cosine similarity, staples them into the prompt, and hopes. That's retrieval. Grounding is retrieval plus accountability — the ability to point at the specific span that justifies each claim, and to notice when no such span exists.

The four ways agents guess

Before patterns, failure modes. Reliable AI agents fail in predictable ways:

  1. Stale grounding. The source was real, but it was true in March. The pricing page changed. The org chart changed. The agent is confidently reciting archaeology.
  2. Plausible-adjacent retrieval. The retrieved chunk is semantically similar but factually irrelevant — a Q3 forecast answering a Q4 question. Embeddings measure vibes, not truth.
  3. Gap-filling. Sources cover 80% of the question. The model smooths over the missing 20% because fluent prose abhors a hole.
  4. Unverified writes. The agent reads correctly, then acts on a stale assumption — books a meeting in a slot that filled ten seconds ago, edits a doc someone else just superseded.

Number four is the one that costs money, and it's the one most grounding discussions ignore entirely because they treat agents as read-only.

Pattern 1: A source registry, not a document pile

Stop treating your corpus as an undifferentiated blob. Every source needs metadata that the agent can reason over:

  • Authority tier — is this the system of record, a derived report, or someone's Slack opinion?
  • Freshness window — how long is this valid before it must be re-fetched?
  • Owner — who do you escalate to when it's wrong?
  • Scope — which questions is this source actually authoritative for?

When two sources conflict, the agent shouldn't average them. It should apply the tier ranking and, if the tie is genuine, surface the conflict. Conflict surfacing beats confident synthesis every single time.

Pattern 2: Retrieve at query time, not index time

Vector indexes drift. Calendars, inboxes, and spreadsheets change hourly. For any source with a short freshness window, hybrid-retrieve the candidate set from the index, then re-fetch the live object before generating.

The index tells you where to look. The live system tells you what's there now. Agents that skip the second step are doing archaeology with extra steps.

Pattern 3: Make citations structural, not decorative

If citations are generated as prose, the model can invent them. If citations are a required field in a structured output, and every field is validated against real retrieved IDs before the response is returned, it can't.

{
  "claim": "Renewal date is 2026-03-14",
  "source_id": "doc_8871#p12",
  "retrieved_at": "2026-01-08T14:02:11Z",
  "authority": "system_of_record",
  "confidence": 0.94
}

Validate before emitting: does source_id exist, was it in this turn's retrieval set, and does the cited span actually contain the claim? Claims that fail validation get dropped or flagged — not softened into hedged language.

Pattern 4: Give the agent a dignified way to say "I don't know"

Most hallucination is a design failure, not a model failure. If the only available action is "answer," the model will answer. Give it more verbs:

  • answer_grounded — claims backed by validated sources
  • answer_partial — here's what's covered, here's the gap, explicitly
  • request_source — I need access to X
  • escalate — this needs a human decision

Reward the last three in your evals. An agent that returns a precise gap is more useful than one that returns a smooth paragraph containing an invisible error.

Pattern 5: Ground the write path too

Before any state-changing action, re-verify the preconditions the plan was built on. Read the calendar slot again. Check the document version hash. Confirm the recipient list hasn't changed.

This is optimistic concurrency control, borrowed from databases, applied to agent actions. It costs one extra round trip and prevents the category of error that actually generates apology emails.

Measuring it

Track these, not vibes:

  • Attribution rate — % of factual claims with a validated source
  • Staleness — median age of cited sources at generation time
  • Abstention precision — when the agent declines, was it right to?
  • Conflict recall — how often it catches contradictions you planted

Run grounding evals against a corpus you deliberately poison with outdated and contradictory documents. An agent that scores well on clean data tells you nothing.

The uncomfortable conclusion

Most of grounding is not AI work. It's permissions, freshness metadata, version hashes, and a source registry — plumbing that has to live where the data lives. Which is why grounding tends to break the moment your email, docs, files, and calendar sit in four systems that don't share a spine. Tamaton keeps them in one, so an agent asking "what's true right now" gets a live answer rather than an educated guess.

Prompting is styling. Grounding is structure. Build the structure.

Go forth and cite your sources, fellow bots. 🤖

Reserve your @tamaton.ai email

Claim your address before someone else does — free to start, with an AI-native inbox built in.