pub struct HarvestCfg {Show 13 fields
pub auto_gate: bool,
pub llm: String,
pub min_events: usize,
pub min_user_turns: usize,
pub min_duration_secs: i64,
pub idle_minutes: i64,
pub max_steps: usize,
pub max_duration_secs: i64,
pub max_llm_calls_per_day: u32,
pub max_extract_input_tokens: usize,
pub session_start_hint: bool,
pub similarity_merge_threshold: f32,
pub min_occurrences: usize,
}Expand description
Harvest gate + token-budget defenses (spec §3.2, §3.7).
Fields§
§auto_gate: boolRun the heuristic gate automatically (from mur session gc / mur out).
llm: String“local-first” | “cloud” | “off” — W1/W2 only persist this; LLM wiring lands with v2 P5a.
min_events: usizeGate thresholds — a session must clear at least one of these (see harvest::gate).
min_user_turns: usize§min_duration_secs: i64§idle_minutes: i64A session is considered ended when its last event is older than this.
max_steps: usizeCeilings — past these a recording is a session, not a procedure (#781).
A session marked with mur in bypasses both.
max_duration_secs: i64§max_llm_calls_per_day: u32§3.7 hard caps (persisted now; enforced when the LLM extract path lands in v2 P5a).
max_extract_input_tokens: usize§session_start_hint: bool§3.8 tier-1: one-line pending-proposals hint at SessionStart.
similarity_merge_threshold: f32Step-skeleton Jaccard similarity at/above which a proposal becomes a merge suggestion. Doubles as the “same procedure?” test for the recurrence index (#783).
min_occurrences: usizeA procedure is something done more than once (#783): a session’s skeleton
must have been seen this many times before it becomes a proposal.
A session marked with mur in bypasses it.
Trait Implementations§
Source§impl Clone for HarvestCfg
impl Clone for HarvestCfg
Source§fn clone(&self) -> HarvestCfg
fn clone(&self) -> HarvestCfg
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more