Skip to main content

Module definition

Module definition 

Source
Expand description

Decision definitions, rustev.definition/1 (spec 002, 3.7 to 3.11) and rustev.definition/2 (spec 032, 3.1.1).

These are the wire types. Their validation, typing and compilation live in rustev-core; the typed builder there produces these same values, so the builder and the JSON form enter one validated representation (R-02). Every field is required: absence is always an explicit variant. The exception is spec 032’s optional members, which version 1 never carries and which are omitted from canonical bytes when unused (spec 032, 3.1.2); the compiler refuses them in a version 1 definition. Spec 033 adds actionability and its policy constructs on the same terms.

Structs§

Adjustment
Raises a proposal parameter one position on an ordered scale, saturating.
BackendReq
Declared backend requirements beyond the operation and value kind.
Cap
Check
CorroborateDecl
A corroboration step (spec 032, 3.7.1).
Definition
A versioned, authored description of a recurring decision.
ExactDecl
An exact step: a registry operator, its version and its arguments. The arguments are decoded against the operator’s own schema by the compiler, so an unknown operator is refused as unknown_operator, not as a parse failure (spec 002, 3.9.5).
FieldDecl
ForEach
Fan-out over the ids produced by a step.
GradeRequirement
What a graded read requires (spec 032, 3.9.1).
Handler
Handles one input or step being unresolved.
InputDecl
One declared input field (spec 002, 3.7.1).
LimitsDecl
Declared ceilings (spec 002, 3.9.5 category 7, and 3.10.3).
ParamDecl
PolicyDecl
The selection policy (spec 002, 3.11).
Rule
SemanticDecl
A question answered by a decision backend.
StepDecl
One step of the plan graph.

Enums§

AgeLimit
ArtifactPin
BindingChoice
An explicit binding makes that backend the only candidate (3.9.4).
CalibrationRef
Candidates
CmpOp
Cond
Policy conditions (spec 002, 3.11.3).
CorroborationMode
Determinism
Declared determinism of a backend, weakest first.
Disagreement
The conflict policy of a graded input (spec 032, 3.8). There is no recency rule: entry order never chooses a value.
EvidenceDecl
How an input is graded (spec 032, 3.3.3).
ExcessPolicy
Expr
Expressions inside exact-operator arguments and policy predicates (registry rustev.exact/1). References are input:<name>, step:<id>, item:<field>[.<field>...] (inside a per-item operator) and now.
Fallback
What happens when no candidate satisfies the step (3.9.6).
Freshness
How old an input may be at evaluation time.
HandlerAction
ItemSource
Literal
A typed literal.
OnContradiction
OnFalse
Operation
The four semantic operations (R-05).
OutcomeDecl
What a matching rule proposes. Never a grant (spec 001, 3.2).
ParamSource
Predicate
Boolean predicates. all([]) is true; any([]) is false.
ProvenanceClass
The closed set of provenance classes (spec 002, 3.7.1).
ReasonKind
The names of the closed Unresolved reasons.
ReasonSet
RequiredKind
The value kind a semantic step requires (spec 002, 3.9.3).
StepBody
TypeDecl
Input value types (spec 002, 3.7.2). Every record field is required.
UncalibratedThreshold
Whether a probability threshold may read an uncalibrated distribution.