pub fn transcript_append(args: &TranscriptAppendArgs) -> DispatchOutcomeExpand description
membrane transcript append --session <id> --cursor <n> (--stdin | --text <json>) [--scope s] [--json]. The events are a JSON array of SessionTranscriptEventV1 rows that extend the
stream at --cursor.
The tip op is read first. Outcomes:
--cursoris the current end: the batch is appended. Success is{conflict: false, replayed: false, receipt}.--cursoris behind the end and the batch lies wholly within the stream: the rows can only be exact replays, so the store is asked, which writes nothing. Identical rows are success with{conflict: false, replayed: true}. Different rows are a conflict.- Otherwise (ahead of the end, or the batch would reach past it): refused with
{conflict: true, current_cursor}, without any write. Exit 2.
A 409 from the store is also a conflict, with current_cursor read from the tip op again.