pub fn detect_conflicts(
universe: &[MemoryRecord],
now: DateTime<Utc>,
) -> Vec<MemoryConflict>Expand description
Flag the conflicts in universe (one tenant’s namespace) at now.
“Live” excludes exactly what default retrieval excludes: superseded
records (a superseded record is replaced evidence, not a contender) and
records expired at now. “Contradictory” is structural and honest about
it: with no semantic judge in the runtime, contradiction means the two
records assert different canonical content for the same key over an
overlapping interval — semantics belong to the reviewer the flag is for.
A pair where one record supersedes the other is disciplined replacement,
not conflict. The output is deterministically ordered (scope, key, ids),
so equal store state flags byte-equal review items.