Package-level declarations

Types

Link copied to clipboard
class ConfidenceGate(minConfidence: Double) : ExtractionGate

Routes a proposition based purely on its own confidence: anything below minConfidence is rejected, everything else is persisted.

Link copied to clipboard

Routes propositions that contradicted existing knowledge to review. The gate carries no policy: it reads only GateContext.revisionResult.

Link copied to clipboard
class EvidenceFloorGate constructor(relations: Relations, authorityResolver: AuthorityResolver = StructuralAuthorityResolver(), caseSensitive: Boolean = false) : ExtractionGate

Stops a cheap structural signal from being asserted as a strong claim.

Link copied to clipboard
fun interface ExtractionGate

A policy check applied to a proposition after extraction but before it is persisted or projected. A gate inspects a single proposition together with its GateContext and returns a GateEvaluation expressing how the proposition should be routed.

Link copied to clipboard
class ExtractionGatePipeline constructor(gates: List<ExtractionGate>, val shortCircuitOnReject: Boolean = true)

A standalone runner that applies an ordered list of ExtractionGates to propositions and aggregates each gate's GateEvaluation into a GatedPropositionResult.

Link copied to clipboard
data class GateContext constructor(val revisionResult: RevisionResult? = null, val trustScore: Double? = null, val sourceContext: SourceAnalysisContext? = null, val metadata: Map<String, Any> = emptyMap())

Context passed to a gate alongside the proposition under evaluation.

Link copied to clipboard
sealed interface GateDecision

The routing decision a gate reaches for a proposition. Exactly five outcomes are possible.

Link copied to clipboard
data class GatedPropositionResult(val proposition: Proposition, val evaluations: List<GateEvaluation>, val finalDecision: GateDecision)

The aggregated outcome of running one or more gates against a proposition, together with the final routing decision.

Link copied to clipboard
data class GateEvaluation(val gateName: String, val proposition: Proposition, val decision: GateDecision)

The outcome of evaluating a single proposition against a single gate.

Link copied to clipboard

Routes propositions that were merged into, or reinforced an existing proposition to review so a consumer can confirm the consolidation. The gate carries no policy: it reads only GateContext.revisionResult.

Link copied to clipboard
class ObservableGate(delegate: ExtractionGate, listener: DiceEventListener = DiceEventListener.DEV_NULL) : ExtractionGate

Decorator that adds event emission to any ExtractionGate.

Link copied to clipboard
class ProjectionEligibilityGate constructor(minConfidence: Double = DEFAULT_MIN_PROJECTION_CONFIDENCE) : ExtractionGate

Decides whether a proposition should be projected to downstream representations.

Link copied to clipboard
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.