retire_doc
Mark a continuity document OBSOLETE. Nothing is deleted: the document keeps its id, its full content, its version and its digest, and read_doc still returns it, flagged retired, with the reason.
Instructions
Mark a continuity document OBSOLETE. Nothing is deleted: the document keeps its id, its full content, its version and its digest, and read_doc still returns it, flagged retired, with the reason. list_docs and the startup scan keep it too, after the current documents, with retired_at and what replaced it. A retired drop is not an unhandled drop. This is document control as ISO 7.5.3 describes it - issue the revision, mark the prior copy obsolete, retain it - and it is the document-store counterpart of revise_memory superseding a layer entry. THE STORE HAS NO DELETE, BY DESIGN. Use for genuine litter: tombstones, merged staging documents, test scratch. Reversible: write_doc on the same id brings it back into the working view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Document id to mark obsolete. | |
| reason | Yes | Why it is obsolete. Required, at least 10 characters. Drops only. | |
| source | No | Source tag - which host produced this write. One name on every write since 2026-09-27. | |
| exchange | No | The exchange (turn) this write belongs to, counting from 1. A write for exchange n while exchange n-1 was never appended is refused by the session graph until n-1 is appended. | |
| retired_by | No | Alias of `source` (the older name, kept one release). Prefer `source`. | |
| session_id | No | Transcript session id. |