Skip to main content

Module scores

Module scores 

Source
Expand description

Scorers, rustev.score-views/1 and rustev.scores/1 (spec 041, 3.6 and 3.7).

Scores enter evaluation only as a scores document bound to the views of the same evaluation (R-1): eval computes the views, a host’s scorer scores each entry outside eval, and evaluation refuses a document over other views. Eval stays synchronous and I/O-free; a scorer is a Rust value the host composes in code (D-06).

Modules§

reserved
Unscored reasons eval reserves (3.6.1, 3.7, 3.8, 3.9).

Structs§

CaseView
What a scorer knows of a case. gold is null for a scorer that does not declare reads_gold (3.7.4).
ProposalView
What a scorer knows of a proposal: the judgment’s action, parameters, derivation and notices.
ScoreEntry
ScoreViews
The views a scorer scores: one entry per comparable proposal case of one evaluation, in manifest order (3.7.1).
Scores
One scorer’s scores over one views document (3.7.2).
ViewEntry

Enums§

ScoreOutcome
A score, or why there is none (3.6.1).

Constants§

PROPOSAL_VIEW
The tag of a view entry’s subject digest (3.7.1).
SCORES
SCORE_VIEWS

Traits§

Scorer
A scorer the host composes in code (3.6, D-06).

Functions§

checked
A scorer’s answer as it is recorded (3.7.5): a score outside the output, or an unscored reason that is malformed or reserved for eval, becomes unscored invalid_score, never clamped or passed through.
reason_ok
1 to 64 bytes of [a-z0-9_] (3.6.1).
score_ok
Whether a score lies inside the scorer’s output (3.7.5): a level index of an ordinal scale, or a finite value in a bounded range. Never clamped.
score_views
Calls the scorer once per entry, in order, synchronously (3.7.3), with the case view of scorer_case, and records each answer as checked states.
scorer_case
The case view a scorer is handed (3.7.4): the entry’s, with gold null unless the scorer declares reads_gold.