retire_doc
Mark a continuity document obsolete without deleting it: it stays readable and recoverable, but leaves working lists and startup scans unless include_retired is true. Use for test scratch.
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 - so it can never be silently lost. What changes is visibility: list_docs stops returning it unless include_retired is true, so retired documents leave the working view and the startup scans. This is document control as ISO 7.5.3 describes it - issue the revision, mark the prior copy obsolete, retain it, prevent its unintended use - 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. |