Task · task_msqjq4ch_1l5q81

Bugfix: invoice webhook retries & logging

Source telegram · scenario_bugfix · updated Aug 12, 08:32 PM

Done

Delegation brief

Add retry + structured logging to the invoice webhook handler and open a PR.

Failed invoice webhooks silently drop revenue events; retries and logs restore reliability and ops visibility.

  • Unit tests for retry path pass
  • Webhook returns 200 after successful processing
  • Failed deliveries are logged with invoiceId and attempt count
  • Does not auto-merge to main
  • Do not touch billing database migrations
  • Do not change payment amount calculation
  • Do not auto-merge to main

PR description + files changed + risks; confirm tests pass or show failing output

Gates & result

High-risk coding change · approval required

Approved by operator at Aug 12, 08:32 PM

Added exponential retry (max 3) and structured attempt logging to handleInvoiceWebhook.

  • sample-target/src/invoice-webhook.ts
  • Retries amplify load on outaged ledger — circuit breaker next
  • No auto-merge; PR pending human review

PR description (worker)

## Summary
- Retry loop
- Structured attempt logs

Worker transcript

Tests failed then passed after patch (OpenRouter-backed path when live).

Task audit

No events for this task.

← Board