101: spotify-releases: notified checkpoint not persisted on partial failure → duplicate notifications#106
Open
agent-relay-code[bot] wants to merge 2 commits into
Open
Conversation
added 2 commits
July 21, 2026 00:50
Member
Ready for human reviewPR #106 matches issue #101: delivered Spotify releases are persisted even when part of the artist scan fails, while Validation:
This is ready for human review and has not been merged. I’m happy to discuss status, trade-offs, or any open questions here. |
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.
Where
spotify-releases/agent.ts(checkpoint persistence)Problem
Both
saveLastCheckandsaveNotifiedare gated ondelivered && failed.length === 0. When messages were delivered (delivered === true) but some artist fetch failed (failed.length > 0),saveNotifiedis skipped — so the already-notified releases are re-sent on the next run (duplicate notifications).Suggested fix
Persist
notifiedwheneverdeliveredis true (records what was successfully sent), and keep advancinglastCheckgated ondelivered && failed.length === 0so failed artists are rescanned:Found by CodeRabbit while reviewing vendored snapshots in AgentWorkforce/skills#87.
Fixes #101
Summary by cubic
Fix duplicate Spotify release notifications when some artist fetches fail. We now record delivered releases after successful sends and only advance the last-check after a complete, error-free scan. Fixes #101.
notifiedwhendeliveredis true (and releases exist) to prevent re-sends.lastCheckonly when no artist fetch failed, so failed artists are retried.notifiedsaved,last-checkunchanged.Written for commit a193dca. Summary will update on new commits.