pub struct GenerationEvaluation<'c> { /* private fields */ }Expand description
A decision is frozen before this stage exists. No generation value is stored in an Evaluation’s exact or semantic value maps.
Implementations§
Source§impl<'c> GenerationEvaluation<'c>
impl<'c> GenerationEvaluation<'c>
Sourcepub fn pending(&self) -> Vec<GenerationRequest>
pub fn pending(&self) -> Vec<GenerationRequest>
Declaration order, then selected item order. Repairs retain item order.
pub fn request_document( &self, step: &str, instance: &[String], target: u32, scope: &Scope, ) -> Result<RequestDoc, RequestIdentityError>
Sourcepub fn check_output(
&self,
step: &str,
instance: &[String],
raw: &RawOutput,
) -> Result<Result<(), Unresolved>, SupplyError>
pub fn check_output( &self, step: &str, instance: &[String], raw: &RawOutput, ) -> Result<Result<(), Unresolved>, SupplyError>
Record-level validation for runtime retry/fallback decisions. Declared invalid fields are accepted at this boundary and handled by repair.
Sourcepub fn check_attempt_output(
&mut self,
step: &str,
instance: &[String],
raw: &RawOutput,
) -> Result<Result<(), Unresolved>, SupplyError>
pub fn check_attempt_output( &mut self, step: &str, instance: &[String], raw: &RawOutput, ) -> Result<Result<(), Unresolved>, SupplyError>
Validate an attempt without resolving its request. Ownership notices survive a transport retry or fallback that later returns a valid record.
Sourcepub fn supply(
&mut self,
step: &str,
instance: &[String],
supplied: Supplied,
) -> Result<(), GenerationError>
pub fn supply( &mut self, step: &str, instance: &[String], supplied: Supplied, ) -> Result<(), GenerationError>
One scripted supply, with deterministic local attempt lineage.
Sourcepub fn supply_attempt(
&mut self,
step: &str,
instance: &[String],
supplied: Supplied,
attempt: &str,
attempts: u32,
) -> Result<(), GenerationError>
pub fn supply_attempt( &mut self, step: &str, instance: &[String], supplied: Supplied, attempt: &str, attempts: u32, ) -> Result<(), GenerationError>
Supply the final runtime outcome of a request. attempts includes
transport retries and fallbacks, not earlier repair rounds.
Sourcepub fn note_cached_attempt(&mut self, attempt: &str, decision: &str)
pub fn note_cached_attempt(&mut self, attempt: &str, decision: &str)
Mark only slots supplied by this cached attempt, preserving their origin. A later repair or backstop does not inherit another attempt’s delivery.
Sourcepub fn withhold(
&mut self,
step: &str,
instance: &[String],
reason: TextReason,
) -> Result<(), GenerationError>
pub fn withhold( &mut self, step: &str, instance: &[String], reason: TextReason, ) -> Result<(), GenerationError>
Runtime withholding (including missing output) ends only unresolved slots. It never replaces a valid field or changes the judgment.
Sourcepub fn verify_ownership(&self, judgment: &mut Judgment, text: &mut TextResult)
pub fn verify_ownership(&self, judgment: &mut Judgment, text: &mut TextResult)
Restore source-owned values in a host copy before publication. Returns notices in the text result, never in the judgment. The source is private.