@playerthree/bench/campaign

Benchmark campaigns (SPEC §20 Fixed-reference benchmark publications): each replicate authors the candidate's policies independently, the frozen artifacts are evaluated through the series runner, and the record exports as a consented publication. State lives in outDir, so re-running resumes.

Interfaces

BenchmarkSuiteMetadata

Defined in: packages/bench/src/campaign.ts:20

Public suite metadata for createBenchmarkSuite; candidateId names the entrant whose policies each replicate authors.

Properties


CampaignAttempt

Defined in: packages/bench/src/campaign.ts:35

Private ledger row: every authoring attempt and its spend, including infrastructure failures the public run omits.

Properties

PropertyTypeDescriptionDefined in
costUsdstring | nullRunner-estimated USD; null while running or after a crash, when the full per-run ceiling is charged instead.packages/bench/src/campaign.ts:39
finishedAtstring | null-packages/bench/src/campaign.ts:36
numbernumber-packages/bench/src/campaign.ts:36
outcome"artifact" | "model_failure" | "infrastructure" | "interrupted" | null-packages/bench/src/campaign.ts:37
reasonstring | null-packages/bench/src/campaign.ts:37
runIdstring-packages/bench/src/campaign.ts:36
startedAtstring-packages/bench/src/campaign.ts:36

CampaignConfig

Defined in: packages/bench/src/campaign.ts:27

A campaign: the bench config and sealed suite, the candidate, the source trees whose digests must match the suite's build, and the publication consent.

Properties


CampaignOptions

Defined in: packages/bench/src/campaign.ts:46

Properties

PropertyTypeDescriptionDefined in
log?(message) => void-packages/bench/src/campaign.ts:52
maxCampaignUsd?numberCumulative USD ceiling over every authoring attempt of this campaign directory.packages/bench/src/campaign.ts:51
outDirstring-packages/bench/src/campaign.ts:47
signal?AbortSignalOperator stop: authoring in progress becomes an infrastructure attempt; evaluation suspends without aborting its series.packages/bench/src/campaign.ts:49

CampaignRecord

Defined in: packages/bench/src/campaign.ts:42

The private campaign record (campaign.json): suite, experiment, scored runs and every authoring attempt.

Properties

Functions

createBenchmarkSuite()

function createBenchmarkSuite(config, metadata): BenchmarkSuite;

Defined in: packages/bench/src/campaign.ts:59

Seals and validates a suite for config's series with metadata; the candidate entrant is generalized to a policy so the suite digest does not depend on it.

Parameters

ParameterType
configBenchConfig
metadataBenchmarkSuiteMetadata

Returns

BenchmarkSuite


exportCampaignPublication()

function exportCampaignPublication(
   record, 
   consent, 
   publishedAt?
): BenchmarkPublication;

Defined in: packages/bench/src/campaign.ts:254

Explicit consented public projection, separate from operational series retention.

Parameters

ParameterType
recordCampaignRecord
consent{ artifacts: false; attribution: boolean; license: string; research: boolean; results: true; training: boolean; }
consent.artifactsfalse
consent.attributionboolean
consent.licensestring
consent.researchboolean
consent.resultstrue
consent.trainingboolean
publishedAt?string

Returns

BenchmarkPublication


runCampaign()

function runCampaign(config, options): Promise<CampaignRecord>;

Defined in: packages/bench/src/campaign.ts:78

Each replicate authors independently; evaluation only loads durable frozen artifacts and uses SeriesRunner.

Parameters

ParameterType
configCampaignConfig
optionsCampaignOptions

Returns

Promise<CampaignRecord>