Expand description
Budget policy engine.
Given a crate::model::Measurement, a BudgetPolicy, and an optional
baseline figure, evaluate produces a list of structured PolicyResults
— one per clause that the policy actually constrains.
Structs§
- Budget
Policy - A budget policy attached to a scenario (or used as a project default).
- Policy
Result - The result of evaluating one policy clause.
Enums§
- Policy
Status - Tri-state outcome of a single policy check.
- Severity
- Severity classification, independent of pass/fail (a
Warncan still beError-severity for a critical scenario).
Functions§
- evaluate
- Evaluate every active clause of
policyagainstmeasurement. - overall_
status - Roll a set of results up into a single worst-case status.