Skip to content

Decouple LongBridge notification delivery sink#31

Merged
Pigbibi merged 1 commit into
mainfrom
decouple-notification-sink
Apr 20, 2026
Merged

Decouple LongBridge notification delivery sink#31
Pigbibi merged 1 commit into
mainfrom
decouple-notification-sink

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR separates rendered strategy notifications from their delivery sinks in LongBridgePlatform.

The immediate issue is that strategy cycle code was still directly pairing detailed log output with compact Telegram delivery at each send point. That made it too easy for future notification changes to drift between logs and Telegram, and it kept delivery details mixed into strategy cycle flow.

The fix adds a RenderedNotification envelope and NotificationPublisher in the notification layer, routes strategy cycle summaries and error notifications through that publisher, and keeps LongBridge-specific prefixing at the delivery edge. Existing message content, order logic, dry-run behavior, and USD cash gating are unchanged.

Validation

  • ruff check
  • unittest discovery
  • sync Cloud Run env workflow test

@Pigbibi Pigbibi marked this pull request as ready for review April 20, 2026 22:01
@Pigbibi Pigbibi merged commit 4da7ec4 into main Apr 20, 2026
1 check passed
@Pigbibi Pigbibi deleted the decouple-notification-sink branch April 20, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant