Skip to content

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 ​

PropertyModifierTypeDescriptionDefined in
createdByRunId?readonlystringOptional runId (or lastMutatedByRunId) attributed as the creator of this lesson.ports/lesson-record.ts:19
directivereadonlystringPreventative rule or architectural directive injected into actor context.ports/lesson-record.ts:15
epochAtCreationreadonlynumberPartition topology epoch at which the lesson was created or last aligned.ports/lesson-record.ts:17
idreadonlystringUnique content-addressed or store-assigned identifier of the lesson.ports/lesson-record.ts:11
partition?readonlystringOptional logical partition identifier associated with the lesson.ports/lesson-record.ts:13
recentOutcomesreadonlyreadonly LessonOutcome[]Sliding-window sequence of deduplicated 4-state execution outcomes.ports/lesson-record.ts:21
relevanceScore?readonlynumberOptional normalized text similarity score R(L, Q) in [0, 1] populated by queryCandidates().ports/lesson-record.ts:27
signalLastEmittedAt?readonlyReadonly<Record<string, string>>Optional map of signalId to ISO-8601 emission timestamp enforcing .emitSignalWhen() cooldowns.ports/lesson-record.ts:29
totalCleanPassesreadonlynumberCumulative lifetime count of 'clean_pass' outcomes.ports/lesson-record.ts:23
totalViolatedreadonlynumberCumulative lifetime count of 'violated' outcomes.ports/lesson-record.ts:25

Released under the MIT License.