GateContext

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.

Constructors

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

Properties

Link copied to clipboard

free-form additional context for custom gates

Link copied to clipboard

the revision outcome for this proposition, if it was revised against existing knowledge; null when no revision was performed

Link copied to clipboard

the analysis context the proposition was extracted under, if available

Link copied to clipboard
val trustScore: Double? = null

a consumer-injected trust value READ from the proposition's metadata. The gate layer never computes this score — the consumer supplies the cached value so gates can route on it without coupling to any scoring component. Callers should normalize the raw metadata value to Double (e.g. (value as? Number)?.toDouble()) because a wrong-typed value reads as missing and the trust gate then fails open.