Skip to main content

Module evaluate

Module evaluate 

Source
Expand description

Per-binding, three-valued policy evaluation of a model against a facts file (domainforge evaluate).

No evaluation semantics live here. Graph policies are evaluated by Policy::evaluate_bindings (the existing three-valued evaluator); operation-bound policies by evaluate_precondition (the application evaluator). This module only loads facts, routes each policy to its evaluator and shapes the result.

Structs§

FactInstance
Facts
Parsed domainforge.evaluate-facts.v1 document.
OperationInput

Constants§

FACTS_SCHEMA
OUTPUT_SCHEMA

Functions§

evaluate_model
Evaluate every policy of graph (after load_instances) and every operation-bound policy against the supplied operation inputs. Rows are ordered by policy id, then operation name; bindings by instance name.
load_instances
Add the fact instances to graph. Unknown entities, unknown or mistyped fields and duplicate names are errors, never silently dropped.