supersede
Retire an outdated memory document by linking it to its replacement, preserving history. The replacement remains unchanged; back-links are resolved at query time.
Instructions
Mark an existing memory document as superseded by a replacement document. Forward-only — the replacement doc is NOT touched; back-links are derived by the Phase 4 graph layer at query time. Atomic single OCC update on the OLD doc; sets status="superseded", superseded_by, and superseded_reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | DocId of the document being superseded | |
| reason | Yes | Why the old document is being retired; written to superseded_reason | |
| replacement_doc_id | Yes | DocId of the replacement document |