femic.rebuild_baseline

Baseline snapshot + diff helpers for instance rebuild regression checks.

Functions

apply_diff_allowlist(*, diff_payload, ...)

Filter diffs through explicit allowlist and report unexpected deltas.

build_current_snapshot(*, patchworks_config_path)

Build normalized snapshot payload for key track/XML structures.

diff_snapshots(*, baseline, current)

Return structural diff summary between baseline and current snapshots.

load_diff_allowlist(path)

Load optional YAML/JSON allowlist rules for intentional diffs.

load_snapshot(path)

Load a baseline snapshot JSON payload.

resolve_baseline_path(*, baseline_path, ...)

Resolve baseline path against instance root when relative.

save_snapshot(*, path, snapshot)

Persist snapshot JSON payload (creating parent directories if needed).