CollectorTraceStore

Persists the collector's inspectable decision trace under a run id. In-memory and graph-backed implementations both satisfy this.

Inheritors

Functions

Link copied to clipboard
abstract fun deleteTracesForContext(contextId: <Error class: unknown class>)

Erasure hook: deleting a context's data must cascade to its trace rows.

Link copied to clipboard
Link copied to clipboard
abstract fun recordComponents(runId: String, components: List<CollectorComponent>)
Link copied to clipboard
abstract fun recordDecision(runId: String, decision: CollectorDecision)
Link copied to clipboard
abstract fun recordRunContext(runId: String, contextId: <Error class: unknown class>)

Registers which context a run belongs to, so deleteTracesForContext can find and clear that run's rows later. Call this once per run, e.g. before recording its first edge.