logAction

open override fun logAction(json: Json, builder: ActionLogBuilder.() -> Unit)

Builds an action log via the ActionLogBuilder DSL and stores it on the current stage record.

Records the decision this stage made and the inputs that decided it: scores, counts, flags, the option chosen, the reason a path was skipped. A produced artifact belongs here too when the stage might discard it. Long values are clipped to the session's ActionLogTruncation, so write the full value to the run log as well when it has to be replayable.

Replaces the stage's action log, warning when one is already there. A stage whose facts arrive at different times, or whose exit paths each record something, should use appendToActionLog instead.