Module reconcile

Module reconcile 

Source
Expand description

Reconciliation diff logic: compare materialized audit state against file-on-disk state and produce drift items and compensating events.

This module contains only pure functions with no I/O. The orchestration (reading files, writing events) lives in ito-core.

Enums§

Drift
A single drift item: a discrepancy between audit log state and file state.

Functions§

compute_drift
Compare materialized audit state against file-on-disk state.
generate_compensating_events
Generate compensating events that bring the audit log in sync with the file state.

Type Aliases§

FileState
File-on-disk state: a map from entity keys to their current status as read from the filesystem (e.g., from tasks.md).