Data for AI · 13 min
Why "The Job Ran" Is Not Proof Your Data Is Fresh
How to define, measure and enforce data freshness per fact, so an AI answer is checked against the moment it was asked, not against last night's job status.
Amrutha Satishkumar
November 11, 2026
On this page
- Job status and data freshness are different measurements
- How stale data passes through a successful job
- The timestamps a fact needs to carry
- Defining freshness per fact, not per pipeline
- Measuring freshness on the data
- Enforcing freshness when the answer is generated
- Common mistakes in freshness monitoring
- The goal is not real-time everything
- Sources
Job status and data freshness are different measurements
Most data platforms report freshness indirectly. A scheduled job runs, the orchestrator records that it succeeded, and the downstream data is treated as current. For dashboards that people read with some skepticism, that shortcut is often acceptable. For AI assistants that state facts directly to customers or employees, it is not, because the assistant has no way to notice that a value it retrieved has stopped being true.
The Timely responsibility in STRATA, my framework for reliable AI answers, names this trap directly: “A successful job run is treated as proof of freshness.” A job status describes the process. It confirms that a run started, completed its steps and exited without errors. It says nothing about whether the source had changed in the meantime, whether the copy the assistant reads matches that source, or whether a given fact was still valid when someone relied on it.
Consider a fictional online outdoor store. On Monday its price list shows the Trail Jacket on sale for $59. The sale ends on Tuesday and the price returns to $89. On Wednesday a shopper asks the store’s AI assistant for a rain jacket in size M under $70, and the assistant recommends the Trail Jacket at $59. At checkout the shopper sees $89. The nightly price load ran at 02:00 on Wednesday and reported success, with normal duration and no errors, but the export it read had not changed since Monday morning. Every pipeline indicator was green while the answer was wrong.
The central point of this article is the distinction between those two measurements: a job status proves that work ran, while freshness is a property of the data that has to be measured on the data, at the moment someone relies on it. The sections below cover how stale data passes through successful jobs, which timestamps a fact needs to carry, how to define a freshness requirement for each fact, how to measure it, and how to enforce it when an answer is generated.
How stale data passes through a successful job
A scheduler observes the process, not the data. It knows the job ran, but not whether the system the job copied from had changed, or whether every downstream copy reflects the result. Each of the following scenarios produces a successful run and stale evidence.
1. The job reloads an unchanged snapshot
If the upstream export that feeds a load stops updating, the file usually remains in place. The job reads it, loads it and succeeds, with the same values each time. In the example, the export stopped updating on Monday morning, so both Tuesday’s and Wednesday’s runs succeeded with Monday’s prices. No component failed, and no component reported that nothing had changed.
2. The incremental window skips changes
An incremental load picks up rows changed since its last high-water mark. If the source writes a correction with an older timestamp, or a row arrives after the window has closed, the next run can skip it. A run that inserts zero rows is a valid outcome for the job, and it is indistinguishable from a quiet day unless something else is measured. A common fix is to re-read a trailing window on every run, for example the last three days by source change time, and let reconciliation catch anything older.
3. The assistant reads a copy that lags the table
Assistants often do not query the table that the data team monitors. They read a search index, a vector index built from chunks of documents, a replica, a materialized view or a feature store, and each of those is a second copy with its own refresh cycle. If the table updates at 02:00 and the index rebuilds weekly, the table is current while the evidence the assistant uses is not.
4. The data is current, but the fact has expired
This case is the least visible. Suppose the pricing source stores promotions without an end date and simply overwrites them when they end. Until the overwrite reaches your copy, the row says $59 with no expiry, and nothing in it indicates that the price could stop being valid. Being loaded recently and being valid now are separate properties, and a load timestamp can only ever establish the first.
5. A cached answer is reused
A cache in front of the assistant can serve Monday’s answer on Wednesday even when every pipeline behind it is working correctly. If the cache key is the question text and the expiry is a fixed number of hours, nothing ties the cached answer to the evidence it was built from.
| What happened | What the job reported | What was actually wrong |
|---|---|---|
| Same snapshot reloaded | Succeeded | The source export stopped changing |
| Rows skipped by the incremental window | Succeeded, fewer rows | Late or back-dated changes never arrived |
| Index or replica behind the table | Succeeded | The copy the assistant reads was older |
| Fact expired at the source | Succeeded | Validity, not load time, was the problem |
| Cached answer reused | No job involved | The answer outlived its evidence |
Only one of these rows, the skipped incremental changes, involves a flaw in the load itself. In three of the others the job did exactly what it was built to do, and in the last no job ran at all. Better job monitoring would not have caught most of them.
The timestamps a fact needs to carry
The word “fresh” covers several different timestamps, and disagreements about freshness are often disagreements about which one is being measured. At a minimum, a fact used by an AI assistant has four:
- Effective time: when the fact is true in the business. The sale price is valid from Monday 00:00 until Tuesday 00:00. In a table, this is typically a
valid_fromandvalid_topair. - Source change time: when the system of record recorded the change. In the example, the pricing team ended the promotion on Monday at 18:00, effective at midnight.
- Load time: when your copy received the row. The nightly job loaded it at 02:00.
- Verified time: when someone, or something, last confirmed that your copy still matches the current state of the source.
A fifth timestamp determines which of the others matter for a given answer, and it is rarely recorded: the asked time, when the user asked the question.

