kage_supersede
Replace an outdated memory packet with a corrected version, preserving history through bidirectional lineage edges. Use this to update facts or resolve contradictions without deleting the original.
Instructions
Replace one repo-local memory packet with a newer one that corrects or obsoletes it. Marks the old packet superseded, links it to the replacement, and writes bidirectional lineage edges so the history stays traceable. Use this instead of deleting when new knowledge updates an old fact, or to resolve a contradiction surfaced by kage_conflicts. Mutates both packets on disk: the superseded packet is withheld from recall but kept for lineage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | Yes | Absolute path to the repository root. | |
| packet_id | Yes | Id of the existing packet to retire (the one being replaced). | |
| replacement_packet_id | Yes | Id of the newer packet that wins and stays active. | |
| reason | No | Optional human note recorded on the lineage edge explaining why it was superseded. |