session_backfill_links
Populate associative memory graphs by retroactively linking existing project entries via temporal chaining, keyword overlap, and provenance. Run once after v6.0 upgrade to connect historical sessions.
Instructions
Retroactively create graph edges (memory links) for all existing entries in a project. This builds the associative memory graph from your existing session history.
Three strategies are run:
Temporal Chaining: Links consecutive entries within the same conversation
Keyword Overlap: Links entries sharing ≥3 keywords (bidirectional)
Provenance: Links rollup summaries to their archived originals
All strategies use INSERT OR IGNORE — safe to re-run multiple times.
When to use: Run once after upgrading to v6.0 to populate the graph for existing memories. New entries are auto-linked on save (no manual action needed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project to backfill links for. Required. |