Interface: LessonEmitSignalTrigger<TPayload>
Defined in: ast/lessons-node.ts:63
Signal emission trigger for promoting high-leverage lessons into permanent rules or checks.
Emits signal with mapPayload(lesson) when a lesson accumulates at least minCleanPasses, at most maxViolations, and has not triggered within the last cooldownHours.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TPayload | unknown | Emitted signal payload type. |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
cooldownHours | readonly | number | Cooldown window in hours before re-emitting signal for the same lesson. | ast/lessons-node.ts:71 |
mapPayload | readonly | BivariantCallback<[lesson: LessonRecord], TPayload> | Pure synchronous mapper projecting a qualifying LessonRecord into the signal payload. | ast/lessons-node.ts:73 |
maxViolations | readonly | number | Maximum lifetime violated count allowed to trigger emission. | ast/lessons-node.ts:69 |
minCleanPasses | readonly | number | Minimum lifetime clean_pass count required to trigger emission. | ast/lessons-node.ts:67 |
signal | readonly | SignalNode<TPayload> | Target SignalNode emitted when a lesson satisfies the promotion thresholds. | ast/lessons-node.ts:65 |