mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-06 18:39:42 +00:00
dc5386db43
Document live webhook delivery and Patrol investigation bounds across unclaimed Help guides and add source-bound regression tests: - docs/WEBHOOKS.md (+ mirror): document X-RateLimit-Reset-After on HTTP 429 within the 1-second to 15-minute cap, exact HTTP status-to-failure class mappings (401/403/407 authentication, 402 configuration, 408/421 connectivity, 423/425/5xx server_error, 429 rate_limited, other 4xx rejected), immediate non-retryable TLS handling across webhooks, email/SMTP, and Apprise with no Skip TLS Verify toggle on webhook/email destinations, and the 1 MiB response-body drain cap (WebhookMaxResponseSize). - docs/AI.md (+ mirror): align Patrol Investigation Configuration with subscription-CLI defaults (25 min timeout, concurrency 1), the 60-1,800s timeout clamp, and the 20-minute fix-retry cooldown; add the four remaining live InvestigationOutcome values (fix_rejected, fix_verification_unknown, unclassified, interrupted). - docs/PATROL_ARCHITECTURE.md (+ mirror): document investigation turn stream-idle timeouts (60s streaming, 4m buffered Codex/Claude CLIs, preserved on ensureFinalTextResponse), remaining-deadline summary budget, conclusion reserve, 4,096-token output-limit recovery pass, and recoverStuckInvestigations (5-minute grace window, interrupted vs timed_out session/finding reconciliation). - scripts/tests/test_notification_troubleshooting_docs.py and scripts/tests/test_authentication_diagnostic_docs.py: pin all added bounds and enumerations directly against live Go source. Contract-Neutral: Documentation and doc-verification test alignment with existing runtime behaviour; no code, API, or subsystem contract changes Change-source: pulse-maintainer