Expand description
Causal edit attribution for structured code patches.
This crate converts a typed_patch::StructuredPatch plus a
check_runner::CheckResult into weighted cause/effect attribution triples,
learns edge weights in a causal graph, and predicts future edit risk without
requiring heavyweight ML dependencies.
Key properties:
- Deterministic attribution and run hashing.
- Multi-cause proportional attribution instead of nearest-neighbor collapse.
- Beta-distribution confidence tracking for edge reliability.
- Compact graph persistence with versioned binary snapshots.
Structs§
- Attributed
RunResult - Attribution
Config - Attribution
Triple - Causal
Edge - Causal
Graph - Causal
Prediction - Confidence
Envelope - Coverage
Summary - Edge
Stats - Edit
OpSignature - File
Index - OpIndex
- Prediction
Config - Risk
Flag
Enums§
Constants§
Functions§
- advisory_
confidence - attribute_
effects - attribute_
effects_ with_ config - attribution_
score - attribution_
score_ with_ confidence - build_
edit_ op_ signature - compute_
run_ hash - conservative_
reliability - edit_
op_ node_ id - effect_
node_ id - effective_
sample_ size - global_
pass_ effect_ signature - posterior_
mean - posterior_
variance - predict
- predict_
with_ config - sample_
factor - sample_
sufficiency_ factor