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.search

Search within a published KB snapshot.

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

    Search within a published KB snapshot.

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

    Search within a published KB snapshot.

    Goal

    Provide scoped retrieval for assistant answers.

    Context

    Assistant queries curated rules from a specific snapshot.

    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 KbSearchContract = defineQuery({
    	meta: {
    		key: 'kb.search',
    		title: 'Search KB',
    		version: '1.0.0',
    		stability: 'experimental',
    		owners: ['@examples'],
    		tags: ['knowledge', 'search', 'snapshots'],
    		description: 'Search within a published KB snapshot.',
    		goal: 'Provide scoped retrieval for assistant answers.',
    		context: 'Assistant queries curated rules from a specific snapshot.',
    	},
    	io: {
    		input: SearchKbInput,
    		output: SearchKbOutput,
    	},
    	policy: { auth: 'user' },
    });