Collector Runner
interface CollectorRunner
Runs the mark-and-sweep collector for a context: selects ACTIVE propositions, hands them to one or more CollectorStrategys for marking, then asks the SweepPolicy what to do with each marked one.
Two entry points with different write behavior:
collect is mark-only — purely in-memory, never writes a thing.
run is mark + sweep —
dryRun = truepreviews the outcome and saves an audit record;dryRun = falseapplies the decisions for real.
Build one via the fluent withRepository entry point.
Inheritors
Types
Functions
Link copied to clipboard
Run the mark phase only, leaving everything untouched.
Link copied to clipboard
abstract fun run(contextId: <Error class: unknown class>, dryRun: Boolean = false): CollectorRunResult
Run the full mark + sweep.