You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Source links, confidence and deletes that cascade #152
Hacker News commenters on Screenpipe's launch asked for exactly this: see where a fact came from, and when it is deleted, delete it everywhere (embeddings, summaries). OpenClaw's memory wiki tracks claims, evidence and contradictions.
Idea:
link each fact to its exact source span (message, email id, file, task run)
give each fact a confidence score and a state: current, disputed or superseded
deleting a fact removes its embeddings, episodic summaries, dream outputs and user-model insights
a "correct, then delete" test proves nothing derived survives
Status in Sentient today: Partial. source, expires_at and previous_content exist on facts, and user_insights has a confidence field. Source links are coarse and deletes do not cascade.
Where: sentient/store/schema.sql and sentient/memory/schema.sql, sentient/memory/facts.py, sentient/memory/vectors.py, sentient/memory/episodic.py, sentient/memory/dreaming.py, sentient/memory/usermodel.py, and desktop/src/features/memory/MemoryDetail.tsx.
Done when:
each fact shows a clickable source
deleting a fact removes all derived rows and vectors (test)
disputed and superseded facts are not injected into prompts
Note for whoever builds this: #429 (for #153, forget on disconnect) added the minimum source links MEM-3 needs:
a fact_sources table recording every other place a fact was learned;
channel:<app> / device:<id> as a fact's source for messaging-app and device chats;
sessions.node_id (migration 0014).
Build the full source links, confidence and cascading deletes on that table rather than adding a second one. Facts saved before #429 from Telegram or device chats still say conversation; a one-off backfill from their session's channel would let forgetting cover them too.
Activity
itsskofficial commentedon Oct 17, 2026
Note for whoever builds this: #429 (for #153, forget on disconnect) added the minimum source links MEM-3 needs:
fact_sourcestable recording every other place a fact was learned;channel:<app>/device:<id>as a fact's source for messaging-app and device chats;sessions.node_id(migration 0014).Build the full source links, confidence and cascading deletes on that table rather than adding a second one. Facts saved before #429 from Telegram or device chats still say
conversation; a one-off backfill from their session's channel would let forgetting cover them too.itsskofficial commentedon Oct 17, 2026
On it: building source spans, confidence and state, and cascading deletes on the fact_sources table from #429 (branch feat/152-source-links).