Chain Patching via headUuid/anchorUuid/tailUuid

Description

annotateBoundaryWithPreservedSegment() records headUuid, anchorUuid, and tailUuid in the compact_boundary event. These UUIDs enable the session loader to patch the message chain at read time while preserved messages keep their original parentUuids on disk. Enables mostly-append compaction that never modifies or deletes prior transcript lines.

Key claims

Relations

Sources

src-20260423-0cff68d3291b