pub struct UnrestrictedPermissionedProcessRunnerFactory { /* private fields */ }Expand description
Permissioned runner factory for the explicit unrestricted host backend.
The host backend already runs without an OS sandbox, so a reviewed
capability request reuses its runner. Runtime admission, action evidence,
and ProductPrivate (providers/ / MERRY_API_KEY_FILE) protection remain
active around the returned runner.
Implementations§
Source§impl UnrestrictedPermissionedProcessRunnerFactory
impl UnrestrictedPermissionedProcessRunnerFactory
Sourcepub fn new(runner: Arc<dyn ProcessRunner>) -> Self
pub fn new(runner: Arc<dyn ProcessRunner>) -> Self
Creates a factory that reuses the host-process runner.
Sourcepub fn with_product_private_paths(
self,
cwd_root: PathBuf,
paths: impl IntoIterator<Item = PathBuf>,
) -> Self
pub fn with_product_private_paths( self, cwd_root: PathBuf, paths: impl IntoIterator<Item = PathBuf>, ) -> Self
Configures ProductPrivate paths (such as providers/ and
MERRY_API_KEY_FILE) that remain high-risk once-only approval targets
even when OS sandboxing is disabled.
Trait Implementations§
Source§impl PermissionedProcessRunnerFactory for UnrestrictedPermissionedProcessRunnerFactory
impl PermissionedProcessRunnerFactory for UnrestrictedPermissionedProcessRunnerFactory
Source§fn targets_protected_metadata(&self, request: &PermissionRequest) -> bool
fn targets_protected_metadata(&self, request: &PermissionRequest) -> bool
Returns whether any requested path targets built-in Merry protected
metadata (
providers/, MERRY_API_KEY_FILE, or a ProductReadOnly
write target), so runtime keeps approval single-action (Once) and
defaults interactive review UIs to Deny.Source§fn runner_for(&self, _request: &PermissionRequest) -> Arc<dyn ProcessRunner> ⓘ
fn runner_for(&self, _request: &PermissionRequest) -> Arc<dyn ProcessRunner> ⓘ
Creates the process runner for one approved permission request, without
mutating session state. Runtime handles retention after successful preparation.
Source§fn validate_request(
&self,
_request: &PermissionRequest,
) -> Result<(), ProcessRunnerError>
fn validate_request( &self, _request: &PermissionRequest, ) -> Result<(), ProcessRunnerError>
Validates the request against the backend’s hard capability policy. Read more
Source§fn request_capabilities_are_satisfied(
&self,
_request: &PermissionRequest,
) -> Result<bool, ProcessRunnerError>
fn request_capabilities_are_satisfied( &self, _request: &PermissionRequest, ) -> Result<bool, ProcessRunnerError>
Returns whether the backend already enforces every capability in the
request for the current process session. Read more
Source§fn prepare_approved_request(
&self,
request: &PermissionRequest,
) -> Result<PreparedProcessPermission, ProcessRunnerError>
fn prepare_approved_request( &self, request: &PermissionRequest, ) -> Result<PreparedProcessPermission, ProcessRunnerError>
Prepares one validated action and its normalized path evidence without
changing permission state. Adapters can share a single filesystem view
across validation and materialization. The default retains no paths.
Source§fn runner_for_decision(
&self,
request: &PermissionRequest,
_scope: ApprovalScope,
) -> Arc<dyn ProcessRunner> ⓘ
fn runner_for_decision( &self, request: &PermissionRequest, _scope: ApprovalScope, ) -> Arc<dyn ProcessRunner> ⓘ
Creates the process runner for one approved permission request under an
explicit
merry_core::ApprovalScope. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for UnrestrictedPermissionedProcessRunnerFactory
impl !UnwindSafe for UnrestrictedPermissionedProcessRunnerFactory
impl Forget for UnrestrictedPermissionedProcessRunnerFactory
impl Freeze for UnrestrictedPermissionedProcessRunnerFactorywhere
*const ArcInner<dyn ProcessRunner> is !null: Freeze,
PhantomData<ArcInner<dyn ProcessRunner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<PathBuf>: Freeze,
impl Move for UnrestrictedPermissionedProcessRunnerFactory
impl Send for UnrestrictedPermissionedProcessRunnerFactory
impl Sync for UnrestrictedPermissionedProcessRunnerFactory
impl Unpin for UnrestrictedPermissionedProcessRunnerFactory
impl UnsafeUnpin for UnrestrictedPermissionedProcessRunnerFactorywhere
*const ArcInner<dyn ProcessRunner> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ProcessRunner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
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