KPI evidence, reports and verdicts#

This page explains how to read the result of a KPI run:

  • the exit codes;

  • the live console progress and the final summary;

  • the public record measurements.json and the calibration evidence calibration.json;

  • the private execution tree.

Outputs lists where a run writes each file. The page uses the terms of the KPI glossary, such as attempt, run, campaign, series, noise, budget, package, bundle, CPU model, controller, driver, child and verified drain. The backend names ovstage and OpenUSD follow the consumer glossary.

All numbers in the examples are synthetic. The console and summary text comes from the code’s own format strings.

Reports and verdicts#

The controller, python -m benchmarks.kpi run, decides every verdict. It freezes the requested inventory, journals the start and the completion of every attempt, drains its child processes and then classifies the campaign. A child process that reports a pass cannot qualify a result by itself.

Every report keeps five verdicts apart: execution, work consistency, environment, workflow and performance. The work-consistency section, workload_consistency, records verification_kind=benchmark-work and correctness_qualified=false. KPI checks only that each workload did its frozen work. Sentinel owns correctness.

Exit

Status

Meaning

0

pass

Every required condition qualified and passed. Warnings stay visible

1

product-failure

A product or work-contract failure, a native crash, or a failed normal operation

2

regression

A confirmed performance regression: a candidate median above its failure limit

3

insufficient-evidence

Not enough qualified evidence, for example a missing or incompatible budget, an unqualified environment, exhausted CPU retries, unstable noise or an incomplete inventory

4

harness-failure

Invalid input, schema or identity, an output directory that already exists, failed input preparation, a harness or collector failure, or unverified process cleanup

75

(CI only)

The CPU-contention warning of CI check mode on Linux x86-64 and AArch64; Windows exits 0 instead. The benchmark verdict stays 3

76

(process only)

Too few physical cores, found before any native measurement. The benchmark verdict stays 3

130

interrupted

Cancellation, for example Ctrl+C

When several outcomes apply, the first one in this order wins: 1, 4, 130, 2, 3, 0 (runner.EXIT_PRIORITY). A product failure therefore outranks a regression in the same campaign, and a regression outranks missing evidence. The per-metric results stay visible in the summary and in the public record.

Deadlines and operation watchdogs are not budgets. An expired watchdog gives insufficient evidence (3), never a regression; deadlines gives their values. Baseline collection reports its own result with the same codes; see collection status and exit codes.

Exit 76: too few physical cores#

KPI measures each attempt on four physical cores. Exit 76 reports a proven shortage before anything was measured. benchmarks/kpi/exit_codes.py returns it only when all of these hold:

  • The benchmark verdict is 3, and the output is verified.

  • The workflow receipt passed and the inputs stayed unchanged, where they were checked.

  • At least one attempt was executed. Every executed attempt is a drained, non-retryable CPU selection record of kind insufficient_physical_cores.

  • The retained topology of each record fails the four-core proof again, with the same core count.

python -m benchmarks.kpi run and the launchers return 76, also in a CI job. The launchers also need verified private cleanup and a published public record; without them they exit 4. Check mode usually finds the shortage in its budget phase, from the observed topology, before fixture generation. It prints:

KPI insufficient physical cores (process exit 76; benchmark exit 3).

The public record keeps "benchmark_exit_code": 3 and "ci_exit_code": 76; read them where a CI system reports every nonzero Windows exit as 1. Baseline collection never returns 76: it reports the shortage with exit 3; see collection status and exit codes.

These cases never give 76:

Case

Result

A CPU quota below four, or a malformed or unsupported topology

Exit 3: there is no measurable CPU model, so there is no coverage

An explicitly selected budget path that is missing or is not a CPU-model package

Exit 3: measurement is skipped, whatever the core count

Busy cores, missing observations of a simultaneous multithreading (SMT) sibling, or an incompatible pool

The ordinary CPU-admission outcome

A shortage after a native measurement started

The campaign’s ordinary verdict

The CI CPU-contention warning#

scripts/kpi_ci.py turns exactly one kind of insufficient evidence into a warning: a campaign that ran out of CPU availability and has no other problem. It does so only in check mode in a CI context: a job that the built-in provider adapter detects (GitLab’s CI_JOB_ID), or one declared with OVCLASH_CI_PROVIDER or OVCLASH_CI_JOB_ID; see run KPI in another CI system. A local run and a baseline collection keep exit 3. The controller marks a campaign as eligible (ci_cpu_availability_warning in the private summary) only when all of these hold:

  • The benchmark verdict is 3 and no other reason is recorded. The producer workflow passed, the inputs stayed unchanged, and the build is of verified, clean source.

  • The campaign ran in the four-core four-physical-cores-retry-v2 CPU domain.

  • Every required metric has exactly one enforcing CPU-model limit, all for one CPU model.

  • Every executed attempt either qualified with every required metric, or is a CPU-busy rejection that the controller replayed. A cell that a busy wait left no time to start is marked as caused by that rejection.

  • Every comparison passed, warned, or lacks values only because its workload has missing cells.

  • Even with zero for every missing value, no median exceeds its failure limit.

Any actual operation failure, unsupported result, cohort mismatch, incomplete inventory or plain deadline stop prevents the warning. An eligible campaign then exits like this:

Platform

CI exit

Why

Linux x86-64 and AArch64

75

A nonzero code that differs from 3. A CI system that shows every nonzero exit as a failure needs the exit code or the KPI CI: non-blocking warning line to tell 75 from 3

Windows

0

A success code. A CI system can report every nonzero Windows exit as 1, so 0 is the only code that stays distinct from a failure

The console states the warning in one line:

KPI CI: non-blocking warning (exit 75); CPU availability exhausted; performance not verified; benchmark exit 3; public numerical diagnostics only; raw controls execution-only

Windows prints the same line with exit 0. What stays unchanged:

  • measurements.json keeps verdict.status insufficient-evidence and benchmark_exit_code 3. Only ci_exit_code is 75 or 0. The summary ends with Saved exits: benchmark=3, CI=75.

  • The private results/summary.json keeps exit 3. The driver also writes results/ci-disposition.json into the private execution tree. It binds the summary’s SHA-256 and records performance_verified: false. Like the rest of the private execution tree, it is deleted after a verified drain.

  • The warning never permits budget creation. The campaign is incomplete, so it exports no calibration evidence.

CI disposition record#

results/ci-disposition.json is one line of canonical JSON:

{"benchmark_exit_code":3,"ci_exit_code":75,"kind":"ovclash-kpi-ci-disposition","performance_verified":false,"reason":"cpu-availability","schema_version":1,"status":"warning","summary_sha256":"<64 hex digits>"}

The driver writes every field:

Field

Type

Required

Default or values

Description

schema_version

integer

Yes

1

Schema version

kind

string

Yes

ovclash-kpi-ci-disposition

Record kind

status

string

Yes

warning

The CI disposition

reason

string

Yes

cpu-availability

Why the campaign became a warning

benchmark_exit_code

integer

Yes

3

The unchanged benchmark verdict

ci_exit_code

integer

Yes

75 on Linux, 0 on Windows

The exit code the driver returned

performance_verified

boolean

Yes

false

Performance was not verified

summary_sha256

string

Yes

64 lowercase hexadecimal digits

The SHA-256 of results/summary.json

Console progress#

A launcher or CI run prints the settings block first. The driver then prints one progress line as each step starts or finishes. Check mode gives the order of the steps. The standalone python -m benchmarks.kpi run prints only its settings block and one result line.

Each step line starts with KPI and a phase name. This is a release check with an installed package; ... marks omitted lines, including the workload tables, and <seconds> stands for each measured time:

KPI preparation: starting validated Release artifact preparation
KPI RUN DETAILS
  Release inputs: artifact:release-inputs
  Release files:  artifact:release-files
  Results:        artifact:results
