Skip to main content

hash_binding

Function hash_binding 

Source
pub fn hash_binding(binding: &Binding) -> String
Expand description

Compute hash(D) — the lowercase-hex SHA-256 of the canonical JSON of a binding’s content-defining projection.

Hashed: version, intent, sources (per source: its name, selection patterns, preparation identifier + PREPARATION_IMPL_VERSION, and its medium half’s type / pointer / change_detection), reference_mems, destination_mem, deny_paths, coverage_semantics, rules, and operations.build.mode.

Excluded: trigger, batch_size, post_actions, the sync / verify / prune blocks, and each source’s engagement contract — scheduling, maintenance policy, and engagement style never change what the mem claims. The v2 record needs no external resolution: every content input lives inside the one record, so a selection or pointer edit invalidates the hash — and thus any findings keyed on it — directly.