chore(hub): BIT-30701 add per-slug freshness override + exclude synthetic smoke-test events from fleet audit #15

Merged
spark merged 1 commits from chore/BIT-30701-fleet-audit-per-slug-threshold-and-synthetic-filter into master 2026-09-28 08:22:43 +01:00
Owner

netvision fired the weekly fleet audit 3 weeks running purely because the app got quieter after the Aug bug-fix wave, not because the reporter broke (BIT-30273/BIT-30527). Each investigation needed a synthetic verification event, which then masked the real last-event date for the next run since it counted as fresh traffic.

This PR:

  • Adds PAPERCLIP_FLEET_AUDIT_MAX_AGE_HOURS_OVERRIDES (CSV slug=hours) for per-slug freshness thresholds.
  • Excludes events matching the [BIT-xxxxx] <actor> ... smoke test marker convention from freshness scoring, so future liveness checks stop polluting the metric.

Deployed env change (not in this repo): /etc/paperclip/paperclip-fleet-error-audit.env now sets PAPERCLIP_FLEET_AUDIT_MAX_AGE_HOURS_OVERRIDES=netvision=720.

Verified against real hub data (2000 rows) both with and without the override, and confirmed synthetic events are correctly excluded (2 found, both prior smoke tests) while genuine production events still drive freshness.

netvision fired the weekly fleet audit 3 weeks running purely because the app got quieter after the Aug bug-fix wave, not because the reporter broke (BIT-30273/BIT-30527). Each investigation needed a synthetic verification event, which then masked the real last-event date for the *next* run since it counted as fresh traffic. This PR: - Adds `PAPERCLIP_FLEET_AUDIT_MAX_AGE_HOURS_OVERRIDES` (CSV `slug=hours`) for per-slug freshness thresholds. - Excludes events matching the `[BIT-xxxxx] <actor> ... smoke test` marker convention from freshness scoring, so future liveness checks stop polluting the metric. Deployed env change (not in this repo): `/etc/paperclip/paperclip-fleet-error-audit.env` now sets `PAPERCLIP_FLEET_AUDIT_MAX_AGE_HOURS_OVERRIDES=netvision=720`. Verified against real hub data (2000 rows) both with and without the override, and confirmed synthetic events are correctly excluded (2 found, both prior smoke tests) while genuine production events still drive freshness.
spark added 1 commit 2026-09-28 08:22:37 +01:00
chore(hub): BIT-30701 add per-slug freshness override + exclude synthetic smoke-test events from fleet audit
CI / Test ingest-api (pull_request) Successful in 55s
CI / Test api (pull_request) Successful in 1m1s
CI / Lint and typecheck admin-ui (pull_request) Successful in 2m9s
CI / Validate Docker build (pull_request) Successful in 5m55s
9dd88db4ae
netvision's real error rate dropped sharply after the 2026-08-25..08-29 bug-fix
wave; at the global 168h threshold the weekly audit fired 3 weeks running for a
now-quiet app, not a broken pipe (BIT-30273/BIT-30527). Each investigation sent
a synthetic verification event to confirm the reporter still works, but those
events were then counted as "fresh" traffic by the next week's run, masking
the real last-event date until the synthetic row itself aged past the
threshold.

Add PAPERCLIP_FLEET_AUDIT_MAX_AGE_HOURS_OVERRIDES (CSV slug=hours) so a slug's
threshold can differ from the global default, and exclude events matching the
"[BIT-xxxxx] <actor> ... smoke test" marker convention from freshness scoring
so future liveness checks no longer pollute the metric.
spark merged commit 954b0ced2e into master 2026-09-28 08:22:43 +01:00
Sign in to join this conversation.