pub struct PolicyRunResult {
pub policy: &'static str,
pub kept_messages: usize,
pub context_tokens: usize,
pub fault_count: usize,
pub oracle_gap: usize,
pub reuse_rate: f64,
}Expand description
One Pareto sample for a single derivation policy run.
Lower is better on Self::context_tokens, Self::fault_count,
and Self::oracle_gap. Higher is better on Self::reuse_rate.
Self::kept_messages is neutral (informational).
Fields§
§policy: &'static strPolicy identifier (matches
DerivePolicy::kind).
kept_messages: usizeSize of the derived context in messages.
context_tokens: usizeEstimated token cost of the derived context.
fault_count: usizeExplicit faults raised during the run (ClawVM Tier-1).
oracle_gap: usizeOnline-minus-oracle fault delta from replay_oracle.
reuse_rate: f64Fraction of derived-context entries that were already present
in the previous turn’s derived context (Cognitive-Workspace
warm-hit proxy). 0.0 ≤ reuse_rate ≤ 1.0.
Implementations§
Source§impl PolicyRunResult
impl PolicyRunResult
Sourcepub fn is_dominated_by(&self, other: &PolicyRunResult) -> bool
pub fn is_dominated_by(&self, other: &PolicyRunResult) -> bool
Returns true when other Pareto-dominates self — that is,
other is at least as good on every axis and strictly better
on at least one.
Trait Implementations§
Source§impl Clone for PolicyRunResult
impl Clone for PolicyRunResult
Source§fn clone(&self) -> PolicyRunResult
fn clone(&self) -> PolicyRunResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PolicyRunResult
impl Debug for PolicyRunResult
Source§impl PartialEq for PolicyRunResult
impl PartialEq for PolicyRunResult
impl Copy for PolicyRunResult
impl StructuralPartialEq for PolicyRunResult
Auto Trait Implementations§
impl Freeze for PolicyRunResult
impl RefUnwindSafe for PolicyRunResult
impl Send for PolicyRunResult
impl Sync for PolicyRunResult
impl Unpin for PolicyRunResult
impl UnsafeUnpin for PolicyRunResult
impl UnwindSafe for PolicyRunResult
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<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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request