pub struct ProtectionCheckResult {
pub tampering_detected: bool,
pub details: Vec<String>,
}Expand description
Verify and restore agent-phase commit protections before each agent invocation.
This is the composite integrity check that self-heals against a prior agent
that deleted the enforcement marker or tampered with git hooks during
its run. It is designed to be called from run_with_prompt before every
agent spawn.
Fields§
§tampering_detected: bool§details: Vec<String>Trait Implementations§
Source§impl Clone for ProtectionCheckResult
impl Clone for ProtectionCheckResult
Source§fn clone(&self) -> ProtectionCheckResult
fn clone(&self) -> ProtectionCheckResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ProtectionCheckResult
impl Debug for ProtectionCheckResult
Source§impl Default for ProtectionCheckResult
impl Default for ProtectionCheckResult
Source§fn default() -> ProtectionCheckResult
fn default() -> ProtectionCheckResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProtectionCheckResult
impl RefUnwindSafe for ProtectionCheckResult
impl Send for ProtectionCheckResult
impl Sync for ProtectionCheckResult
impl Unpin for ProtectionCheckResult
impl UnsafeUnpin for ProtectionCheckResult
impl UnwindSafe for ProtectionCheckResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more