Skip to content

Interface: LessonRetirementConfig ​

Defined in: ast/lessons-node.ts:48

Automatic retirement thresholds for low-performing or violated lessons.

Archives a lesson immediately when lifetime violations reach maxViolations or when its sliding-window clean-pass rate falls below minCleanPassRate.minRate after afterInjections.

Properties ​

PropertyModifierTypeDescriptionDefined in
maxViolations?readonlynumberOptional maximum lifetime violation count $v$ before immediate retirement.ast/lessons-node.ts:50
minCleanPassRate?readonlyobjectOptional minimum sliding-window clean-pass rate threshold after $m$ injections.ast/lessons-node.ts:52
minCleanPassRate.afterInjectionsreadonlynumber-ast/lessons-node.ts:52
minCleanPassRate.minRatereadonlynumber-ast/lessons-node.ts:52

Released under the MIT License.