KPI preparation: ready (<seconds>s)
KPI budget: checking the selected policy
...
KPI budget: local budget package selected; controller will validate its format and approval (<seconds>s)
KPI generation: starting representative stage generation
KPI generation: body-representative starting
KPI generation: body-representative ready (<seconds>s)
KPI generation: body-representative files
  Stage:          artifact:stage
  Bundle:         artifact:stage-bundle
...
KPI generation: ready (<seconds>s)
KPI WORKLOAD FILES
  Definition:     artifact:workload-definition
  Expectations:   artifact:expectations
  Runtime:        artifact:runtime-manifest
KPI campaign: starting release
KPI budget: limits selected for the observed CPU model; other models cannot substitute; actual CPU admission remains required
KPI Campaign context
  Backend: ovstage
  CPU model: Example Core 42
  Physical RAM: 64.00 GiB total
  Output volume: 412.00 GiB free
...
KPI campaign: pass (exit 0); elapsed <seconds>s; public numerical diagnostics only; raw controls execution-only

Line prefix

Step

KPI preparation:

Extract the wheel and bind the SDK archive, the wheel, the runtime and the one passing validation receipt

KPI budget:

Read the catalog or package and check coverage. The lookup and coverage lines in between are described in mode and lookup lines

KPI generation:

Generate each bundle and check it against its pin

KPI campaign:

Measure the workloads. The last line gives the verdict and the elapsed time

KPI <phase>: failed (...)

A phase failed. The line names the phase, the verdict and a fixed reason

A failed phase prints one line, for example:

KPI generation: failed (<seconds>s); harness failure (exit 4); invalid input or identity; details unavailable; see public numerical diagnostics when available; raw controls execution-only

Troubleshooting lists the fixed reasons and their remedies.

Blocks such as RUN DETAILS name fixed artifact roles like artifact:stage, never paths. The driver’s filtered campaign progress and final summary never print raw exception text, private paths, or machine or user names. Startup settings and interpreter diagnostics forwarded by the launchers are outside that filter; see Troubleshooting. The public record keeps its closed privacy contract. Review and budget creation use the retained evidence, never the console.

Workload tables#

Before the first Release workload, a Noise calculation block states the definition of MAD, the median absolute deviation, both noise limits and the budget formulas. It prints only once. Each executed workload then prints a heading, a two-line legend, its setup references and one table row per actual attempt. This Release workload goes from its first attempt to a stable result. Every number in it is synthetic, chosen to show the noise calculation, and is not a typical duration; the values that the calculation does not use show <s>:

Noise calculation
  MAD = median absolute deviation of all measured values. Warm-up is excluded.
  Stability noise = 3*MAD/median*100; Load limit 25%; other metrics 15%.
  Reported noise is the highest required non-Load metric; Load noise is shown separately.
  Largest deviations are retained. Budget allowance N=max(3*MAD, largest deviation);
  Suite serialization N is at least 30% of the median (runner-host spread);
  warning=1.05*median+N; failure=1.10*median+N.
  Values are rounded for display; saved gates use full precision.
Workload: 1.1 Body / Static query
  Total includes CPU checks and setup; Qualified = passed its workload and environment checks, not an approved baseline.
  CPU % = pre-run aggregate/busiest selected or SMT sibling; placement-only: ---/busiest checked CPU; --- means unavailable.
  Definition:    artifact:workload-definition
  Stage:         artifact:stage
  Evidence:      artifact:results
  |Run | Try|CPU %       |CPU load check |Result         |Load       |Pipeline   |Capture/Save|Workload |Total    |
  |----|----|------------|---------------|---------------|-----------|-----------|------------|---------|---------|
  |1   |   1|12.3/24.6%  |Ready <s>      |Warm-up        |<s>        |<s>        |<s>         |<s>      |<s>      |
  |2   |   1|12.3/24.6%  |Ready <s>      |Qualified      |1.0000s    |4.0000s    |1.0200s     |6.00s    |<s>      |
  |3   |   1|85.0/95.0%  |Busy <s>       |Insufficient   |---        |---        |---         |---      |<s>      |
  |3   |   2|10.0/20.0%  |Ready <s>      |Qualified      |1.0200s    |4.0500s    |1.0300s     |6.10s    |<s>      |
  |4   |   1|12.3/24.6%  |Ready <s>      |Qualified      |0.9900s    |3.9800s    |1.0100s     |5.95s    |<s>      |
  PASSED: noise 2.94% (limit 15%); Load noise 3.00% (limit 25%)

Read it like this:

  • Run 1 is the warm-up. Runs 2 to 4 are the three measured runs.

  • CPU admission rejected the first attempt of run 3 because the CPU was busy. The rejected attempt used no run slot, and the second attempt, a retry, qualified.

  • After run 4, every required metric had three measured values and noise within its limit, so the workload became stable; see the noise gate.

  • The PASSED line shows the highest noise of the required non-Load metrics, then the Load noise. Here result_capture_seconds is the highest: 3 * 0.01 / 1.02 = 2.94%.

  • The heading Workload: 1.1 Body / Static query gives the campaign number and the workload number. A check run is campaign 1; a collection counts its campaigns. Workload numbers follow the execution order.

  • The Run and Try numbers start at 1. Attempt directory names count from 0; see attempt directories.

  • A workload that never started prints no table. Its counts and stop reason appear in the final summary.

Column

Meaning

Run

The successful-run slot. Release allows ten, the warm-up included. A fixed-count run shows its cell number

Try

The attempt within the run. Attempt 2 is the first CPU retry. Adaptive Release permits attempts 1 to 11 per run; see run, retry and attempt limits

CPU %

Pre-run CPU load from the final admission window: aggregate / busiest selected CPU or online SMT sibling. A placement-only Busy row shows ---/ and the busiest checked CPU. The value says nothing about load during the workload

CPU load check

Ready, Busy, Invalid (an invalid counter sample), Rejected (another CPU check) or ---, followed by the admission duration when it was recorded

Result

Warm-up, Qualified, Not qualified, Insufficient, Failed, Regression, Harness failure, Interrupted or Unknown. Qualified means the attempt passed its workload and environment checks. It is neither a budget comparison nor an approved baseline

Load, Pipeline, Capture/Save

load_seconds, pipeline_step_seconds, and result_capture_seconds or, for a Suite-save workload, which saves through the Suite API, extraction_serialization_seconds

Workload

operation_seconds, the measured workload time

Total

The wall time of the attempt, including CPU checks, startup and cleanup

The times overlap: Workload is part of Total, and a phase time includes the work inside it. Timing boundaries defines each one.

A missing value prints ---. Lines under a row explain it:

  • A failed row is followed by its verdict and fixed causes.

  • A Busy or Insufficient row adds no duplicate line.

  • An Invalid row prints the rejected counter operands, starting with CPU counter sample invalid:.

  • Another CPU rejection prints CPU check: Rejected: <reason>.

  |2   |   1|11.0/19.0%  |Ready <s>      |Failed         |---        |---        |---         |---      |<s>      |
  product failure (exit 1)
  Overlap count differs: expected 1200, observed 1199.

A rejected attempt does not stop the campaign by itself. The workload’s closing line says whether it stopped.

Sampling and stop lines#

Each Release workload ends with one closing line. PASSED marks a stable workload, as in the workload tables example; the final summary shows the same saved decision in its campaign summary. The other closing lines are described with their rules:

  • Campaign stopped: ... lines and every Recovery: CPU contention ... line, both the one that precedes a CPU-retry restart and the ones that end smoke CPU recovery: when a Release campaign stops.

  • The calculation block after a noise stop, for its deciding metric: how a stop is explained.

  • Restarting this workload only ... and Restart limit reached ... in collect-baseline: console and log lines.

Reading the evidence directory#

A launcher or CI check run exports only two things: the public record and, for an eligible Release campaign, the calibration evidence. A collection also writes its progress log, its status and the generated packages; see outputs. Private captures, runtime binaries and host paths are never exported. Start here:

