DiscoveryProvenanceDto

data class DiscoveryProvenanceDto(val locator: String, val sourceRevision: String? = null, val chunkId: String? = null, val startOffset: Int? = null, val endOffset: Int? = null, val contentHash: String? = null)

Primitive-only provenance attached to a discovery explanation.

The locator arrives as its stable key string rather than as a SourceLocator, so no domain type crosses the trust boundary. Null scalars drop out of the JSON, so a revisionless entry serializes the way it always did.

Constructors

Link copied to clipboard
constructor(locator: String, sourceRevision: String? = null, chunkId: String? = null, startOffset: Int? = null, endOffset: Int? = null, contentHash: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val chunkId: String? = null

the chunk this proposition was extracted from, when known

Link copied to clipboard
val contentHash: String? = null

hash of the source content, when known

Link copied to clipboard
val endOffset: Int? = null

character offset where the supporting span ends, when known

Link copied to clipboard

stable key of the source reference

Link copied to clipboard
val sourceRevision: String? = null

the provider's opaque revision of that source, when known

Link copied to clipboard
val startOffset: Int? = null

character offset where the supporting span begins, when known