Skip to content

feat: deterministic conflict resolution for contradicting memories #80

@salishforge

Description

@salishforge

Path 1: Active Knowledge Management

When two memories about the same topic contain contradicting facts, deterministically resolve which one is current rather than returning both and hoping the LLM figures it out.

Resolution strategy:

  1. Temporal precedence — newer memory wins by default
  2. Corroboration count — if multiple memories support version A vs one supporting version B, A wins
  3. Source confidence — memories from direct experience outrank inferred/second-hand knowledge
  4. Explicit supersession — if memory B says 'we changed from X to Y', X is definitively superseded

Design

  • Contradiction pairs stored in memory_conflicts table
  • Resolution runs during sleep cycle Phase 3 (before revision)
  • Resolved conflicts: loser gets confidence reduction + metadata flag
  • Query results: only return the winning version for resolved conflicts

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeatureNew functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions