Expand description
Persisted evaluation progress and lease-expiry recovery (SPEC-v2 §6.7,
§7.5). Mirrors Go evaluation_progress_v2.go.
Structs§
- V2Committed
Claim - 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). - V2Evaluation
Progress - 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.
- V2Interrupted
Claim - What a claim store returns to lease-expiry recovery: the sealed claim, its authoritative claim time T_claim, and the last persisted progress.
Traits§
- V2Committed
Claim Store - Go
V2CommittedClaimStore: loads a terminal claim’s persisted record for resumption (SPEC-v2 §7.11).load_v2_committed_claimanswersclaim_not_foundfor a claim the store does not hold,claim_lease_livefor a claim still evaluating under a live lease, andclaim_lease_lostfor 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 isclaim_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_atis the claim’s authoritative claim time T_claim. Returns(terminal_result, receipt_body). - validate_
v2_ evaluation_ progress - Go
ValidateV2EvaluationProgress(classmalformed; 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: aVecis never nil.)