Skip to main content

Module mapping

Module mapping 

Source
Expand description

Explicit mapping boundary between snapshot wrappers and canonical core models.

This module centralizes snapshot validation and run payload mapping so that snapshot persistence remains a strict projection of core semantic truth.

Enums§

SnapshotMappingError
Typed mapping and validation errors for snapshot/core parity enforcement.

Constants§

SNAPSHOT_SCHEMA_VERSION
Current snapshot schema version accepted by the explicit mapping boundary.

Functions§

map_core_run_to_snapshot
Maps a canonical core run payload into the snapshot wrapper.
map_snapshot_attempt_history
Maps snapshot attempt history entries into reducer attempt history entries.
map_snapshot_lease_metadata
Maps snapshot lease metadata into reducer lease metadata.
map_snapshot_run_history
Maps snapshot run history entries into reducer history entries.
map_snapshot_run_to_core
Maps a snapshot run wrapper into a canonical core run payload.
validate_snapshot
Validates full snapshot parity and mapping invariants before bootstrap.