Skip to content

Archive search and session indexes omit rolling summary segments #401

Description

@Calmingstorm

Confirmed missing searchable compacted history

Reviewed master at 886c36d8ebe861aa987059a1744d45b78797baae (v4.7.0). Suggested priority: P2.

Current session persistence uses rolling summary_segments, but archive keyword search and semantic/FTS document construction include only legacy summary and raw messages. Facts retained solely in compacted segments remain available to restored prompt context yet disappear from explicit history search.

Sources: archive keyword search, indexed document construction.

Isolated reproduction

Create a temporary archive with summary_segments containing a unique word, empty legacy summary and unrelated recent raw messages. Backfill it through real session indexing and search.

backfill count: 1
indexed document: recent raw tail only
archive keyword results: []
FTS results: []
search_history results: []
unique word survives restore/prompt context: True

Independently reproduced three times using disposable archives/stores. This does not request recovery of purged/reset data.

Acceptance criteria

  • Include supported summary segments in archive and indexed search documents, with provenance and time boundaries.
  • Apply reset/channel/time/user filtering consistently; aggregate summaries must not bypass author filtering.
  • Repair/backfill older indexes so the fix is not limited to new archives.
  • Test segment-only facts and both legacy/current archive formats.

No source changes were made.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions