pub struct CodingCandidateMeasurer<'a> { /* private fields */ }Expand description
Complete plugin-backed candidate measurement for one coding node.
Implementations§
Source§impl<'a> CodingCandidateMeasurer<'a>
impl<'a> CodingCandidateMeasurer<'a>
pub fn new( candidate: &'a CandidateWorkspace, node_id: &str, generation: u32, ) -> Self
Sourcepub fn with_correction_packets(self, enabled: bool) -> Self
pub fn with_correction_packets(self, enabled: bool) -> Self
Evaluation ablation: disable typed correction packets (legacy first-direction text only).
Sourcepub fn with_require_format(self, require_format: bool) -> Self
pub fn with_require_format(self, require_format: bool) -> Self
Enable the declared format acceptance stage
([verification] require_format).
Sourcepub fn with_test_policy(
self,
policy: TestPolicy,
external_oracle: Option<ExternalOracleConfig>,
) -> Self
pub fn with_test_policy( self, policy: TestPolicy, external_oracle: Option<ExternalOracleConfig>, ) -> Self
Select how test evidence participates in the hard gate. The default is
Evolving: project tests and their configuration may change together
with the implementation. Stronger policies are explicit.
pub fn with_max_parallel(self, max_parallel: usize) -> Self
Sourcepub fn with_domain(self, domain: Arc<dyn AgentDomainPackage>) -> Self
pub fn with_domain(self, domain: Arc<dyn AgentDomainPackage>) -> Self
Measure under the selected domain’s energy model instead of the default coding domain.
Trait Implementations§
Source§impl CandidateMeasurer for CodingCandidateMeasurer<'_>
impl CandidateMeasurer for CodingCandidateMeasurer<'_>
Source§fn measure_incremental<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Measured>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn measure_incremental<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Measured>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Per-mutation boundary: a syntax-only pass. The complete suite — every
build and test, each with its own timeout — belongs to the gate
boundary (measure); running it after every single admitted mutation
multiplies a turn’s cost by its edit count for no additional gate
evidence. hard_pass is never claimed from this cheap pass.
fn measure<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Measured>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<'a> Freeze for CodingCandidateMeasurer<'a>
impl<'a> !RefUnwindSafe for CodingCandidateMeasurer<'a>
impl<'a> Send for CodingCandidateMeasurer<'a>
impl<'a> Sync for CodingCandidateMeasurer<'a>
impl<'a> Unpin for CodingCandidateMeasurer<'a>
impl<'a> UnsafeUnpin for CodingCandidateMeasurer<'a>
impl<'a> !UnwindSafe for CodingCandidateMeasurer<'a>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.