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