telegram-listener: Known Failure Modes

Component: telegram-listener Tags: telegram-listener,gateway,rpe,gates,rabbitmq Author: phase-f-migration Updated: 4/26/2026, 3:47:42 PM

telegram-listener is the pipeline entry point. It receives Telegram webhook updates and routes them.

FAILURE MODES:

1. Gate 5 engagement verdict timeout — channel-engagement-pipeline-runner call times out (15s). All DMs gate-drop silently. Check channel-engagement health first when DMs stop being processed.

2. RabbitMQ disconnect — event publishing fails. Messages are still received from Telegram but request.received events stop appearing in system_event_log. Check rabbitmq consumer count on the normalize.request queue.

3. agent-gateway HTTP failure — deep-path POST fails (5s timeout). Message is logged as received but never dispatched. System shows request.received with no request.dispatched following it.

4. Config service unreachable on startup — service fails to boot; all webhook callbacks return 500. Check config-service health.

5. MongoDB write errors — zoey_raw_messages insert fails but pipeline continues (non-fatal). Watch for error logs containing zoey_raw_messages.

6. Redis session cache miss — causes repeated context lookups. Performance degradation, not a hard failure.

FIRST CHECKS:

DEPLOY TYPE: image-copy. Changes require rebuild + up -d.