revise_transcript
Correct a saved transcript part by writing a new revision linked to its superseded parent. Use when an exchange is mispaired, missing, or wrong; explain the reason.
Instructions
Supersede a stored transcript part with a corrected one. Nothing is edited or deleted: a NEW document is written under the same session_id with an incremented revision and a pointer to its parent, and the parent is marked superseded. Use when a saved part has a mispaired, missing or wrong exchange. The reason parameter is required - an unexplained correction is a silent rewrite. To ADD a new part, use save_transcript instead. Allowed on a closed session (a correction deletes nothing), but there a revision may only correct the exchanges the part already holds - never add new ones - and must carry exactly the same exchange numbers (none dropped or repeated; numbers sent as text are stored as numbers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | What was wrong and how this differs. Required, minimum 10 characters. This is the audit record of the correction. | |
| source | No | Source tag - which host produced this write. Defaults to the parent's. | |
| channel | No | Alias of `source` (the older name, kept one release). Prefer `source`. | |
| 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. | |
| exchanges | Yes | The COMPLETE corrected exchange list for this part, verbatim. A revision replaces the whole part. | |
| session_id | Yes | The session_id of the part to correct, e.g. '2026-09-04_x_verbatim_part14'. Must already exist. | |
| session_end | No | Optional. Defaults to the parent's. | |
| session_start | No | Optional. Defaults to the parent's. |