Originally published at Trida AI.
A fact sitting in an agent's context does not look old. The account status fetched at nine in the morning reads exactly the same at four in the afternoon, after the account has been suspended, repriced, or handed to a different owner. The text is unchanged. Only the world moved.
That is the defect we think most context assembly gets wrong. Teams argue about how much to put in the window, where to place it, and how to compress it when it grows. Almost nobody stamps it. An item enters the context with no record of when it was true, how long it should be trusted, or what should happen once that trust runs out. So the model treats a six-hour-old price and a six-second-old one as the same kind of thing, because in the window, they are.
Our position is simple: every item of context that can go stale should carry an expiry, and the expiry should be checked by code at assembly time, before the model sees the item at all. Not as a note in the prompt asking the model to be careful about dates. As a gate.
Three dates, and they are not interchangeable
An expiry only works if it is built from the right clock. In practice an item needs three dates kept apart, because they fail in different ways.
The first is when your system fetched it. That tells you the age of your copy, nothing more. The second is when the source last changed it, the moment the fact itself was set. A policy page fetched this morning may have been written two years ago, and that is fine; a price fetched this morning may have been set last quarter, and that is not fine at all. The third date is the one teams usually skip: when this item stops being trusted, set by whoever owns the source, in the source's own terms. Stock levels might get an hour. A contract term might get the life of the contract. A person's role in a company might get thirty days.
Web infrastructure settled a version of this long ago. Under RFC 9111, a cached response counts as fresh only inside its freshness lifetime; past that point the cache is expected to check with the origin before reusing it, rather than serving the old copy and hoping. Agent context deserves the same discipline, with one difference: a web cache that serves a stale page shows someone an old number, while an agent that reasons over a stale fact acts on it. It sends the quote, approves the step, closes the ticket.
The check belongs in the assembler, not in the prompt
The expiry check is a comparison of two timestamps and a rule. That is code's work. Asking the model to notice dates inside a wall of text and discount the old ones puts a bookkeeping job on the one component that cannot reliably do bookkeeping, and it fails silently. The model does not announce that it used the expired item anyway.
So the assembler, the code that builds the context for a run, owns the check. Each item arrives with its three dates. If it is inside its lifetime, it goes in, with its fetched date visible so the model can cite how current its evidence is. If it has expired and the fact matters for this run, the assembler re-fetches it before assembly finishes; the new copy gets new dates. If it has expired and cannot be re-fetched, because the source is down or the record was deleted, the item does not quietly go in anyway. It's either left out, with the gap stated in the context, or included clearly marked as unverified, depending on what the run is allowed to do with uncertain facts. That choice is a policy decision for the deployment, made once, not a judgment call the model makes per run.
There is a cheaper habit that supports all of this. Anthropic's guidance on just-in-time retrieval makes the point that an agent does not need every fact loaded up front; it can hold a reference (a record ID, a query, a link) and pull the value when a step actually needs it. A reference cannot go stale in the way a copied value can. The value is fetched at the moment of use, so its clock starts then. Where a run works through stages over hours, holding references for the fast-moving facts and copies only of the slow ones removes most expiry problems before they form.
Figure 1: The assembler checks each item's dates before the run starts. Fresh items pass, expired items go back to their source for a new copy, and items with no lifetime set are held out of decisive use.
One quote, checked twice
Take a renewal quote, built for this piece as an example. An agent prepares it in the morning from three items: the customer's current plan, taken from the account record; a discount rule, taken from a policy page; and a unit price, taken from the pricing system an hour earlier because an earlier step needed it.
By the time the quote is reviewed in the afternoon, the three items have aged very differently. The plan is unchanged and well inside its lifetime. The policy page is old as a document but its lifetime is the policy's term, so it passes. The price is the problem: pricing gave it a two-hour lifetime, it is now five hours old, and in between, pricing changed. Under the gate, the assembler refuses the old price, re-fetches, and gets the new one: four percent higher. The quote that goes out carries the new price, and the run's record shows the swap: what was replaced, when, and what the old value had been.
Without the gate, nothing in that afternoon's context looks wrong. The old price is well formatted, plausible, and consistent with everything around it. That's what makes stale context expensive: it does not produce obviously broken output. It produces confident output that was right this morning.
Figure 2: The same quote at review time. Two items pass on their own lifetimes; the price has expired, is re-fetched, and the replacement is recorded.
Where this stops working
Expiry dates are only as honest as the lifetimes behind them, and setting lifetimes is unglamorous work. Somebody who knows the source has to say how fast it changes. Set every lifetime short and the system re-fetches constantly, paying in latency and load for freshness nobody needed; set them long and the gate becomes decoration. There's no formula for this. There is a per-source judgment, reviewed when a stale fact gets through anyway.
Some facts also resist dating altogether. A summary written by an earlier agent, a note taken during a call, a preference a user mentioned last month: these have a fetched date but no natural lifetime, and inventing one is worse than admitting the gap. Our rule for those is narrow: they can inform, but they cannot be the sole basis for a consequential step. If a decision turns on a note, the note gets re-verified against its source first, or a person confirms it.
And expiry does nothing for a fact that was wrong when fetched. A fresh copy of a bad record passes the gate cleanly. Freshness is one property of a trustworthy item, alongside where it came from and who is allowed to see it. It is the property teams most often leave unrecorded, which is why it is worth building first, not because it finishes the job.
If your agents assemble context from sources that change — prices, statuses, permissions, people — give the items dates, give the dates consequences, and let code enforce them. The model should spend its attention on the decision, not on guessing which of its facts have quietly expired.
Work with us
If stale facts are reaching your agents' decisions, in quotes built on old prices, answers built on superseded documents, or approvals built on last week's status, that is an assembly problem we can work through with you. Bring it to Trida AI's intake and tell us which source changes fastest in your deployment.


