pub fn normalize_snapshot_for_global(content: &[u8]) -> Vec<u8> ⓘExpand description
Strip sourceBlockId to “” for the GLOBAL (cross-channel) snapshot mirror.
In a local snapshot sourceBlockId names the block whose per-block output a
restore reads. That id is channel-scoped, so a global copy carrying it is only
usable by the writing channel — every other channel’s reader can’t anchor it.
“” is the agent-anchored sentinel that makes the reader fall back to the opening
channel’s own block. Best-effort: returns the input unchanged if it isn’t a
JSON object.