//! hexwork-save: snapshots, lineage vault, demo replays (docs/04 ยง4.7). //! Format is versioned; old saves load or explain why not. pub mod artifact; pub mod knowledge; pub mod protocol; pub use knowledge::{ death_effect_digest, decode_committed_death, decode_pending_death, decode_vault, derive_death_effect, encode_committed_death, encode_pending_death, encode_vault, ghost_warning_v1, load_vault, prepare_death_merge, read_file_bounded, validate_initial_lineage, verify_effect_present, write_vault_atomic, AppliedDeathReceipt, AuctionLot, BoundedReadError, CommittedDeathV1, DeathDiagnostic, DeathEffect, DerivedDeathEffect, GhostMemory, InitialLineage, LineageId, LineageVault, LotId, PendingDeathV1, RunId, SchemaError, VaultV2, COMMITTED_DEATH_VERSION, MAX_APPLIED_DEATHS, MAX_AUCTION_LOTS, MAX_GHOSTS, MAX_GHOST_WARNING_BYTES, MAX_IDENTIFIED_TEMPLATES, MAX_INITIAL_ROWS, MAX_INITIAL_STRING_BYTES, MAX_INITIAL_TAGS, MAX_LOT_TAGS, MAX_LOT_TAG_BYTES, MAX_MAPPED_REGIONS, MAX_MARKER_BYTES, MAX_RECIPES, MAX_RUN_SEQUENCE, MAX_TRANSLATIONS, MAX_VAULT_BYTES, PENDING_DEATH_VERSION, VAULT_FORMAT_VERSION, }; pub use protocol::{ decode_replay, decode_run, encode_replay, encode_run, event_prefix_digest, timeline_costs, validate_run_structural_limits, write_bytes_atomic, DecodedRun, HashedState, PersistenceError, ProductionReplay, RunIdentity, RunKnowledgeWire, SessionEvent, SessionEventKind, StoryCheckpoint, TimelineCosts, MAX_COMPRESSED_BYTES, MAX_DECOMPRESSED_BYTES, MAX_ROWS, MAX_SESSION_EVENTS, MAX_TOTAL_CHUNKS, REPLAY_FORMAT_VERSION, RUN_FORMAT_VERSION, }; // The production lineage DTO is `knowledge::VaultV2` / `LineageVault`. // Historical component-only knowledge structs are compile-disabled in that module.