pub struct JudgeFrame { /* private fields */ }Expand description
A judge frame verifies agent outputs before committing them. Uses a bounded array (zero-heap on hot paths).
Implementations§
Source§impl JudgeFrame
impl JudgeFrame
Sourcepub fn submit(&mut self, claim: JudgeClaim) -> Result<(), DagError>
pub fn submit(&mut self, claim: JudgeClaim) -> Result<(), DagError>
Submit a claim for verification.
Sourcepub fn evaluate(&mut self)
pub fn evaluate(&mut self)
Evaluate all submitted claims. A claim passes if:
- The node claims success and has no error, OR
- The node claims failure with an error message (honest failure). A claim fails if:
- The node claims success but has an error, OR
- The node claims failure but has no error message.
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Did all claims pass?
Sourcepub fn claim_count(&self) -> usize
pub fn claim_count(&self) -> usize
Get the number of submitted claims.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JudgeFrame
impl RefUnwindSafe for JudgeFrame
impl Send for JudgeFrame
impl Sync for JudgeFrame
impl Unpin for JudgeFrame
impl UnsafeUnpin for JudgeFrame
impl UnwindSafe for JudgeFrame
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