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.

provider-ranking.benchmark.ingest

Trigger ingestion of external benchmark data from a public source.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: ingest
  • File: packages/libs/contracts-spec/src/provider-ranking/commands/benchmarkIngest.command.ts
  • field.key.label
    provider-ranking.benchmark.ingest
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    provider-ranking.benchmark.ingest
    field.description.label

    Trigger ingestion of external benchmark data from a public source.

  • Type: operation (command)
  • Version: 1.0.0
  • Tags: ingest
  • File: packages/libs/contracts-spec/src/provider-ranking/commands/benchmarkIngest.command.ts
  • field.tags.label
    ingest
    field.owners.label
    field.stability.label

    Trigger ingestion of external benchmark data from a public source.

    Goal

    Import and normalize benchmark scores from external leaderboards.

    Context

    Used by operators and scheduled jobs to keep ranking data current.

    Source Definition

    import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
    import { docId } from '../../docs/registry';
    import type { DocBlock } from '../../docs/types';
    import { defineCommand } from '../../operations';
    import {
    	PROVIDER_RANKING_DOMAIN,
    	PROVIDER_RANKING_OWNERS,
    	PROVIDER_RANKING_STABILITY,
    	PROVIDER_RANKING_TAGS,
    } from '../constants';
    import { BenchmarkIngestedEvent } from '../events/benchmarkIngested.event';
    
    export const BenchmarkIngestCommand = defineCommand({
    	meta: {
    		key: 'provider-ranking.benchmark.ingest',
    		title: 'Ingest Benchmark Data',
    		version: '1.0.0',
    		description:
    			'Trigger ingestion of external benchmark data from a public source.',
    		goal: 'Import and normalize benchmark scores from external leaderboards.',
    		context:
    			'Used by operators and scheduled jobs to keep ranking data current.',
    		domain: PROVIDER_RANKING_DOMAIN,
    		owners: PROVIDER_RANKING_OWNERS,
    		tags: [...PROVIDER_RANKING_TAGS, 'ingest'],
    		stability: PROVIDER_RANKING_STABILITY,
    		docId: [docId('docs.tech.provider-ranking.benchmark.ingest')],
    	},
    	capability: {
    		key: 'provider-ranking.system',
    		version: '1.0.0',
    	},
    	io: {
    		input: BenchmarkIngestInput,
    		output: BenchmarkIngestOutput,
    	},
    	policy: {
    		auth: 'user',
    		pii: [],
    	},
    	sideEffects: {
    		emits: [
    			{
    				ref: BenchmarkIngestedEvent.meta,
    				when: 'External benchmark data is successfully ingested and stored.',
    			},
    		],
    	},
    });