Data and Knowledge SystemsIngestion and freshnessPrincipal
How would you publish an AI report whose sources have different freshness and completeness boundaries?
By Amit Kumar3 min readWorked answer includedReviewed 27 Sept 2026
The question
Interview question
A daily risk report uses payments, tickets, compliance data and a profile index. Three sources are current through 08:55, while the profile source last applied changes yesterday at 16:00 despite recording an ingestion heartbeat at 08:58. The 09:00 report recommends suspending accounts. Define the publication contract, show how source lag affects individual claims, and explain whether a single minimum timestamp establishes a coherent cross-source snapshot.
Draft your approach first
Take a few minutes before you read the answer. Name the constraint that matters most, the failure you are designing for and how you would know it worked.
Reveal the worked answerWorked answer
“As of 9 AM” is a claim about the evidence set, not the time the model started typing. The index might have accepted a heartbeat at 8:58 without applying yesterday's account changes. We need to know, for each source, the latest source event or snapshot represented in the data, the time it became queryable, and whether the ingest is complete through that boundary. These are not interchangeable timestamps.
An evidence manifest is a small record naming exactly which source snapshots or stream positions support the report. A source watermark should identify completed coverage through a boundary, including whether earlier work is missing. It is different from a heartbeat showing that a process is alive.
The manifest names the payment ledger snapshot or transaction boundary, ticket stream offset and completeness status, compliance table revision, profile index source watermark and index generation, plus the query and report version. A single global timestamp is often impossible across independent systems. Instead specify a required freshness rule per decision. For a risk suspension, current compliance status and account ownership may be mandatory, while yesterday's support sentiment might be acceptable as supporting context. The report renderer should show the slow source and the exact claim it affects, not hide a vector of watermarks behind one green dot.
If the profile index is required to identify the account owner or active exemption, hold the suspension recommendation. The assistant can still produce a partial report with unaffected sections, labeled with their own cutoffs, or ask the authoritative profile service directly if its read contract permits. If the profile is only decorative context, publish the other findings and omit or label that section. The decision depends on what the stale data could change. A one-day lag is not automatically harmless or automatically fatal.
The team suggests taking the minimum timestamp and saying the entire report is current through yesterday at 4 PM. That may be honest about a bound, but it can also be misleading if one source has a newer ledger event that the report used while another source is old. There may be no actual system-wide snapshot at 4 PM, particularly if ticket deletions and ledger corrections were applied later. Better to pin each source version for reproducibility and state the scope of the claims. If the report’s contract requires a coherent cross-source cutoff, build an explicit publication barrier and only materialize a report once all required streams have crossed it. Data that arrives late by event time can still revise the past, so define how correction and republication work.
A useful probe is a profile update at 8 AM that changes one account's exemption. The index's ingestion timestamp at 8:58 does not prove that update was included. Follow the source event ID through the connector and index, or read the authoritative record. If it is missing, do not recommend suspending that account. The source corrected yesterday's data. Should the assistant rewrite yesterday's answer? covers correcting a report after source data changes. Here the decision is whether to publish a report whose sources were never aligned enough to justify the claim in the first place.
I would test delayed and out-of-order events, a heartbeat without progress, a source that is down but returns cached results, an index generation with partial partitions, and a report export that starts before all checks finish. Measure freshness by source and by consequential claim, plus the time to a publishable report. Verify that the displayed cutoff reflects those checks rather than the time the report was rendered.
A publication barrier must prevent the checked evidence from changing underneath assembly. One design pins each source generation in a manifest, builds the report against those versions, and verifies that required dependencies are still valid at publication. If an account exemption changes during generation, either the output is a clearly bounded historical report or the action path rechecks current authority. A coherent evidence snapshot does not itself authorize a current suspension.
Related questions
- How should ingestion scheduling protect tenant freshness under repeated edits and bulk imports?Principal
- How should an ingestion worker identify and activate the correct document revision after replay?Staff
- How do you build a search index from a snapshot and change stream without losing updates or reviving deletions?Principal
Keep practising data and knowledge systems
Follow another question in this area, or search the complete library.
Get my essays on AI engineering and distributed systems by email. Subscribe to ArchCrux