pub struct DropReport {
pub step: String,
pub input_units: usize,
pub kept_units: usize,
pub dropped: Vec<String>,
pub notes: Vec<String>,
}Expand description
A record of what a preprocessing step removed, filtered, or could not judge.
The honesty contract of this module (§321): a result is never handed on
without one of these. dropped holds the removed units verbatim wherever
they can be enumerated (exact duplicates, hard-truncated overflow, the
filtered-out candidates), so a false negative is always recoverable.
Fields§
§step: StringWhich helper produced this ("summarize", "triage",
"classify_diagnostics", "draft_commit_message").
input_units: usizeCount of input units seen (source lines / candidate snippets / distinct diagnostics), before this step reduced them.
kept_units: usizeCount of units represented in the result after the step.
dropped: Vec<String>The dropped/filtered units, verbatim and in input order, so the caller
can recover any the model wrongly discarded. Empty when nothing was
enumerably dropped (e.g. lossy compression that can’t be itemized — see
notes for that case).
notes: Vec<String>Honest caveats: the lossiness of the step, whether the model’s output
was trusted or a deterministic fallback was used, and (crucially) the
ECHO_PASSTHROUGH_NOTE when there was no real model.
Implementations§
Source§impl DropReport
impl DropReport
Sourcepub const AUTHORITATIVE: bool = false
pub const AUTHORITATIVE: bool = false
Preprocessing in this module is never the final authority on correctness (§321). A compile-time constant so callers can encode “do not gate on this as a verdict” in their own logic and tests.
Sourcepub fn dropped_count(&self) -> usize
pub fn dropped_count(&self) -> usize
Number of units this step dropped (length of Self::dropped).
Trait Implementations§
Source§impl Clone for DropReport
impl Clone for DropReport
Source§fn clone(&self) -> DropReport
fn clone(&self) -> DropReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more