Consider restoring or surfacing superseded memories when their superseder expires

オープン
#6 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript
領域
backend

調査の方向性

Read the Supersession section in DESIGN.md, then inspect newestSuperseder in src/lifecycle.ts and the default search and bootstrap filtering in src/search.ts. Compare the two documented behaviors and determine which should apply when a superseder expires or is withdrawn. Done means the chosen behavior is reflected consistently in status, supersededBy, search, and bootstrap.

索引モデルが issue の本文から書いたものです。

説明

Problem

When memory B supersedes memory A and B later passes its validUntil expiry, newestSuperseder still counts B as a non-withdrawn superseder (A.status === 'superseded'), while default search (includeExpired=false) and bootstrap exclude B because its validUntil is in the past. As a result, neither A nor B appears in default search or bootstrap unless the caller passes includeSuperseded=true or includeExpired=true (as currently documented in DESIGN.md under Supersession).

Options

  1. Keep the current behavior (validUntil bounds the replacement's validity window rather than reverting to the older memory) as documented in DESIGN.md.
  2. Exclude expired superseders when deriving status / supersededBy (or filter them at read time) so an unexpired predecessor becomes active again once every superseder has expired or been withdrawn.

Refs: #5 (DESIGN.md "Supersession", src/lifecycle.ts, src/search.ts).

Review-Deferral: c915480f6488d694 severity=nit category=correctness

🤖 Generated by Gemini (Antigravity); posted via @kriszyp.

主要言語
JavaScript
スター
0
フォーク
0
平均マージ
20時間 29分
マージ済み PR(30日)
28

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

HarperFast/agent-memory のほかの issue

HarperFast/agent-memory の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。