supersede
Mark a memory document as superseded by a replacement, recording the reason for retirement.
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 | |
| replacement_doc_id | Yes | DocId of the replacement document | |
| reason | Yes | Why the old document is being retired; written to superseded_reason |