feat: add replay retention and deletion protection#44
Merged
JustinDevB merged 11 commits intoMay 1, 2026
Conversation
Co-authored-by: Copilot <copilot@github.com>
…tection Co-authored-by: Copilot <copilot@github.com>
…in /replay list Co-authored-by: Copilot <copilot@github.com>
This was referenced May 1, 2026
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.
Summary
This branch adds replay deletion protection and automatic retention cleanup across the storage layer, public API, commands, configuration, and documentation.
The core goal is to let administrators protect important replays from both manual deletion and retention cleanup, while allowing old unprotected replays to be removed automatically using a configurable policy.
What changed
Storage and replay metadata
ReplayDeleteResultandReplayProtectionResult.ReplaySummarymetadata so higher layers can reason about replay age, size, storage type, and protection state without loading the full replay.protectedAtprotectedByPublic API and manager orchestration
ReplayManagerwith:listSavedReplaySummaries()protectSavedReplay(...)unprotectSavedReplay(...)deleteSavedReplay(...)to returnReplayDeleteResultinstead of a boolean, so callers can distinguish:ReplayManagerImplto map storage results cleanly and only refresh caches when a replay is actually removed.Retention service
30d,1h,15m, and30s.Commands and user-facing behavior
/replay protect <name>/replay unprotect <name>/replay delete <name>to surface protected/not-found/deleted outcomes explicitly./replay listto render protected replays with a dedicated highlight color.Configuration
3because v3 has not been published yet.list-page-sizelist.page-sizelist:roots do not leave behind empty sections.Documentation
Testing
Validated with the full Maven test suite:
mvn test400tests run,0failures,0errorsNotes for review
Please pay particular attention to these areas: