Skip to main content

Module claims

Module claims 

Source
Expand description

Quantitative-claims ledger: item.backend.metric <op> value[unit] evaluated against a measurement baseline. Numbers in prose become gated facts instead of aspirations.

Structs§

Claim
One parsed soothfast:claim expression: a measured metric of an item, or the difference of two items’ metrics, compared against a fixed bound.
Operand
A metric of one item: item.backend.metric.

Enums§

Op
Comparison operator of a claim expression (<, <=, >, >=).

Constants§

HEADROOM_FACTOR
How many times the bound may sit from the measured value before a held claim counts as loose: past it the claim guards nothing.

Functions§

contradicts
Whether two claims bound the same metric the same way with different bounds. A floor and a ceiling on one metric state a range and do not conflict.
evaluate
Evaluate against a baseline document; returns (holds, actual value).
loose_by
The bound-to-measured ratio (measured-to-bound for >/>=) when it exceeds HEADROOM_FACTOR. A measured value or bound of zero has no ratio and is never loose.
parse
Parse demo::lcg_checksum.perfcnt.instructions < 25000 (units on the bound: ns/us/ms/s multiply into ns; bare numbers stay raw). Two operands joined by - claim their difference.
values
The measured value of the claim’s item and, for a difference, of the item subtracted from it.