pub struct FinalizeStats {
pub session_id: String,
pub processed: usize,
pub finalized: usize,
pub merged: usize,
pub conflicts: usize,
pub rejected: usize,
}Expand description
Aggregate outcome counters for one finalize run.
FinalizeStats is the wire shape the watcher (Slice-7) and the CLI
--finalize trigger surface to operators, so every field is pub. The
rejected counter overlaps with merged (every merge rejects the pending
twin) — both are reported because operators want to see “how many facts
left the pending pool by each exit”.
Fields§
§session_id: StringId of the session that was finalized.
processed: usizePending facts the use case attempted to resolve.
finalized: usizeStandalone facts promoted through the validation gate (may still be
Pending if the validation gate rejected the promotion).
merged: usizePending facts merged into an existing accepted fact (entailment path).
conflicts: usizePending facts whose strongest NLI verdict was a contradiction (drift). Both sides of the pair are flagged; status is unchanged.
rejected: usizePending facts marked Rejected after being absorbed into another fact.
Equals merged after a clean run, but kept separate so a partial run
(e.g. save failure between the merge save and the reject save) is
visible to operators.
Trait Implementations§
Source§impl Clone for FinalizeStats
impl Clone for FinalizeStats
Source§fn clone(&self) -> FinalizeStats
fn clone(&self) -> FinalizeStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FinalizeStats
impl Debug for FinalizeStats
Source§impl Default for FinalizeStats
impl Default for FinalizeStats
Source§fn default() -> FinalizeStats
fn default() -> FinalizeStats
Source§impl PartialEq for FinalizeStats
impl PartialEq for FinalizeStats
Source§fn eq(&self, other: &FinalizeStats) -> bool
fn eq(&self, other: &FinalizeStats) -> bool
self and other values to be equal, and is used by ==.