Interface: LessonRecord
Defined in: ports/lesson-record.ts:9
Stored empirical lesson record with sliding-window outcome history and relevance scoring metadata.
Tracks the lesson's partition tag, creation epoch, recent 4-state execution outcomes, lifetime pass/violation counters, and promotion signal emission timestamps.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
createdByRunId? | readonly | string | Optional runId (or lastMutatedByRunId) attributed as the creator of this lesson. | ports/lesson-record.ts:19 |
directive | readonly | string | Preventative rule or architectural directive injected into actor context. | ports/lesson-record.ts:15 |
epochAtCreation | readonly | number | Partition topology epoch at which the lesson was created or last aligned. | ports/lesson-record.ts:17 |
id | readonly | string | Unique content-addressed or store-assigned identifier of the lesson. | ports/lesson-record.ts:11 |
partition? | readonly | string | Optional logical partition identifier associated with the lesson. | ports/lesson-record.ts:13 |
recentOutcomes | readonly | readonly LessonOutcome[] | Sliding-window sequence of deduplicated 4-state execution outcomes. | ports/lesson-record.ts:21 |
relevanceScore? | readonly | number | Optional normalized text similarity score R(L, Q) in [0, 1] populated by queryCandidates(). | ports/lesson-record.ts:27 |
signalLastEmittedAt? | readonly | Readonly<Record<string, string>> | Optional map of signalId to ISO-8601 emission timestamp enforcing .emitSignalWhen() cooldowns. | ports/lesson-record.ts:29 |
totalCleanPasses | readonly | number | Cumulative lifetime count of 'clean_pass' outcomes. | ports/lesson-record.ts:23 |
totalViolated | readonly | number | Cumulative lifetime count of 'violated' outcomes. | ports/lesson-record.ts:25 |