Skip to main content

Module evaluation_progress

Module evaluation_progress 

Source
Expand description

Persisted evaluation progress and lease-expiry recovery (SPEC-v2 §6.7, §7.5). Mirrors Go evaluation_progress_v2.go.

Structs§

V2CommittedClaim
Go V2CommittedClaim: a terminal claim as the claim store’s terminal compare-and-set persisted it: the sealed claim values, the terminal result, the sealed receipt outbox body, and the allow horizon (0 unless the result is an allow).
V2EvaluationProgress
The per-dimension progress of one claimed evaluation (SPEC-v2 §6.7, §7.5). The evaluator persists it in the claim store under its evaluator capability before every external lookup starts and after it completes.
V2InterruptedClaim
What a claim store returns to lease-expiry recovery: the sealed claim, its authoritative claim time T_claim, and the last persisted progress.

Traits§

V2CommittedClaimStore
Go V2CommittedClaimStore: loads a terminal claim’s persisted record for resumption (SPEC-v2 §7.11). load_v2_committed_claim answers claim_not_found for a claim the store does not hold, claim_lease_live for a claim still evaluating under a live lease, and claim_lease_lost for a claim still evaluating after its lease expired (lease-expiry recovery runs first).

Functions§

initial_v2_evaluation_progress
Go InitialV2EvaluationProgress: no post-claim check has started.
recover_interrupted_claim_v2
Go RecoverInterruptedClaimV2: lease-expiry recovery. Loads the claim’s sealed values, T_claim and persisted progress from the store (which refuses while the evaluator lease is live), commits the evaluation_interrupted result built from them, and returns the committed, non-actionable outcome for publication and release. An identical repeat returns the same outcome.
resume_committed_claim_v2
Go ResumeCommittedClaimV2: returns the handoff of a claim’s committed result from the claim store’s persisted record (SPEC-v2 §7.11), for a service whose handoff was lost after the terminal commit, for example by a crash before the verifier returned. It checks the record as the terminal compare-and-set does and never builds or replaces a result; a record that fails a check is claim_store_unavailable. Publication, checkpoint submission and release then proceed as for a returned handoff.
v2_evaluation_interrupted_result
Go V2EvaluationInterruptedResult: the canonical terminal result object and receipt outbox body for indeterminate/evaluation_interrupted from the claim’s sealed values and its evaluation progress. verified_at is the claim’s authoritative claim time T_claim. Returns (terminal_result, receipt_body).
validate_v2_evaluation_progress
Go ValidateV2EvaluationProgress (class malformed; Go returns an unclassified error). A claim store rejects an invalid record, and recovery refuses to build a receipt from one. (Go’s additional “nil evidence slice” rejection has no Rust counterpart: a Vec is never nil.)