pub enum TrustSurface {
Plugins,
Hooks,
Instructions,
}Expand description
What is being loaded, and therefore what an unanswerable trust question means for it — see this module’s doc comment.
Variants§
Plugins
Config-declared plugin code. No door installed ⇒ REFUSED — the
pre-BP-10 posture of crate::plugins::is_trusted, which has always
required an explicit always.
Hooks
Config-declared lifecycle hook commands ([hooks], already
project-forbidden so they can only come from the trusted layer).
No door installed ⇒ INSTALLED — the pre-BP-10 posture; a scripted
run must not silently lose its hooks to a question nobody can
answer.
Instructions
Project-local text spliced into the prompt (CLAUDE.md/AGENTS.md and the agent-package instruction tier). No door installed ⇒ LOADED — the pre-BP-10 posture, and what a headless run of either upstream harness does.
Trait Implementations§
Source§impl Clone for TrustSurface
impl Clone for TrustSurface
Source§fn clone(&self) -> TrustSurface
fn clone(&self) -> TrustSurface
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 moreimpl Copy for TrustSurface
Source§impl Debug for TrustSurface
impl Debug for TrustSurface
impl Eq for TrustSurface
Source§impl PartialEq for TrustSurface
impl PartialEq for TrustSurface
impl StructuralPartialEq for TrustSurface
Auto Trait Implementations§
impl Freeze for TrustSurface
impl RefUnwindSafe for TrustSurface
impl Send for TrustSurface
impl Sync for TrustSurface
impl Unpin for TrustSurface
impl UnsafeUnpin for TrustSurface
impl UnwindSafe for TrustSurface
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.