pub enum ModeReport {
ClaudeInit,
CodexRollout,
None,
}Expand description
How a CLI run once per turn reports the permission mode it runs in, for SCV to check against the policy before it trusts the run.
Variants§
ClaudeInit
Claude Code’s stream-json system/init event carries
permissionMode, in the same event as apiKeySource.
CodexRollout
codex exec --json reports no mode. The rollout file under the agent
home’s sessions/ records a turn_context with its approval_policy
and sandbox_policy, read shortly after the turn starts.
None
Nothing SCV reads: the mode is unverified, or the agent has no full-autonomy switch to verify.
Trait Implementations§
Source§impl Clone for ModeReport
impl Clone for ModeReport
impl Copy for ModeReport
Source§impl Debug for ModeReport
impl Debug for ModeReport
impl Eq for ModeReport
Source§impl PartialEq for ModeReport
impl PartialEq for ModeReport
impl StructuralPartialEq for ModeReport
Auto Trait Implementations§
impl Freeze for ModeReport
impl RefUnwindSafe for ModeReport
impl Send for ModeReport
impl Sync for ModeReport
impl Unpin for ModeReport
impl UnsafeUnpin for ModeReport
impl UnwindSafe for ModeReport
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