An integration can return HTTP 200 while the business data is unusable. For a scheduled feed, monitoring the connection alone leaves a gap between “the service responded” and “the people using the data have a complete, current update.”
Consider a fictional supplier stock feed. Each morning a file arrives, validation runs and accepted records are made available to a sales application. Today the file fails validation; the endpoint remains reachable and the interface still displays yesterday’s quantities.
Define freshness around a decision
Agree with the users how old the stock data can be before a decision needs a warning or a manual check. Record the expected delivery schedule, including timezone, weekends and holidays. A missing file and an intentionally skipped delivery are different states.
Track at least the time of the latest attempt, its result and the time of the last complete accepted update. If updates are partial, record completeness and scope separately: a recent timestamp for one supplier or partition should not imply every item is current. Preserve the previous good version when a new file fails, and make its age visible.
Build tests around observable outcomes
Use a test environment with synthetic files and an adjustable clock or controlled timestamps. Define the expected user and operator behaviour before implementing assertions. For example:
- A valid file arrives on time: the accepted version and visible freshness timestamp advance.
- A file is missing past the agreed deadline: the status becomes late and an actionable alert reaches the intended owner.
- A file arrives but fails validation: the last good version stays intact; the attempted run is marked rejected, not successful.
- Only one partition updates: the interface does not represent the whole dataset as fresh.
- A corrected file is accepted: the status and user-visible data recover, and the history still shows the failed attempt.
Test the configured boundary as well as a case just before it. If the system relies on upstream timestamps, define how it handles missing values, timezone differences and implausible future times. A recent source timestamp alone does not prove the downstream update was applied.
Make alerts actionable
An alert should identify the affected feed or partition, expected arrival, last complete success, failure category, owner and a link to an appropriate runbook. Avoid including secrets or private customer records. Test that the notification reaches the intended route and that someone can acknowledge and investigate it.
Distinguish transient transport failures from invalid files. Bounded retries may help the former; repeating the same malformed input will not repair it. For reprocessing, define safe duplicate handling and verify the final persisted state. Do not assume a rerun is harmless without checking the operation’s semantics.
Test downstream AI behaviour
If an assistant uses the feed, evaluate the application with fresh, stale and absent data. Inspect what it retrieves, the timestamp available to the application, the displayed answer and any action it proposes. A plausible answer should not be treated as evidence of current availability.
Depending on the agreed use case, expected behaviour might be to disclose the age, avoid a current stock claim or route the question to a person. Test both the boundary and recovery: after a valid update, does a new answer use it? Record model and application versions where appropriate, and keep sensitive traces restricted.
A practical release check
For one important feed, demonstrate a missing update, a rejected update and a successful recovery. Ask the operator to follow the runbook and a representative user to interpret the status. Review what was difficult before expanding to more integrations. One passing test is evidence for those cases, not a guarantee for all future failures.
Acadify Solution builds custom software and integrations. Acadify AI Lab, an Acadify Solution practice, supports scoped AI evaluation and developer feedback: https://ai.acadifysolution.com/. This supplier and stock feed are fictional; no client result is claimed.
How do you define a freshness boundary when different users rely on the same feed for different decisions?
Top comments (0)