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.
Ingest immutable source document metadata.
Goal
Store traceable source documents for curated KB.
Context
Called when an admin uploads/records authoritative sources.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
import {
KBSnapshotModel,
RuleVersionModel,
SourceDocumentModel,
SourceRefModel,
} from '../entities/models';
export const KbIngestSourceContract = defineCommand({
meta: {
key: 'kb.ingestSource',
title: 'Ingest Source',
version: '1.0.0',
stability: 'experimental',
owners: ['@examples'],
tags: ['knowledge', 'sources', 'ingestion'],
description: 'Ingest immutable source document metadata.',
goal: 'Store traceable source documents for curated KB.',
context: 'Called when an admin uploads/records authoritative sources.',
},
io: {
input: IngestSourceInput,
output: SourceDocumentModel,
},
policy: { auth: 'user' },
});