Consider restoring or surfacing superseded memories when their superseder expires

Aperta
#6 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
0
Fork
0
Merge medio
20h 29m
PR unite (30g)
28

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HarperFast/agent-memory

Tutte le issue di HarperFast/agent-memory

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.