pub struct ConsolidateOptions {
pub import_session: bool,
pub decision_budget: Option<usize>,
pub finding_budget: Option<usize>,
pub finding_salience_floor: Option<u32>,
pub decision_confidence: f32,
pub finding_confidence: f32,
pub incremental: bool,
pub run_lifecycle: bool,
pub reclaim_stores: bool,
pub emit_event: bool,
pub dry_run: bool,
}Expand description
How a consolidation run imports the session and reclaims capacity. One option set per driver — see the constructors. Replaces the four divergent, copy-pasted import loops (each with subtly different keys, caps and confidences).
Fields§
§import_session: boolPromote the latest session’s findings/decisions into knowledge.
decision_budget: Option<usize>Cap promoted decisions (None = all).
finding_budget: Option<usize>Cap promoted findings (None = all).
finding_salience_floor: Option<u32>Skip findings below this salience score (None = import all).
decision_confidence: f32Confidence assigned to imported decisions.
finding_confidence: f32Confidence assigned to imported findings.
incremental: boolImport only items newer than the session watermark and advance it after (incremental auto-consolidate).
run_lifecycle: boolRun the fact lifecycle (decay / dedup / quality + capacity) after import.
reclaim_stores: boolRun the lossless capacity reclaim for history / procedures / patterns.
emit_event: boolEmit a KnowledgeUpdate event after a successful (non-dry) run.
dry_run: boolCompute the report without mutating knowledge, archives or the session.
Implementations§
Source§impl ConsolidateOptions
impl ConsolidateOptions
Sourcepub fn manual() -> Self
pub fn manual() -> Self
Explicit CLI / MCP consolidate: import everything, full lifecycle and a
lossless reclaim of every store.
Sourcepub fn scheduled(b: ConsolidationBudgets) -> Self
pub fn scheduled(b: ConsolidationBudgets) -> Self
Scheduled background pass (post-dispatch / cognition): salience-gated, budgeted, runs the fact lifecycle and emits an event.
Sourcepub fn incremental_auto() -> Self
pub fn incremental_auto() -> Self
Startup auto-consolidate: incremental (watermark) import only, no lifecycle.
Sourcepub fn into_dry_run(self) -> Self
pub fn into_dry_run(self) -> Self
Same plan, but preview-only: no writes to knowledge, archives or session.
Trait Implementations§
Source§impl Clone for ConsolidateOptions
impl Clone for ConsolidateOptions
Source§fn clone(&self) -> ConsolidateOptions
fn clone(&self) -> ConsolidateOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ConsolidateOptions
impl RefUnwindSafe for ConsolidateOptions
impl Send for ConsolidateOptions
impl Sync for ConsolidateOptions
impl Unpin for ConsolidateOptions
impl UnsafeUnpin for ConsolidateOptions
impl UnwindSafe for ConsolidateOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more