pub struct AuditDiff {Show 13 fields
pub schema_version: String,
pub score_delta: f32,
pub token_delta: i64,
pub session_cost_delta_usd: f32,
pub error_delta: i64,
pub warning_delta: i64,
pub new_findings: Vec<Finding>,
pub resolved_findings: Vec<Finding>,
pub added_tools: Vec<String>,
pub removed_tools: Vec<String>,
pub modified_tools: Vec<String>,
pub cache_busting_change: bool,
pub regressed: bool,
}Expand description
Regression and prompt-cache volatility diff between two AuditReport snapshots.
Fields§
§schema_version: StringSchema version.
score_delta: f32Change in overall catalog score (current - baseline).
token_delta: i64Change in estimated catalog tokens (current - baseline).
session_cost_delta_usd: f32Change in estimated 200-turn uncached session cost (USD).
error_delta: i64Change in error finding count.
warning_delta: i64Change in warning finding count.
new_findings: Vec<Finding>Findings present in current that were not in baseline.
resolved_findings: Vec<Finding>Findings present in baseline that were fixed in current.
added_tools: Vec<String>Tools added since baseline.
removed_tools: Vec<String>Tools removed since baseline.
modified_tools: Vec<String>Tools whose serialized schema or description changed since baseline.
cache_busting_change: booltrue if any tool was added, removed, or modified (invalidating LLM prompt cache).
regressed: booltrue if score dropped, error count increased, or new errors appeared.
Implementations§
Source§impl AuditDiff
impl AuditDiff
Sourcepub fn to_json_pretty(&self) -> Result<String>
pub fn to_json_pretty(&self) -> Result<String>
Serializes this diff as pretty-printed JSON.
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Formats a GitHub-Flavored Markdown diff summary for Pull Request comments.