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

Approve a draft rule version.

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

    Approve a draft rule version.

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

    Approve a draft rule version.

    Goal

    Human verification step before publishing snapshots.

    Context

    Curators/experts approve proposed KB changes.

    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 KbApproveRuleVersionContract = defineCommand({
    	meta: {
    		key: 'kb.approveRuleVersion',
    		title: 'Approve Rule Version',
    		version: '1.0.0',
    		stability: 'experimental',
    		owners: ['@examples'],
    		tags: ['knowledge', 'rules', 'approval'],
    		description: 'Approve a draft rule version.',
    		goal: 'Human verification step before publishing snapshots.',
    		context: 'Curators/experts approve proposed KB changes.',
    	},
    	io: {
    		input: ApproveRuleVersionInput,
    		output: RuleVersionModel,
    	},
    	policy: { auth: 'user' },
    });