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.

kb.ingestSource

Ingest immutable source document metadata.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @examples
  • Tags: knowledge, sources, ingestion
  • File: packages/examples/versioned-knowledge-base/src/operations/kb.ts
  • field.key.label
    kb.ingestSource
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    kb.ingestSource
    field.description.label

    Ingest immutable source document metadata.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: experimental
  • Owners: @examples
  • Tags: knowledge, sources, ingestion
  • File: packages/examples/versioned-knowledge-base/src/operations/kb.ts
  • field.tags.label
    knowledge,sources,ingestion
    field.owners.label
    @examples
    field.stability.label
    experimental

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