pub enum ActionReviewTrigger {
GitReview {
subcommand: String,
},
GitDestructive {
subcommand: String,
},
RecursiveDelete {
target: Option<String>,
},
PrivilegeOrEnvInjection {
detail: String,
},
NestedShell {
executable: String,
},
UnparseableShell,
}Expand description
Concrete reason why a process action requires an independent action review.
Variants§
GitReview
Non-allowlisted git operation evaluated by AI review first under auto mode.
GitDestructive
Obviously irreversible / destructive git operation (reset --hard, clean -f, checkout --, restore, stash drop/clear, branch -D, push --force).
RecursiveDelete
Recursive or wildcard file deletion (rm -rf, rm *.rs, etc.).
PrivilegeOrEnvInjection
Privilege escalation (sudo, su) or dangerous environment/config injection.
NestedShell
Nested shell invocation whose inner commands are opaque to single-level inspection.
UnparseableShell
Shell script could not be parsed reliably (fail-closed).
Implementations§
Source§impl ActionReviewTrigger
impl ActionReviewTrigger
Sourcepub const fn is_session_grantable(&self) -> bool
pub const fn is_session_grantable(&self) -> bool
Returns whether this trigger may be remembered for the current session.
Action-review triggers stay action-scoped.
Sourcepub const fn is_high_risk(&self) -> bool
pub const fn is_high_risk(&self) -> bool
Returns whether this trigger represents a high-risk / destructive action
that should default to Deny in interactive review UIs.
Trait Implementations§
Source§impl Clone for ActionReviewTrigger
impl Clone for ActionReviewTrigger
Source§impl Debug for ActionReviewTrigger
impl Debug for ActionReviewTrigger
Source§impl<'de> Deserialize<'de> for ActionReviewTrigger
impl<'de> Deserialize<'de> for ActionReviewTrigger
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>,
impl Eq for ActionReviewTrigger
Source§impl PartialEq for ActionReviewTrigger
impl PartialEq for ActionReviewTrigger
Source§impl Serialize for ActionReviewTrigger
impl Serialize for ActionReviewTrigger
impl StructuralPartialEq for ActionReviewTrigger
Auto Trait Implementations§
impl Forget for ActionReviewTrigger
impl Freeze for ActionReviewTrigger
impl Move for ActionReviewTrigger
impl RefUnwindSafe for ActionReviewTrigger
impl Send for ActionReviewTriggerwhere
RawVecInner: Send,
impl Sync for ActionReviewTriggerwhere
RawVecInner: Sync,
impl Unpin for ActionReviewTrigger
impl UnsafeUnpin for ActionReviewTrigger
impl UnwindSafe for ActionReviewTriggerwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.