Data freshness in AI agents measures how recently the information used for a decision was confirmed by its source. A freshness policy sets the maximum age allowed for each action and tells the agent when to refresh the data, show its age, request review, or stop. For example, inventory checked ten minutes ago may support a weekly report, while placing an order requires a new availability check.
Atlan describes the closely related idea of context freshness as "the practice of keeping the definitions, lineage, ownership, and policy an AI agent relies on synchronized with the current state of the systems those things describe" (Atlan, July 2026). A freshness policy turns that practice into rules an agent can check before it acts.
Why stale data is an agent problem
A person reading a stale dashboard can notice that a number looks wrong. An agent acts on it. It quotes an expired price, ships to an old address, or approves a payment against a balance that changed a minute ago.
Retrieval makes this harder to see. A document embedded last quarter keeps answering questions long after the policy it describes was replaced, and nothing in the answer says so unless you record the source date.
Freshness contract
| Field | Example question |
|---|---|
| Source of truth | Which system can confirm the current entitlement or balance? |
| Maximum age | Minutes for a dashboard, seconds for an execution decision? |
| Effective time | Does the record apply now or only after a future date? |
| Invalidation | Which event expires cached or embedded data? |
| Failure action | Use labeled stale data, request review, or stop? |
Set the window by decision, not by system
The same record needs different freshness depending on what the agent does with it. Write the window next to the decision, not on the data source.
| Decision | Freshness it usually needs | If the data is too old |
|---|---|---|
| Answering a policy question from documents | Days or weeks, with the document date shown | Answer, and show the source and its date |
| Quoting a price or availability | Minutes, re-read before sending | Re-read the source, or hand to a person |
| Changing a record, sending money or shipping goods | Re-read immediately before acting | Stop and record why |
RAG and execution differ
Retrieved guidance may tolerate a declared age. A high-impact tool action should re-read authoritative state immediately before execution when balances, permissions, inventory, or destinations can change.
For retrieval, re-index when the source changes rather than on a fixed schedule, and store the effective date with every chunk so an answer can carry it. For execution, never let a cached value stand in for a re-read on a consequential step.
Practical example: checking inventory before placing an order
This illustrative policy lets an agent show cached inventory in a draft but requires a successful check of the inventory service within 60 seconds before submitting an order. The 60-second window is an example chosen for this workflow; the workflow owner must set the actual limit.
| Time (UTC) | Observation or action | Freshness decision |
|---|---|---|
| 10:00:00 | The inventory service confirms 12 units available for SKU SOL-100. | Record the confirmation time, record version, and source. |
| 10:04:00 | The agent prepares an order for 8 units using the cached result. | The observation is 240 seconds old, exceeding the 60-second execution limit. Refresh before submitting. |
| 10:04:02 | A fresh inventory check confirms only 5 units available. | The requested quantity is unavailable. Hold the order and ask the user to revise it. |
If the refresh times out, keep the draft and record that the source could not be verified. If the service omits the confirmation timestamp or returns an unknown version, route the draft for review. A cache read at 10:04 does not make an observation confirmed at 10:00 fresh.
Record the source, SKU, requested quantity, source confirmation time, retrieval time, maximum age, record version, policy version, and outcome. A fresh read still needs an inventory reservation or an atomic availability check when the order is committed, because another buyer may purchase the remaining stock between reading and writing.
What to do when data is stale
- Label and continue, when the decision is low impact and the age is shown to the user.
- Refresh and retry, when the source of truth is reachable within the time budget.
- Route to a person, when the source is unreachable and the decision matters.
- Stop and record the reason, when acting on stale data could move money, change records or reach a customer.
Evidence
Record source, record ID, version or checksum, retrieval time, effective time, cache state, freshness decision, policy version, and outcome. Test stale, future-dated, cross-tenant, duplicated, and contradictory records.
Preserve freshness evidence without copying sensitive source content. For where those records live and how long to keep them, see AI agent audit trail retention.