The Timely question in STRATA asks: “Was the evidence valid and available within the task’s tolerance?” The question has two parts, and each depends on a different timestamp. Whether the evidence was valid depends on effective time: the asked time has to fall inside the fact’s validity interval. Whether it was available within tolerance depends on verified time: the interval between the last confirmation that the copy reflected the source and the moment of the question has to be within the agreed limit. Load time answers neither question. It records only when the job wrote the row.
Defining freshness per fact, not per pipeline
A statement such as “the pipeline runs nightly” describes a schedule. It is not a freshness requirement, because it says nothing about how stale an answer may be before it causes harm.
Different facts tolerate different levels of staleness. A price quoted before checkout needs to be confirmed within minutes, a return policy can reasonably be a day old, and a product description can be a week old. Because a single pipeline can carry all three, the requirement belongs to the fact rather than to the job.
The requirement is easiest to manage as a small record with a named owner. The STRATA evidence for Timely is “Effective intervals and verified watermarks”, so the record should define both.
fact: product_sale_price
authoritative_source: pricing.price_list # the Sourced decision, made first
owner: Pricing team
validity:
effective_from: valid_from
effective_to: valid_to # null must mean "no known end", not "forever"
freshness:
max_staleness: 15m # asked_at minus verified_at
measured_on: assistant evidence index # the copy the assistant reads
on_breach:
answer: "say the price can't be confirmed; offer a live price check"
alert: pricing-data on-call
Three fields in that record carry most of the weight:
measured_on: names the copy the assistant actually reads. Measuring the warehouse table while the assistant reads an index is a common way to end up confidently stale.max_staleness: a tolerance agreed with the people who own the consequence of a wrong answer, not the people who own the scheduler. If nobody can state the tolerance a fact needs, that gap is the first finding.on_breach: defines what the assistant does when the tolerance is exceeded. Without it, a freshness check can only produce a dashboard tile that someone reviews later.
Freshness is a requirement on a fact, measured on the copy that answers, against the moment of the question.
Measuring freshness on the data
Once a fact has a requirement, it needs a measurement that cannot be satisfied simply because a job ran. I would put three in place, in the following order.
1. Track a source watermark, not a load timestamp
A watermark is the latest point in the source’s history that your copy is known to include. The most useful version comes from the source itself: a change sequence number, a source updated_at, or a version identifier on the export.
The check compares the newest source change your copy holds with the newest change the source has:
-- How far behind the source is the copy the assistant reads?
-- source_updated_at is written by the system of record, not by the load.
-- Timestamp subtraction varies by engine (e.g. DATEDIFF or TIMESTAMP_DIFF).
SELECT
MAX(c.source_updated_at) AS copy_watermark,
(SELECT MAX(updated_at) FROM pricing.price_list) AS source_watermark,
(SELECT MAX(updated_at) FROM pricing.price_list)
- MAX(c.source_updated_at) AS source_lag
FROM assistant_evidence.price_chunks AS c;
In the example, MAX(loaded_at) would have looked correct on Wednesday morning, while MAX(source_updated_at) would have shown whether the copy included the pricing team’s Monday evening change that ended the sale.
If the source cannot be queried directly, the alternative is a heartbeat: a small record the source writes on a schedule, even when nothing else changes. Without one, a quiet source and a broken feed look identical.
2. Reconcile the copy against the source
A watermark shows how far the copy reaches, but not whether everything up to that point arrived. For the facts that matter most, a scheduled reconciliation compares row counts and a checksum per key range or per day between source and copy.
-- Per-day reconciliation: which days differ between source and copy?
-- Run the same aggregate on both sides, then compare the results.
-- Cast syntax varies by engine; adjust BIGINT if yours lacks it.
SELECT
CAST(updated_at AS DATE) AS change_day,
COUNT(*) AS row_count,
SUM(CAST(price * 100 AS BIGINT)) AS price_checksum
FROM pricing.price_list
GROUP BY CAST(updated_at AS DATE);
Any day where the counts or checksums differ is a day where source and copy disagree: most often a change the incremental window missed, sometimes a delete or a duplicate. The last successful reconciliation is your verified time.
A SUM checksum misses changes that cancel out, such as one price rising by exactly as much as another falls. Where both sides support it, hash each row’s key and values and compare the aggregate hash.
For a 15-minute tolerance, a nightly reconciliation cannot be your verified time. Verify on a short cycle by comparing watermarks, or have the source send a heartbeat through the same pipeline and check that it reaches the copy the assistant reads, and keep full reconciliation for completeness.
3. Measure the index, not just the table
Every index or cache build should record the source version it was built from. Freshness for the assistant is then the age of that version, not the age of the table.
In my experience, this is the measurement teams skip most often, because the index is usually owned by the application team and the table by the data team, and freshness falls into the gap between them.
Enforcing freshness when the answer is generated
A monitor that measures staleness is useful, but it runs on its own schedule, while users ask questions on theirs. The check that protects an answer therefore has to run when the answer is generated. Three changes to the answer path make that possible.
1. Select evidence by effective time
Retrieval should return facts that are valid at the asked time, rather than the most recent row.
-- Only prices valid at the moment of the question.
SELECT sku, size, price_type, price, valid_from, valid_to, verified_at
FROM assistant_evidence.price_history
WHERE sku = :sku
AND size = :size
AND valid_from <= :asked_at
AND (valid_to IS NULL OR valid_to > :asked_at);
The valid_to IS NULL condition is only safe if null genuinely means “no known end”. If the source never sends end dates for promotions, this query returns the expired $59 as confidently as any other row. Resolving that is a conversation with the owner of the price list about what the source records (the Sourced responsibility), not a change to the query.
2. Carry the clocks into the context
Every piece of evidence that reaches the model should carry its validity interval and its verified time, and the application should check both before generation rather than after.
from datetime import timedelta
MAX_STALENESS = timedelta(minutes=15) # from the fact's freshness record
def usable(evidence, asked_at):
valid_now = evidence.valid_from <= asked_at and (
evidence.valid_to is None or evidence.valid_to > asked_at
)
recent_enough = asked_at - evidence.verified_at <= MAX_STALENESS
return valid_now and recent_enough
def answer_price(candidates, asked_at):
fresh = [e for e in candidates if usable(e, asked_at)]
if not fresh:
# Follow on_breach: don't quote a price you can't stand behind.
return say_cannot_confirm_price(offer_live_check=True)
return answer_from(fresh)
The important part is the on_breach branch. An assistant that cannot confirm a price should say so, which is a better outcome than a confident but expired $59.
3. Tie cached answers to their evidence
A cached answer is only as fresh as the evidence it was built from. HTTP caching has worked this way for a long time, and the current standard, RFC 9111, puts it simply: “A fresh response is one whose age has not yet exceeded its freshness lifetime.” Apply the same idea to answers.
- Key the cache on evidence, not only on the question: include the source version or watermark of every fact the answer used.
- Expire on change, not only on time: when the source watermark moves past the version a cached answer used, that answer is stale.
- Record reuse in the trace, so an investigation can tell a regenerated answer from a reused one.
Common mistakes in freshness monitoring
Freshness monitoring has failure modes of its own. These are the ones I would check first.
- Measuring the job again. A check built on run status will pass every time the job runs, and one built on
loaded_atwill pass every time the job writes rows, whether or not the source changed. It is the same signal with a new name. - Mixing time zones. A source that writes local time and a copy that writes UTC can look hours fresher, or hours staler, than it is. Store and compare in one zone, and say which.
- Treating silence as freshness. No new rows is fine for a quiet source and terrible for a stalled one. A source watermark, a heartbeat or a reconciliation tells them apart; a job status cannot.
- One threshold for everything. A single “data older than 24 hours” alert is too loose for prices and too noisy for reference data. Noisy alerts tend to get muted, and then nothing is watched.
- Alerting without a decision. If a breach only raises an alert, the assistant keeps answering from stale evidence until someone acts. The
on_breachbehavior in the answer path is what protects the user in the meantime.
The goal is not real-time everything
None of this means every table needs streaming ingestion. Freshness is a tolerance, set for each fact by the people who own the consequence, and then demonstrated with evidence rather than inferred from a job status. A daily load can be entirely fresh for a fact that changes monthly, and a streaming pipeline can still serve an expired price if no one recorded when the price stopped being valid.
Tighter tolerances also cost money: more frequent verification, more load on the source, and more answers that end in “I can’t confirm that.” Set each tolerance just tight enough that the cost of a stale answer no longer outweighs those costs, and no tighter.
Before relying on an AI answer to be current, it is worth working through these questions:
- Which facts in this answer can cause harm if they are out of date?
- For each, what is the authoritative source, and who owns its freshness requirement?
- What is the tolerance: minutes, hours or days?
- Which copy does the assistant actually read, and is that the copy you measure?
- Does each fact carry an effective interval, and does null mean what you think it means?
- What is the verified time, and what measured it: the source, or the job?
- What does the assistant do when the tolerance is exceeded?
- Can a cached answer outlive the evidence it was built from?
If the honest answer to question 6 is “the job”, what you have is a schedule, not a freshness guarantee. A successful run confirms that work happened; only measurements on the data can confirm that an answer was still true when it was given.
Timely is one of six responsibilities in STRATA, my framework for reliable AI answers, and the page has a free self-check for all six. For the wider set of gaps that only show up after launch, read why AI solutions work in development but fail in production.
Sources
The STRATA wording in this article comes from my framework page; the caching definition comes from the HTTP standard.
- STRATA: Six responsibilities behind every reliable AI answer (The Data Grill)
- RFC 9111: HTTP Caching (IETF)
Amrutha Satishkumar
Data & AI Solution Engineer at Microsoft