feat: semantic compression — rolling digests and recall deprioritization (#9)#127
Merged
rahilp merged 3 commits intoJun 7, 2026
Conversation
…ion (#9) - Nightly cron compresses tags with >10 entries into a synthesized digest - GET /digest?tag=X endpoint for on-demand compression - rolled-up entries penalized 0.4× in rerankWithTimeDecay so digests surface first - Digest header is clean (no source_ids); each source entry gets [Digest: {id}] appended in D1 only — no re-embedding, enabling future un-digest - Stats digest_candidates query mirrors compressTag filters exactly (importance < 4, HAVING count > 10) so UI counts match what actually compresses - Settings sheet shows eligible tags with Digest button, scroll-safe at 80vh - rolled-up cards render at 0.65 opacity; synthesized cards get accent border - derivePattern tightened: threshold 10, 48h cooldown via D1 check - 11 new compressTag unit tests; D1Mock extended with tag-filter and cooldown handlers
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
…ries-and-project-digests
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
Test plan