Question

Where to look

Did the run pass?

The Overall: line of the final summary, or verdict in public/measurements.json

Which metric warned or regressed?

Saved comparison results in the summary, or comparisons in the public record

Why did an attempt fail?

The lines under its row in the console table. For the full record, run the controller directly and read its results/

Can this run create a budget?

Only when calibration/calibration.json exists; see calibration evidence

Where are the raw files of a launcher run?

Nowhere. The private execution tree is deleted after a verified drain

The final summary#

The final KPI JOB SUMMARY (public diagnostic) is rendered from the public record alone. It never reads private files and never changes the verdict.

  • By default the driver prints the summary at the end of the run: --summary-mode inline is its default, and the launchers pass no --summary-mode.

  • A CI job can pass --summary-mode deferred and print the summary with --after-script from a later step, which also runs after a timeout or a cancellation. See print the summary in a later step.

The record states where it was made: {"kind": "local"}, or {"kind": "ci-job", "job_id": N} with the controller-validated numeric job ID. The reader compares it with the current context before it prints anything. A record from another job, or a record it cannot read, prints only:

KPI public snapshot unavailable; original verdict unchanged.

Example: empty catalog. A Linux release check with no installed package stops before fixture generation. Its summary looks like this:

KPI JOB SUMMARY (public diagnostic)
  Recorded UTC: 2026-01-01T12:00:00.000000Z
  CPU model: Example Core 42
| Item                         | Result                                                                       |
| ---------------------------- | ---------------------------------------------------------------------------- |
| Backend / platform / profile | ovstage / linux / release                                                    |
| Saved overall result         | insufficient-evidence; exit codes benchmark=3, CI=3                          |
| Initial measurement validity | INCOMPLETE: 0 / 0 valid / requested observations; 0 rejected attempt records |
| Performance comparison       | NOT EVALUATED (no approved limits recorded)                                  |
| Total controller time        | <seconds>s                                                                   |
| Campaign time                | unavailable                                                                  |
| CPU precheck time            | unavailable                                                                  |
| Extra contention wait        | unavailable                                                                  |
| Diagnostic completeness      | Final controller projection                                                  |
| Baseline authority           | Saved performance acceptance does not approve a baseline                     |
Initial measurements: unavailable - no workload inventory or attempt records
...
Saved comparison results (performance)
  Body Duplicates Only
    NOT EVALUATED: No approved comparison limits are recorded (5 metrics)
  Body Dynamic
    NOT EVALUATED: No approved comparison limits are recorded (5 metrics)
...
  Cockpit Suite Save
    NOT EVALUATED: No approved comparison limits are recorded (6 metrics)
...
Overall: INSUFFICIENT EVIDENCE | Initial measurements: NOT RUN (0 / 0 valid) | Performance: NOT EVALUATED (no approved limits recorded) | Report: final | Saved exits: benchmark=3, CI=3

The nine workloads list 47 missing metric cells on Linux. On Windows each workload adds private_high_water_bytes, which gives 56.

Example: a measured Release campaign. Here Body Static passed with one warning, and Cockpit Static failed its work check. This is an excerpt with illustrative values:

| Saved overall result         | product-failure; exit codes benchmark=1, CI=1                                                     |
| Initial measurement validity | INCOMPLETE: 3 / 6 valid / planned cells (planned includes 2 warm-ups); 2 rejected attempt records |
| Performance comparison       | NOT EVALUATED for campaign (incomplete initial evidence; saved product-failure outcome)           |
...
Campaign summary (saved controller decisions)
| Workload       | Runs   | Attempts | Valid/metric | Result  |
| -------------- | ------ | -------- | ------------ | ------- |
| Body Static    | 4 / 10 | 5        | 3            | PASSED  |
| Cockpit Static | 1 / 10 | 2        | 0            | Stopped |
...
Saved comparison results (performance)
  Body Static
    | Metric    | Result                | Median | Baseline | Change | Warn > | Fail > | -20%  0   +22% |
    | --------- | --------------------- | ------ | -------- | ------ | ------ | ------ | -------------- |
    | Operation | ACCEPTED (saved pass) | 100s   | 98s      | +2.0%  | +7.1%  | +12.2% | [     :*WF   ] |
    | Load      | ACCEPTED with WARNING | 10s    | 9s       | +11.1% | +10.0% | +22.2% | [     :==!  F] |
    Saved comparison mode: direct
  Cockpit Static
    NOT EVALUATED: Product failure; exact cause not retained (1 metric)
...
Overall: PRODUCT FAILURE | Initial measurements: PARTIAL (3 / 6 valid; 2 warm-ups planned) | Performance: NOT EVALUATED for campaign (incomplete initial evidence; saved product-failure outcome) | Report: final | Saved exits: benchmark=1, CI=1

The summary has these sections, in this order:

Section

Shown

Content

Header and result table

Always

Recording time and CPU model; backend, platform and profile; saved verdict with the benchmark and CI exits; measurement validity; campaign performance; controller, campaign and CPU-precheck time; extra contention wait; whether the record is final or partial

Initial measurements (counts)

Fixed-count runs (smoke)

Per workload: Valid / requested, Attempts, Failed, CPU rejects, Retries, Unstarted, Rejected, Pending and Validity, plus a Total initial row

Campaign summary (saved controller decisions)

Adaptive Release

Per workload: Runs (successful runs of 10, the warm-up included), Attempts, Valid/metric and Result, the saved sampling decision. Notes follow for workloads that stopped, restarted or kept rejected records; see the campaign summary in the final summary

Exceptional CPU diagnostics

Only after a non-routine CPU check

Workload, Records (count) and CPU status, at most 32 groups. Details stay in measurements.json

Observed measurements (descriptive medians)

Always

Per workload: Group, Metric, Median and Values. Release adds Stability noise (3 * MAD / median, the gated value) and Largest deviation (max(abs(value - median)) / median, which widens budgets but never stops sampling)

Baseline readiness (diagnostic only)

Always

Metrics with fewer than three qualified values, or with noise above its limit

Saved comparison results (performance)

When the record has comparisons

Per workload: Metric, Result, Median, Baseline, Change, Warn >, Fail > and a position bar whose header is its axis

Overall: line

Always

The verdict, the initial measurement state, the performance result, final or partial, and the saved exits

The campaign summary. An adaptive Release record repeats the controller’s saved sampling decision of every workload. Notes follow the table: the count definitions, the noise limits, the retained warm-ups, the retry rule and, under each workload that stopped, restarted or kept rejected records, its retained records and its stop line. For a campaign that stopped at a noise limit (values illustrative; the calculation block is elided):

Campaign summary (saved controller decisions)
| Workload                 | Runs    | Attempts | Valid/metric | Result        |
| ------------------------ | ------- | -------- | ------------ | ------------- |
| Body Static              | 4 / 10  | 4        | 3            | PASSED        |
| Body Dynamic             | 4 / 10  | 4        | 3            | PASSED        |
| Body Suite Save          | 4 / 10  | 4        | 3            | PASSED        |
| Cockpit Static           | 4 / 10  | 4        | 3            | PASSED        |
| Cockpit Dynamic          | 4 / 10  | 4        | 3            | PASSED        |
| Cockpit Suite Save       | 4 / 10  | 4        | 3            | PASSED        |
| Body Dynamic Depth       | 10 / 10 | 12       | 9            | FAILED: noise |
| Cockpit Static Clearance | 0 / 10  | 0        | 0            | Not run       |
| Body Duplicates Only     | 0 / 10  | 0        | 0            | Not run       |
Runs: successful / 10, including one warm-up. Attempts: all actual attempts, including CPU-rejected retries. Valid/metric: minimum qualified measured values across required metrics. Unstarted placeholders are not attempts.
Noise limits: Load time <= 25%; all other metrics <= 15%.
Warm-up: 7 successful runs retained and excluded from measured statistics.
CPU-rejected retries do not count toward the 10 successful-run limit; up to 10 retries per run. All valid values are retained; no favorable subset is selected. Stability does not approve a baseline.
  Body Dynamic Depth
    Retained records: CPU rejects: 2; retries: 2; rejected: 2.
    Campaign stopped: 10 successful runs used (1 warm-up, 9 measured); 12 total attempts; required metrics have not passed the noise checks (Load 25%; other metrics 15%); Operation noise 30.00% > 15%
    ...
  Cockpit Static Clearance
    Retained records: unstarted: 3.
  Body Duplicates Only
    Retained records: unstarted: 3.

