Skip to content

feat(dreaming): related-threshold consolidation with supersede and flag - #466

Merged
EyJunge1 merged 8 commits into
tickernelz:mainfrom
EyJunge1:feat/deeper-dreaming
Oct 31, 2026
Merged

EyJunge1 merged 8 commits into
tickernelz:mainfrom
EyJunge1:feat/deeper-dreaming

Conversation

@EyJunge1

Copy link
Copy Markdown
Collaborator

Summary

  • Dreaming groups related memories via dreaming.relatedThreshold (default 0.75), independent of deduplicationSimilarityThreshold.
  • LLM actions: merge / update / supersede / keep / flag (contradiction metadata); soft-delete with mergedInto / supersededBy.
  • Cross-project grouping when dreaming.crossProject is true or memory.defaultScope is all-projects (user-scope stays separate).
  • Status API exposes relatedThreshold and effective cross-project flag.

Stacked on #465 (update-on-capture). Closes #464.

Test plan

  • bun test / bun run check
  • Enable dreaming + relatedThreshold 0.75; POST /api/dreaming/run should consider related (not only ≥0.9) groups
  • Confirm supersede soft-deletes outdated facts into trash; pinned memories untouched
  • Confirm flag writes contradiction metadata without deletes

Checklist

Search for similar memories before auto-capture persist and let the
model choose add, update, or supersede (soft-delete into trash).
Use dreaming.relatedThreshold for grouping, support merge/update/supersede/
keep/flag actions, and allow cross-project groups when configured.
Avoid rewriting keep rows onto the representative project tag in
cross-project groups. Extract pure grouping for threshold/cross-tag
tests and harden pinned-candidate filtering on capture.
Surface supersededBy in trash/restore UI, roll back the new memory when
soft-delete fails, and over-fetch capture candidates before pin filtering.
Retire drops first and skip keep rewrite when none soft-delete. Update
translated READMEs for update-on-capture and related-threshold dreaming.
@EyJunge1
EyJunge1 merged commit 0f48bdf into tickernelz:main Oct 31, 2026
7 checks passed
@EyJunge1 EyJunge1 mentioned this pull request Oct 31, 2026
3 tasks done
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.

Feature Request: keep memories current — update-on-capture and deeper dreaming (follow-up to #460)

1 participant