Skip to main content

Consensus

Consensus ensures the consensus label reflects independent agreement among workers, not a single annotator.

Consensus threshold

The threshold is how many worker labels are required before the engine evaluates agreement (Gateway accepts 2–10, default 3). Refinery must collect at least that many labels before consensus can complete.

info

The integration stack may still run a fixed 3 labels / 2-of-3 consensus path while persisting consensus_threshold for future engine upgrades — behavior should match your deployed Refinery version.

Majority rule

Majority is computed as:

majority_required = floor(threshold / 2) + 1
ThresholdMajority requiredExample
22Both workers must agree
322 of 3 agree (common default)
533 of 5 agree
744 of 7 agree

Disagreement

If no option reaches the required majority, the task does not advance to a verified consensus label — it stays in_progress while more labels are collected, or eventually times out per Refinery policy. Your API continues to return 202 from GET .../result until a terminal state is reached.

Choosing a threshold

Higher thresholdLower threshold
More confidence, more diversityFaster, cheaper
More worker cost and latencyLess resilience to mistakes

Confidence score

When results are exposed, confidence is derived from agreement relative to the threshold, conceptually:

confidence ≈ agreement_count / threshold

(Exact fields: see Retrieving results.)