Result

Saved decision

PASSED

stable

FAILED: noise

attempt-limit, and every metric has at least three values

FAILED: values

attempt-limit, and some metric has fewer than three values

Stopped

collect after at least one attempt: the campaign stopped first

Not run

collect without an attempt

  • A workload that ended at the attempt limit repeats its console stop line and the calculation of its deciding metric; how a stop is explained describes both.

  • A Stopped workload prints Stopped before a stable result; see the saved overall result and attempt records.

  • A restarted workload lists its restart history, and the notes add that only the final series counts; see console and log lines.

The result table states VALID or INCOMPLETE measurements. The Validity column and the Overall: line use VALID, PARTIAL, REJECTED, NOT RUN or UNKNOWN. Each metric comparison shows its saved result:

Result

Meaning

ACCEPTED (saved pass)

The median is at or below the warning limit W

ACCEPTED with WARNING

The median is above W and at or below the failure limit F

REJECTED (saved regression)

The median is above F

NOT EVALUATED

No budget, no median, insufficient evidence, or a product or harness failure

Budget limits defines W and F. Change, Warn > and Fail > give the median, W and F as percent changes from B, the baseline median of the budget row: a change above Warn > is a warning, and above Fail > a regression. When two different values print alike, for example a median just above F that rounds to the same percentage, the metric name gets [rounded] and the saved result decides.

The position bar draws the same numbers. All bars of one table share an axis of twelve cells from -20% to the largest failure limit in the table, and the column header labels both ends and B:

Mark

Meaning

:

The budget’s baseline median B

=

The change from B: left is faster or smaller, right is slower or larger

W, F

The row’s warning and failure limits

*, !, X

The median: at or below W, above W, above F

<, >

In place of a bracket: the median lies beyond that end of the axis

The median’s mark compares the unrounded values, so it stays correct when it covers a limit’s cell. Without a budget or a median, the cell reads unavailable. The bar is a picture; it recomputes no verdict. The comparison details of the driver’s KPI JOB SUMMARY use the same columns and bar, with one table per verdict group and workload.

How to read the counts and values:

  • Runs counts successful runs, the warm-up included. Attempts counts actual attempts, CPU rejections included. Valid/metric is the smallest count of qualified measured values across the required metrics.

  • An unstarted placeholder is not an attempt. An attempt record does not prove native execution. A rejected attempt is not a performance rejection.

  • For each cell, the latest retained record counts. A later failed or pending record replaces an earlier successful one.

  • Durations are in seconds and sizes in binary units (KiB, MiB, GiB). Displayed values have six significant digits; the JSON keeps the exact values. A missing value reads unavailable, never zero.

  • CPU precheck time, contention waiting, attempt durations and the total controller time overlap. Do not add them.

  • Passing CPU admission does not prove that the machine stayed idle during the operation.

A valid measurement does not mean accepted performance. Campaign performance stays NOT EVALUATED for a partial report, incomplete initial evidence, a workload without comparisons, omitted records, or any verdict other than pass or regression. The per-metric results stay visible even then, as in the measured Release campaign example of the final summary.

Baseline readiness applies the noise limits to the public values of every report, smoke included. It is arithmetic on the displayed values, not an eligibility decision. When the record holds more than one CPU model, it does not evaluate variability.

A check run ends with this sentence and a heart only when its saved record shows a benchmark pass, CI exit 0, a final record (incomplete is false) and verified private cleanup:

All KPI workloads passed and stay within their approved limits. Everything is awesome!

The heart is a Unicode character; a console whose encoding cannot show it prints <3 instead. An interactive terminal shows the line in green. Any warning, insufficient evidence, unverified cleanup or failure prints no sentence, and neither does the CI CPU-contention warning on Windows, whose CI exit 0 keeps benchmark verdict 3. With --summary-mode deferred, the sentence ends the after-script summary. A collection that exits 0 prints its own sentence; see collection progress log.

Public record#

Every launcher check run publishes public/measurements.json. A collection publishes one per campaign, in public/campaigns/<NNNN>/public/. The format:

  • Schema ovclash-kpi-public-measurements-v4 with the numeric-logical-references-v1 privacy contract.

  • One line of compact ASCII JSON with sorted keys and a trailing newline, at most 2 MiB. Row caps bound its inventory, attempts and comparisons rows.

  • Only fixed workload and metric names, numbers, UTC timestamps and logical references. A CPU label appears only when it comes from a complete, normalized hardware identity. Host and user names, unknown strings, paths, error text and raw console bytes are never copied.

The driver writes a context-only record, marked incomplete, as soon as the run starts. It replaces the file atomically after each controller inventory, attempt and summary event, and writes the final record at the end. A timeout or cancellation therefore leaves the latest partial record for the after-script.

The record has no calibration, runtime or approval authority. budget create cannot use it.

The schema is closed: a reader rejects any field that these tables do not list.

Field

Type

Required

Default or values

Description

schema

string

Yes

ovclash-kpi-public-measurements-v4

Format

privacy_contract

string

Yes

numeric-logical-references-v1

Privacy contract

created_utc

string

Yes

YYYY-MM-DDTHH:MM:SS[.ffffff]Z

Recording time

backend

string

Yes

ovstage or openusd

Run identity

platform

string

Yes

linux, aarch64 or windows

Run identity

profile

string

Yes

smoke or release

Run identity

publication_context

object

Yes

{"kind": "local"} or {"kind": "ci-job", "job_id": N} with a positive integer N

Where the record was made

eligible_for_calibration, eligible_runtime, approval_authority, raw_evidence_retained

boolean

Yes

Always false

The record grants no authority

incomplete

boolean

Yes

true or false

true for a partial, held, failed or interrupted record

references

array of objects

Yes

Exactly [{"member": "measurements.json", "role": "measurements"}]

The record names itself

inventory

array of objects

Yes

At most 16,384 rows

Requested cells; see public record rows

attempts

array of objects

Yes

At most 16,384 rows

One row per attempt; see public record rows. Rows carry no attempt directory name

comparisons

array of objects

Yes

At most 16,384 rows

One row per workload and metric; see comparison rows

omitted_records

integer

Yes

0 or more

Rows that could not be projected and were left out

verdict

object

Yes

benchmark_exit_code, ci_exit_code and status; see verdict object

The saved verdict

campaign_seconds

number

No

0 or more

Campaign time, when known

driver_seconds

number

No

0 or more

Total controller time, when known

sampling

object

No

Present when the policy is current

The adaptive Release decisions per workload; see sampling records

cpu_contention_wait

object

No

limit_seconds, extra_wait_seconds and remaining_seconds, numbers of 0 or more

The shared CPU-wait allowance

cpu_models

array of strings

No

1 to 64 sorted, distinct labels

Normalized CPU model labels

cpu_model_ref

object

No

{"role": "cpu-model", "sha256": <64 hex digits>}

A SHA-256 reference to the model string

architecture

string

No

x86_64, amd64, aarch64 or arm64

The architecture

private_cleanup_verified

boolean

No

true or false

Whether the private execution tree was removed after a verified drain

Public record rows#

The inventory and attempts rows share one field set. An inventory row holds only the identity fields workload_id, series, sample and replacement, and the driver writes the fields marked “Attempt rows” in every attempts row:

Field

Type

Required

Default or values

Description

workload_id

