pub struct Resolution {
pub id: String,
pub prediction_id: String,
pub actual_outcome: String,
pub matched_expected: bool,
pub resolved_at: String,
pub resolved_by: String,
pub evidence: Evidence,
pub confidence: f64,
}Expand description
v0.34: Resolution closes out a Prediction.
A Resolution records what actually happened, who observed it,
when, with what evidence, and whether the actual outcome matched
the predicted one. Calibration scoring (Brier, log score, hit rate)
runs over the resolved subset of predictions per actor.
Fields§
§id: Stringvres_<16hex>, content-addressed.
prediction_id: Stringvpred_<id> of the prediction this resolves.
actual_outcome: StringFree-text description of what actually happened. The
matched_expected flag is the structured judgment.
matched_expected: boolTrue if the observed outcome matched the prediction’s
expected_outcome. Drives hit-rate and Brier scoring.
resolved_at: StringRFC 3339 timestamp of resolution.
resolved_by: StringStable actor id of the resolver. May or may not be the same actor that made the prediction (independent resolution is stronger).
evidence: EvidenceEvidence supporting the resolution — typically the paper / trial readout / observation that closes out the bet.
confidence: f64Resolver’s confidence in the match judgment, on [0, 1]. Useful when the actual outcome is partial or ambiguous.
Implementations§
Source§impl Resolution
impl Resolution
Sourcepub fn content_address(
prediction_id: &str,
actual_outcome: &str,
resolved_by: &str,
resolved_at: &str,
matched_expected: bool,
) -> String
pub fn content_address( prediction_id: &str, actual_outcome: &str, resolved_by: &str, resolved_at: &str, matched_expected: bool, ) -> String
Compute the content-addressed ID per v0.34 spec:
SHA-256(prediction_id | normalize(actual_outcome) | resolved_by | resolved_at | matched).
Returns first 16 hex chars prefixed with “vres_”.
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more