src.dackar.RCA.signal_evidence.models

Classes

AnomalyRecord

A single flagged anomaly on one sensor over a time interval.

PropagationEdge

A directed propagation edge between two anomalies (by list index).

NodeTopology

In/out degree and derived pattern (linear/divergence/convergence/hub/isolated) for one anomaly node.

ScoredChain

A scored propagation path plus the factors that produced its path_score.

Module Contents

class src.dackar.RCA.signal_evidence.models.AnomalyRecord[source]

A single flagged anomaly on one sensor over a time interval.

Fields carry the sensor and (resolved) component ids, the anomaly window, a pattern label, a severity in [0, 1], the source that produced it ("telemetry_summary" or "historian"), and optional raw values / units.

sensor_id: str[source]
component_id: str | None[source]
timestamp_start: datetime.datetime[source]
timestamp_end: datetime.datetime[source]
pattern: str[source]
severity: float[source]
source: str[source]
raw_value_start: float | None = None[source]
raw_value_peak: float | None = None[source]
units: str | None = None[source]
to_interval()[source]

Return this record’s [start, end] as a temporal Interval.

Return type:

orchestrators.temporal_relations.Interval

class src.dackar.RCA.signal_evidence.models.PropagationEdge[source]

A directed propagation edge between two anomalies (by list index).

allen_rel captures the temporal relation between the two anomaly intervals and allen_score its raw event-calibrated relevance prior (kept for provenance). prop_score is the propagation-calibrated weight actually used to rank chains: it rewards a demonstrated causal lead at least as much as a co-temporal overlap and discounts co-temporal edges, so a clean precedes lead is never outranked by an overlaps edge the way the raw event score would (MR#49 review). edge_type is the KG relation (containment / connectivity / mixed), and onset_lag_h the onset lead in hours from source to target.

from_idx: int[source]
to_idx: int[source]
allen_rel: str[source]
allen_score: float[source]
prop_score: float[source]
edge_type: str[source]
onset_lag_h: float[source]
class src.dackar.RCA.signal_evidence.models.NodeTopology[source]

In/out degree and derived pattern (linear/divergence/convergence/hub/isolated) for one anomaly node.

anomaly_idx: int[source]
in_degree: int[source]
out_degree: int[source]
pattern_type: str[source]
class src.dackar.RCA.signal_evidence.models.ScoredChain[source]

A scored propagation path plus the factors that produced its path_score.

path_score is driven by mean_propagation_score (the lead-time-aware edge weight); mean_allen_score is retained alongside as the mean of the raw event-calibrated relation priors, for provenance.

chain_id: str[source]
path: list[int][source]
path_score: float[source]
topology_alignment_factor: float[source]
lag_consistency_factor: float[source]
mean_allen_score: float[source]
mean_propagation_score: float[source]
hub_boost: float[source]
root_pattern_type: str[source]
nodes: list[dict][source]