EvidenceFloor

data class EvidenceFloor constructor(val minConfidence: Double? = null, val minAuthority: AuthorityTier? = null, val demoteTo: String? = null)

The minimum evidence a proposition must carry before a relation may be asserted at full strength.

This is the knob that stops a cheap structural signal — two people sharing an email domain, a single calendar co-attendance — from being promoted to a strong semantic claim like "works for" or "collaborates with". A relation can declare a floor on two independent dimensions, and an assertion has to clear both:

  • minConfidence: the proposition's decay-adjusted confidence must reach this value.

  • minAuthority: the proposition's source must be at least this authoritative (see AuthorityTier, where a lower ordinal means more authoritative).

Either dimension may be left null, in which case it is simply not checked; a floor with both null never blocks anything. When an assertion falls short, demoteTo names a weaker predicate to fall back to (for example "works for" → "affiliated with"). If demoteTo is null the assertion is held for review instead.

DICE only carries and checks the floor — it never decides what the threshold values should be or what "weaker" means for a given predicate. Those are the consumer's to declare on each Relation.

Throws

if minConfidence is outside 0.0..1.0, or if demoteTo is blank.

Constructors

Link copied to clipboard
constructor(minConfidence: Double? = null, minAuthority: AuthorityTier? = null, demoteTo: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val demoteTo: String? = null

Predicate to fall back to when the floor is not met; null to hold for review instead of demoting.

Link copied to clipboard

Weakest source authority that clears the floor; null to skip the authority check.

Link copied to clipboard
val minConfidence: Double? = null

Lowest decay-adjusted confidence that clears the floor, in 0.0..1.0; null to skip the confidence check.

Functions

Link copied to clipboard
fun isSatisfiedBy(confidence: Double, authority: AuthorityTier): Boolean

Does an assertion with this confidence and source authority clear the floor?