Skip to content

Function: flushStepLessonOutcomes() ​

ts
function flushStepLessonOutcomes(params): Promise<readonly string[]>;

Defined in: runtime/lessons/internal/flush-step-lesson-outcomes.ts:14

Flushes deduplicated per-step lesson outcomes to LessonStore, retires degraded lessons, and evaluates signal triggers (SPEC.md §3.4.3).

Ensures each (stepExecId, lessonId) records at most one outcome on step or winner completion.

Parameters ​

ParameterTypeDescription
paramsFlushStepLessonOutcomesParamsFlush parameters, accumulated outcome map, and stores.

Returns ​

Promise<readonly string[]>

Identifiers of any lessons retired after recording outcomes.

Released under the MIT License.