string

Yes

One of the nine workload IDs

The workload

series

integer

No

1 to the restart limit

The restarted series. The original series 0 is never written

sample

integer

No

0 or more

The inventory cell

replacement

integer

No

0 or more

The CPU retry of the cell

exit_code

integer or null

Attempt rows

0, 1, 2, 3, 4, 130 or null

The attempt verdict; null while pending

status

string

Attempt rows

The status name of exit_code, pending or unexecuted

The attempt status

completed

boolean

Attempt rows

true or false

Exit 0 with a passing work audit and metrics

qualified

boolean

Attempt rows

true only when completed

The attempt passed its workload and environment checks

elapsed_seconds, admission_seconds

number or null

No

0 or more

The attempt’s wall time and its CPU-admission time

metrics

object

No

Keys among the twelve public metrics; values are numbers of 0 or more, or null

operation_seconds, load_seconds, pipeline_step_seconds, result_capture_seconds, extraction_serialization_seconds, database_bytes, resident_high_water_bytes, private_high_water_bytes, sampled_resident_peak_bytes, sampled_private_peak_bytes, starting_resident_bytes and starting_private_bytes

cpu_diagnostics, contention

object

No

Never on an unexecuted row

The CPU diagnostics and the recorded contention; see what is recorded

sampling_role

string

Adaptive Release attempts

warmup or measurement

The attempt’s sampling role

workload_attempt, workload_run

integer

Adaptive Release attempts

1 or more

The attempt count and the run slot of the workload

Comparison rows#

Each comparisons row:

Field

Type

Required

Default or values

Description

workload_id

string

Yes

One of the nine workload IDs

The workload

metric_id

string

Yes

One of the twelve public metrics

The metric

unit

string

Yes

seconds or bytes, from the metric

The metric’s unit

status

string

Yes

pass, warning, regression, insufficient-evidence, product-failure or harness-failure

The saved comparison result

statistics

object

No

median, minimum, maximum, mad and count, each a number of 0 or more or null

The candidate’s statistics

limits

object

No

All of baseline, warning and failure (numbers, 0 < baseline <= warning < failure), unit and comparison_mode (direct)

The applied budget

Verdict object#

The verdict object:

Field

Type

Required

Default or values

Description

benchmark_exit_code

integer or null

Yes

0, 1, 2, 3, 4, 130 or null

The benchmark verdict

ci_exit_code

integer or null

Yes

The benchmark codes, 75, 76 or null; 76 only with benchmark verdict 3

The process exit code

status

string

Yes

The status name of benchmark_exit_code, or unavailable when it is null

The verdict status

Example record#

The record of the empty-catalog example in the final summary, pretty-printed and shortened, with <seconds> in place of the measured time (the file itself is one line):

{
  "approval_authority": false,
  "attempts": [],
  "backend": "ovstage",
  "comparisons": [
    {"metric_id": "operation_seconds", "status": "insufficient-evidence", "unit": "seconds", "workload_id": "benchmark-body-representative-duplicates-only"}
  ],
  "cpu_models": ["Example Core 42"],
  "created_utc": "2026-01-01T12:00:00.000000Z",
  "driver_seconds": <seconds>,
  "eligible_for_calibration": false,
  "eligible_runtime": false,
  "incomplete": false,
  "inventory": [],
  "omitted_records": 0,
  "platform": "linux",
  "privacy_contract": "numeric-logical-references-v1",
  "private_cleanup_verified": true,
  "profile": "release",
  "publication_context": {"kind": "local"},
  "raw_evidence_retained": false,
  "references": [{"member": "measurements.json", "role": "measurements"}],
  "schema": "ovclash-kpi-public-measurements-v4",
  "verdict": {"benchmark_exit_code": 3, "ci_exit_code": 3, "status": "insufficient-evidence"}
}

A comparison with an approved budget carries the saved statistics and limits:

{"limits": {"baseline": 98.0, "comparison_mode": "direct", "failure": 110.0, "unit": "seconds", "warning": 105.0}, "metric_id": "operation_seconds", "statistics": {"count": 3, "mad": 1.0, "maximum": 101.0, "median": 100.0, "minimum": 99.0}, "status": "pass", "unit": "seconds", "workload_id": "benchmark-body-representative-static"}

To read a record in a script, validate it first. Run this from ovclash/ with $PY, the KPI input Python of the quick start:

import json
from pathlib import Path

from benchmarks.kpi import publication

path = Path("_build/kpi-local-example/public/measurements.json")
record = publication.validate_public(json.loads(path.read_text(encoding="ascii")))
verdict = record["verdict"]
print(verdict["status"], "benchmark exit", verdict["benchmark_exit_code"], "CI exit", verdict["ci_exit_code"])
for row in record["comparisons"]:
    if row["status"] != "pass":
        print(" ", row["workload_id"], row["metric_id"], row["status"])

For the measured Release campaign example of the final summary, it prints:

product-failure benchmark exit 1 CI exit 1
  benchmark-body-representative-static load_seconds warning
  benchmark-cockpit-representative-static operation_seconds product-failure

validate_public raises PublicationError, a ValueError, for any field outside the closed schema.

Calibration evidence#

Calibration evidence is the replayable record of one complete Release campaign. It is the only input that budget create accepts; see offline budget recording.

A --profile release check run writes calibration/calibration.json (--calibration-output selects another directory) only when all of these hold:

  • The campaign measured: compatible coverage let it pass the budget phase.

  • The campaign verdict is 0 or 3. CI exit 75 counts as 3. A regression, a product or harness failure and an interruption export nothing.

  • Every writer drained, and private cleanup is not held.

  • calibration.export accepts the campaign.

calibration.export requires:

  • the Release profile and the current nine-workload adaptive sampling policy, adaptive-release-warmup-robust-load25-noise15-retry10-runs10-restarts10-v10;

  • a clean, verified Release build of the selected backend and a passing validation receipt of the same build;

  • every workload of the frozen manifest stable: each passed the noise gate, so every required metric has at least three measured values. A campaign that stopped before every workload became stable exports nothing;

  • a verified child runtime, expected work and staged input closure;

  • the measurement code, the build closure and the stage inputs unchanged from the start of the campaign until the file is published.

Smoke, incomplete, failed and interrupted campaigns therefore export no calibration. Once the first three conditions hold, check mode prints one of two lines, depending on whether calibration.export accepts the campaign:

KPI complete calibration evidence exported; producer content receipts and offline numeric replay retained.
KPI campaign is ineligible for portable calibration; diagnostic verdict unchanged.

A collection exports every campaign that exits 0 with a verified drain to public/campaigns/<NNNN>/calibration/, before the independent replay checks the campaign. The file stays even when the replay rejects the campaign; see collection outputs. The collection’s progress log records the export instead of printing either KPI ... calibration line.

The output of a check run therefore holds the public record and, only for a complete qualifying Release campaign with compatible coverage, one calibration.json. The output of a collection holds one calibration.json per exported campaign. Pass those directories to budget create --artifacts, extracted first when they come from a CI artifact.

The format:

  • Format ovclash-kpi-calibration-evidence-v11 (schema_version 11), privacy contract numeric-logical-references-v1, validation boundary producer-validated-content-receipts-offline-numeric-work-replay-v1.

  • Canonical JSON, at most 64 MiB. Row caps bound its attempt rows and CPU placement receipts.

  • It holds only each workload’s final series; see what counts after a restart. It keeps every attempt and rejection of that series, the original child identities as hashes, the full frozen inventory, the numerical CPU histories and the expected-work proof.

  • It holds no runtime binary, host or user identity or local path.

Every field is required, and readers reject an unknown one:

Field

Type

Required

Default or values

Description

schema_version

integer

Yes

11

Schema version

format

string

Yes

ovclash-kpi-calibration-evidence-v11

Format

privacy_contract

string

Yes

numeric-logical-references-v1

Privacy contract

validation_boundary

