Skip to main content

Module reconciliation

Module reconciliation 

Source
Expand description

Corpus reconciliation and vintage staleness engine (§GAP-11, reconciliation.md).

Models the temporal distance between the internal view (held state stamped with vintage) and the external view (authoritative upstream or live feed). Replaces silent overwrites with governed comparison (Converged, Diverged, Deferred, Contested), queryable staleness, and reCheckable cascades on derived downstream claims. Zero-heap hot path.

Structs§

ReconciliationRecord
A reconciliation event record measuring vintage distance and state agreement.

Enums§

ReconciliationStatus
Outcome status of an internal-external view reconciliation.

Constants§

RECHECKABLE_FLAG
Bit flag in Quin metadata (bit 15) indicating a downstream claim is re-checkable due to upstream vintage advance.

Functions§

cascade_recheck_flags
Cascades re-check flags onto downstream derived claims when an upstream reconciliation diverged. Sets RECHECKABLE_FLAG (bit 15) in the metadata field of each matching quin. Returns the number of updated quins. Zero-heap caller-buffered.
compare_views
Compare internal view against external view to produce a reconciliation record. Pure function, zero-heap.
is_stale_predicate
Predicate URI for staleness status (qualia:reconciliation:isStale).
reconciliation_event_predicate
Predicate URI for reconciliation event (qualia:reconciliation:Event).