Skip to main content

Coverage

Enum Coverage 

Source
pub enum Coverage {
    Normalized,
    Retained,
    Dropped,
    Unmodeled,
}
Expand description

How a given discriminant is handled by the loader.

Variants§

§

Normalized

Parsed and normalized into the canonical conversation.

§

Retained

PARITY-12/PARITY-13 (P012/P013): parsed and its content/provenance IS captured by the loader — into Session.meta (Codex session_meta’s id/cwd/model/base_instructions, turn_context’s model), replay semantics (thread_rolled_back actually removes the rolled-back turns, exited_review_mode’s review_output.overall_explanation becomes a message with review_output.findings AND overall_correctness/overall_confidence_score (N4) captured onto that message’s metadata (D4/N4), thread_goal_updated‘s goal.objective becomes a message with goal.status/ goal.tokenBudget captured onto that message’s metadata too (D4), agent_message can become a message when its text has no response_item twin) — just not 1:1 into a ChatMessage the way Normalized records are. This is the “retained, not dropped” bucket the two audits were missing: before this variant existed, every one of these landed in Dropped indistinguishably from truly-inert UI noise (token_count, task_started, …), which is exactly the false “silently dropped” signal both items’ dev/03 ACs flag.

response_item/reasoning also belongs here (D5, PARITY-12): its summary text, raw content chain-of-thought text when non-null (N2 — previously dropped despite this very label claiming otherwise; content is null on the vast majority of real turns, so this was easy to miss until fixtures carried the key at all), and the encrypted_content presence flag (N1: only a genuinely non-null value counts — serde_json returns Some(&Value::Null) for a present-but-null key, which is what EVERY real rollout’s reasoning item carries per upstream codex-rs/protocol/src/models.rs:970-983, so a naive .is_some() false-flagged every reasoning item as “encrypted” on real data) are captured by Session::from_codex_str onto the next assistant ChatMessage’s metadata (reasoning/ reasoning_content/reasoning_encrypted) — see audit_codex_item’s Reasoning arm. When no following assistant turn exists to attach to (a non-assistant item interrupts, or the reasoning is dangling at EOF — an aborted-turn shape, N3), it is flushed as its own synthesized [reasoning] (turn ended without a reply) message instead of being silently discarded, so this label stays honest for that shape too. It isn’t Normalized (no canonical “reasoning” ChatMessage), but it is provably not a blind drop either.

DISCLOSURE: every metadata key mentioned above (review_findings, review_overall_correctness, review_overall_confidence_score, goal_status, goal_token_budget, reasoning, reasoning_content, reasoning_encrypted) is LOADER-CAPTURE ONLY. It survives the verbatim Codex→Codex diagonal (raw bytes, untouched) and reads back out of the native supercode format, but it does NOT survive a cross-format writer or the --session-id re-serialized diagonal: ChatMessage.metadata is never serialized (message.rs:50-55) and no writer reads it back out. Don’t misread Retained here as cross-format-durable — it means “captured in-process”, not “written back out”.

§

Dropped

Parsed and understood, but intentionally dropped (e.g. token_count, task_started/task_complete, UI echoes of content already captured elsewhere as Normalized/Retained). See event_msg_coverage’s doc comment for the few real, currently-unrecovered exceptions (D1) — e.g. patch_apply_end’s changes[path].unified_diff — where Dropped means genuine, asserted content loss, not “duplicated elsewhere”.

§

Unmodeled

Not modeled at all — falls into an Unknown typed bucket.

Trait Implementations§

Source§

impl Clone for Coverage

Source§

fn clone(&self) -> Coverage

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 Copy for Coverage

Source§

impl Debug for Coverage

Source§

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

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

impl Eq for Coverage

Source§

impl Ord for Coverage

Source§

fn cmp(&self, other: &Coverage) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Coverage

Source§

fn eq(&self, other: &Coverage) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for Coverage

Source§

fn partial_cmp(&self, other: &Coverage) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for Coverage

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more