string

Yes

producer-validated-content-receipts-offline-numeric-work-replay-v1

What readers can recheck offline

created_utc

string

Yes

An explicit UTC timestamp

Export time

campaign_ref

string

Yes

64 lowercase hexadecimal digits

The SHA-256 of the session ID

campaign_exit_code

integer

Yes

0 or 3

The campaign verdict

producer

object

Yes

build_digest, source, backend (ovstage or openusd), configuration (Release), measurement_digest, workflow_receipt, validation_receipt_sha256, native_closure_sha256, binding_closure_sha256, sdk, wheel, interpreter and validation_summary

The build, source and measurement identity, the native and binding closure digests, the receipts of the SDK archive, wheel and interpreter, and the validation receipt with its signing policy and applicability

cohort

object

Yes

The campaign cohort, with runner and storage classes from the calibration vocabulary

The cohort of every observation

compatibility

object

Yes

The package compatibility format of package fields

The CPU-model compatibility fingerprints

cpu_selections

array of objects

Yes

At most 8,192 rows of ordinal, receipt and protocol

The placement receipts

frozen_contract_sha256

string

Yes

SHA-256

The frozen contract digest

inventory

array of objects

Yes

Rows of workload_id, sample (0 to 9) and status (pending); samples 0 to 2 of every workload at least

The requested cells

workloads

array of objects

Yes

One row per workload: workload (object) and digest (string)

The workload definitions with their digests

attempts

array of objects

Yes

One row per attempt, in order; see calibration attempt rows

The attempts of each workload’s final series

sampling

object

Yes

Its policy is the current acquisition policy

The sampling decisions; see sampling records

content_sha256

string

Yes

64 lowercase hexadecimal digits

SHA-256 of the canonical JSON of every other field. Readers reject a mismatch

Calibration attempt rows#

Each attempts row holds every one of these fields:

Field

Type

Required

Default or values

Description

ordinal

integer

Yes

0, 1, … in file order

The row’s position

workload_id

string

Yes

One of the nine workload IDs

The workload

sample, replacement

integer

Yes

sample 0 or more; replacement 0 to 8,191

The inventory cell and its CPU retry

state

string

Yes

measured, cpu-rejected or unexecuted

What happened to the attempt

exit_code

integer

Yes

0 for measured, otherwise 3

The attempt verdict

sampling_role

string

Yes

warmup or measurement

The sampling role

workload_attempt, workload_run

integer

Yes

1 or more

The attempt count and the run slot of the workload

attempt_ref

string

Yes

64 lowercase hexadecimal digits

A hash of the attempt ID

raw_receipt

object

Yes

sha256 (64 lowercase hexadecimal digits) and bytes (positive integer)

The producer’s content receipt of the raw attempt record

child

object or null

Yes

null when no child ran

The child identity, as hashes

protocol

object

Yes

The CPU records

The placement, admission and CPU observations

metrics

object

Yes

Empty for a cpu-rejected attempt

The measured metric values

work

object or null

Yes

null for a cpu-rejected attempt

The expected-work proof

phase, role

string

Yes

Always initial and candidate

Retired fields kept as constants

pair_index, pair_retry, superseded_by_pair_retry

null

Yes

Always null

Retired fields kept as constants

Offline checks#

Offline readers (calibration.validate, which budget create runs) recheck everything they can without the original machine:

  • They require the complete closed schema, the v11 format and the current sampling policy. They recompute content_sha256 and accept only campaign_exit_code 0 or 3.

  • They verify the workload and metric inventory, child uniqueness, the runtime and backend receipts and the expected work.

  • They replay the numerical CPU admission and load checks and the adaptive sampling decisions. They never trust a stored qualification flag or projected budget.

  • They treat hash receipts as producer attestations: content hashes and sizes record what the producer validated, because binaries absent from the artifact cannot be hashed again.

  • They recheck the supported-workflow signing rules, with pass counts and permitted skips kept separate.

A portable calibration artifact holds exactly one calibration.json and at most one measurements.json, with no other file and no link. To check one before budget create, run this from ovclash/ with $PY, the KPI input Python of the quick start:

from pathlib import Path

from benchmarks.kpi import calibration, evidence

path = Path("_build/kpi-local-example/calibration/calibration.json")
document = evidence.load_json(path)
calibration.validate(document)  # raises ValueError("calibration ...") on any mismatch
print(document["format"], document["campaign_exit_code"], len(document["attempts"]))

For a campaign of the nine workloads with four runs each and verdict 3 (the synthetic campaign of tests/python_tests/kpi_calibration_fixture.py), it prints:

ovclash-kpi-calibration-evidence-v11 3 36

Private execution tree#

One controller owns one fresh private execution tree. Each attempt runs in its own child process with explicit bindings and native libraries. The shared process supervisor launches it, enforces its timeout and cleans up its descendants. Cleanup tries every remaining handle and keeps the original failure. If the supervisor cannot confirm that every owned child exited, the campaign stops: no later workload runs, and the report marks the output unverified.

The background observer, the in-process sampler of the child, reads OS counters only, and its memory and CPU cost are part of the measured process. A failure of the observer alone is a harness error. Its thread counts (Linux procfs tasks and Python thread counts) do not identify native ovclash workers, and the requested nb_tasks is not an observed thread count.

The launchers place the private execution tree of each campaign:

  • Linux: below the --output container.

  • Windows: in the system temporary directory, which keeps native paths short. Python takes it from TMPDIR, then TEMP, then TMP. Before the campaign starts, the driver checks the generation root and every frozen bundle member against the native MAX_PATH limit (260 UTF-16 units including the terminating NUL). Without long path support, Windows refuses such a path earlier, and a directory of 248 characters or more as well: when the driver creates the private execution tree, extracts the wheel into it or generates the bundles, or when a check writes the report of a failed phase. In each case the run stops with exit 4 and names the remedy Windows private KPI paths exceed MAX_PATH; set TMPDIR, TEMP and TMP to a shorter folder:

    • A check prints the remedy as the reason of the failed phase. When not even the private execution tree can be created, no phase has started, and the check prints KPI harness failure; <remedy>. instead.

    • A collection logs the remedy as the kind of its Failed phase: line and stops with collection_harness_failure; see collection status and exit codes.

Both locations get the same ownership, link, reparse-point, protected-input and cleanup checks. The driver removes the tree only after it verified the drain. Removal stops if the directory, its owner marker or its top-level entries changed, or if it holds more than 100,000 files. An unverified cleanup keeps the tree and exports nothing from it.

.kpi-execution-<random>/
  .execution-owner.json              owner marker; cleanup checks it
  campaign/
    prepared/                        inputs prepared for this campaign
    results/                         the controller's results; see "Files in results/"

A collection prepares once. Its first private execution tree holds the shared campaign/prepared/ tree, and each campaign runs in a private execution tree of its own that holds only campaign/results/. A campaign whose tree is held also keeps the shared prepared tree.

Path below campaign/prepared/

Format

Purpose

build.json, validation_receipt.json

JSON

The selected runtime and build, and a copy of the producer’s one passing validation receipt

bindings/

Directory

The extracted Release wheel, used as the Python binding root

required-cpu-pool.json

JSON

Check mode: the CPU pool that coverage requires. Written only when another observed CPU model has no coverage

required-cpu-pool-<NNNN>.json

JSON

Collection: the pool that binds campaign <NNNN> to a CPU model that still needs campaigns. Written only after the campaigns of another model are selected, one file per bound campaign

representative/representative-workloads.json

JSON

The schema-3 ovclash-kpi-representative-run-v3 manifest that binds the frozen contracts to the selected build

representative/build.json, representative_expectations.json, representative_extensions.json, representative_depth.json

JSON

Copies of the build manifest and the frozen contracts. On Linux AArch64 the expectations copy carries the reviewed Cockpit static qualification

representative/<bundle>/bundle/

Directory of bundle.json and USD layer files

bundle.json, the root stage and every layer of each bundle: body-representative, cockpit-representative and body-representative-depth

representative/<bundle>/generation.json, representative/generation.json

JSON

Generation time and pins of each bundle, and the total generation time

The controller hashes every selected bundle file when the campaign starts and again after all writers drained. It records the result in results/input-admission.json. If the final check fails, the campaign cannot pass; an earlier failure keeps its own classification.

A direct python -m benchmarks.kpi run --output <dir> keeps its whole output directory, which has the layout of results/. The launchers keep only the public record and eligible calibration evidence.

Files in results/#

File

Format

Present

Purpose

report.md

Markdown

Completed run

The human-readable report: verdict, attempt table, sampling evidence, work consistency, measured values, budget comparisons and supported workflows

summary.json

One line of compact UTF-8 JSON

Completed run

The final classification, inventory, attempts, observations, comparisons, sampling, cohort, build, workflow and scorecard. Use it for outcomes. It uses the private summary encoding; summary fields lists its fields

metrics.csv

CSV with a header row

Completed run

One row per recorded metric of each retained attempt; see metrics.csv columns. A missing measurement has no row; it is never zero

inventory.json

JSON array

From before execution

The requested cells with pending status. Written before execution, and rewritten before launch when sampling adds a cell or a restart adds a series. It never records final status

attempts.jsonl

JSON Lines, one event per line

From the first attempt

Append-only journal with started, completed, unexecuted and restarted events. A completed event binds the attempt’s attempt.json by relative path and SHA-256

cpu-selection.json

JSON

Four-core domain only

The cpu-selection-ledger that binds each placement receipt by relative path and SHA-256; see cpu-selection.json fields

cpu-selections/000.json, 001.json, …

JSON

Four-core domain only

Placement receipts: capabilities and topology, sampled load windows, the required pool, and the selected allocation or the failure reason. Status is selected, busy or unsupported, always with qualified: false, because each pinned child must still pass its own admission

input-admission.json

JSON

Completed run

The bundle-content checks at campaign start and after the drain

workflow-receipt.json

JSON

Early in the run

The selected build and its same-build validation receipt, retained before later steps can fail. It is not a Sentinel result

workload-verification.json

JSON

Early in the run

Each workload’s verification kind (benchmark-work), written early for partial-report recovery

budget-package.json

JSON

Only with a selected package or catalog

For a catalog directory: its package list and total size. For one package: its SHA-256, size, approvals or generation attestation, comparison contract and creation time

ci-disposition.json

One line of canonical JSON

Only for the CI CPU-contention warning

The CI disposition; see CI disposition record

<attempt ID>/

Directory

One per executed attempt

See attempt directories

metrics.csv columns#

metrics.csv has these columns, in this order:

Column

Type

Required

Default or values

Description

attempt_id

string

Yes

An attempt directory name

The attempt

workload_id

string

Yes

One of the nine workload IDs

The workload

status

string

Yes

An attempt status, such as pass or insufficient-evidence

The attempt’s status

qualified

string

Yes

True or False

Whether the attempt qualified

metric

string

Yes

A recorded metric name

The metric

value

number

Yes

The recorded value

The metric’s value

unit

string

Yes

seconds, bytes, samples/s or count, from the metric name’s suffix

The unit

cpu-selection.json fields#

cpu-selection.json is the campaign’s selection ledger. admission_guard.py rewrites it after each placement:

Field

Type

Required

Default or values

Description

schema_version

integer

Yes

1

Schema version

kind

string

Yes

cpu-selection-ledger

Record kind

selections

array of objects

Yes

One row per placement, in order: path (string, such as cpu-selections/000.json) and sha256 (64 lowercase hexadecimal digits)

The placement receipts

Each placement receipt, cpu-selections/<NNN>.json, holds these fields. After a placement failure, read status and reason first:

Field

Type

Required

Default or values

Description

schema_version, kind

integer, string

Yes

1, cpu-placement-selection

Record identity

status

string

Yes

selected, busy or unsupported

The placement result

qualified

boolean

Yes

Always false

The pinned child must still pass its own admission

reason

string

When not selected

Fixed text, such as no eligible four-core placement within the bounded wait

Why no placement was selected

failure_kind, available_physical_cores, cleanup_verified

string, integer, boolean

Too few physical cores only

insufficient_physical_cores

The core shortage and whether the placement’s own cleanup completed

cpu_domain

string

Yes

four-physical-cores-retry-v2

The CPU domain

policy

object

Yes

The load policy settings

The admission thresholds and windows

required_pool, required_cpus

object or null

Yes

null unless check mode or a collection binds a pool; required_cpus is always null

The required pool

wait_limit_seconds, elapsed_seconds

number

Yes

0 or more

The authorized wait and the time the placement took

sampling_started_elapsed_seconds

number

Once sampling started

0 or more

When load sampling began, after topology discovery

topology, capabilities

object

Once discovered

The CPU topology and the counter capabilities

What placement observed

samples

array of objects

Yes

Possibly empty

The raw load samples

windows

array of objects

Yes

start, end, reasons, eligible_cpus and selected_cpus, plus selected_aggregate_fraction or selection_reason

Each complete 1-second window and its decision

allocation, pool

object

selected only

The selected four CPUs and the identity of their pool

The placement that the attempts use

cleanup_notes

array of strings

No

Notes of a failed adapter cleanup

Cleanup diagnostics

These files describe a completed controller run. An earlier failure can leave fewer files. The writers are in benchmarks/kpi/:

  • runner.py: report.md, summary.json, metrics.csv, inventory.json, attempts.jsonl and each attempt.json;

  • execution.py: input-admission.json, workflow-receipt.json, workload-verification.json and budget-package.json;

  • admission_guard.py: cpu-selection.json and the cpu-selections/ receipts;

  • attempt.py: each attempt’s task.json, admission.json, stdout.log and stderr.log;

  • benchmark_execution.py and benchmark_depth.py: the capture files of a completed canonical capture, the report capture of a workload other than a Suite save; see attempt directories.

scripts/kpi_ci.py writes ci-disposition.json.

report.md starts like this:

# ovclash KPI report

Status: **product-failure** (exit 1).

Profile: `release`. Backend: ovstage Release.

Results qualify only the requested workload/profile. Missing budgets or evidence are not passes.

| Attempt | Workload | Result | Environment qualified | Reason |
| --- | --- | --- | --- | --- |
| benchmark-body-representative-static-000-0 | benchmark-body-representative-static | insufficient-evidence | False |  |
| benchmark-body-representative-static-000-1 | benchmark-body-representative-static | pass | True |  |
...

metrics.csv of the same campaign starts like this:

attempt_id,workload_id,status,qualified,metric,value,unit
benchmark-body-representative-static-000-1,benchmark-body-representative-static,pass,True,operation_seconds,900.0,seconds
benchmark-body-representative-static-000-1,benchmark-body-representative-static,pass,True,load_seconds,30.0,seconds

The rejected attempt ...-000-0 has no metric rows. Its retry ...-000-1 is the warm-up; its values stay in the file but are excluded from medians and noise.

Private summary encoding#

results/summary.json grows with every retained attempt. calibration.export refuses a private results tree with any JSON file larger than 128 MiB (budget_package.MAX_JSON_BYTES). The controller therefore writes summary.json as one line of compact UTF-8 JSON, without NaN or infinity, with a trailing newline. When the cohort of an observation serializes exactly like the top-level cohort, the observation stores the string "summary.cohort" instead of a copy. This applies to observations and to the observations inside each comparison.

Read the file with benchmarks.kpi.runner.load_summary, or pass a parsed document to runner.restore_summary. Every KPI reader does, and the result equals the summary the controller held in memory. Only a direct run keeps summary.json; this example reads the _build/kpi-local/results directory of a direct campaign. Run it from ovclash/ with $PY:

from pathlib import Path

from benchmarks.kpi import runner

summary = runner.load_summary(Path("_build/kpi-local/results/summary.json"))
print(summary["status"], summary["exit_code"])

Any other string cohort, or a shared cohort without a top-level cohort object, is rejected with private KPI summary has an invalid shared observation cohort. The private summary is not signed: because shared observations are restored from the top-level cohort, a replay cannot detect an edit of only that cohort. Calibration, public records, packages and reports do not use this encoding.

Summary fields#

A completed campaign writes these top-level fields: execution.py builds them, and runner.py adds the scorecard. When owned cleanup fails, the summary holds only the fields known by then, with output_unverified: true and qualified: false.

Field

Type

Required

Default or values

Description

schema_version

integer

Yes

1

Schema version

measurement_version, measurement_digest

string

Yes

ovclash-kpi-v1; 64 lowercase hexadecimal digits

The measurement identity

session_id

string

Yes

32 lowercase hexadecimal digits, or the --session-id value

The campaign’s session ID

profile

string

Yes

smoke or release

The profile

backend, configuration

string

Yes

ovstage or openusd; Release

The measured build

status

string

Yes

pass, product-failure, regression, insufficient-evidence, harness-failure or interrupted

The status name of exit_code

exit_code

integer

Yes

0, 1, 2, 3, 4 or 130

The benchmark verdict; see reports and verdicts

reasons

array of strings

Yes

Possibly empty

Campaign-level reasons, such as a missing validation receipt

elapsed_seconds

number

Yes

0 or more

The controller’s campaign time

release_gate_complete

boolean

Yes

Always false

KPI never completes a release gate

build, build_digest

object, string

Yes

The selected build manifest; its SHA-256 content identity

The producer

workflow

object or null

Yes

Its status is pass, product-failure or insufficient-evidence; null without a validation receipt

The checked validation receipt

cohort

object

Yes

The campaign cohort

Shared by the observations

input_admission

object

Yes

Its unchanged is true only when both bundle-content checks matched

The content checks that input-admission.json records

verification_kind, workload_verification

string, object

Yes

benchmark-work; each workload ID mapped to benchmark-work

The declared verification

inventory

array of objects

Yes

The rows of inventory.json

The requested cells

attempts

array of objects

Yes

One row per attempt

The controller’s attempt records

observations

array of objects

Yes

Qualified metric values, each with its cohort or "summary.cohort"

The values that the comparisons use

comparisons

array of objects

Yes

One row per workload and metric, with its observations

The budget comparisons

sampling

object

Yes

Its policy names the sampling policy

The sampling decisions; see sampling records

scorecard

object

Yes

workload_consistency and supported_workflows

The per-workload result of the required cells

ci_cpu_availability_warning

boolean

Yes

Always false in a collection

Eligibility for the CI CPU-contention warning

cpu_contention_wait

object

Four-core domain only

limit_seconds, extra_wait_seconds and remaining_seconds

The shared CPU-wait allowance

collection_retryable, collection_retry_reason, collection_deadline_reached

boolean, string or null, boolean

collect-baseline only

A retry reason such as cpu_contention

Whether the collector may retry the campaign, and why

Attempt directories#

Each attempt has its own directory below results/, named <workload_id>[-r<series>]-<sample>-<replacement>:

benchmark-body-representative-static-000-0       sample 0, first attempt
benchmark-body-representative-dynamic-002-3      sample 2, third CPU retry
benchmark-body-representative-dynamic-r1-000-0   restart series 1, sample 0, first attempt
  • sample is the zero-based inventory cell, in three digits.

  • replacement counts the CPU retries of one cell, from 0. Recovery gives how many each profile and CPU domain permits.

  • -r<k> appears only for a series that collect-baseline restarted; the original series has none.

  • An unexecuted cell may have no directory.

  • The numbers do not identify dynamic frames. One dynamic attempt runs all 65 samples of its workload, and one depth attempt all 10.

File

Format

Present

Purpose

task.json

JSON

When the controller launched a child; written before the launch

The controller’s request: workload and build, scratch and stage paths, admission settings and task token. A four-core task also binds the full cpu_allocation record

admission.json

JSON

When CPU admission ran for the attempt

The CPU-admission decision and its evidence. Read its rejection reasons before you interpret missing timings; see admission.json fields

child-result.json

JSON

When the child wrote its result

The raw child result: operation metrics, telemetry, runtime provenance, work counts, capture descriptors or the failure reason. An allocated run carries cpu_allocation. It is not the controller’s final verdict

attempt.json

JSON

Every executed attempt

The controller’s attempt record after child cleanup and verification, with the elapsed wall time and the final classification

stdout.log, stderr.log

Text

When the controller launched a child

Child output. Either may be empty, even when a structured receipt explains a failure

The controller checks the task’s allocation against the child result and the raw telemetry before it interprets a measurement; benchmarks/kpi/attempt.py holds these checks. A four-core placement failure happens before a child launches and can leave only attempt.json; read the campaign’s cpu-selection.json then. A child that exhausts CPU admission can keep every file of its attempt directory without running a query.

A completed canonical capture adds these files. Their presence alone does not mean that the work or performance checks passed.

File

Format

Purpose

benchmark-summary.json

JSON

Compact pair, sample, element and duplicate identity and the report-volume receipt, bound by the child’s capture descriptor. No geometry

benchmark-report-cardinalities.bin

Packed binary, one 33-byte row per record

Packed per-record report-buffer counts. They locate volume differences without fetching native reports again. Canonical cold operations describes the row

benchmark-report-cardinality-pairs.json

JSON

The pair-path mapping and the summary and sample-grid binding of the packed records

benchmark-depth.bin

Packed binary, one 20-byte little-endian row per record

Body Dynamic depth only: pair index, sample index, element count and float32 depth. Captured after result-ready, the timing boundary at which the results are usable, and replayed before qualification. Depth rows gives the field layout

A successful Suite save keeps results.ovclashdb and its live benchmark-summary.json instead of the cardinality files. After the database is closed and the native writers drained, the controller adds benchmark-stored-summary.json: the validated stored metadata, bound to the database hash and the child receipt. Offline import uses it without scanning the metadata again. A failed save or inspection can leave partial files. Follow the final attempt verdict and the capture hashes, not the file names.

admission.json fields#

admission.json is the admission receipt of one attempt: the controller’s receipt under strict, or the child’s receipt under recorded contention. Its reasons explain a rejected attempt:

Field

Type

Required

Default or values

Description

qualified

boolean

Yes

true only when a quiet window admitted the attempt

The admission result

status

string

Yes

admitted, busy or unsupported

busy when every reason is aggregate_external_load, per_cpu_external_load or cpu_steal_observed; unsupported for any other reason

reasons

array of strings

Yes

Empty when admitted; otherwise reason codes such as aggregate_external_load, counter_error or no_complete_load_window

Why the attempt was not admitted

observed_busy

boolean

Yes

true or false

Whether any complete window was busy

elapsed_seconds

number

Yes

0 or more

The time the admission took

capabilities

object

Yes

The counter capabilities; under recorded contention also the cpu_allocation of the four selected CPUs

What the admission could observe

policy

object

Yes

The load policy settings

The thresholds and windows applied

samples

array of objects

Yes

At least one raw counter sample

The load samples

windows

array of objects

Yes

Each with its reasons

Every complete load window

admission_policy

string

Recorded contention only

shared-runner-recorded-contention-v2

The admission policy

isolation_proven

boolean

Recorded contention only

Always false

Admission never proves isolation

uncertainties

array of strings

Recorded contention only

Four fixed statements, such as operation interference is not excluded

What the receipt cannot rule out

scope_fingerprint

string or null

Recorded contention only

null when the capabilities were unusable

The fingerprint of the observed CPU scope

wait_limit_seconds

number

No

Present when the controller shortened the wait

The authorized wait

first_window

boolean

No

true

A recovery check that stops at its first complete busy window