Skip to main content

LifecycleSection

Struct LifecycleSection 

Source
pub struct LifecycleSection {
    pub forget_enabled: bool,
    pub forget_min_age_days: u32,
    pub forget_usefulness_floor: f32,
    pub forget_protect_use_count: u32,
    pub regret_flag_threshold: u64,
    pub proposal_expiry_days: u32,
    pub proposal_auto_accept_confidence: f32,
}
Expand description

F3 lifecycle / forgetting policy configuration.

All settings are gated behind forget_enabled = false by default so existing installs are completely unaffected until an operator opts in.

#[serde(default)] keeps all existing project.toml files loading cleanly.

Fields§

§forget_enabled: bool

Master opt-in switch. Default false — forgetting is NEVER triggered without the operator explicitly enabling it.

§forget_min_age_days: u32

Minimum age (days) before a memory is eligible for archival. Only memories whose last_useful_at (or created_at when never cited) is older than this many days are considered. Default 90.

§forget_usefulness_floor: f32

Usefulness floor: memories with usefulness_score / max(use_count, 1) <= this value are candidates. Default -0.1 (net-negative).

§forget_protect_use_count: u32

Evergreen protection threshold. Memories with use_count >= forget_protect_use_count are NEVER archived regardless of their usefulness ratio. Default 10.

§regret_flag_threshold: u64

Number of retrieval.regret events a memory must accumulate before it appears in the review list. Default 5.

§proposal_expiry_days: u32

Number of days before a pending proposal is auto-expired (rejected with reason “expired”). Default 30. 0 disables expiry.

§proposal_auto_accept_confidence: f32

Proposals with proposed_confidence >= this value are auto-accepted during the hygiene pass. Default 1.1 (disabled — threshold above the maximum possible confidence of 1.0).

Trait Implementations§

Source§

impl Clone for LifecycleSection

Source§

fn clone(&self) -> LifecycleSection

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LifecycleSection

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LifecycleSection

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for LifecycleSection

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for LifecycleSection

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V