Files
Pulse/internal
rcourtman a4cdccec29 Fix Patrol summary timeouts, abandoned telemetry, and TLS retries (#5167)
Address three reliability and telemetry defects found while auditing
v6.8.0 and v6.9.0 production telemetry:

- Pass `investigationStreamIdleTimeout` on `ensureFinalTextResponse`
summary requests so OpenAI-compatible and local providers keep Patrol's
60s stream idle budget (and subscription agents keep 4m) instead of
falling back to the 12s default chunk timeout.
- Record `OutcomeTimedOut` on `abandonedInvestigationSession` when the
stuck-run sweep closes an overdue run, keeping durable schema-23/24
telemetry aligned with the finding outcome instead of recording generic
`failed`.
- Treat `NotificationFailureTLS` as non-retryable so broken-certificate
and HTTP-on-HTTPS destinations dead-letter immediately instead of
repeating failed handshakes across queue and SMTP retries.
- Clarify the TLS certificate test error message in
`classifyNotificationError` so Email and Webhook tests no longer suggest
a Skip TLS Verify toggle that only Apprise HTTP provides.

Verification:
- Targeted Go tests passed across `internal/ai/chat`, `internal/ai`,
`internal/notifications`, and `internal/api/alerting`.
- `status_audit.py --check`, `registry_audit.py --check`, and pre-commit
governance guardrails passed.
2026-11-25 23:05:33 +00:00
..