Skip to main content

PREPARATION_IMPL_VERSION

Constant PREPARATION_IMPL_VERSION 

Source
pub const PREPARATION_IMPL_VERSION: u32 = 3;
Expand description

The engine’s current preparation-implementation version — the single source of truth for “which preparation implementation is live”.

3 since the code-map flavour (code-map, touchpoint A on path grains) landed; 2 was the delivery flavour (dated-entries, touchpoint B); 1 the first registered preparation (entity-load-bearing, see crate::preparation); 0 meant “none”. It participates in hash_binding for every source: because the declared identifier and this version are both hashed, landing or changing an implementation invalidates every prior finding keyed on the old hash(D) by construction — the findings store keys on hash(D) alone, so the old batch is segregated as superseded and never mixed into the current view (pinned by ingest::findings’s impl_version_bump_invalidates_findings_by_construction). Bump it once per landed or changed implementation, never per registry entry that merely exists.