forge-engine 0.2.0

Causal edit attribution and structured patch evaluation engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::cea::graph::CausalGraph;
use crate::cea::instrumentation::EditOpSignature;
use crate::config::CeaConfig;
pub use cea_core::{CausalPrediction, CoverageSummary, RiskFlag};

/// Predict correctness from patch topology using the causal graph.
pub fn predict(
    signatures: &[EditOpSignature],
    graph: &CausalGraph,
    config: &CeaConfig,
) -> CausalPrediction {
    cea_core::predict(
        signatures,
        graph,
        config.risk_confidence_threshold,
        config.zero_shot_coverage_threshold,
    )
}