Guesswork is a missing contract
An agent guesses when the ground beneath a question is not defined. The guess rarely looks like a guess. It looks like a plausible join, a reasonable assumption about which table is authoritative, a defensible reading of a column called status that means one thing in the billing system and another in the fulfilment system. The model is not being careless. It is filling a gap that the data layer left open.
The common response is to retrieve more. Widen the search, add another index, attach a second warehouse, let the agent query three systems and reconcile. This treats guessing as a recall problem. It is not. When the canonical source is undefined, additional retrieval does not resolve the ambiguity; it multiplies the candidates. The agent now has four defensible answers instead of one, and the selection among them is made by a language model at inference time, under token pressure, with no record of why one was chosen. That is not grounding. It is a richer form of guessing.
The Athena framing is useful because it points at a data layer rather than at the prompt. Name the entities, expose them through a governed interface, let the agent ask questions of a catalogue rather than of a pile of tables. But a data layer is only as good as its declared semantics. A catalogue that lists tables without stating which one is authoritative, how current each field is, and what to do when two sources disagree has moved the guess one level up. The agent now guesses which catalogue entry to trust.
What is missing is a contract. Not a document that describes the data in prose, but a machine-readable commitment that the agent runtime can enforce and that can be diffed between releases.
What the contract contains
A grounding contract has three parts, and each of them has to be explicit enough that a validator can reject a run which violates it.
Entity definitions with an owner and a revision. Every entity the agent may reason about gets a name, a stable identifier, a schema with typed fields, a named owning team, and a revision number. The owner is not decoration: it is the party accountable for the semantics of that entity, and the party who signs off on a revision change. The revision matters because the agent's behaviour depends on it. If customer gains a field or changes the meaning of an existing one, every prompt, tool and evaluation that referenced the old shape is now operating against a different contract, whether or not anyone updated them.
Freshness budgets per field, expressed as a maximum staleness the agent may assume. This is the part most platforms omit, and it is where a large share of silent errors originate. A field is not simply present or absent; it carries an age. The contract states, per field, the maximum staleness the agent is permitted to assume when it answers. A balance may be trusted to the minute; a preference profile to the day; a regulatory classification to the quarter. The runtime then attaches an observed timestamp to every value it hands the agent, and the agent is required to reason against the budget rather than against an unqualified value. When a value exceeds its budget, the correct behaviour is defined in advance: refuse, qualify the answer, or escalate to a slower canonical read. What is not permitted is answering as though the value were current.
A conflict rule, decided before the run. Two sources will disagree. The question is whether the resolution is chosen by the model at inference time or by the contract at design time. The contract names, per field or per entity, the precedence order, the tie-break, and the fallback. If the CRM and the billing system disagree on account status, the contract says which wins, and why, and what the agent should report when neither can be established. Deciding this before the run converts an improvised judgement into a reviewable rule. It also makes the disagreement visible: every conflict the agent encounters becomes a signal to the owning team rather than a private decision inside a trace.
A concrete mechanism: represent the contract as a versioned artefact alongside the code, with a schema per entity, a max_staleness attribute per field, and a precedence list per resolvable field. The agent's tool layer reads the contract at start-up, tags every retrieved value with its source, revision and observed age, and refuses to emit a grounded claim that cites a field outside its budget or a source not named in the precedence list. Grounding becomes a property the runtime can check, not a hope about model behaviour.
The honest trade-off is cost and friction. A strict contract rejects queries that a looser system would answer, sometimes unhelpfully. Freshness budgets force synchronous reads where a cache would have done. Precedence rules require owners to make decisions they would rather defer, and every deferred decision is a place where the agent will keep guessing. The contract buys determinism and auditability at the price of coverage and speed. Teams that adopt it usually discover that a meaningful fraction of their previously "working" agent answers were correct by luck.
Evaluating grounding separately from task success
If grounding is a contract, it can be scored independently of whether the task succeeded. These are different questions and conflating them hides the failure mode that matters most: an agent that produced a right answer for the wrong reason, or a wrong answer that passed a shallow check.
Score grounding on its own axis. For each claim in a run, did the agent read the canonical field named by the contract, at a revision that matches the active contract, within the freshness budget? This is a structural check over the trace, not a judgement about correctness. It produces a grounding rate that can fall while task success rises, which is exactly the signal a team needs before a lucky streak turns into an incident.
Replay is the second instrument. Keep prior contract revisions addressable, and replay a recorded run against the previous revision. Answers that move between revisions are the ones the contract change touched. This turns contract maintenance from an act of faith into an observable diff: a change to a precedence rule or a tightened freshness budget should produce a predictable set of shifted answers, and an unpredictable set is a finding. Replay also catches the opposite problem, where a contract change was supposed to alter behaviour and nothing moved, which usually means the runtime is not actually enforcing the contract.
Publish contract changes the way you would publish a schema change. Classify them. A new optional field, a widened freshness budget, an added fallback source: non-breaking. A removed field, a narrowed budget, a reordered precedence list, a changed entity identifier: breaking, with a migration note and a deprecation window. Version the contract, tag agent releases against the contract revision they were built for, and treat a mismatch between the running agent and the active contract as a deployment error rather than a runtime surprise.
The commitment, not the catalogue
A platform that reduces agent guesswork is making a promise about which facts are canonical and how stale they may be. That promise is only meaningful if it is explicit, enforced at runtime, and versioned like any other interface the system depends on. The catalogue, the retrieval layer and the query interface are the visible surface. The contract underneath is what determines whether the agent is grounded or merely well-informed.
Teams that treat the contract as a first-class artefact tend to find that the interesting engineering work moves earlier: into entity ownership, into freshness decisions, into the argument about precedence that nobody wanted to have. That is the point. Those decisions were always being made. The only question was whether they were made by an owner in review or by a model mid-run, and whether anyone could tell the difference afterwards.
