pub struct SafetyReport {
pub mode: Mode,
pub effects: usize,
pub allowed: usize,
pub approval_gated: usize,
pub denied: usize,
pub dangerous_ungated: usize,
pub bounded: bool,
pub score: f64,
pub grade: char,
}Expand description
The safety assessment of a program described by the effects it performs.
Fields§
§mode: ModeThe mode the assessment was run under.
effects: usizeTotal number of effects assessed.
allowed: usizeEffects allowed to run without friction.
approval_gated: usizeEffects requiring approval before running.
denied: usizeEffects denied outright.
dangerous_ungated: usizeDangerous effects that the policy would let run without gating. For the default agent policy this is 0 (every dangerous class is gated/denied); a permissive policy could leave some ungated.
bounded: boolTrue iff no dangerous effect is left ungated — the blast radius is bounded.
score: f640.0–1.0 safety score: the fraction of dangerous effects that are gated (approval or deny). 1.0 when there are no dangerous effects, or all are gated. Lower as more dangerous effects run unchecked.
grade: charA letter grade derived from score (A ≥ .9, B ≥ .75, C ≥ .5, D ≥ .25, F).
Trait Implementations§
Source§impl Clone for SafetyReport
impl Clone for SafetyReport
Source§fn clone(&self) -> SafetyReport
fn clone(&self) -> SafetyReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more