pub fn load_mem_archive(
archive_path: &Path,
mem: &str,
mem_schema: &Schema,
) -> Result<LoadResult, LoadError>Expand description
Load all entities from a sealed .mem mem archive.
Shape-identical to load_mem — opens the zip, yields one
ParseResult per .md entry, collects per-file errors. The
archive’s .memstead/config.json is not consulted here; use
mem_cache::read_published_config up front if you need identity
or format-version checks before loading entities.
Strips any explicit relationship whose target is outside this mem’s
own mem and logs it. v1 keeps every mem an island, and
memstead_relate already rejects cross-mem edges on the write side —
this is the defensive pass for hand-edited archives that may still
carry them. Inline wiki-links are already same-mem by construction
(wiki_link_to_id resolves every [[…]] to current_mem), so no
sanitization is needed for the inline-links list.