pub struct SentinelEvent {
pub id: i64,
pub session_id: SessionId,
pub turn_number: u64,
pub event_type: String,
pub tool_id: Option<String>,
pub risk_signal: Option<String>,
pub risk_level: String,
pub probe_verdict: Option<String>,
pub context_summary: Option<String>,
pub created_at: i64,
}Expand description
A single probe trajectory record in the persistent safety sentinel stream.
Stored in safety_shadow_events and retrieved for cross-session probe context.
Fields§
§id: i64Database row id (0 for unsaved records).
session_id: SessionIdAgent session identifier.
turn_number: u64Turn number within the session.
event_type: StringEvent category: "tool_call", "tool_result", "risk_signal", "probe_result".
tool_id: Option<String>Fully-qualified tool id for tool events, None for non-tool events.
risk_signal: Option<String>Serialised risk signal variant (from TrajectorySentinel), if applicable.
risk_level: StringRisk level at the time of the event: "calm", "elevated", "high", "critical".
probe_verdict: Option<String>Probe verdict for probe_result events: "allow", "deny", "skip".
context_summary: Option<String>Short human-readable summary included in the LLM probe context.
created_at: i64Unix timestamp (seconds) when the event was recorded.
Trait Implementations§
Source§impl Clone for SentinelEvent
impl Clone for SentinelEvent
Source§fn clone(&self) -> SentinelEvent
fn clone(&self) -> SentinelEvent
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 moreAuto Trait Implementations§
impl Freeze for SentinelEvent
impl RefUnwindSafe for SentinelEvent
impl Send for SentinelEvent
impl Sync for SentinelEvent
impl Unpin for SentinelEvent
impl UnsafeUnpin for SentinelEvent
impl UnwindSafe for SentinelEvent
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<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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request