ProjectionRecord

data class ProjectionRecord constructor(val propositionId: String, val target: String, val targetRef: String? = null, val lifecycle: ProjectionLifecycle, val runId: String, val at: Instant = Instant.now(), val reason: String? = null, val contextId: String = "")

A record of a single proposition projected to a single target.

Collectively these records form an inverse index of which propositions projected to which targets, allowing a projected artifact to be traced back to the propositions that produced it and its current ProjectionLifecycle to be inspected.

Constructors

Link copied to clipboard
constructor(propositionId: String, target: String, targetRef: String? = null, lifecycle: ProjectionLifecycle, runId: String, at: Instant = Instant.now(), reason: String? = null, contextId: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val at: Instant

When this record was created

Link copied to clipboard

The context the projected proposition belongs to, so projection health can be scoped per context and one context's lineage never leaks into another's. Empty when unknown.

Link copied to clipboard

Lifecycle state of this projection

Link copied to clipboard

ID of the proposition that was projected

Link copied to clipboard
val reason: String? = null

Optional explanation (e.g. skip/failure reason)

Link copied to clipboard

ID of the projection run that produced this record

Link copied to clipboard

The projection target (e.g. "graph", "prolog", "report")

Link copied to clipboard
val targetRef: String? = null

Optional reference to the produced/adopted artifact in the target (e.g. a node ID), or null when none applies