fn archive_global_current(
filestore: &FileStore,
definition_id: &str,
) -> Result<Option<(String, i64)>, String>Expand description
Archive the agent’s GLOBAL agent:<defId>:current content into a local
(per-filestore) archive zone, so a cross-channel viewer’s conversation is
preserved + browsable in this channel before the global current is cleared.
Returns Ok(Some((archive_zoneid, ts))) when the global current held
content (snapshot or output), Ok(None) when there was nothing to archive
(no global store, or both files empty/absent). The archive lands in the
per-channel store because archive browsing (list_archives) is per-channel.