You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add no_tools_found Sentry event to diagnose empty discovery scans
A scan that finds zero tools was previously silent — indistinguishable from
an errored scan, a missed detection, or a genuinely empty device. Emit one
fire-and-forget Sentry warning (phase=no_tools_found) carrying the
discriminators needed to tell them apart:
- homes_enumerated: pre-fallback enumerated-user count (0 = enumeration miss;
the existing post-fallback user_count masks 0 as 1)
- users_scanned, used_fallback_user, is_root, os, duration_ms
Counts/booleans only (no PII); reuses the existing curl-based report_to_sentry;
wrapped so telemetry can never raise into or slow the scan.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Let no_tools_found bypass the per-run Sentry cap (Greptile P2)
A noisy empty scan (many earlier detector errors) could exhaust the shared
30-event per-run cap before the terminal no_tools_found summary runs, dropping
exactly the diagnostic you most need on a likely missed-detection. Add a
`priority` flag to report_to_sentry that bypasses the COUNT cap only — it still
honors the circuit breaker (a dead transport can't be helped) and dedup (no
spam) — and pass priority=True for the no_tools_found event.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Let priority Sentry events bypass the circuit breaker too (Greptile P1)
The priority flag bypassed the count cap but the circuit breaker — tripped by 3
consecutive, possibly transient, send failures — could still skip the terminal
no_tools_found event without even an attempt. Allow a priority event ONE bounded
attempt past the breaker (at most one ~4s curl at end of run) so a transient
mid-scan outage doesn't drop the terminal diagnostic. Dedup is still honored, so
it can never spam.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: audit <audit@local>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments