Skip to content

feat(episteme): preserve multiplicity metadata on consolidated Fact (revive branch) #4115

Description

@forkwright

Branch feat/episteme-fact-multiplicity was 394 commits behind main and never merged despite issue #3634 being closed. The work is real and complete (428 additions / 22 deletions across 43 files).

What the branch does

Adds source_count: usize to FactProvenance and propagates through the knowledge store, query builders, marshalling, and recall scoring:

  • eidos: add source_count to FactProvenance with serde default 1
  • episteme: add source_count to ConsolidatedFact and persist it
  • episteme: bump knowledge schema v6 → v7 with migration
  • episteme: update all Datalog scripts and query builders
  • episteme: include source_count in recall score (logarithmic, default weight 0)
  • episteme: tie-break conflict resolution by source_count when confidence is equal
  • integration-tests: update schema version assertion

Why this issue

Branch deleted as part of spotless-pass hygiene (2026-05-26). The original branch commit was: feat(episteme): preserve multiplicity metadata on consolidated Fact (gate-passed, closes #3634). Needs rebase onto current main before PR.

Action

Rebase feat/episteme-fact-multiplicity commit onto current main, verify CI green, open PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gated-on-v1.0.0Deferred until aletheia v1.0.0 cuts; revisit post-stable

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions