Goal: replace an outdated fact, leave a tombstone that records the correction.
Suppose memory id 42 says “My dog’s name is Mochi” but the dog actually went by Coco from day one. You want to:
remember calls about “my dog’s
name” will be flagged with previously_corrected.
# Add the correct fact, getting back its new id. ownsona add "My dog's name is Coco." --dedup skip_if_near # Output: Ok (id=99) # Forget the old fact, recording why and pointing at the replacement. ownsona forget 42 --reason "misremembered name" --replaced-by 99 # Output: Forgotten (id=42)
Now if anyone tries to remember "Mochi is my dog's name" (or
something semantically similar), the response will include a
previously_corrected array showing the tombstone with its
forget_reason and replaced_by_id. The calling LLM can
warn before re-introducing the corrected fact.