PR #14: add monitor-freshness workflow for ingest/reachability drift#14
PR #14: add monitor-freshness workflow for ingest/reachability drift#14khalidsaidi merged 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ee6a4e38f3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ingestAgeHours="$(( (now - ingestEpoch) / 3600 ))" | ||
| reachAgeHours="$(( (now - reachEpoch) / 3600 ))" |
There was a problem hiding this comment.
Compare freshness age in seconds, not truncated hours
This workflow floors elapsed time to whole hours (/ 3600) before checking the >36 and >18 thresholds, so stale data can pass for up to 59 extra minutes. For example, an ingest timestamp 36h59m old still computes ingestAgeHours=36 and does not fail, which weakens the intended “older than 36h/18h” monitoring guarantees.
Useful? React with 👍 / 👎.
Summary
.github/workflows/monitor-freshness.ymlhttps://ragmap-api.web.app/rag/stats(no secrets needed)lastSuccessfulIngestAtolder than 36 hourslastReachabilityRunAtolder than 18 hours30 */6 * * *workflow_dispatchWhy
reachableMaxAgeHoursand 4x/day reachability refresh cadenceValidation