pub struct CompactionAudit {
pub summary: String,
pub covered_start_seq: u64,
pub covered_end_seq: u64,
pub source_hashes: Vec<CompactionSourceHash>,
pub trigger: CompactionTrigger,
pub risk: CompactionRisk,
pub review: Option<CompactionReviewResult>,
pub recovery_handles: Vec<String>,
pub model: String,
pub usage: Option<CompactionTokenUsage>,
}Expand description
Complete durable audit payload for one compaction.
The summary is intentionally retained because it becomes model-visible working context. The covered source is represented only by ranges, stable handles, and hashes; full transcript, file, and provider payload content never belongs in this record.
Fields§
§summary: StringSummary that replaces the covered range in the active working set.
covered_start_seq: u64Inclusive first session sequence replaced by this summary.
covered_end_seq: u64Inclusive final session sequence replaced by this summary.
source_hashes: Vec<CompactionSourceHash>Content hashes for covered sources, where known.
trigger: CompactionTriggerManual or automatic initiation.
risk: CompactionRiskRisk classification evaluated before applying the summary.
review: Option<CompactionReviewResult>Review result, when a review policy applied.
recovery_handles: Vec<String>Stable handles used to recover covered detail from the original session.
model: StringConfigured model that generated the summary.
usage: Option<CompactionTokenUsage>Provider-reported compaction token usage, when available.
Trait Implementations§
Source§impl Clone for CompactionAudit
impl Clone for CompactionAudit
Source§fn clone(&self) -> CompactionAudit
fn clone(&self) -> CompactionAudit
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 CompactionAudit
impl Debug for CompactionAudit
Source§impl<'de> Deserialize<'de> for CompactionAudit
impl<'de> Deserialize<'de> for CompactionAudit
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>,
impl Eq for CompactionAudit
Source§impl PartialEq for CompactionAudit
impl PartialEq for CompactionAudit
Source§impl Serialize for CompactionAudit
impl Serialize for CompactionAudit
impl StructuralPartialEq for CompactionAudit
Auto Trait Implementations§
impl Freeze for CompactionAudit
impl RefUnwindSafe for CompactionAudit
impl Send for CompactionAudit
impl Sync for CompactionAudit
impl Unpin for CompactionAudit
impl UnsafeUnpin for CompactionAudit
impl UnwindSafe for CompactionAudit
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.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