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.
Create a financial goal.
Goal
Track progress toward goals.
Context
Planning.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const CreateGoalContract = defineCommand({
meta: {
key: 'wealth.goal.create',
version: '1.0.0',
stability: 'stable',
owners: ['examples.wealth-snapshot'],
tags: ['wealth', 'goal', 'create'],
description: 'Create a financial goal.',
goal: 'Track progress toward goals.',
context: 'Planning.',
},
io: { input: CreateGoalInput, output: GoalModel },
policy: { auth: 'user' },
});