Skip to content

Source links, confidence and deletes that cascade #152

Closed

Description

@itsskofficial

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

Sources:

Roadmap ID: MEM-3 · Priority: P1 · Size: M

Activity

  1. added
    enhancement
    help wanted
    area: memory
    priority: P1
    size: M
    on Oct 9, 2026
  2. itsskofficial commented on Oct 17, 2026

    @itsskofficial
    ContributorAuthor

    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.

  3. itsskofficial commented on Oct 17, 2026

    @itsskofficial
    ContributorAuthor

    On it: building source spans, confidence and state, and cascading deletes on the fact_sources table from #429 (branch feat/152-source-links).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: memoryenhancementhelp wantedpriority: P1size: M

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions