pub struct AuditPacket {Show 13 fields
pub schema_version: String,
pub agent_name: String,
pub iteration: u32,
pub edit_scope_contract: String,
pub accepted_edit: AcceptedEditSummary,
pub provenance: AuditProvenance,
pub scores: ScoreProvenance,
pub hook_decisions: Vec<HookDecision>,
pub validation_command_records: Vec<ValidationCommandRecord>,
pub final_validation_command_records: Vec<ValidationCommandRecord>,
pub rollback_succeeded: Option<bool>,
pub rollback_error: Option<String>,
pub candidate_timed_out: bool,
}Expand description
Optimizer entrypoint and run records. These are unstable before 1.0.
Versioned machine-readable evidence for one accepted optimizer change.
Audit packets are designed for agents, reviewers, and compliance tooling. They intentionally duplicate the most important run fields so a single JSON file can be reviewed without reconstructing state from several reports.
Fields§
§schema_version: String§agent_name: String§iteration: u32§edit_scope_contract: String§accepted_edit: AcceptedEditSummary§provenance: AuditProvenance§scores: ScoreProvenance§hook_decisions: Vec<HookDecision>§validation_command_records: Vec<ValidationCommandRecord>§final_validation_command_records: Vec<ValidationCommandRecord>§rollback_succeeded: Option<bool>§rollback_error: Option<String>§candidate_timed_out: boolTrait Implementations§
Source§impl Clone for AuditPacket
impl Clone for AuditPacket
Source§fn clone(&self) -> AuditPacket
fn clone(&self) -> AuditPacket
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 AuditPacket
impl Debug for AuditPacket
Source§impl<'de> Deserialize<'de> for AuditPacket
impl<'de> Deserialize<'de> for AuditPacket
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 AuditPacket
impl JsonSchema for AuditPacket
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 AuditPacket
impl RefUnwindSafe for AuditPacket
impl Send for AuditPacket
impl Sync for AuditPacket
impl Unpin for AuditPacket
impl UnsafeUnpin for AuditPacket
impl UnwindSafe for AuditPacket
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