CollectorRunContext

data class CollectorRunContext(val runId: String, val contextId: <Error class: unknown class>, val dryRun: Boolean = false, val clock: Clock = Clock.systemUTC())

Everything one run of the multi-signal collector needs beyond the candidate propositions themselves: a run id to tag its trace rows with, which context it's sweeping, whether it should hold off on anything that isn't read-only, and a clock so tests can pin "now".

A runner builds this once per sweep; tests can build one directly to exercise the strategy without a runner at all.

Constructors

Link copied to clipboard
constructor(runId: String, contextId: <Error class: unknown class>, dryRun: Boolean = false, clock: Clock = Clock.systemUTC())

Properties

Link copied to clipboard

Source of "now" for anything the run needs to timestamp. Defaults to the system clock; tests can supply a fixed one.

Link copied to clipboard
val contextId: <Error class: unknown class>

The context being swept.

Link copied to clipboard
val dryRun: Boolean = false

When true, the strategy should still compute and record its full trace but must not have any side effect beyond that (no marks are a "commitment" either way — this flag is here for callers that want to preview a run's trace before acting on it).

Link copied to clipboard

Identifies this run in the trace store — every edge, component and decision recorded during the run is tagged with it.