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