CollectorRunner

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 = true previews the outcome and saves an audit record; dryRun = false applies the decisions for real.

Build one via the fluent withRepository entry point.

Inheritors

Types

Link copied to clipboard
class Builder

Fluent builder for a DefaultCollectorRunner.

Link copied to clipboard
object Companion

Functions

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

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.