rename_doc
Reissue an existing document under a new document ID without deleting the original; mark the old ID retired with a reason and hide it from listings.
Instructions
Reissue a continuity document under a new doc_id. The destination is written first through the normal write path (same redaction, digest, versioning and sha256 read-back), and only then is the old id marked obsolete with retire_doc. NOTHING IS DELETED: the old id keeps its content and stays readable at its own id, flagged retired with the reason 'Reissued as ', and hidden from list_docs. No tombstone document is needed, because the retired original IS the tombstone and it still carries the real content. Refuses if the destination already exists, because a rename onto an occupied id is a merge decision and merges are not guessed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_id | Yes | Destination document id. Must not already exist. | |
| old_id | Yes | Existing document id to reissue from. It is retired, not removed. | |
| reason | Yes | Why the document is reissued. Required, at least 10 characters. | |
| 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. | |
| session_id | No | Transcript session id. | |
| updated_by | No | Alias of `source` (the older name, kept one release). Prefer `source`. |