pub struct OptimizationRun {Show 33 fields
pub iteration: u32,
pub scores: Vec<f32>,
pub validated_changes: u32,
pub landed_changes: u32,
pub accepted_changes: u32,
pub notes: String,
pub candidates: Vec<Candidate>,
pub diff: Option<String>,
pub policy_hash: Option<String>,
pub dataset_version: Option<String>,
pub dataset_hash: Option<String>,
pub baseline_score: Option<f32>,
pub patched_score: Option<f32>,
pub score_delta: Option<f32>,
pub git_sha_before: Option<String>,
pub git_sha_after: Option<String>,
pub diff_hash: Option<String>,
pub working_tree_dirty_after: Option<bool>,
pub scorer: Option<String>,
pub validation_commands: Option<Vec<String>>,
pub validation_command_records: Vec<ValidationCommandRecord>,
pub final_validation_command_records: Vec<ValidationCommandRecord>,
pub trace_diagnosis: Vec<TraceDiagnosis>,
pub hook_decisions: Vec<HookDecision>,
pub ledger: Option<ExperimentLedger>,
pub holdout_score: Option<f32>,
pub budget: Option<OptimizationBudget>,
pub policy_path: Option<String>,
pub model: Option<ModelProvenance>,
pub rollback_succeeded: Option<bool>,
pub rollback_error: Option<String>,
pub candidate_timed_out: bool,
pub audit_packet: Option<AuditPacket>,
}Expand description
Optimizer entrypoint and run records. These are unstable before 1.0.
A single optimization experiment / iteration result.
Fields§
§iteration: u32§scores: Vec<f32>§validated_changes: u32Number of changes that were fully validated in isolation
landed_changes: u32Number of changes that were successfully landed on the real agent tree
accepted_changes: u32Number of changes that were accepted (landed + final validation + net-positive)
notes: String§candidates: Vec<Candidate>§diff: Option<String>Optional unified diff of the last accepted change
policy_hash: Option<String>§dataset_version: Option<String>§dataset_hash: Option<String>§baseline_score: Option<f32>§patched_score: Option<f32>§score_delta: Option<f32>§git_sha_before: Option<String>§git_sha_after: Option<String>§diff_hash: Option<String>§working_tree_dirty_after: Option<bool>§scorer: Option<String>§validation_commands: Option<Vec<String>>§validation_command_records: Vec<ValidationCommandRecord>§final_validation_command_records: Vec<ValidationCommandRecord>§trace_diagnosis: Vec<TraceDiagnosis>§hook_decisions: Vec<HookDecision>§ledger: Option<ExperimentLedger>§holdout_score: Option<f32>§budget: Option<OptimizationBudget>§policy_path: Option<String>§model: Option<ModelProvenance>§rollback_succeeded: Option<bool>§rollback_error: Option<String>§candidate_timed_out: bool§audit_packet: Option<AuditPacket>Versioned machine-readable evidence packet for an accepted change.
Trait Implementations§
Source§impl Clone for OptimizationRun
impl Clone for OptimizationRun
Source§fn clone(&self) -> OptimizationRun
fn clone(&self) -> OptimizationRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizationRun
impl Debug for OptimizationRun
Source§impl<'de> Deserialize<'de> for OptimizationRun
impl<'de> Deserialize<'de> for OptimizationRun
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for OptimizationRun
impl JsonSchema for OptimizationRun
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for OptimizationRun
impl RefUnwindSafe for OptimizationRun
impl Send for OptimizationRun
impl Sync for OptimizationRun
impl Unpin for OptimizationRun
impl UnsafeUnpin for OptimizationRun
impl UnwindSafe for OptimizationRun
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
Mutably borrows from an owned value. Read more