TrustGate

class TrustGate constructor(minTrustScore: Double, onMissingScore: GateDecision = GateDecision.Persist) : ExtractionGate

Routes propositions whose trust score falls below minTrustScore. The score is supplied by the consumer through GateContext.trustScore; this gate never computes trust and depends on no scoring component — it only reads the injected value.

Fail-open: when the trust score is absent the gate applies onMissingScore, which defaults to persisting. A consumer that wants a missing score to be treated as untrusted can supply, for example, GateDecision.Reject(...).

Throws

if minTrustScore is outside 0.0..1.0

Constructors

Link copied to clipboard
constructor(minTrustScore: Double, onMissingScore: GateDecision = GateDecision.Persist)

Functions

Link copied to clipboard
open override fun evaluate(proposition: Proposition, context: GateContext): GateEvaluation

Evaluate a single proposition against this gate's policy.