pub struct ContextManifest {
pub schema_version: u32,
pub policy_version: String,
pub workflow_id: String,
pub phase: u8,
pub snapshot_hash: String,
pub contract_hash: String,
pub worktree_fingerprint: String,
pub generated_at: String,
pub provider_status: String,
pub input_tokens: u64,
pub output_tokens: u64,
pub entries: Vec<ManifestEntry>,
}Expand description
Derived manifest; it never replaces or edits the source contract or evidence.
Fields§
§schema_version: u32Manifest schema version.
policy_version: StringSelection policy version.
workflow_id: StringWorkflow ID.
phase: u8Phase at generation time.
snapshot_hash: StringHash of the complete snapshot, including objective and references.
contract_hash: StringContract hash at generation time.
worktree_fingerprint: StringWorktree fingerprint at generation time.
generated_at: StringGeneration timestamp.
provider_status: Stringnot_needed, resolved, partial, or unavailable.
input_tokens: u64Total provider input tokens from accepted responses.
output_tokens: u64Total provider output tokens from accepted responses.
entries: Vec<ManifestEntry>Selection records in catalog order.
Implementations§
Source§impl ContextManifest
impl ContextManifest
Sourcepub fn is_current(&self, snapshot: &ContextSnapshot) -> bool
pub fn is_current(&self, snapshot: &ContextSnapshot) -> bool
Check whether the same contract, phase, objective, worktree, and source refs still apply.
Sourcepub fn parked_matches(&self, term: &str) -> Vec<&ManifestEntry>
pub fn parked_matches(&self, term: &str) -> Vec<&ManifestEntry>
Find parked entries by exact ID/source or case-insensitive summary keyword.
Sourcepub fn evaluation(
&self,
latency_ms: Option<u64>,
cost_usd: Option<f64>,
) -> ContextEvaluation
pub fn evaluation( &self, latency_ms: Option<u64>, cost_usd: Option<f64>, ) -> ContextEvaluation
Measure size reduction and critical evidence recall without inventing cost data.
Sourcepub fn evaluation_with_labels(
&self,
required_ids: &BTreeSet<String>,
latency_ms: Option<u64>,
cost_usd: Option<f64>,
) -> Result<ContextEvaluation, ContextError>
pub fn evaluation_with_labels( &self, required_ids: &BTreeSet<String>, latency_ms: Option<u64>, cost_usd: Option<f64>, ) -> Result<ContextEvaluation, ContextError>
Evaluate false drops against an optional human-reviewed set of required evidence IDs.
§Errors
Rejects labels that do not identify items in this manifest.
Trait Implementations§
Source§impl Clone for ContextManifest
impl Clone for ContextManifest
Source§impl Debug for ContextManifest
impl Debug for ContextManifest
Source§impl<'de> Deserialize<'de> for ContextManifest
impl<'de> Deserialize<'de> for ContextManifest
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>,
Auto Trait Implementations§
impl Forget for ContextManifest
impl Freeze for ContextManifest
impl Move for ContextManifest
impl RefUnwindSafe for ContextManifest
impl Send for ContextManifest
impl Sync for ContextManifest
impl Unpin for ContextManifest
impl UnsafeUnpin for ContextManifest
impl UnwindSafe for ContextManifest
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<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