Skip to content

Recall should read rotated archive-<date>.md siblings #124

Closed

Description

@fdaviddpt

Context

Follow-up to #123 (consolidation prompt cap + oversized-archive rotation).

When archive.md is the oversized bulk of a consolidation prompt, #123 rotates it to a dated sibling (archive-YYYY-MM-DD.md) and starts a fresh archive. The old memory is preserved byte-for-byte on disk — but nothing in the recall path globs those siblings. The REMEMBER surface names only archive.md.

So "no memory lost" is true mechanically, not functionally: after a rotation, that slice of memory sits in cold storage that no read path reaches. Over time, repeated rotations accumulate frozen archive-*.md slices that recall never sees.

Not a regression

This does not break anything #123 fixed — rotation only fires on a genuinely oversized archive (rare today), and the crash-loop fix (the cap) is unaffected. This is purely about making the rotated memory reachable again.

Proposed fix

Teach the recall / search surface to include archive-*.md siblings alongside archive.md:

  • Whatever assembles the "memory to search" set should glob archive*.md (sorted), not just archive.md.
  • Update the REMEMBER hook description to name the sibling pattern so the reader knows to look there.

Acceptance

  • A memory entry that lived only in a rotated archive-2026-06-29.md is found when recall runs.
  • The REMEMBER surface documents archive-*.md as part of the searchable memory set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions