Skip to content

feat(search): ghost cues + archive stubs for long-tail memory resurfacing #320

Open

Description

@hurttlocker

Summary

Add ghost cues / archive stubs so Cortex can surface long-tail or archived memory as compact hints without paying the full prompt/storage cost of re-injecting the entire original memory every time.

Why

Some older memories are still important to hint at even when they do not deserve full recall weight. A lightweight stub layer would let Cortex say, in effect: "there is older relevant material here" without flooding the prompt with stale text.

This is a good pattern to borrow from archive-stub / compressed-context systems, but it should remain native to Cortex's local-first, provenance-heavy model.

Desired outcome

Cortex can surface compact archival cues like:

  • what the old memory was broadly about
  • why it might matter now
  • where to expand into the original source

The cue should be cheap, provenance-preserving, and clearly lower-priority than a fresh direct hit.

Proposed scope

  • Define a compact archive-stub / ghost-cue artifact type
  • Let older or lower-priority memories emit stubs instead of full bodies in some recall paths
  • Allow a cue hit to trigger explicit rehydration into the underlying memory when needed
  • Ensure ranking does not let stale cues dominate fresher direct evidence

Acceptance criteria

  • Cortex can create/store a compact stub/cue artifact linked to original memory provenance
  • Search/recall can surface the cue as a low-cost hint
  • A follow-up expansion path exists from cue -> full memory/source
  • Ranking keeps fresh direct hits above old cue-only hits by default
  • Tests cover cue visibility, rehydration, and anti-overshadow behavior

Relevant surfaces

  • Search/ranking in internal/search/*
  • Store/provenance plumbing in internal/store/*
  • Plugin recall path in plugin/index.ts

Out of scope

  • Hiding or deleting the original memory
  • Non-deterministic magic summaries with no provenance trail

Activity

  1. added
    enhancement
    search
    llm
    on Mar 11, 2026
  2. hurttlocker commented on Mar 11, 2026

    @hurttlocker
    OwnerAuthor

    Release-board hygiene note:

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

    enhancementllmsearch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions