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