pub enum ToolResultTrustV1 {
Trusted,
WorkspaceData,
External,
}Expand description
Typed trust label for tool-result content at the value boundary (KRN-5).
Only ToolResultTrustV1::Trusted content may occupy an instruction-adjacent
position. Non-trusted content is model-visible data. Content that crossed an
external boundary (ToolResultTrustV1::External) requires redaction review
before prompt use; middleware fail-closes when that review bit is unset.
Workspace-produced data stays loadable without that gate.
Variants§
Trusted
Produced or cryptographically verified by the host runtime itself.
WorkspaceData
Produced inside the governed workspace boundary by local tools.
External
Crossed an external boundary (web, MCP, download).
Implementations§
Source§impl ToolResultTrustV1
impl ToolResultTrustV1
Sourcepub const fn may_instruct(self) -> bool
pub const fn may_instruct(self) -> bool
Whether this content may occupy an instruction-adjacent position.
Sourcepub const fn requires_redaction_review(self) -> bool
pub const fn requires_redaction_review(self) -> bool
Whether redaction/egress review must run before prompt use.
Matches the model-middleware trust gate: only
ToolResultTrustV1::External fails closed without
redaction_reviewed.
Trait Implementations§
Source§impl Clone for ToolResultTrustV1
impl Clone for ToolResultTrustV1
Source§fn clone(&self) -> ToolResultTrustV1
fn clone(&self) -> ToolResultTrustV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ToolResultTrustV1
Source§impl Debug for ToolResultTrustV1
impl Debug for ToolResultTrustV1
Source§impl Default for ToolResultTrustV1
impl Default for ToolResultTrustV1
Source§fn default() -> ToolResultTrustV1
fn default() -> ToolResultTrustV1
Source§impl<'de> Deserialize<'de> for ToolResultTrustV1
impl<'de> Deserialize<'de> for ToolResultTrustV1
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 ToolResultTrustV1
Source§impl PartialEq for ToolResultTrustV1
impl PartialEq for ToolResultTrustV1
Source§impl Serialize for ToolResultTrustV1
impl Serialize for ToolResultTrustV1
impl StructuralPartialEq for ToolResultTrustV1
Auto Trait Implementations§
impl Freeze for ToolResultTrustV1
impl RefUnwindSafe for ToolResultTrustV1
impl Send for ToolResultTrustV1
impl Sync for ToolResultTrustV1
impl Unpin for ToolResultTrustV1
impl UnsafeUnpin for ToolResultTrustV1
impl UnwindSafe for ToolResultTrustV1
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§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.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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