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.
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' },
});