Skip to main content

validate

Function validate 

Source
pub fn validate(chronicle: &Chronicle) -> ValidationReport
Expand description

Run all four validation passes over the given Chronicle and return a ValidationReport.

The passes, executed in order, are:

  1. Referential integrity — every ID referenced by an entity must exist in the graph.
  2. Temporal consistency — participant lifespans and causal ordering are checked using Allen’s Interval Algebra.
  3. State tracking — entities with terminal statuses (per ValidationConfig) cannot appear in events that occur strictly after the status-changing event.
  4. Orphan detection — entities with no edges in either direction produce warnings.