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.ranking.refresh

Recompute composite rankings from latest benchmark data.

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

    Recompute composite rankings from latest benchmark data.

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

    Recompute composite rankings from latest benchmark data.

    Goal

    Keep the leaderboard current after new benchmark data arrives.

    Context

    Triggered after ingestion or on a schedule to update model rankings.

    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 { RankingUpdatedEvent } from '../events/rankingUpdated.event';
    
    export const RankingRefreshCommand = defineCommand({
    	meta: {
    		key: 'provider-ranking.ranking.refresh',
    		title: 'Refresh Rankings',
    		version: '1.0.0',
    		description: 'Recompute composite rankings from latest benchmark data.',
    		goal: 'Keep the leaderboard current after new benchmark data arrives.',
    		context:
    			'Triggered after ingestion or on a schedule to update model rankings.',
    		domain: PROVIDER_RANKING_DOMAIN,
    		owners: PROVIDER_RANKING_OWNERS,
    		tags: [...PROVIDER_RANKING_TAGS, 'refresh'],
    		stability: PROVIDER_RANKING_STABILITY,
    		docId: [docId('docs.tech.provider-ranking.ranking.refresh')],
    	},
    	capability: {
    		key: 'provider-ranking.system',
    		version: '1.0.0',
    	},
    	io: {
    		input: RankingRefreshInput,
    		output: RankingRefreshOutput,
    	},
    	policy: {
    		auth: 'user',
    		pii: [],
    	},
    	sideEffects: {
    		emits: [
    			{
    				ref: RankingUpdatedEvent.meta,
    				when: 'Composite rankings are successfully recomputed.',
    			},
    		],
    	},
    });