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