OSS-first docs

These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.

learning.journey.recordEvent

Record a domain event and re-evaluate an adaptive journey.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Tags: adaptive-learning, journey, events
  • File: packages/modules/learning-journey/src/contracts/journey.ts
  • field.key.label
    learning.journey.recordEvent
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    learning.journey.recordEvent
    field.description.label

    Record a domain event and re-evaluate an adaptive journey.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Tags: adaptive-learning, journey, events
  • File: packages/modules/learning-journey/src/contracts/journey.ts
  • field.tags.label
    adaptive-learning,journey,events
    field.owners.label
    field.stability.label
    stable

    Record a domain event and re-evaluate an adaptive journey.

    Goal

    Advance branch-aware journey progress from product activity.

    Context

    Called by event handlers when product activity may unlock or complete steps.

    Source Definition

    import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
    import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
    import { LEARNING_JOURNEY_OWNERS } from './shared';
    
    export const RecordJourneyEventContract = defineCommand({
    	meta: {
    		key: 'learning.journey.recordEvent',
    		version: '1.0.0',
    		stability: 'stable',
    		owners: [...LEARNING_JOURNEY_OWNERS],
    		tags: ['adaptive-learning', 'journey', 'events'],
    		description: 'Record a domain event and re-evaluate an adaptive journey.',
    		goal: 'Advance branch-aware journey progress from product activity.',
    		context:
    			'Called by event handlers when product activity may unlock or complete steps.',
    	},
    	io: { input: JourneyRecordEventInput, output: JourneyProgressModel },
    	policy: { auth: 'user' },
    });