Oracles¶
An oracle collects observations of one subject, its schema, and publishes a combined value.
Policy¶
The policy is anchored when the oracle is created and never changes.
| Field | Default | Meaning |
|---|---|---|
schema |
required | What is observed, at most 256 characters |
method |
median |
median, weighted_average or quorum_vote |
quorum_threshold |
3 | Minimum number of observers, 1 to 1000 |
staleness_ms |
60000 | Maximum age of an observation, 1 second to 1 day |
max_deviation_pct |
50 | Largest accepted change from the last value. 0 disables the check |
require_bft |
true |
Entries need the committee's votes |
members |
service default | Committee |
roots |
[] |
Issuers of credentials that observers must present. Empty requires none |
vdf_iterations |
50000 | Length of the delay proof |
logic_version |
1.0.0 |
Free text |
Observations¶
An observation is signed by the observer and belongs to an engagement with the method observe. Only the latest observation of each observer counts. Values are decimal strings, or booleans for quorum_vote.
Aggregation¶
- Observations of observers with weight 0 are ignored.
- With four or more numeric values, outliers beyond 1.5 times the interquartile range are removed.
- Values that deviate more than
max_deviation_pctfrom the last value are removed. - If too few values remain, no entry is created.
- The values are combined.
| Method | Result |
|---|---|
median |
Middle value, or the mean of the two middle ones |
weighted_average |
Average by observer weight |
quorum_vote |
true if at least two thirds observed true, otherwise false |
Calculations are exact decimal arithmetic with 18 decimal places, so every member obtains the same result.
Weights¶
Observers start with weight 100. Agreement with the result adds 1, up to 100. Disagreement subtracts 5. An observer at 0 no longer counts. Weights are part of the state and therefore of the log.