pub enum SummaryMethod {
DeterministicConcatenate,
LlmSummary {
operator_attestation_required: bool,
},
}Expand description
How a compression decay job produces its summary text.
Serialized with an explicit method discriminator so deterministic and
LLM-backed variants are distinguishable on the wire. The default
representation chosen for tests is enforced by
[tests::summary_method_serializes_with_method_discriminator].
Variants§
DeterministicConcatenate
Deterministic concatenation + truncation. No LLM call. The original content is not lost: provenance ids still point at the originals, so any consumer can re-derive richer summaries later.
LlmSummary
Operator-fired LLM summarization. Requires an explicit human review step before the summary memory lands. The boolean is part of the type, not a runtime config, so the gate cannot be silently dropped.
Fields
operator_attestation_required: boolWhether an operator attestation must be supplied before the
resulting summary memory becomes durable. The substrate exists
only at true today; the field is kept as a bool so a future
non-operator-attested path (e.g. fully sandboxed quarantine
summarization) is representable without a wire break.
Implementations§
Source§impl SummaryMethod
impl SummaryMethod
Sourcepub const fn method_wire(&self) -> &'static str
pub const fn method_wire(&self) -> &'static str
SQLite wire discriminator for the summary_method column.
ExpiredPrincipleReview jobs have no summary text and persist
"none" in the column — that token is reserved here so the wire
alphabet is closed.
Trait Implementations§
Source§impl Clone for SummaryMethod
impl Clone for SummaryMethod
Source§fn clone(&self) -> SummaryMethod
fn clone(&self) -> SummaryMethod
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 SummaryMethod
impl Debug for SummaryMethod
Source§impl<'de> Deserialize<'de> for SummaryMethod
impl<'de> Deserialize<'de> for SummaryMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SummaryMethod
impl PartialEq for SummaryMethod
Source§fn eq(&self, other: &SummaryMethod) -> bool
fn eq(&self, other: &SummaryMethod) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SummaryMethod
impl Serialize for SummaryMethod
impl Eq for SummaryMethod
impl StructuralPartialEq for SummaryMethod
Auto Trait Implementations§
impl Freeze for SummaryMethod
impl RefUnwindSafe for SummaryMethod
impl Send for SummaryMethod
impl Sync for SummaryMethod
impl Unpin for SummaryMethod
impl UnsafeUnpin for SummaryMethod
impl UnwindSafe for SummaryMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.