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.
Add an asset position.
Goal
Track holdings.
Context
Asset onboarding/update.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const AddAssetContract = defineCommand({
meta: {
key: 'wealth.asset.add',
version: '1.0.0',
stability: 'stable',
owners: ['examples.wealth-snapshot'],
tags: ['wealth', 'asset', 'add'],
description: 'Add an asset position.',
goal: 'Track holdings.',
context: 'Asset onboarding/update.',
},
io: { input: AddAssetInput, output: AssetModel },
policy: { auth: 'user' },
});