Expand description
Analytics helpers for diffguard.
This crate is intentionally pure (no filesystem/process/env I/O).
Structs§
Constants§
Functions§
- append_
trend_ run - Appends a run to history and optionally trims to
max_runsnewest entries. - baseline_
from_ receipt - Builds a baseline from receipt findings.
- false_
positive_ fingerprint_ set - Returns the baseline as a fingerprint set for fast lookup.
- fingerprint_
for_ finding - Computes the stable finding fingerprint used for baseline tracking.
- merge_
false_ positive_ baselines - Merges two baselines (union by fingerprint), preferring existing entries in
base. - normalize_
false_ positive_ baseline - Deterministically normalizes a false-positive baseline:
- normalize_
trend_ history - Deterministically normalizes trend history by setting schema id when missing.
- summarize_
trend_ history - Summarizes trend history totals and latest delta.
- trend_
run_ from_ receipt - Converts a check receipt into a trend run sample.