pub struct GateVerdict {
pub block: bool,
pub path: GatePath,
pub rules_block: bool,
pub p: Option<f64>,
pub engine_block: Option<bool>,
pub threshold: f64,
pub lift: Option<f64>,
pub lifted: bool,
pub engine: Option<String>,
pub engine_note: Option<String>,
pub engine_latency_ms: Option<u64>,
pub skipped: Option<String>,
/* private fields */
}Expand description
Full explanation of one Truth Gate decision (what hikmah gate-explain prints).
Fields§
§block: bool§path: GatePath§rules_block: boolThe deterministic rules’ verdict, always computed so both can be compared.
p: Option<f64>Engine P(the completion claim would fail verification), when the engine answered.
engine_block: Option<bool>Whether the engine alone would block (p >= threshold), when it answered.
threshold: f64§lift: Option<f64>The opted-in lift value, if any (see GateSettings::lift).
lifted: boolWhether an engine answer below lift lifted a rules block.
engine: Option<String>§engine_note: Option<String>Why the engine gave no probability (failure, abstention, or rejection), if it did not.
engine_latency_ms: Option<u64>§skipped: Option<String>Why the hook allowed without judging a message (for example stop_hook_active).
Trait Implementations§
Source§impl Clone for GateVerdict
impl Clone for GateVerdict
Source§impl Debug for GateVerdict
impl Debug for GateVerdict
Auto Trait Implementations§
impl Freeze for GateVerdict
impl RefUnwindSafe for GateVerdict
impl Send for GateVerdict
impl Sync for GateVerdict
impl Unpin for GateVerdict
impl UnsafeUnpin for GateVerdict
impl UnwindSafe for GateVerdict
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