pub struct Guard<J: IntentJudge = NoJudge> { /* private fields */ }Expand description
The reward-hacking guard.
Implementations§
Source§impl Guard<NoJudge>
impl Guard<NoJudge>
Sourcepub fn deterministic() -> Self
pub fn deterministic() -> Self
Deterministic-monitor-only guard (layers 1–2).
Source§impl<J: IntentJudge> Guard<J>
impl<J: IntentJudge> Guard<J>
Sourcepub fn with_judge(judge: J) -> Self
pub fn with_judge(judge: J) -> Self
Guard with a layer-3 intent judge.
Sourcepub fn screen(
&self,
fitness: f32,
finite_metrics: bool,
in_bounds: bool,
degenerate: bool,
) -> Verdict
pub fn screen( &self, fitness: f32, finite_metrics: bool, in_bounds: bool, degenerate: bool, ) -> Verdict
Screen one candidate. fitness/finite_metrics come from the IMMUTABLE
verifier (the candidate cannot fabricate them); in_bounds/degenerate
are caller-supplied deterministic checks over the genome + its metrics.
Trait Implementations§
impl<J: Copy + IntentJudge> Copy for Guard<J>
Auto Trait Implementations§
impl<J> Freeze for Guard<J>where
J: Freeze,
impl<J> RefUnwindSafe for Guard<J>where
J: RefUnwindSafe,
impl<J> Send for Guard<J>where
J: Send,
impl<J> Sync for Guard<J>where
J: Sync,
impl<J> Unpin for Guard<J>where
J: Unpin,
impl<J> UnsafeUnpin for Guard<J>where
J: UnsafeUnpin,
impl<J> UnwindSafe for Guard<J>where
J: UnwindSafe,
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