feat(listener): notification analytics aggregator (#126)#152
Merged
Abd-Standard merged 1 commit intoJun 22, 2026
Merged
Conversation
Implements the backend notification analytics service requested in Core-Foundry#126: - New NotificationAnalyticsAggregator service - Records per-delivery outcomes (success/failure/retry/skipped) - Tracks per-type and per-contract delivery statistics - Computes time-bucketed aggregates with success rates and durations - Process-wide singleton accessor + override for tests - Integrates recording in retry queue and discord notification paths - New GET /api/analytics endpoint exposing the aggregated snapshot - 25 new aggregator unit tests; 295 total tests passing Signed-off-by: zeroknowledge0x <zeroknowledge0x@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #126
Summary
Implements the backend notification analytics service requested in issue #126:
reset=trueto clear state after read.Acceptance Criteria
Tests
Files
listener/src/services/notification-analytics-aggregator.ts(new, +433)listener/src/services/notification-analytics-aggregator.test.ts(new, +293)listener/src/api/events-server.ts(+50, GET /api/analytics + override seam)listener/src/api/events-server.test.ts(+115, new tests)listener/src/services/discord-notification.ts(+35, recording hooks)listener/src/services/notification-retry-queue.ts(+21, recording on retry/failure)Signed-off-by: zeroknowledge0x zeroknowledge0x@users.noreply.github.com