VEX Consensus Algorithm (Deterministic)
Audience: engineers and operators who need to understand how Stella Ops VEX Lens turns conflicting VEX statements into a single, reproducible effective status.
This document describes the consensus computation at a high level. It is not an API contract; see the Consensus JSON payload reference and the Consensus API overview for payload and endpoint details.
Inputs
- Normalized VEX tuples (status, justification, scope, timestamp, source digest)
- Issuer trust registry (tiers, weights, verification state)
- Optional policy precedence rules for how to treat conflicts
Grouping and Ordering
- Group tuples by correlation key (typically
(artifactId/productKey, vulnerabilityId)per tenant). - Apply a stable sort for evaluation, commonly:
- Most recent statement first (timestamp)
- Higher trust tier/weight first
- Higher verification confidence first
Ordering must be deterministic for identical inputs.
Lattice Join
Consensus uses a lattice-style join to avoid false safety:
- Model states with an explicit uncertainty ordering (e.g.,
unknownandunder_investigationremain meaningful outcomes). - Preserve conflicts when competing issuers disagree at comparable precedence.
The output includes:
- Effective status
- Confidence/weight summary
- References to source statements (digests)
- Conflict list (who disagrees and how)
